1. 带圈脚注
\def\jz#1#2{{$^{\footnotesize\textcircled{\tiny #1}}$\let\thefootnote\relax\footnotetext{\!\!$^{\footnotesize\textcircled{\tiny #1}}$#2}}}
\jz{1}{Content of the footnote}
2. 参考文献上标
\renewcommand\upcite[1]{\textsuperscript{\cite{#1}}}
\upcite{XXX}
参考文献默认格式直接采用:
\cite{XXX}
3. 交叉引用
(1)章节
(重点在于文字“Section”也是自动生成的,为蓝色)
强调 cleveref 与 \cref
\usepackage{xr-hyper}
\usepackage{varioref}
\PassOptionsToPackage{hyphens}{url}
\usepackage{cite}
\makeatletter
\let\NAT@parse\undefined
\makeatother
\usepackage[colorlinks,linkcolor = blue,anchorcolor = blue,citecolor = blue,urlcolor = black]{hyperref}
\usepackage[capitalise,nameinlink,]{cleveref}
\label{Section:sctAttWU}
\cref{Section:sctAttWU}
(2)图片
(重点在于文字“Fig.”也是自动生成的,为蓝色),在(1)中设置基础上直接采用 \cref
\label{Fig:fig1}
\cref{Fig:fig1}
(3)公式
若在(1)中设置基础上直接采用 \cref, 则自动生成为 Eq. (3)
\label{Eq:Eq3}
\cref{Eq:Eq3}
若利用 \crefformat 设置公式的引用格式,则仅自动生成公式的序号,并无自动生成的文字
\crefformat{equation}{#2#1#3}
\label{Eq:Eq3}
(\cref{Eq:Eq3})
注意: \begin{eqnarray} \end{eqnarray} 环境中的公式,采用\cref引用无法显示正确的公式编号,会显示公式所在的Section,因此定义公式不要采用此环境,可替换为align环境
4. multicol环境下无法利用figure环境显示图片
解决方法1(Latex模板中给出的图片插入示例):
(1)单栏图片
\begin{center}
\includegraphics[width=3cm]{photo.eps}\\
\vspace{3mm}
\parbox[c]{8.3cm}{\footnotesize{Fig.1.~} Example for inserting a one-column wide figure. }%\vspace*{.2mm}
\end{center}
(2)跨栏图片
\begin{figure*}[!htb]
\centering
\subfigure[]{
\includegraphics[width=6cm,height=2cm]{photo.eps}}
\subfigure[]{
\includegraphics[width=6cm,height=2cm]{photo.eps}}
\caption{Example for inserting a two-column wide figure. (a) Title of sub-figure (a). (b) Title of sub-figure (b).}
\end{figure*}
解决方法2(仍旧采用figure环境,引入float + [H]):
弊端就是不太好将照片调整到页面顶端或底端,即[b]和[t]不起任何作用,只能用[H]
\usepackage{float}
\begin{figure}[H]
\centering
\includegraphics[height=0.14\textheight,width=0.49\textwidth]{XXX.eps}
\caption{XXXX}\label{Fig:figXXX}
\end{figure}
5. 引用网页链接
强调 hyperref (如何设置比较重要,比如颜色...)和 \url
\usepackage[colorlinks,linkcolor = blue,anchorcolor = blue,citecolor = blue,urlcolor = black]{hyperref} //设置文章中使用的引用的颜色
\urlstyle{same} //设置网页链接的字体和文章字体一致
\url{https://www.iso.org/standard/81564.html}