我想在同一个 latex 文件中包含正文和补充材料 (SM)。SM 将位于正文之后,但我希望再次从 1 开始标记图形(例如,在正文中我有图 1、图 2...,而在 SM 中我有图 SM 1、图 SM 2)。但是,我希望 SM 中的参考文献延续正文中的参考文献(SM 中将有一个新的“参考文献”部分)。有没有简单的方法可以实现这一点?谢谢!
答案1
类似这样的内容?有两个单独的文件(实际上包括文件在内是三个*.bib
)存储在同一个目录中(在本例中)。主文件包含所有常规文章材料,包括完整的参考列表。补充材料存储在单独的文件中,并使用自己的参考列表。
主文件如下所示:
\documentclass[11pt]{article}
\usepackage[a4paper, margin=2cm]{geometry}
\usepackage[]{graphicx}
\usepackage{caption}
\captionsetup[figure]{name=Fig.}
\usepackage[backend=biber, style=apa, sortcites]{biblatex}
\addbibresource{\jobname.bib}
\begin{filecontents}[overwrite]{\jobname.bib}
@article{zeybek2020,
title = {Analysis of pre-service teachers' learning styles according to {{V}}ermunt learning style model},
author = {Zeybek, Gülçin and Şentürk, Cihad},
date = {2020},
journaltitle = {International Online Journal of Education and Teaching},
volume = {7},
number = {2},
pages = {669--682},
url = {https://iojet.org/index.php/IOJET/article/view/766},
urldate = {2022-11-14},
langid = {english}
}
@book{meltzer2018,
title = {Executive Function in Education. {F}rom Theory to Practice},
editor = {Meltzer, Lynn},
date = {2018},
edition = {2},
publisher = {{The Guilford Press}},
location = {{New York}},
isbn = {978-1-4625-3453-1},
langid = {english},
pagetotal = {396},
keywords = {classroom,education,executive function}
}
@article{vermunt2004,
title = {Patterns in Student Learning: {{Relationships}} between Learning Strategies, Conceptions of Learning, and Learning Orientations},
shorttitle = {Patterns in Student Learning},
author = {Vermunt, Jan D. and Vermetten, Yvonne J.},
date = {2004},
journaltitle = {Educational Psychology Review},
volume = {16},
number = {4},
pages = {359--384},
doi = {10.1007/s10648-004-0005-y},
langid = {english}
}
\end{filecontents}
\usepackage{lipsum}
\begin{document}
\begin{refsection}
\section{A section with some text}
\lipsum[1] as stated in \parencite{meltzer2018} \citeauthor{vermunt2004} and \cite{zeybek2020}
\section{A section with text and figure}
\lipsum[2]
\begin{figure}[h]
\centering
\includegraphics[scale=0.5]{example-image-a.png}
\caption{An example of a figure}
\end{figure}
\section*{References}
\printbibliography[heading=none]
\end{refsection}
\clearpage
\input{supplement}
\end{document}
补充材料文件由命令加载\input
,如下所示:
% Supplementary Material
\begin{refsection}
\setcounter{figure}{0}
\captionsetup[figure]{name=SM Fig.}
\section*{Supplementary stuff}
\lipsum[3] \parencite{vermunt2004}
\subsection*{Some additional figures}
\lipsum[4][2-4]
\begin{figure}[h]
\centering
\includegraphics[scale=0.5]{example-image-b.png}
\caption{An example of another figure}
\end{figure}
\section*{References}
\printbibliography[heading=none]
\end{refsection}
请注意:您无法编译此文件。只需添加所需的所有信息并将其另存为supplement.tex
。通过主文件进行编译。
此主文件示例将产生以下 PDF 输出: