LaTex常见问题

LaTex常见问题

专业英语课的老师要求必须使用LaTex写期末的大论文。因此,花了两天时间“速成”LaTex。这之前根本没有学过LaTex,基本上遇到什么不会的就上网找。感谢英特网,大部分问题(当然我也没遇到特别奇怪的问题),都能在网上直接找到。当然,经过两天的学习,自己依然很菜,写这篇文章只是想记录下自己遇到的问题,方便之后查询。

老师提供了IEEE会议文章通用模板,因此实际编辑起来轻松很多。如果没有模板,还是很头疼的。建议先阅读30分钟快速教程1,对LaTex有最最基本的了解。


编译Latex遇到“File ended while scanning use of”的问题

初步认为是.aux文件编译时遇到问题。首先,删除掉.aux文件,重新编译;

如果依然不行,将.tex和其他图像文件、参考文献保留外,由系统编译生成的文件通通删掉,重新编译。这里一个小技巧就是,一直保留一个和自己现在文档相关的模板文件,出现问题时,直接把自己写的内容。粘贴到原来的模板里编译就可以了。

来源:https://blog.csdn.net/WangJiankun_ls/article/details/78671338

编译遇到latex cannot determine size of graphic的问题

这时候不能用ctrl+shift+L 编译了,直接用PDFTEXIFY解决问题。(也可能是因为自己使用的编辑系统太旧了。其他人貌似没有这个问题。)

来源:https://blog.csdn.net/nickyzhi/article/details/39781961

如何调大winedt输入tex文件时界面的字体

winedt在Option Preference Font里

参考文献格式

\begin{thebibliography}{1}
\bibitem{bibitem1}  # bibitem1是为了引用方便
J. C. Souyris and S. Mingot, ※Polarimetry based on one transmitting and two receiving polarizations: The pi/4 mode,§ \emph{IEEE International Geoscience and Remote Sensing Symposium}, pp. 629-631, 2002.
\bibitem{bibitem2}
G. J. C. Souyris, P. Imbo, R. Fj?rtoft, S. Mingot, and J.-S. Lee, ※Compact polarimetry based on symmetry properties of geophysical media: The 羽/4 mode,§ \emph{IEEE Transaction on Geoscience and Remote Sensing}, vol. 43, no. 3, pp. 634-646, March 2005.
\end{thebibliography}
\begin{thebibliography}{1}\bibitem{bibitem1}  # bibitem1是为了引用方便J. C. Souyris and S. Mingot, ※Polarimetry based on one transmitting and two receiving polarizations: The pi/4 mode,§ \emph{IEEE International Geoscience and Remote Sensing Symposium}, pp. 629-631, 2002.\bibitem{bibitem2}G. J. C. Souyris, P. Imbo, R. Fj?rtoft, S. Mingot, and J.-S. Lee, ※Compact polarimetry based on symmetry properties of geophysical media: The 羽/4 mode,§ \emph{IEEE Transaction on Geoscience and Remote Sensing}, vol. 43, no. 3, pp. 634-646, March 2005.\end{thebibliography}

在原文中引用参考文献

… target decomposition \cite{bibitem22} is tested…

插入图片

须包含对应的包,{7.jpg }中对应的文件应在与latex文件相同目录下。
\usepackage{caption}
\usepackage{graphicx,subfigure}
普通单栏插入图片:

\begin{figure}
  \centering
  \includegraphics[width=8cm]{7.jpg}\\
  \caption{Feature maps of three types of terrains extracted by $H$ network.}
  \label{Fig. 7}
\end{figure}
\begin{figure}  \centering  \includegraphics[width=8cm]{7.jpg}\\  \caption{Feature maps of three types of terrains extracted by $H$ network.}  \label{Fig. 7}\end{figure}

双栏文档中,一张(大)图片为单栏:
来源: https://blog.csdn.net/zhangxinyu0827/article/details/54981510
\begin{figure*}[!hbt]
  \centering
  % Requires \usepackage{graphicx}
  \includegraphics[width=17cm]{1.jpg}\\
  \caption{A framework for automatic SAR image colorization.}\label{Fig. 1}
\end{figure*}
\begin{figure*}[!hbt]  \centering  % Requires \usepackage{graphicx}  \includegraphics[width=17cm]{1.jpg}\\  \caption{A framework for automatic SAR image colorization.}\label{Fig. 1}\end{figure*}

双栏文档中,多个子图占据单栏:
来源: https://blog.csdn.net/zhangxinyu0827/article/details/54981510
\begin{figure*}[!hbt]
  \centering
  \subfigure[]{\includegraphics[width=7cm]{2.jpg}}
  \subfigure[]{\includegraphics[width=7cm]{3.jpg}}
  %\includegraphics[width=7cm]{4.jpg}
  \caption{Non。。。 $\delta_3$: (a) 。。。; (b)。。。.}
  \label{Fig. 3}
\end{figure*}
\begin{figure*}[!hbt]  \centering  \subfigure[]{\includegraphics[width=7cm]{2.jpg}}  \subfigure[]{\includegraphics[width=7cm]{3.jpg}}  %\includegraphics[width=7cm]{4.jpg}  \caption{Non。。。 $\delta_3$: (a) 。。。; (b)。。。.}  \label{Fig. 3}\end{figure*}

双栏文档中,多个子图,但只占据一半:
\begin{figure}[!hbt]
  \centering
  \subfigure[]{\includegraphics[width=4cm]{VV-pol.png}}\\
  \subfigure[]{\includegraphics[width=8cm]{training.png}}
  %\includegraphics[width=7cm]{4.jpg}
  \caption{Non-uniform。。。$\delta_3$: (a) histogram。。。; (b) the 。。。}
  \label{Fig. 5}
