JCST(Journal of Computer Science and Technology)Latex模板问题小结

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}

 

  • 3
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 8
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值