首页 > 编程知识 正文

latex教程书,latex入门pdf

时间:2023-05-05 10:48:02 阅读:276176 作者:4869

最近有学长做了个新的MCMlatex模板
点击此处可以下载:下载.

主要内容如下:

%% 美赛模板:正文部分documentclass[12pt]{article} % 官方要求字号不小于 12 号,此处选择 12 号字体% 本模板不需要填写年份,以当前电脑时间自动生成% 请在以下的方括号中填写队伍控制号usepackage[1234567]{easymcm} % 载入 EasyMCM 模板文件problem{A} % 请在此处填写题号usepackage{mathptmx} % 这是 Times 字体,中规中矩 %usepackage{mathpazo} % 这是 COMAP 官方杂志采用的更好看的 Palatino 字体,可替代以上的 mathptmx 宏包title{An MCM Paper Made by Team 1234567} % 标题% 如需要修改题头(默认为 MCM/ICM),请使用以下命令(此处修改为 MCM)%renewcommand{contest}{MCM}% 文档开始begin{document}% 此处填写摘要内容begin{abstract} Here is the abstract of your paper. Firstly, that is ... Secondly, that is ... Finally, that is ... % 美赛论文中无需注明关键字。若您一定要使用, % 请将以下两行的注释号 '%' 去除,以使其生效 % vspace{5pt} % textbf{Keywords}: MATLAB, mathematics, LaTeX.end{abstract}maketitle % 生成 Summary Sheettableofcontents % 生成目录% 正文开始section{Introduction}subsection{Problem Background}Here is the problem background ...Two major problems are discussed in this paper, which are:begin{itemize} item Doing the first thing. item Doing the second thing.end{itemize}subsection{Literature Review}A literatruecite{1} say something about this problem ...subsection{Our work}We do such things ...begin{enumerate}[bfseries 1.] item We do ... item We do ... item We do ...end{enumerate}section{Preparation of the Models}subsection{Assumptions}subsection{Notations}The primary notations used in this paper are listed in Table ref{tb:notation}.% 三线表示例begin{table}[!htbp]begin{center}caption{Notations}begin{tabular}{cl}toprulemulticolumn{1}{m{3cm}}{centering Symbol}&multicolumn{1}{m{8cm}}{centering Definition}\midrule$A$&the first one\$b$&the second one\$alpha$ &the last one\bottomruleend{tabular}label{tb:notation}end{center}end{table}section{The Models}subsection{Model 1}subsubsection{Details about Model 1}The detail can be described by equation eqref{eq:heat}:begin{equation}label{eq:heat}frac{partial u}{partial t} - a^2 left( frac{partial^2 u}{partial x^2} + frac{partial^2 u}{partial y^2} + frac{partial^2 u}{partial z^2} right) = f(x, y, z, t)end{equation}subsection{Model 2}subsubsection{Conclusion of Model 2}The results are shown in Figure ref{fig:result}, where $t$ denotes the time in seconds, and $c$ refers to the concentration of water in the boiler.begin{figure}[htbp]centeringincludegraphics[width=.6textwidth]{water.png}caption{The result of Model 2}label{fig:result}end{figure}subsubsection{Commetary on Model 2}The instance of long and wide tables are shown in Table ref{tb:longtable}.% 长表格示例,更多用法请参考 longtable 宏包文档% 以下环境及对应参数可实现表格内的自动换行与表格的自动断页% 您也可以选择自行载入 tabularx 宏包,并通过 X 参数指定对应列自动换行begin{longtable}{ p{4em} p{14em} p{14em} }caption{Basic Information about Three Main Continents (scratched from Wikipedia)}label{tb:longtable}\topruleContinent & Description & Information \midruleAfrica & Africa Continent is surrounded by the Mediterranean Sea to thenorth, the Isthmus of Suez and the Red Sea to the northeast, the IndianOcean to the southeast and the Atlantic Ocean to the west. &At about 30.3 million km$^2$ including adjacent islands, it covers 6%of Earth's total surface area and 20% of its land area. With 1.3billion people as of 2018, it accounts for about 16% of the world'shuman population. \midruleAsia & Asia is Earth's largest and most populous continent whichlocated primarily in the Eastern and Northern Hemispheres.It shares the continental landmass of Eurasia with the continentof Europe and the continental landmass of Afro-Eurasia with bothEurope and Africa. &Asia covers an area of 44,579,000 square kilometres, about 30%of Earth's total land area and 8.7% of the Earth's total surfacearea. Its 4.5 billion people (as of June 2019) constitute roughly60% of the world's population. \midruleEurope & Europe is a continent located entirely in the NorthernHemisphere and mostly in the Eastern Hemisphere. It comprises thewesternmost part of Eurasia and is bordered by the Arctic Ocean tothe north, the Atlantic Ocean to the west, the Mediterranean Sea tothe south, and Asia to the east. &Europe covers about 10,180,000 km$^2$, or 2% of the Earth's surface(6.8% of land area), making it the second smallestcontinent. Europe had a total population of about 741 million (about11% of the world population) as of 2018. \bottomruleend{longtable}Figure ref{fig:subfigures} gives an example of subfigures. Figure ref{subfig:left} is on the left, and Figure ref{subfig:right} is on the right.% 子图(多图并列)示例,更多用法请参考 subfigure 宏包文档% 如果您只希望几张图并列,不需要额外的 caption,那么在 figure 环境中% 连续插入总宽度不超过 textwidth 的多个 includegraphics 命令即可begin{figure}[htbp]centeringbegin{subfigure}[b]{.4textwidth}includegraphics[width=textwidth]{water.png}caption{Image on the left}label{subfig:left}end{subfigure}begin{subfigure}[b]{.4textwidth}includegraphics[width=textwidth]{water.png}caption{Image on the right}label{subfig:right}end{subfigure}caption{Two images}label{fig:subfigures}end{figure}section{Strengths and Weaknesses}subsection{Strengths}begin{itemize} item First one... item Second one ...end{itemize}subsection{Weaknesses}begin{itemize} item Only one ... end{itemize}% 以下为信件/备忘录部分,不需要可自行去掉% 如有需要可将整个 letter 环境移动到文章开头或中间% 请在第二个花括号内填写标题,如「信件」(Letter)或「备忘录」(Memorandum)begin{letter}{Memorandum}begin{flushleft} % 左对齐环境,无首行缩进textbf{To:} Heishan Yan\textbf{From:} Team 1234567\textbf{Date:} October 1st, 2019\textbf{Subject:} A better choice than MS Word: LaTeXend{flushleft}In the memo, we want to introduce you an alternate typesetting program to the prevailing MS Word: textbf{LaTeX}. In fact, the history of LaTeX is even longer than that of MS Word. In 1970s, the famous computer scientist Donald Knuth first came out with a typesetting program, which named TeX ldotsFirstly, ldotsSecondly, ldotsLastly, ldotsAccording to all those mentioned above, it is really worth to have a try on LaTeX! end{letter}% 参考文献,此处以 MLA 引用格式为例begin{thebibliography}{99}bibitem{1} Einstein, A., Podolsky, B., & Rosen, N. (1935). Can quantum-mechanical description of physical reality be considered complete?. emph{Physical review}, 47(10), 777.bibitem{2} emph{A simple, easy LaTeX template for MCM/ICM: EasyMCM}. (2018). Retrieved December 1, 2019, fromurl{https://www.cnblogs.com/xjtu-blacksmith/p/easymcm.html}end{thebibliography}% 以下为附录内容% 如您的论文中不需要附录,请自行删除begin{subappendices} % 附录环境section{Appendix A: Further on LaTeX}To clarify the importance of using LaTeX in MCM or ICM, several points need to be covered, which are ldotsTo be more specific, ldotsAll in all, ldotsAnyway, nobody textbf{really} needs such appendix ldotssection{Appendix B: Program Codes}Here are the program codes we used in our research.% 代码环境示例三则% 如您的论文不需要展示代码,请删除% 更多用法,请参考 listings 宏包文档% Python 代码示例begin{lstlisting}[language=Python, name={test.py}]# Python code examplefor i in range(10): print('Hello, world!')end{lstlisting}% MATLAB 代码示例begin{lstlisting}[language=MATLAB, name={test.m}]% MATLAB code examplefor i = 1:10 disp("hello, world!");endend{lstlisting}% C++ 代码示例begin{lstlisting}[language=C++, name={test.cpp}]// C++ code example#include <iostream>using namespace std;int main() { for (int i = 0; i < 10; i++) cout << "hello, world" << endl; return 0;}end{lstlisting}end{subappendices} % 附录内容结束end{document} % 结束

后面该专栏的文章会对新模板进行分类记录

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。