Answers for "pylatex subsection"

0

pylatex subsection

from pylatex import Document, Section, Subsection, Command
from pylatex.utils import italic, NoEscape
#...
with doc.create(Section('A section')):
        doc.append('Some regular text and some ')
        doc.append(italic('italic text. '))

        with doc.create(Subsection('A subsection')):
            doc.append('Also some crazy characters: $&#{}')
#...
Posted by: Guest on August-19-2021

Python Answers by Framework

Browse Popular Code Answers by Language