update template to adapt new drwater extensions

This commit is contained in:
2025-07-28 21:09:10 +08:00
parent e3a53e3177
commit c419bb7fda
64 changed files with 714 additions and 44873 deletions
+98 -53
View File
@@ -7,11 +7,11 @@
%
\documentclass[
english,
11pt,
a4paperpaper,
DIV=11,
numbers=noendperiod]{scrartcl}
12pt,
letterpaper,
]{article}
\usepackage{xcolor}
\usepackage[margin=1in]{geometry}
\usepackage{amsmath,amssymb}
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
\usepackage{iftex}
@@ -28,7 +28,7 @@
\ifPDFTeX\else
% xetex/luatex font selection
\setmainfont[]{Source Sans 3}
\setsansfont[Color=2A303B]{Gill Sans}
\setsansfont[Color=39729E]{Gill Sans}
\setmonofont[]{JetBrains Mono}
\setmathfont[]{Cambria Math}
\ifXeTeX
@@ -56,29 +56,6 @@
}{% if KOMA class
\KOMAoptions{parskip=half}}
\makeatother
% Make \paragraph and \subparagraph free-standing
\makeatletter
\ifx\paragraph\undefined\else
\let\oldparagraph\paragraph
\renewcommand{\paragraph}{
\@ifstar
\xxxParagraphStar
\xxxParagraphNoStar
}
\newcommand{\xxxParagraphStar}[1]{\oldparagraph*{#1}\mbox{}}
\newcommand{\xxxParagraphNoStar}[1]{\oldparagraph{#1}\mbox{}}
\fi
\ifx\subparagraph\undefined\else
\let\oldsubparagraph\subparagraph
\renewcommand{\subparagraph}{
\@ifstar
\xxxSubParagraphStar
\xxxSubParagraphNoStar
}
\newcommand{\xxxSubParagraphStar}[1]{\oldsubparagraph*{#1}\mbox{}}
\newcommand{\xxxSubParagraphNoStar}[1]{\oldsubparagraph{#1}\mbox{}}
\fi
\makeatother
\usepackage{longtable,booktabs,array}
@@ -136,6 +113,9 @@
% -----------------------
% CUSTOM PREAMBLE STUFF
% -----------------------
\usepackage{enumitem}
\usepackage{fontspec}
\usepackage{float}
@@ -144,16 +124,17 @@
\usepackage{nameref} %needed by zref-xr
\usepackage{zref-xr,zref-hyperref,zref-user}
\usepackage{xr-hyper}
\usepackage[normalem]{ulem}
\usepackage{setspace}
\usepackage{lineno}
\usepackage{caption}
\captionsetup{singlelinecheck=off}
\usepackage[UTF8, scheme=plain]{ctex}
\usepackage{orcidlink}
% \setkomafont{author}{\normalsize}
\setkomafont{author}{\normalsize}
\makeatletter
\renewcommand{\title}[1]{\gdef\@title{\large\textbf{#1}}} % Adjust \Huge or other font commands
% \renewcommand{\author}[1]{\gdef\@author{\normalsize\textrm{#1}}} % Adjust \Huge or other font commands
% \renewcommand{\author}[1]{\normalsize\textit{#1}} % Use \normalsize and \textit for customization
\makeatother
% for revision
\usepackage{adjustbox}
% \usepackage{xcolor}
\usepackage{mdframed}
@@ -210,14 +191,67 @@
\renewenvironment{quote}{\begin{question}}{\end{question}}
% \renewenvironment{verbatim}{\begin{ra}}{\end{ra}}
\KOMAoption{captions}{tableheading}
% -----------------
% Title block stuff
% -----------------
% Title
\makeatletter
\renewcommand{\title}[1]{\gdef\@title{\large\textbf{#1}}} % Adjust \Huge or other font commands
\makeatother
% ------------------
% Section headings
% ------------------
\usepackage{titlesec}
\titleformat*{\section}{\Large\sffamily\bfseries\raggedright}
\titleformat*{\subsection}{\large\sffamily\bfseries\raggedright}
\titleformat*{\subsubsection}{\normalsize\sffamily\bfseries\raggedright}
\titleformat*{\paragraph}{\small\sffamily\bfseries\raggedright}
%\titlespacing{<command>}{<left>}{<before-sep>}{<after-sep>}
% Starred version removes indentation in following paragraph
\titlespacing*{\section}{0em}{2em}{0.1em}
\titlespacing*{\subsection}{0em}{1.25em}{0.1em}
\titlespacing*{\subsubsection}{0em}{0.75em}{0em}
% ------------------
% Headers/Footers
% ------------------
% \usepackage{fancyhdr}
% \pagestyle{fancy}
% \fancyhf{}
% \fancyhead[L,C,R]{}
% \fancyfoot[L,C]{}
% \fancyfoot[R]{\thepage}
% \renewcommand{\headrulewidth}{1pt}
% \fancypagestyle{plain}{%
% \renewcommand{\headrulewidth}{0pt}%
% \fancyhf{}%
% \fancyfoot[R]{\thepage}%
% }
% \renewcommand\footnoterule{\rule{\linewidth}{0.1pt}\vspace{5pt}}
% ------------------
% Captions
% ------------------
\usepackage[labelfont=bf,labelsep=period]{caption}
\captionsetup[figure]{font=footnotesize,justification=raggedright,singlelinecheck=false,format=hang}
% ---------------------------
% END CUSTOM PREAMBLE STUFF
% ---------------------------
\doublespacing
\linenumbers
\let\oldsection\section
\renewcommand{\section}{\clearpage\oldsection}
\let\oldsubsection\subsection
\renewcommand{\subsection}{\clearpage\oldsubsection}
\usepackage{float}
\usepackage[normalem]{ulem}
\usepackage[doublespacing]{setspace}
\makeatletter
\@ifpackageloaded{float}{}{\usepackage{float}}
\floatstyle{plain}
@@ -324,8 +358,8 @@
colorlinks=true,
linkcolor={blue},
filecolor={Maroon},
citecolor={blue},
urlcolor={Blue},
citecolor={Blue},
urlcolor={blue},
pdfcreator={LaTeX via pandoc}}
@@ -333,27 +367,38 @@
\usepackage{etoolbox}
\makeatletter
\providecommand{\subtitle}[1]{% add subtitle to \maketitle
\apptocmd{\@title}{\par {\large #1 \par}}{}{}
\apptocmd{\@title}{\par {\large\sffamily\bfseries #1 \par}}{}{}
}
\makeatother
\subtitle{Supplementary Information}
\author{Xxxxx Yyyy\textsuperscript{1} \and Ming
Su\textsuperscript{1,2,*} \and Min Yang\textsuperscript{1,2,*}}
\author{\footnotesize Xxxxx
Yyyy\textsuperscript{a,\#} \and \footnotesize Ming
Su\textsuperscript{\orcidlink{0000000198211268},a,b,\#,*} \and \footnotesize Min
Yang\textsuperscript{a,b,*}}
\date{}
\begin{document}
% for some reason this does not work in header
\renewcommand{\abstractname}{Abstract.}
% add the short title to the fancy header
\maketitle
%\noindent \rule{\linewidth}{.5pt}
%\noindent \rule{\linewidth}{.5pt}
\textsuperscript{1} State Key Laboratory of Environmental Aquatic
\textsuperscript{\#} These authors contributed equally to this work.
\textsuperscript{a} State Key Laboratory of Environmental Aquatic
Chemistry, Research Center for Eco-Environmental Sciences, Chinese
Academy of Sciences\\
\textsuperscript{2} University of Chinese Academy of Sciences
Academy of Sciences, Beijing 100085, China.\\
\textsuperscript{b} University of Chinese Academy of Sciences, Beijing
100049, China.
\textsuperscript{*} Correspondence:
\href{mailto:mingsu@rcees.ac.cn}{Ming Su
\textless{}mingsu@rcees.ac.cn\textgreater{}},
\href{mailto:yangmin@rcees.ac.cn}{Min Yang
\textless{}yangmin@rcees.ac.cn\textgreater{}}
\textsuperscript{*} Corresponding to:
\href{mailto:mingsu@rcees.ac.cn}{Ming Su (mingsu@rcees.ac.cn)},
\href{mailto:yangmin@rcees.ac.cn}{Min Yang (yangmin@rcees.ac.cn)}
\thispagestyle{empty}