Latex新手入门手册

文章介绍了LaTeX的三种编辑环境:VSCode、TextStudio和Overleaf,包括各自的安装步骤、优缺点以及配置方法。重点讨论了VSCode的配置,提供了latex-workshop.json的示例。此外,还提及了LaTeX的学习过程,如快捷键、章节划分和公式的使用。
摘要由CSDN通过智能技术生成


目录

Latex

环境安装

使用VScose进行编写

使用TextStudio进行编写

使用Overleaf在线进行编译

学习过程

快捷键

章节划分

article

report & book

强调

环境 

制表

公式

数学符号表

参考文献

索引

字体

间隔

行距

页面布局

其他基本操作


Latex

环境安装

使用VScose进行编写

B站安装指导视频

优点:

界面美观,使用较为方便

缺点:

初始需要配置json文件,如果能够复制粘贴效果好很多

使用TextStudio进行编写

安装指导

优点:

使用安装简单方便

缺点:

界面的美观程度相对较差,在高清的分辨的屏幕上会显得较为模糊

使用Overleaf在线进行编译
优点:

使用十分方便,可以在线实现编译,能够进行协同操作,保留编辑的历史

缺点:

对于网络环境依赖,经常会报错崩溃,使用的体验相对较差,功能相对较为简单


学习过程

latex 的 setjsion

参考: 配置

latex环境尝试配置.docx

● 改进后尝试的另一种写法(能够实现删除不需要的文件)

