西电研究生官网提供的 Latex 模板有诸多bug,使用起来相当不便。
感谢西电大佬花费时间做的 Latex 模板!!!!
GitHub - note286/xduts: Xidian University TeX Suite 西安电子科技大学LaTeX套装
执行完下面的命令行后所有文件已经集成在TeX Live安装路径下
tlmgr update --all --self
win + R输入cmd,调用命令提示符,输入下面的命令会弹出latex模板使用手册,一定要仔细阅读!!!
texdoc xduts
下面是我依照手册简单写的样例,可以参考。
\documentclass{xdupgthesis}
\usepackage{amssymb} % 为了支持\mathbb命令而添加的宏包
\xdusetup{
style / cjk-font = win, % 默认是fandol字体,修改为中易字体
info / loa = loa.tex, % 缩略语对照表文件路径
}
\begin{document}
\chapter{子图}
你好 latex!
\begin{figure}
\centering %表示居中
\includegraphics[height=4.5cm,width=9.5cm]{example-image.jpg}
% [height=4.5cm]表示高度
%[width=9.5cm]表示宽度
%{example-image.jpg}为默认样例图片,表示jpg格式的图片,名为example-image
\caption{pic1}
%图片的名称
\label{2}
%图片的标签,用于文章中的引用,注意到标签的数字与实际文章显示的数字可能不同
\end{figure}
\end{document}
loa.tex文件内容
\begin{tabular}{p{3.4cm}p{3.4cm}}
符号 & 符号名称 \\
$\pi$ & 圆周率 \\
$\mathbb{R}$ & 实数 \\
\end{tabular}