我正在尝试将文章类中撰写的三篇论文合并为一个文档。因此,需要定义三个标题页,其中包含作者、日期和相应作品的摘要。以下是示例:
\documentclass{article}
\usepackage{graphicx}
\usepackage{float}
\usepackage{mathtools}
\usepackage{titling}
\begin{document}
% ----------------------- Article 1 -----------------------
\title{Title 1}
\author{John Doe\thanks{To Horst}}
\date{01.01.2017}
\maketitle
\begin{figure}[H]
\centering
\includegraphics[width=0.8\textwidth]{example-image-golden}
\caption{Caption}
\end{figure}
\begin{equation}
a^2+b^2=c^2
\end{equation}
\newpage
% ----------------------- Article 2 -----------------------
\title{Title 2}
\author{John Doe\thanks{Petra}}
\date{01.01.2017}
\maketitle
\begin{figure}[H]
\centering
\includegraphics[width=0.8\textwidth]{example-image-golden}
\caption{Caption}
\end{figure}
\begin{equation}
a^2+b^2=c^2
\end{equation}
\newpage
% ----------------------- Article 3 -----------------------
\title{Title 3}
\author{John Doe\thanks{bla bla}}
\date{01.01.2017}
\maketitle
\begin{figure}[H]
\centering
\includegraphics[width=0.8\textwidth]{example-image-golden}
\caption{Caption}
\end{figure}
\begin{equation}
a^2+b^2=c^2
\end{equation}
\end{document}
我想...
- 避免其他作品的感谢信再次出现
- 避免在\thanks 后面附加任何脚注标记
非常感谢您的任何建议。谢谢。
答案1
部分解决方案——现在没有更多时间了。
\documentclass{article}
\usepackage{graphicx}
\usepackage{float}
\usepackage{mathtools}
\usepackage{titling}
\usepackage{chngcntr}
\counterwithin*{figure}{part}
\counterwithin*{section}{part}
\counterwithin*{subsection}{part}
\counterwithin*{equation}{part}
\begin{document}
\tableofcontents
% ----------------------- Article 1 -----------------------
\part{Article 1}
\title{Title 1}
\author{John Doe}
\date{01.01.2017}
\maketitle
\section{Article 1 Section 1}
\begin{figure}[H]
\centering
\includegraphics[width=0.8\textwidth]{example-image-golden}
\caption{Caption}
\end{figure}
\begin{equation}
a^2+b^2=c^2
\end{equation}
% ----------------------- Article 2 -----------------------
\part{Article 2}
\title{Title 2}
\author{John Doe}
\date{01.01.2017}
\maketitle
\section{Article 2 Section 1}
\begin{figure}[H]
\centering
\includegraphics[width=0.8\textwidth]{example-image-golden}
\caption{Caption}
\end{figure}
\begin{equation}
a^2+b^2=c^2
\end{equation}
% ----------------------- Article 3 -----------------------
\part{Article 3}
\title{Title 3}
\author{John Doe}
\date{01.01.2017}
\maketitle
\section{Article 3 Section 1}
\begin{figure}[H]
\centering
\includegraphics[width=0.8\textwidth]{example-image-golden}
\caption{Caption}
\end{figure}
\begin{equation}
a^2+b^2=c^2
\end{equation}
\end{document}
答案2
- 软件包
titling
中已经提供了一个避免重复注释的命令\thanks
: 。在标题后插入此命令将从致谢中删除内容,以便在第二次\emptythanks
使用时不会出现其内容。\thanks
- 关于标题的脚注标记,简单
\renewcommand\footnotemark{}
就可以完成。然后第一个脚注标记将是空白的。然而,在定义之前将脚注计数器重置为零很重要\thanks
:\setcounter{footnote}{0}
以下是根据问题中的示例给出的解决方案:
\documentclass{article}
\usepackage{graphicx}
\usepackage{float}
\usepackage{mathtools}
\usepackage{titling}
\renewcommand\footnotemark{}
\begin{document}
% ----------------------- Article 1 -----------------------
\title{Title 1}
\author{John Doe\thanks{To Horst}}
\date{01.01.2017}
\maketitle
\begin{figure}[H]
\centering
\includegraphics[width=0.8\textwidth]{example-image-golden}
\caption{Caption}
\end{figure}
\begin{equation}
a^2+b^2=c^2
\end{equation}
\newpage
% ----------------------- Article 2 -----------------------
\emptythanks
\setcounter{footnote}{0}
\title{Title 2}
\author{John Doe\thanks{Petra}}
\date{01.01.2017}
\maketitle
\begin{figure}[H]
\centering
\includegraphics[width=0.8\textwidth]{example-image-golden}
\caption{Caption}
\end{figure}
\begin{equation}
a^2+b^2=c^2
\end{equation}
\newpage
\emptythanks
% ----------------------- Article 3 -----------------------
\title{Title 3}
\author{John Doe\thanks{bla bla}}
\date{01.01.2017}
\maketitle
\begin{figure}[H]
\centering
\includegraphics[width=0.8\textwidth]{example-image-golden}
\caption{Caption}
\end{figure}
\begin{equation}
a^2+b^2=c^2
\end{equation}
\end{document}