首页 > 编程知识 正文

latexVideo,terraform教程

时间:2023-05-03 13:18:01 阅读:150070 作者:981

可实现显示中文、插入图、表、公式(自动标号)、参考文献、索引上标、段落、设置字体等功能。

%头文件包documentclass[twocolumn,12pt]{report}%设置页有两列,默认大小为12pt _ use package [ utf8 ] { input enent } top=25mm、bottom=25mm、bindingoffset=6mm]{geometry}%定义纸张大小和边距usepackage [ style=alphabetic ] addb ibresource { references.bib } %参考文献(use package ) caption (use package ) subcaption ) sub caption (use package ) )的辅助标题的fancyhead{}%当前标题fancyhead[RO,le ] %为空,新标题fancyhead[RO,le ] % thepage}% thechapter}%对章节进行计数,如果没有chapter*星号,则返回fancyfoot[CO,re ] _ use package { indenter * } (无法正确显示。usepackage{CJKutf8}%显示中日韩文包,默认宋体和出题gbsn gkai的其他字体需要自己下载,不方便。 使用usepackage{amsmath}%函数的分支机构显示split包,%并定义新命令和环境。 renew command {renew command } fontsize { 12pt } } %现有命令 new command {up cite } [1] {text superscript { _ 12306; footrulewidth}{0.4pt}%读取部分%title { { thesis }\ % {largeinstitutionname }incl list } author {lestis } begin{cjk*}{utf8}{gkai}%也可以更换为gbsn%的input{titlepage.tex}%首页%input { abstract.tex }chapap 真的,卡门GodSod quad插入多个空格begin{spacing}{1.0}%插入空行end{spacing}begin{equation}%表达式会自动标记。 如果在多个表达式中使用qunarray,则*不显示标签,而split只显示多个表达式。使用begin{center} end{center},在公式begin{equation}的上一层 sum _ { I=a } ^ { b } x ^ { a }=使用1000 %公式调整3359 private.a begin { equation }centeringlarge %大小sum{ I sum _ { I=a } ^ { b } x ^ { a }=1000end { split }end { eqn array }begin { eqn array } %显示多个分行,并且只添加一个标签begin{align}%=x^2(ab ) xab(g=ab(end ) split ) end ) align ) chapter*{dedication}best

textbf{崔巍魏}%加粗tableofcontents%生成目录listoffigures%生成图表目录listoftables%生成表格目录chapter{Chapter1}input{images/chapter1}%导入写好的段落chapter{Int2}pagestyle{fancy}input{images/chapter2}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%画图begin{figure}[!hbt]centeringincludegraphics[scale=1.5]{images/universe.jpg}caption{an example}label{fig:x cubed graph}end{figure}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%画多张图并列begin{figure}[!hbt] centering begin{subfigure}[b]{0.15textwidth} centering includegraphics[width=textwidth]{images/universe.jpg} caption{$y=x$} label{fig:y=x} end{subfigure} hfill begin{subfigure}[b]{0.15textwidth} centering includegraphics[width=textwidth]{images/universe.jpg} caption{$y=4x$} label{fig:y=x} end{subfigure} hfill begin{subfigure}[b]{0.15textwidth} centering includegraphics[width=textwidth]{images/universe.jpg} caption{$y=x$} label{fig:y=x} end{subfigure} caption{three plot}end{figure}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%画表begin{table}[h]centeringbegin{tabular}{l|l|l}A&B&C\hline1&2&3\4&5&6end{tabular}caption{basic table}label{basic table}end{table}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%画多个表并列begin{table}[!hbt] centering begin{subtable}[h]{0.45textwidth} centering begin{tabular}{l|l|l}% c:居中 l:左对齐 r:右对齐 day&month&year\ hline mon&1&2\ mon&1&2\ mon&1&2\ end{tabular} caption{table1} label{tab:week1} end{subtable} hfill begin{subtable}[h]{0.45textwidth} centering begin{tabular}{l|l|l} day&month&year\ hlinehline mon&1&2\ mon&1&2\ mon&1&2\ end{tabular} caption{table2} label{tab:week2} end{subtable} caption{week} label{tab:weel}end{table}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%插入文章段落,或者input a.texthe collective performance resources of the pool rather than for single database%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%添加下标和正常文献标注performance.parencite[compare][]{adams1995hitchhiker}upcite{adams}I want to stay in lab alonecite[see][p10]{adam}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%添加层级标题section{Conclusion}``I always thought something was fundamentally wrong with the universe'' section{LaTeX的使用方法section}section下面的文字subsection{LaTeX的使用方法subsection}subsection下面的文字subsubsection{LaTeX的使用方法subsubsection}subsubsection下面的文字printbibliography%放置导入的bib 文献end{CJK*}end{document}%大功告成 %references.bib@book{adams1995hitchhiker, title={The Hitchhiker's Guide to the Galaxy}, author={Adams, D.}, isbn={9781417642595}, url={http://books.google.com/books?id=W-xMPgAACAAJ}, year={1995}, publisher={San Val}}@book{adam, title={The Hitchhiker's Guide to the Galaxy}, author={Adams, D.}, isbn={9781417642595}, url={http://books.google.com/books?id=W-xMPgAACAAJ}, year={1995}, publisher={San Val}}@book{adams, title={The Hitchhiker's Guide to the Galaxy}, author={Adams, D.}, isbn={9781417642595}, url={http://books.google.com/books?id=W-xMPgAACAAJ}, year={1995}, publisher={San Val}}

 

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