「缺少\begin{document}」和「出了點問題—也許缺少\item」

「缺少\begin{document}」和「出了點問題—也許缺少\item」

我正在使用背頁模板https://www.overleaf.com/latex/templates/sample-policy-memo-for-cornell-info-1200/kybzqhsxjgjk並在對其進行一些修改後收到一些錯誤。我一直在嘗試修復它但失敗了。希望得到一些幫助謝謝。

\documentclass[12pt]{texMemo} % originally by Rob Oakes; adapted by Alice Chen
\usepackage{mathptmx}

\title{Discovering}
\author{Name}
\email{email} % missing \begin{document}

\begin{document}
\maketitle % something's wrong -- perhaps a missing \item

\section*{Introduction}
Some text for introduction. \cite{35usc101}
\section*{Research Question}
Some text for research question.

\section*{Methodology}
Some text for methodology.

\newpage
\printbibliography
\end{document}

答案1

[免責聲明:我是 Overleaf 的支援人員。

texMemo.cls可以從以下鏈接下載一份副本:https://texblog.org/2012/03/07/writing-a-memo-in-latex/。這與上傳到 Overleaf 的“INFO 1200 政策備忘錄”版本略有不同,“INFO 1200”加載mathptmx而不是palatino,並且另外加載hyperref, titlesec, biblatex, inputenc。用於建立備忘錄欄位的「核心」巨集未變更。

Overleaf 模板開箱即用,效果很好。查看您的程式碼,並與該範本提供的範例程式碼進行比較(可以使用 Overleaf 範本頁面上的「檢視原始程式碼」進行檢視):您無法將\author, \title,\email與此類一起使用。相反,您必須使用\memofrom, \memoto, \memore, 例如

\memofrom{Name (author's email)}
\memoto{Target recipients; is optional}
\memore{Discovering}

相關內容