我有超过 100 篇会议摘要,分类为invited
、contributory
和poster
。目前,我有一个包含以下示例代码的文件:
\documentclass[11pt,twoside,french, english]{book}
\usepackage{lipsum}
\usepackage{needspace}
\usepackage{babel}
%%%%%%%%%%%%%%%%%%---------------------------
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[RE,LO]{\nouppercase \leftmark}
\fancyhead[RO,LE]{\nouppercase \rightmark}
\fancyfoot{}
\fancyfoot[RO,LE]{\thepage}
%%%%%%%%%%%%%%----------------------------------------------------
\usepackage{amsmath,amsfonts,amsthm,dsfont,amssymb,csquotes}
\newenvironment{keywords}{\noindent\textbf{Keywords:}}{}
\newenvironment{classification}{\noindent\textbf{AMS subject classifications.}}{}
\date{}
\newcommand{\email}[1]{\texttt{\small #1}}
\newcommand{\atitle}[1]{\needspace{5cm} \begin{center}\bfseries\Large #1 \end{center}}
\newcommand{\aauthor}[1]{\begin{center}\parbox{0.8\textwidth}{\centering\small #1} \end{center}}
\newcommand{\aaffil}[1]{\begin{center}\parbox{0.8\textwidth}{ \centering\small #1}\end{center} }
\newenvironment{abstract}{\begin{center}
\bfseries Abstract
\end{center} }{}
%%%%%--------For Bibliography----------------------
\usepackage{etoolbox}
\patchcmd{\thebibliography}{\chapter*}{\subsection*}{}{}
\addto{\captionsenglish}{%
\renewcommand{\bibname}{References}%
\renewcommand{\contentsname}{Table of Contents}}
%%%%%%%%%%%%-------------------------------------------------------
\begin{document}
\tableofcontents
\section{Abstracts: Invited Speakers}
%%First abstract------
\atitle{Title of the First abstract}
\aauthor{Author A$^1$ and Author B$^2$}
\aaffil{$^1$Institution of Author A\\ $^2$ Institution of Author B}
\begin{abstract}
\lipsum[1]
\end{abstract}
\begin{thebibliography}{100}
\bibitem{[1]} B. D. Sleeman. Multiparameter spectral theory and separation of variables. Journal of Physics A: Mathematical and Theoretical. 41(1):1--20, 2008.
\bibitem{[2]} F. V. Atkinson. Multiparameter Spectral Theory, Bull. Amer. Math. Soc. 74: 1—27, 1968.
\bibitem{[3]} F. V. Atkinson. Multiparameter Eigenvalue Problems, Vol. I, (Matrices and Compact Operators) 1972: Academic Press, New York.
\end{thebibliography}
%%First abstract------
\atitle{Title of the Second abstract}
\aauthor{Author 2A$^1$ and Author 2B$^2$}
\aaffil{$^1$Institution of Author 2A\\ $^2$ Institution of Author 2B}
\begin{abstract}
\lipsum[2]
\end{abstract}
\begin{thebibliography}{100}
\bibitem{[1]} B. D. Sleeman. Multiparameter spectral theory and separation of variables. Journal of Physics A: Mathematical and Theoretical. 41(1):1--20, 2008.
\bibitem{[2]} F. V. Atkinson. Multiparameter Spectral Theory, Bull. Amer. Math. Soc. 74: 1—27, 1968.
\bibitem{[3]} F. V. Atkinson. Multiparameter Eigenvalue Problems, Vol. I, (Matrices and Compact Operators) 1972: Academic Press, New York.
\end{thebibliography}
\end{document}
输出如下:
我需要在标题中做出以下更改:
- 章节标题应该出现在标题中
\fancyhead[LE,LO]{section title}
,如\fancyhead[RE,RO]{Authors name without super scripts(ie, $^1$}
- 文章标题应添加到内容中,
subsection
并且作者必须添加到中subsubsection
。
如何实现这一点?
希望我可以通过修改上述设置来实现解决方案。
提前致谢!!
答案1
下面为您提供了标题和作者的标题。它不会删除上标。老实说,我认为您最好为\atitle
和\aauthor
命令提供可选参数来提供运行标题的文本,因为一般来说,这些材料无论如何都会太长。
\markboth
对于我在\atitle
和中使用的标题\extramarks
(来自extramarks
包)\aauthor
。这使我们能够打印与给定标题相对应的作者,而不是从不同的摘要中选择这些作者。最后,您必须通过(进一步)修补 来阻止参考列表更改标记\thebibliography
:
\documentclass[11pt,twoside,french,english]{book}
\usepackage{lipsum}
\usepackage{needspace}
\usepackage{babel}
%%%%%%%%%%%%%%%%%%---------------------------
\usepackage{fancyhdr,extramarks}
\pagestyle{fancy}
\fancyhead[RE,LO]{\nouppercase \leftmark}
\fancyhead[RO,LE]{\nouppercase \lastxmark}
\fancyfoot{}
\fancyfoot[RO,LE]{\thepage}
%%%%%%%%%%%%%%----------------------------------------------------
\usepackage{amsmath,amsfonts,amsthm,dsfont,amssymb,csquotes}
\newenvironment{keywords}{\noindent\textbf{Keywords:}}{}
\newenvironment{classification}{\noindent\textbf{AMS subject classifications.}}{}
\date{}
\newcommand{\email}[1]{\texttt{\small #1}}
\newcommand{\atitle}[1]{\needspace{5cm} \begin{center}\bfseries\Large
#1 \end{center}\markboth{#1}{#1}}
\newcommand{\aauthor}[1]{\begin{center}\parbox{0.8\textwidth}{\centering\small
#1} \end{center}\extramarks{#1}{#1}}
\newcommand{\aaffil}[1]{\begin{center}\parbox{0.8\textwidth}{
\centering\small #1}\end{center} }
\newenvironment{abstract}{\begin{center}
\bfseries Abstract
\end{center}}{}
%%%%%--------For Bibliography----------------------
\usepackage{etoolbox}
\patchcmd{\thebibliography}{\chapter*}{\subsection*}{}{}
\makeatletter
\patchcmd{\thebibliography}{\@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}{}{}{}
\makeatother
\addto{\captionsenglish}{%
\renewcommand{\bibname}{References}%
\renewcommand{\contentsname}{Table of Contents}}
%%%%%%%%%%%%-------------------------------------------------------
\begin{document}
\tableofcontents
\section{Abstracts: Invited Speakers}
%%First abstract------
\atitle{Title of the First abstract}
\aauthor{Author A$^1$ and Author B$^2$}
\aaffil{$^1$Institution of Author A\\ $^2$ Institution of Author B}
\begin{abstract}
\lipsum[1]
\end{abstract}
\begin{thebibliography}{100}
\bibitem{[1]} B. D. Sleeman. Multiparameter spectral theory and separation of variables. Journal of Physics A: Mathematical and Theoretical. 41(1):1--20, 2008.
\bibitem{[2]} F. V. Atkinson. Multiparameter Spectral Theory, Bull. Amer. Math. Soc. 74: 1—27, 1968.
\bibitem{[3]} F. V. Atkinson. Multiparameter Eigenvalue Problems, Vol. I, (Matrices and Compact Operators) 1972: Academic Press, New York.
\end{thebibliography}
%%First abstract------
\atitle{Title of the Second abstract}
\aauthor{Author 2A$^1$ and Author 2B$^2$}
\aaffil{$^1$Institution of Author 2A\\ $^2$ Institution of Author 2B}
\begin{abstract}
\lipsum[2]
\end{abstract}
\begin{thebibliography}{100}
\bibitem{[1]} B. D. Sleeman. Multiparameter spectral theory and separation of variables. Journal of Physics A: Mathematical and Theoretical. 41(1):1--20, 2008.
\bibitem{[2]} F. V. Atkinson. Multiparameter Spectral Theory, Bull. Amer. Math. Soc. 74: 1—27, 1968.
\bibitem{[3]} F. V. Atkinson. Multiparameter Eigenvalue Problems, Vol. I, (Matrices and Compact Operators) 1972: Academic Press, New York.
\end{thebibliography}
\atitle{Title of the third abstract}
\aauthor{Author 3A$^1$ and Author 3B$^2$}
\aaffil{$^1$Institution of Author 3A\\ $^2$ Institution of Author 3B}
\begin{abstract}
\lipsum[2]
\end{abstract}
\begin{thebibliography}{100}
\bibitem{[1]} B. D. Sleeman. Multiparameter spectral theory and separation of variables. Journal of Physics A: Mathematical and Theoretical. 41(1):1--20, 2008.
\bibitem{[2]} F. V. Atkinson. Multiparameter Spectral Theory, Bull. Amer. Math. Soc. 74: 1—27, 1968.
\bibitem{[3]} F. V. Atkinson. Multiparameter Eigenvalue Problems, Vol. I, (Matrices and Compact Operators) 1972: Academic Press, New York.
\end{thebibliography}
\end{document}