\end{figure}
\begin{figure}[!hbt]  \centering  \subfigure[]{\includegraphics[width=4cm]{VV-pol.png}}\\  \subfigure[]{\includegraphics[width=8cm]{training.png}}  %\includegraphics[width=7cm]{4.jpg}  \caption{Non-uniform。。。$\delta_3$: (a) histogram。。。; (b) the 。。。}  \label{Fig. 5}\end{figure}

表格输入

这里介绍得比较详细:https://blog.csdn.net/juechenyi/article/details/77116011
来源:http://www.360doc.com/content/14/0916/10/9561082_409854404.shtml
包含宏包:\usepackage{booktabs}

\begin{table}
\centering
\caption{Configuration of feature translator network.}
\begin{tabular}{c|c|c|c}
\toprule
\hline
\multicolumn{4}{c} {FC1: $1153\Rightarrow2048$}\\
\hline
\multicolumn{4}{c} {ReLU1}\\
\hline
\multicolumn{4}{c} {FC2: $2048\Rightarrow 1024$}\\
\hline
\multicolumn{4}{c} {ReLU2}\\
\hline
FC3-1-1: $1024\Rightarrow512$ & FC3-2-1: $1024\Rightarrow512$ & $\cdots$  & FC3-9-1: $1024\Rightarrow512$\\
\hline
ReLU3-1                       & ReLU3-2                       & $\cdots$  & ReLU3-9\\
\hline
FC3-1-2: $512\Rightarrow32$   & FC3-2-2: $512\Rightarrow32$   & $\cdots$  & FC3-9-2: $512\Rightarrow32$\\
\hline
Softmax1                      & Softmax2                      & $\cdots$  & Softmax9\\
\hline
\bottomrule
\end{tabular}
\end{table}
\begin{table}\centering\caption{Configuration of feature translator network.}\begin{tabular}{c|c|c|c}\toprule\hline\multicolumn{4}{c} {FC1: $1153\Rightarrow2048$}\\\hline\multicolumn{4}{c} {ReLU1}\\\hline\multicolumn{4}{c} {FC2: $2048\Rightarrow 1024$}\\\hline\multicolumn{4}{c} {ReLU2}\\\hlineFC3-1-1: $1024\Rightarrow512$ & FC3-2-1: $1024\Rightarrow512$ & $\cdots$  & FC3-9-1: $1024\Rightarrow512$\\\hlineReLU3-1                       & ReLU3-2                       & $\cdots$  & ReLU3-9\\\hlineFC3-1-2: $512\Rightarrow32$   & FC3-2-2: $512\Rightarrow32$   & $\cdots$  & FC3-9-2: $512\Rightarrow32$\\\hlineSoftmax1                      & Softmax2                      & $\cdots$  & Softmax9\\\hline\bottomrule\end{tabular}\end{table}

向量或矩阵输入

来源:https://jingyan.baidu.com/article/f3e34a128c53aef5ea653542.html

\begin{equation}
\label{Eq. 1}
\vec{k}_L = \begin{bmatrix} S_{hh} & \sqrt{2}S_{hv}  & S_{vv} \end{bmatrix}^\textrm{T}\\
\end{equation}
\begin{equation}\label{Eq. 1}\vec{k}_L = \begin{bmatrix} S_{hh} & \sqrt{2}S_{hv}  & S_{vv} \end{bmatrix}^\textrm{T}\\\end{equation}

多行公式输入

来源:http://www.cnblogs.com/longdouhzt/archive/2012/09/29/2708868.html

\begin{equation}
\label{Eq. 2}
\begin{split}
\textbf{C}
& = \langle\vec{k}_L\cdot\vec{k}_L^\textrm{H}\rangle\\
& = \begin{bmatrix}
\langle|S_{hh}|^2\rangle               & \sqrt{2}\langle|S_{hh}S_{hv}^*|\rangle  & \langle|S_{hh}S_{vv}^*|\rangle\\
\sqrt{2}\langle|S_{hv}S_{hh}^*|\rangle &  2\langle|S_{hv}|^2\rangle              & \sqrt{2}\langle|S_{hv}S_{vv}^*|\rangle\\
\langle|S_{vv}S_{hh}^*|\rangle         & \sqrt{2}\langle|S_{vv}S_{hv}^*|\rangle  & \langle|S_{vv}|^2\rangle\\
    \end{bmatrix}
\end{split}
\end{equation}
\begin{equation}\label{Eq. 2}\begin{split}\textbf{C}& = \langle\vec{k}_L\cdot\vec{k}_L^\textrm{H}\rangle\\& = \begin{bmatrix}\langle|S_{hh}|^2\rangle               & \sqrt{2}\langle|S_{hh}S_{hv}^*|\rangle  & \langle|S_{hh}S_{vv}^*|\rangle\\\sqrt{2}\langle|S_{hv}S_{hh}^*|\rangle &  2\langle|S_{hv}|^2\rangle              & \sqrt{2}\langle|S_{hv}S_{vv}^*|\rangle\\\langle|S_{vv}S_{hh}^*|\rangle         & \sqrt{2}\langle|S_{vv}S_{hv}^*|\rangle  & \langle|S_{vv}|^2\rangle\\    \end{bmatrix}\end{split}\end{equation}

交叉引用

来源:https://blog.csdn.net/jonathanlin2008/article/details/6186962
来源:http://www.latexstudio.net/archives/3297
Fig. \ref{Fig. 5} (a) is one patch of

其它

http://blog.sina.com.cn/s/blog_5e16f1770100fs38.html
http://www.360doc.com/content/14/0916/10/9561082_409854404.shtml
http://blog.sina.com.cn/s/blog_764734d301013vmn.html


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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值