{  "latex-workshop.latex.recipes": [{  "name": "xelatex",  "tools": [      "xelatex"  ]}, {  "name": "latexmk",  "tools": [      "latexmk"  ]},{  "name": "pdflatex -> bibtex -> pdflatex*2",  "tools": [      "pdflatex",      "bibtex",      "pdflatex",      "pdflatex"  ]}],"latex-workshop.latex.tools": [{"name": "latexmk","command": "latexmk","args": [  "-synctex=1",  "-interaction=nonstopmode",  "-file-line-error",  "-pdf",  "%DOC%"]}, {"name": "xelatex","command": "xelatex","args": [  "-synctex=1",  "-interaction=nonstopmode",  "-file-line-error",  "%DOC%"]}, {"name": "pdflatex","command": "pdflatex","args": [  "-synctex=1",  "-interaction=nonstopmode",  "-file-line-error",  "%DOC%"]}, {"name": "bibtex","command": "bibtex","args": [  "%DOCFILE%"]}],"latex-workshop.view.pdf.external.synctex.command": "F:/SumatraPDF/SumatraPDF.exe","latex-workshop.view.pdf.external.synctex.args": [    "-forward-search",    "%TEX%",    "%LINE%",    "-reuse-instance",    "-inverse-search",    "code \"F:/Microsoft VS Code/resources/app/out/cli.js\" -gr \"%f\":\"%l\"",    "%PDF%",],"latex-workshop.view.pdf.viewer": "tab","latex-workshop.latex.autoClean.run": "onBuilt", //注意结尾是 t 不是 d"latex-workshop.latex.clean.fileTypes": ["*.aux","*.bbl","*.blg","*.idx","*.ind","*.lof","*.lot","*.out","*.toc","*.acn","*.acr","*.alg","*.glg","*.glo","*.gls","*.ist","*.fls","*.log","*.fdb_latexmk"]}

{    "latex-workshop.latex.recipes": [{    "name": "xelatex",    "tools": [        "xelatex"    ]  }, {    "name": "latexmk",    "tools": [        "latexmk"    ]  },    {    "name": "pdflatex -> bibtex -> pdflatex*2",    "tools": [        "pdflatex",        "bibtex",        "pdflatex",        "pdflatex"    ]  }  ],  "latex-workshop.latex.tools": [{  "name": "latexmk",  "command": "latexmk",  "args": [    "-synctex=1",    "-interaction=nonstopmode",    "-file-line-error",    "-pdf",    "%DOC%"  ]  }, {  "name": "xelatex",  "command": "xelatex",  "args": [    "-synctex=1",    "-interaction=nonstopmode",    "-file-line-error",    "%DOC%"  ]  }, {  "name": "pdflatex",  "command": "pdflatex",  "args": [    "-synctex=1",    "-interaction=nonstopmode",    "-file-line-error",    "%DOC%"  ]  }, {  "name": "bibtex",  "command": "bibtex",  "args": [    "%DOCFILE%"  ]  }],  "latex-workshop.view.pdf.viewer": "tab",  "latex-workshop.latex.clean.fileTypes": [  "*.aux",  "*.bbl",  "*.blg",  "*.idx",  "*.ind",  "*.lof",  "*.lot",  "*.out",  "*.toc",  "*.acn",  "*.acr",  "*.alg",  "*.glg",  "*.glo",  "*.gls",  "*.ist",  "*.fls",  "*.log",  "*.fdb_latexmk"  ],  }


快捷键

章节划分
article

\section{} \paragraph{} \subsection{} \subparagraph{} \subsubsection{}

report & book

\part{} \chapter{}

强调

\underline{text} 下划线

\emph{text} 斜体

环境 begin{}

itemize 环境用于简单的列表,

enumerate 环境用于带序号的列表,

description 环境用于带描述的列表

flushleft 和 flushright 环境分别产生靠左排列和靠右排列的段 落。

center 环境产生居中的文本。

如果你不输入命令 \\ 指定断行点,LATEX 将自行决定

quote 环境对重要断语和例子的引用,句子一般较长

verse 环境用于诗歌,在诗歌中断行很重要,句子相对较短

制表

\begin{tabular}{table spec}

\multicolumn{2}{|c|}{Ene} 将单元格进行合并

\hline 行之间的间隔线

公式

\begin{equation} 开始公式

\begin{displaymath}

数学符号表
参考文献

\begin{thebibliography} 生成参考文献

\bibitem{marker} 参考文献条目

\cite{marker} 文中进行引用

索引

字体
间隔
行距

段落

页面布局
其他基本操作

\tableofcontents%生成目录

\pagebreak%对文章进行分页

\maketitles%显示文章标题

\footnote{footnote text} 脚注

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
书名:The Not So Short Introduction to LATEX2ε Or LATEX2ε in 141 minutes 这是目前所找到的一份关于Tex的参考手册,pdf格式 --------------------------------------------- LATEX [1] is a typesetting system that is very suitable for producing scien- tific and mathematical documents of high typographical quality. It is also suitable for producing all sorts of other documents, from simple letters to complete books. L ATEX uses TEX [2] as its formatting engine. This short introduction describes L ATEX2ε and should be sufficient for most applications of L ATEX. Refer to [1, 3] for a complete description of the L ATEX system. This introduction is split into 6 chapters: Chapter 1 tells you about the basic structure of L ATEX2ε documents. You will also learn a bit about the history of L ATEX. After reading this chapter, you should have a rough understanding how L ATEX works. Chapter 2 goes into the details of typesetting your documents. It explains most of the essential L ATEX commands and environments. After read- ing this chapter, you will be able to write your first documents. Chapter 3 explains how to typeset formulae with L ATEX. Many examples demonstrate how to use one of L ATEX’s main strengths. At the end of the chapter are tables listing all mathematical symbols available in L ATEX. Chapter 4 explains indexes, bibliography generation and inclusion of EPS graphics. It introduces creation of PDF documents with pdfL ATEX and presents some handy extension packages. Chapter 5 shows how to use L ATEX for creating graphics. Instead of draw- ing a picture with some graphics program, saving it to a file and then including it into L ATEX you describe the picture and have L ATEX draw it for you. Chapter 6 contains some potentially dangerous information about how to alter the standard document layout produced by L ATEX. It will tell you how to change things such that the beautiful output of L ATEX turns ugly or stunning, depending on your abilities.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

司南锤

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值