我试图将 $\LaTeX$ 放入文档标题中,但找不到这样做的方法。我想这是因为我无法将 latex 包与文档标题一起使用。有人知道如何解决这个问题吗?
以下是我所拥有的:
title: "Welcome to $\LaTeX$ Workshop"
output:
pdf_document:
citation_package: natbib
number_sections: yes
link-citations: yes
bibliography: sample.bib
classoption: twocolumn
header-includes:
- \usepackage{lscape}
- \usepackage[english]{babel}
- \usepackage{multicol}
- \setlength{\columnsep}{1cm}
- \setlength{\parindent}{1cm} # paragraph indentation
- \setlength{\parskip}{8pt} # paragraph spacing
- \usepackage{setspace}
- \doublespacing
我收到的错误如下所示:
! Package inputenc Error: Unicode char
(U+2028)
(inputenc) not set up for use with LaTeX.
See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...
l.96 \maketitle
Try running pandoc with --latex-engine=xelatex.
pandoc: Error producing PDF
Error: pandoc document conversion failed with error 43
Execution halted
提前致谢!