如何在pyLaTeX中加入版權符號?

如何在pyLaTeX中加入版權符號?

我想在中使用版權符號pyLaTeX。我嘗試使用,"\textcopyright"\t被解釋為選項卡,導致.tex文件僅包含extcopyright.有沒有辦法正確取得版權符號?

    from pylatex import Document, PageStyle, Head, MiniPage, Foot, LargeText, \
        MediumText, LineBreak, simple_page_number
    from pylatex.utils import bold 


    def generate_header():
       geometry_options = {"margin" : "0.7in"}
       doc = Document(geometry_options=geometry_options)

       header = PageStyle("header")

       with header.create(Head("L")):
           header.append(bold("institute \textcopyright"))

       with header.create(Head("R")):
         header.append(bold("TEST"))

       with header.create(Foot("L")):
         header.append(bold("institute"))

       with header.create(Foot("C")):
         header.append(bold(simple_page_number()))

       with header.create(Foot("R")):
         header.append(bold("Document")) 

       doc.preamble.append(header)
       doc.change_document_style("header")


       doc.append("Test")


       doc.generate_pdf("header", clean_tex=False)

    generate_header()

相關內容