如何使用 L A TEX 排版论文赵涛 alick9188@gmailcom 清华大学电子系网络融合实验室 2015 年 4 月 23 日 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 1 / 56
目录 1 简介 TEX 与 LATEX 安装 2 学术论文排版论文模板使用 LATEX 常用命令 3 学位论文排版 ThuThesis 清华大学学位论文模板 4 总结 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 2 / 56
简介 TEX 与 LATEX 目录 1 简介 TEX 与 LATEX 安装 2 学术论文排版论文模板使用 LATEX 常用命令 3 学位论文排版 ThuThesis 清华大学学位论文模板 4 总结 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 3 / 56
简介 TEX 与 LATEX TEX 与 L A TEX TEX: τεχ (/ tɛx/, / tɛk/) 生成精美图书的排版系统最初由高德纳 (Donald E Knuth) 于 1978 年开发漂亮 美观 稳定 通用尤其擅长数学公式排版 LATEX (/ laːtɛx/, / leɪtɛk/) Leslie Lamport 开发 L A TEX 降低使用门槛极其丰富的宏包, 提供扩展功能广泛用于学术界, 期刊会议论文模板大学学位论文模板, 如 ThuThesis alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 4 / 56
简介 TEX 与 LATEX 和 Word 对比 Word 字处理工具容易上手, 简单直观所见即所得高级功能不易掌握处理长文档需要丰富经验花费大量时间调格式 公式排版差强人意二进制格式, 兼容性差付费商业许可 LATEX 专业排版软件容易上手所见即所想, 所想即所得进阶难, 但一般用不到和短文档处理基本无异无需担心格式, 专心作者内容尤其擅长公式排版文本文件, 易读 稳定自由免费使用 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 5 / 56
简介 TEX 与 LATEX TEX 排版举例 : 公式 无编号公式 F(ξ) = f(x)e j2πξx dx 多行多列公式 y = d z = 1 (1) y = cx + d z = x + 1 (2) y 12 = bx 2 + cx + d z = x 2 + x + 1 y(x) = ax 3 + bx 2 + cx + d z = x 3 + x 2 + x + 1 (3) alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 6 / 56
简介 TEX 与 LATEX TEX 排版举例 : 公式 编号多行公式 ( A = lim x a 2 + (a 2 + 2a x + ( x) 2) n + (a 2 + 2 2a x + 2 2 ( x) 2) + (a 2 + 2 3a x + 3 2 ( x) 2) + + (a 2 + 2 (n 1)a x + (n 1) 2 ( x) 2)) = 1 3 ( b 3 a 3) (4) alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 7 / 56
简介 TEX 与 LATEX TEX 排版举例 : 图形 y Id l e θ ψ e z C ϕ R θ z db y r P db x d B x C ptmext 1 2 3 A 4 5 6 B 697Hz 770Hz 7 8 9 C 852Hz * 0 # D 941Hz 1209Hz 1366Hz 1477Hz 1633Hz alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 8 / 56
简介 TEX 与 LATEX TEX 排版举例 : 文档 104 N Fernando et al / Future Generation Computer Systems 29 (2013) 84 106 potential to have context sources or sensors (and sensor networks) in the vicinity of a mobile user sold as services to the mobile user, to support context-aware applications However, challenges are present in order to elastically on-demand form clouds of services and resources efficiently, seamlessly and in a robust manner References [1] S Perez, Mobile cloud computing: $95 billion by 2014, http://exoplaneteu/ catalogphp, 2010 [2] M Satyanarayanan, Fundamental challenges in mobile computing, in: Proceedings of the Fifteenth Annual ACM Symposium on Principles of Distributed Computing, PODC 96, ACM, New York, NY, USA, 1996, pp 1 7 [3] L Siegele, Let it rise: a special report on corporate it, http://wwweconomist com/node/12411882, 2008 [4] M Satyanarayanan, Mobile computing, Computer 26 (1993) 81 82 [5] W Vogels, A head in the clouds the power of infrastructure as a service, in: Proceedings of the 1st Workshop on Cloud Computing and Applications, CCA 08 [6] M Armbrust, A Fox, R Griffith, A Joseph, R Katz, A Konwinski, G Lee, D Patterson, A Rabkin, I Stoica, Above the clouds: a Berkeley view of cloud computing, Technical Report UCB/EECS-2009-28, 2009 [7] J Carolan, S Gaede, J Baty, G Brunette, A Licht, J Remmell, L Tucker, J Weise, Introduction to cloud computing architecture white paper, 2009 [8] R Buyya, CS Yeo, S Venugopal, J Broberg, I Brandic, Cloud computing and emerging it platforms: vision, hype, and reality for delivering computing as the 5th utility, Future Generation Computer Systems 25 (2009) 599 616 [9] Q Zhang, L Cheng, R Boutaba, Cloud computing: state-of-the-art and research challenges, Journal of Internet Services and Applications 1 (2010) 7 18 http://dxdoiorg/101007/s13174-010-0007-6 [10] L Mei, W Chan, T Tse, A tale of clouds: paradigm comparisons and some thoughts on research issues, in: Proceedings of the Asia-Pacific Services Computing Conference, APSCC 08, IEEE, 2008, pp 464 469 [11] J Cheng, RK Balan, M Satyanarayanan, Exploiting rich mobile environments, Technical Report, 2005 [12] G Huerta-Canepa, D Lee, A virtual cloud computing provider for mobile devices, in: Proceedings of the 1st ACM Workshop on Mobile Cloud Computing & Services: Social Networks and Beyond, MCS 10, ACM, New York, NY, USA, 2010, pp 6:1 6:5 [13] RE Frederking, RD Brown, The pangloss-lite machine translation system, in: Proceedings of the Second Conference of the Association for Machine Translation in the Americas, pp 268 272 [14] EE Marinelli, Hyrax: cloud computing on mobile devices using MapReduce, Masters Thesis, Carnegie Mellon University, 2009 [15] M Satyanarayanan, Mobile computing: the next decade, in: Proceedings of the 1st ACM Workshop on Mobile Cloud Computing & #38; Services: Social Networks and Beyond, MCS 10, ACM, New York, NY, USA, 2010, pp 5:1 5:6 [16] N Vallina-Rodriguez, J Crowcroft, Erdos: achieving energy savings in mobile OS, in: Proceedings of the Sixth International Workshop on MobiArch, MobiArch 11, ACM, New York, NY, USA, 2011, pp 37 42 [17] O Amft, P Lukowicz, From backpacks to smartphones: past, present, and future of wearable computers, IEEE Pervasive Computing 8 (2009) 8 13 [18] X Luo, From augmented reality to augmented computing: a look at cloudmobile convergence, in: International Symposium on Ubiquitous Virtual Reality, 2009, ISUVR 09, IEEE, 2009, pp 29 32 [19] S Pandey, W Voorsluys, S Niu, A Khandoker, R Buyya, An autonomic cloud environment for hosting ecg data analysis services, Future Generation Computer Systems 28 (2012) 147 154 [20] H-Y Kung, C-H Chen, H-H Ku, Designing intelligent disaster prediction models and systems for debris-flow disasters in Taiwan, Expert Systems with Applications 39 (2012) 5838 5856 [21] N Aschenbruck, E Gerhards-Padilla, M Gerharz, M Frank, P Martini, Modelling mobility in disaster area scenarios, in: Proceedings of the 10th ACM Symposium on Modeling, Analysis, and Simulation of Wireless and Mobile Systems, MSWiM 07, ACM, New York, NY, USA, 2007, pp 4 12 [22] Y Sasaki, Y Shibata, A disaster information sharing method by the mobile servers in challenged networks, in: Advanced Information Networking and Applications Workshops, WAINA, 2012 26th International Conference on, pp 1048 1053 [23] M Satyanarayanan, P Bahl, R Caceres, N Davies, The case for VM-based cloudlets in mobile computing, IEEE Pervasive Computing 8 (2009) 14 23 [24] E Cuervo, A Balasubramanian, D-K Cho, A Wolman, S Saroiu, R Chandra, P Bahl, Maui: making smartphones last longer with code offload, in: Proceedings of the 8th International Conference on Mobile Systems, Applications, and Services, MobiSys 10, ACM, New York, NY, USA, 2010, pp 49 62 [25] A Coronato, GD Pietro, Mipeg: a middleware infrastructure for pervasive grids, Future Generation Computer Systems 24 (2008) 17 29 [26] S Zachariadis, C Mascolo, W Emmerich, Satin: a component model for mobile self organisation, in: R Meersman, Z Tari (Eds), On the Move to Meaningful Internet Systems 2004: CoopIS, DOA, and ODBASE, in: Lecture Notes in Computer Science, vol 3291, Springer, Berlin, Heidelberg, 2004, pp 1303 1321 http://dxdoiorg/101007/978-3-540-30469-2_31 [27] J Flinn, S Park, M Satyanarayanan, Balancing performance, energy, and quality in pervasive computing, in: Proceedings of the 22nd International Conference on Distributed Computing Systems, 2002, IEEE, 2002, pp 217 226 [28] R Balan, M Satyanarayanan, S Park, T Okoshi, Tactics-based remote execution for mobile computing, in: Proceedings of the 1st International Conference on Mobile Systems, Applications and Services, ACM, 2003, pp 273 286 [29] J Dean, S Ghemawat, MapReduce: simplified data processing on large clusters, Communications of the ACM 51 (2008) 107 113 [30] R Kemp, N Palmer, T Kielmann, H Bal, Cuckoo: a computation offloading framework for smartphones, in: Proceedings of The Second International Conference on Mobile Computing, Applications, and Services, MobiCASE 10 [31] R Van Nieuwpoort, J Maassen, G Wrzesińska, R Hofman, C Jacobs, T Kielmann, H Bal, Ibis: a flexible and efficient java based grid programming environment, Concurrency and Computation: Practice and Experience 17 (2005) 1079 1107 [32] DC Doolan, S Tabirca, LT Yang, Mmpi a message passing interface for the mobile environment, in: Proceedings of the 6th International Conference on Advances in Mobile Computing and Multimedia, MoMM 08, ACM, New York, NY, USA, 2008, pp 317 321 [33] BlueCoveorg http://wwwbluecoveorg/, 2008 (accessed: 17052012) [34] L Deboosere, P Simoens, JD Wachter, B Vankeirsbilck, FD Turck, B Dhoedt, P Demeester, Grid design for mobile thin client computing, Future Generation Computer Systems 27 (2011) 681 693 [35] C Clark, K Fraser, S Hand, J Hansen, E Jul, C Limpach, I Pratt, A Warfield, Live migration of virtual machines, in: Proceedings of the 2nd conference on Symposium on Networked Systems Design & Implementation Volume 2, USENIX Association, 2005, pp 273 286 [36] B-G Chun, S Ihm, P Maniatis, M Naik, A Patti, Clonecloud: elastic execution between mobile device and cloud, in: Proceedings of the Sixth Conference on Computer Systems, EuroSys 11, ACM, New York, NY, USA, 2011, pp 301 314 [37] D Huang, X Zhang, M Kang, J Luo, Mobicloud: building secure cloud framework for mobile computing and communication, in: Proceedings of the Fifth IEEE International Symposium on Service Oriented System Engineering, SOSE, pp 27 34 [38] J Lockwood, N McKeown, G Watson, G Gibb, P Hartke, J Naous, R Raghuraman, J Luo, NetFPGA An open platform for Gigabit-rate network switching and routing, in: Proceedings of the IEEE International Conference on Microelectronic Systems Education, MSE 07, pp 160 161 [39] M Kristensen, Scavenger: transparent development of efficient cyber foraging applications, in: Proceedings of the IEEE International Conference on Pervasive Computing and Communications, PerCom [40] D Borthakur, The hadoop distributed file system: architecture and design, http://hadoopapacheorg/common/docs/r0180/hdfs_designpdf, 2007 [41] EWalker,W Brisken,JRomney,To lease or not to lease from storage clouds, Computer 43 (2010) 44 50 [42] L Xinhui, L Ying, L Tiancheng, Q Jie, W Fengchun, The method and tool of cost analysis for cloud computing, in: Proceedings of IEEE International Conference on Cloud Computing, CLOUD 09, pp 93 100 [43] D Narayanan, J Flinn, M Satyanarayanan, Using history to improve mobile application adaptation, in: Proceedings of Third IEEE Workshop on Mobile Computing Systems and Applications [44] BD Noble, M Satyanarayanan, D Narayanan, JE Tilton, J Flinn, KR Walker, Agile application-aware adaptation for mobility, in: Proceedings of the Sixteenth ACM symposium on Operating Systems Principles, SOSP 97, ACM, New York, NY, USA, 1997, pp 276 287 [45] A Kansal, F Zhao, Fine-grained energy profiling for power-aware application design, SIGMETRICS Performance Evaluation Review 36 (2008) 26 31 [46] X Zhang, A Kunjithapatham, S Jeong, S Gibbs, Towards an elastic application model for augmenting the computing capabilities of mobile devices with cloud computing, Mobile Networks and Applications 16 (2011) 270 284 http://dxdoiorg/101007/s11036-011-0305-7 [47] K Kumar, Y-H Lu, Cloud computing for mobile users: can offloading computation save energy? Computer 43 (2010) 51 56 [48] C Wang, Z Li, Parametric analysis for adaptive computation offloading, SIGPLAN Notices 39 (2004) 119 130 [49] H Liang, D Huang, D Peng, On economic mobile cloud computing model, in: Proceedings of the International Workshop on Mobile Computing and Clouds, MobiCloud in Conjunction with MobiCASE [50] M Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, John Wiley & Sons, Inc, 1994 [51] I Akyildiz, J McNair, J Ho, H Uzunalioglu, W Wang, Mobility management in next-generation wireless systems, Proceedings of the IEEE 87 (1999) 1347 1384 [52] I Constandache, X Bao, M Azizyan, RR Choudhury, Did you see bob?: human localization using mobile phones, in: Proceedings of the Sixteenth Annual International Conference on Mobile Computing and Networking, MobiCom 10, ACM, New York, NY, USA, 2010, pp 149 160 [53] N Banerjee, S Agarwal, P Bahl, R Chandra, A Wolman, M Corner, Virtual compass: relative positioning to sense mobile social interactions, in: Proceedings of the 8th International Conference on Pervasive Computing, Pervasive 10, Springer-Verlag, Berlin, Heidelberg, 2010, pp 1 21 Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 9 / 56
简介 TEX 与 LATEX TEX 排版举例 : 幻灯片 0 0 Introduction Install TEX Live Summary ThuThesis v30 LittleLeo@newsmth 0 2007615 0 Fedora and TEX Live something F Zhao Tao 1 Department of Electronic Engineering University of Tsinghua 0 0 0 Oct 15, 2011 / FAD Beijing 2011 alick Short Paper Title alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 10 / 56
简介 安装 目录 1 简介 TEX 与 LATEX 安装 2 学术论文排版论文模板使用 LATEX 常用命令 3 学位论文排版 ThuThesis 清华大学学位论文模板 4 总结 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 11 / 56
简介安装如何安装 (L A )TEX? TEX 发行版 (Distro) T EX 实用工具大集合 : 引擎 宏包 文档等 常见 TEX 发行版 :CTeX 套装 MiKTEX TEX Live TEX Live 跨平台 :Windows, Linux, Mac OS X (MacTEX) 每年一个新版本发布, 当前 TEX Live 2014 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 12 / 56
简介 安装 网络安装 从 CTAN 镜像下载安装包 (exe 或 zip 或 targz 格式 )( 和相应的校验文件, 以 sha256 结尾 ) 清华镜像 http://mirrorstunatsinghuaeducn/ctan/ systems/texlive/tlnet/ CTeX 镜像 http://ftpctexorg/mirrors/ctan/systems/texlive/tlnet/ 更多可见 http://mirrorctanorg/readmemirrors 可选步骤 : 校验安装包 $ LANG=C sha256sum --check install -tl- unx targz sha256 install -tl- unx targz: OK alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 13 / 56
简介 安装 网络安装 Windows 双击下载的安装程序 切换默认仓库为国内镜像 : 加速网络下载 Linux 图形安装界面需要 Perl Tk 模块 :yum install perl-tk sudo mkdir / usr/ local/ texlive sudo chown yourname: yourname / usr/ local/ texlive / install -tl -gui - repository http:// mirrors tuna tsinghua educn/ CTAN/ systems/ texlive/ tlnet/ 截图 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 14 / 56
简介安装 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 15 / 56
简介安装 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 16 / 56
简介安装 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 17 / 56
简介安装 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 18 / 56
简介安装 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 19 / 56
简介安装 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 20 / 56
简介安装 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 21 / 56
简介安装 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 22 / 56
简介 安装 网络安装后配置 ( 仅 Linux) 添加环境变量到 ~/bash_profile 文件 : export PATH=/ usr/ local/ texlive /2011/ bin/ x86_64 - linux: $PATH export MANPATH =/ usr/ local/ texlive /2011/ texmf/ doc/ man: $MANPATH export INFOPATH =/ usr/ local/ texlive /2011/ texmf/ doc/ info: $INFOPATH 打开 TEX Live 指南中文版 texlive-zh-cnpdf, 关注第 34 节 texdoc texlive -zh alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 23 / 56
简介安装网络安装后配置 ( 仅 Linux) XƎTEX 系统字体配置 cp /usr/local/texlive /2011/texmf -var/fonts/conf/texlive - fontconfig conf / etc/ fonts/ confd/09- texlive conf fc- cache -fsv alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 24 / 56
简介安装编辑器配置 TEX 编辑器 专用编辑器 :TeXworks WinEdt 等 通用编辑器 ( 加 LaTeX 插件 ):Vim Emacs 等 TeXworks 配置菜单 : 编辑 首选项 编辑器 : 打开行号 排版 : 处理工具下方默认 选择 XeLaTeX alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 25 / 56
简介 安装 网络安装后测试 编辑 test-chinesetex (Windows 下不要用中文文件名 ; 注意 LATEX 文档对大小写敏感 ) \ documentclass { c t e x a r t } \ begin { document } \TeX{} 你好! \end{ document } Windows 下缺省使用中易字体 Linux Mac OS X 下需要自定义字体 (nofonts 选项, 参见 ctex 文档 ) 使用 XeLaTeX 引擎编译, 得到 PDF 文档 TEX 你好! alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 26 / 56
学术论文排版 论文模板使用 目录 1 简介 TEX 与 LATEX 安装 2 学术论文排版论文模板使用 LATEX 常用命令 3 学位论文排版 ThuThesis 清华大学学位论文模板 4 总结 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 27 / 56
学术论文排版 论文模板使用 模板是什么? 模板 已经设计好的格式框架 好的模板 : 使用户专注于内容 不应将时间花费在调整框架上 再提 Office 和 Word 很少有人会有意识地在 Word 中使用模板 定义自己的标题? 定义自己的列表? 定义自己的段落样式? 自动化, 还是手工调? 经常被折腾的精疲力竭 写论文成了学习 Word, 大量不必要的精力消耗 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 28 / 56
学术论文排版论文模板使用论文排版获取模板 随发行版自带 手动网络下载 模板文档类 cls 文件 示例 tex 文件编辑 tex 文件 : 添加用户内容编译 : 生成 PDF 文档 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 29 / 56
学术论文排版 论文模板使用 论文排版举例 IEEE 期刊论文 获取模板 : 已随发行版自带 在安装目录 <prefix>\texlive\2014\ 下搜索 bare_jrnltex 编辑 tex 文件 打开 bare_jrnltex, 另存到个人论文存放的文件夹 英文模板 : 不支持中文 编译 英文文献 :XeLaTeX PDFLaTeX 编译均可 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 30 / 56
学术论文排版 LATEX 常用命令 目录 1 简介 TEX 与 LATEX 安装 2 学术论文排版论文模板使用 LATEX 常用命令 3 学位论文排版 ThuThesis 清华大学学位论文模板 4 总结 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 31 / 56
学术论文排版 LATEX 常用命令 L A TEX 命令 宏 (Macro) 或者控制序列 (control sequence) 简单命令 \ 命令 {\songti 中国人民解放军 } 中国人民解放军 \ 命令 [ 可选参数 ]{ 必选参数 } section[ 精简标题 ]{ 这个题目实在太长了放到目录里面不太好看 } 11 这个题目实在太长了放到目录里面不太好看 环境 \ begin { e q u a t i o n *} a^2 b^2=(a+b ) ( a b ) a 2 b 2 = (a + b)(a b) \end{ e q u a t i o n *} alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 32 / 56
学术论文排版 LATEX 常用命令 L A TEX 常用命令 命令 \chapter \section \subsection \paragraph 章 节 小节 带题头段落 \centering \emph \verb \url 居中对齐 强调 原样输出 超链接 \footnote \item \caption \includegraphics 脚注 列表条目 标题 插入图片 \label \cite \ref 标号 引用参考文献 引用图表公式等 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 33 / 56
学术论文排版 LATEX 常用命令 L A TEX 常用命令环境 table figure equation 表格图片公式 itemize enumerate description 无编号列表编号列表描述 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 34 / 56
学术论文排版 LATEX 常用命令 L A TEX 命令举例 \chapter{ 前言 } 第 1 章前言 \section[ 精简标题 ]{ 这个题目实在太长了放到目录里面不太好看 } 11 这个题目实在太长了放到目录里面不太好看 \footnote{ 我是可爱的脚注 } 前方高能 1 1 我是可爱的脚注 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 35 / 56
学术论文排版 LATEX 常用命令 L A TEX 环境命令举例 \ begin { i t e m i z e } \item 一条 \item 次条 \item 再条 \end{ i t e m i z e } 一条 次条 再条 \ begin { enumerate } \item 一条 \item 次条 \item 再条 \end{ enumerate } 1 一条 2 次条 3 再条 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 36 / 56
学术论文排版 LATEX 常用命令 自动引用举例 给对象命名 : 图片 表格 公式等 \label{name} 引用对象 \ref{name} 图书馆馆徽请参见图 ~\ r e f { f i g : l i b } \begin { figure } \ centering \ includegraphics [ height =02\ textheight ]% { l i b i c o n jpg } \ caption { 图书馆馆徽 } \ l a b e l { f i g : l i b } \end{ figure } 图书馆馆徽请参见图 1 图 1 图书馆馆徽 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 37 / 56
学术论文排版 LATEX 常用命令 自动引用举例 \begin { table } \ centering \ begin { t a b u l a r }{ l l }\ h l i n e 编号 & 含义 \\\ h l i n e 1 & 第一 \\ 2 & 第二 \\\ h l i n e \end{ tabular } \ caption { 编号与含义 } \ label {tab : number} \end{ table } 编号与含义请参见表 ~\ r e f {tab : number} 编号含义 1 第一 2 第二表 1 编号与含义编号与含义请参见表 1 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 38 / 56
学位论文排版 ThuThesis 清华大学学位论文模板 目录 1 简介 TEX 与 LATEX 安装 2 学术论文排版论文模板使用 LATEX 常用命令 3 学位论文排版 ThuThesis 清华大学学位论文模板 4 总结 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 39 / 56
学位论文排版 ThuThesis 清华大学学位论文模板 ThuThesis 清华大学学位论文 LATEX 模板 最早 王磊 (20044) 2005 年 薛瑞尼 最新发布版 ThuThesis v481 (2014/12/09) 全面支持本科 硕士 博士 博士后论文格式 清华大学 综 合 论 文 训 练 AT X 题目 清华大学学位论文 L E 清华大学学位论文 LATEX 模板 清华大学学位论文 LATEX 模板 使用示例文档 使用示例文档 申请清华大学工学硕士学位论文 申请清华大学工学博士学位论文 分类号 U D C 绝 编 清 华 模板 密 号 大 学 博 士 后 研 究 报 告 使用示例文档 系 别 计算机科学与技术系 专 业 计算机科学与技术 姓 名 薛瑞尼 培 养 单 位 计 算 机 科 学 与 技 术 系 培 养 单 位 计 算 机 科 学 与 技 术 系 学 学 研 科 计 算 机 科 学 与 技 术 究 生 薛 瑞 尼 研 指 导 教 师 郑 纬 民 教 授 清华大学学位论文 LATEX 模板 使用示例文档 科 计 算 机 科 学 与 技 术 究 生 薛 瑞 尼 薛瑞尼 指 导 教 师 郑 纬 民 教 授 副指导教师 陈 文 光 教 授 指导教师 郑纬民教授 联 合 导 师 某 某 某 教 授 辅导教师 陈文光教授 2015 年 4 月 23 日 清 华 二〇一五年四月 二〇一五年四月 alick (GitHub) 如何使用 LATEX 排版论文 大 学 2015 年 4 月 图书馆专题培训讲座 40 / 56
学位论文排版 ThuThesis 清华大学学位论文模板 安装 ThuThesis 以开发版本为例 下载最新版 https://githubcom/xueruini/thuthesis 右边栏 Download ZIP 按钮 安装 解压缩看文档 READMEmd 模板文档类 :(Xe)LaTeX 引擎处理 thuthesisins thuthesiscls 和 thuthesiscfg 用户手册 :latexmk 处理 thuthesisdtx thuthesispdf 论文示例 :latexmk 处理 maintex mainpdf ( 或对 maintex 执行一次 XeLaTeX, 一次 BibTeX, 再两次 XeLaTeX) 可使用或参考附带的 Makefile alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 41 / 56
学位论文排版 ThuThesis 清华大学学位论文模板 论文选项 bachelor 我要写本科论文 \ documentclass[ bachelor]{ thuthesis} master 我要写硕士论文 \ documentclass[ master]{ thuthesis} doctor 我要写博士论文 \ documentclass[ doctor]{ thuthesis} secret 论文有保密要求 \ documentclass[ doctor, secret]{ thuthesis} \secretlevel{ 机密 } \ secretyear {2010} alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 42 / 56
学位论文排版 ThuThesis 清华大学学位论文模板 封面 命令作用 中文命令 英文命令 论文标题 \ctitle \etitle 作者姓名 \cauthor \eauthor 申请学位名称 \cdegree \edegree 院系名称 \cdepartment \edepartment 专业名称 \cmajor \emajor 导师 \csupervisor \esupervisor 副导师 \cassosupervisor \eassosupervisor 联合导师 \ccosupervisor \ecosupervisor 日期 \cdate \edate 摘要 \cabstract \eabstract 关键词 \ckeywords \ekeywords alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 43 / 56
学位论文排版 ThuThesis 清华大学学位论文模板数学公式示例 :data/chap01tex ThuThesis 定义了常用的数学环境 axiom theorem definition proposition lemma 公理定理定义命题引理 proof corollary example exercise 证明推论例子练习 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 44 / 56
学位论文排版 ThuThesis 清华大学学位论文模板 参考文献 推荐 BIBTEX 参考文献管理自动化 bib 文件 bst 参考文献样式文件 :thubibbst 学校要求两种引用方式 : 上标模式 : 如 在许多文献 [12,13] 中 \ cite{key12, key13} 正文模式 : 如 文献 [14] 证明了 \ onlinecite{ key14} alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 45 / 56
学位论文排版 ThuThesis 清华大学学位论文模板 作图 矢量图 eps, ps, pdf METAPOST, pstricks, pgf Xfig, Dia, Visio, Inkscape 标量图 png, jpg, tiff 转化 提高清晰度, 避免发虚 虚拟打印机 ImageMagick epstopdf pdfcrop Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 46 / 56
总结常见问题编译不通过缺少必要宏包, 命令拼写错误, 括号未配对等表格图片乱跑 LATEX 自身的浮动定位算法段落间距变大 LATEX 排版算法参考文献推荐使用 BIBTEX, 也可以手写 \bibitem alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 47 / 56
总结一点建议先学习 仔细阅读 一份不太简短的 L A TEX 2ε 介绍 (lshort-zh) (1 2 天 ) 粗略阅读 L A TEX 2ε 插图指南 (2 3 小时 ) 仔细阅读 ThuThesis 用户手册 (20 分钟 ) 从 ThuThesis 示例文档入手 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 48 / 56
总结 利用文档 常用文档 symbols: 符号大全 Mathmode: 数学参考 ctex, xecjk: 中文支持 texlive-zh: TEX Live 安装与使用所用宏包文档 工具 tlmgr: TEX Live 管理器 texdoc: T EX 文档查看器 例如 :texdoc lshort-zh alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 49 / 56
总结求助 BBS 水木社区 TeX 版 bbsctexorg UK FAQ TeX StackExchange Google alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 50 / 56
总结 ThuThesis 问题 GitHub Issues 提问 TEX@newsmth 查找或发文 ThuThesis Google Group 发问 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 51 / 56
总结你也可以帮助错误反馈 :GitHub Issues 改进建议 :GitHub Issues 出力维护 :LaTeX 宏包编写 Git 科普 答疑图书馆讲座征主讲人! alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 52 / 56
总结你也可以帮助错误反馈 :GitHub Issues 改进建议 :GitHub Issues 出力维护 :LaTeX 宏包编写 Git 科普 答疑图书馆讲座征主讲人! alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 52 / 56
附录本幻灯片 :https://githubcom/alick/thulib-latex-talk 本幻灯片基于 : http://githubcom/alick/fad-texlive-talk ThuThesis 使用向导 v30 许可证 :CC BY-SA 40 Unported CC BY: c alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 53 / 56
附录扩展阅读 LATEX Tips: https://alickfedorapeopleorg/ fudcon-apac-2014/latex-tipspdf ( 例如 :LATEX 中引号的正确输入姿势 ) Linux 用户 :https://githubcom/alick/fad-texlive-talk ThuThesis 使用向导 v30 ( 薛瑞尼 ) LATEX 杂谈 ( 刘海洋 ) LATEX 入门 ( 刘海洋 ) alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 54 / 56
附录 L A TEX 讲座预告 TEX 与汉字处理 主讲人 : 马起园 刘海洋 主办 : 清华 TUNA 协会 时间 : 暂定下月 地点 : 校内 alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 55 / 56
附录 Thank you! alick (GitHub) 如何使用 LATEX 排版论文图书馆专题培训讲座 56 / 56