Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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: $&#{}')
#...            
Source by jeltef.github.io #
 
PREVIOUS NEXT
Tagged: #pylatex #subsection
ADD COMMENT
Topic
Name
8+8 =