「\begin{document} が見つかりません」および「何かが間違っています -- おそらく \item が見つかりません」

「\begin{document} が見つかりません」および「何かが間違っています -- おそらく \item が見つかりません」

私はOverleafのテンプレートを使用しています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/latex でメモを書く/これは、Overleaf に「INFO 1200 ポリシー メモ」としてアップロードされたバージョンとは少し異なり、「INFO 1200」では のmathptmx代わりにがロードされpalatino、さらにhyperreftitlesecbiblatex、がロードされますinputenc。メモのフィールドを作成するための「コア」マクロは変更されていません。

Overleaf テンプレートはそのままでも問題なく動作します。コードを確認し、そのテンプレートで提供されているサンプル コード (Overleaf テンプレート ページの [ソースの表示] で表示できます) と比較すると、このクラスでは、、、は使用できません。\author代わりに、、、、を使用する必要があります。例:\title\email\memofrom\memoto\memore

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

関連情報