📜  pylatex 小节 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:18.180000             🧑  作者: Mango

代码示例1
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: $&#{}')
#...