我想使用版权符号拉特克斯。我尝试使用"\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()