当前位置:网站首页>Latex paper typesetting operation
Latex paper typesetting operation
2022-04-23 08:42:00 【Every door must work hard】
One 、LaTeX Environment installation and configuration
latex The suffix of the file is .tex
- 1. Can be in cmd Enter the command line... In the window , Edit... In Notepad .tex file

- 2. Use
latex file name .tex
Command build .dvi file

- 3. use
dvipdfmx file name .dvi
Command to generate pdf file

xelatex file name .tex
: take ②③ Step in one , Direct use tex File generation pdftexdoc ctex
: see LaTeX Macro set manualtexdoc lshort-zh
: Check the operating instructions
Two 、TeXstudio
TeXstudio : To write tex Integrated development environment IDE
Command prompt function , It can improve the efficiency of document writing
- 1. newly build tex file
- 2. Name and save : take tex Put it under the folder , Because some intermediate files will be generated
-
3、 ... and 、 The basic structure of the source file
.tex The source area includes the introduction to ( Introduce classes ), Text area ( Writing a manuscript )
Four 、 Chinese processing
- 1. Make sure the encoding form is utf-8
- 2. Use
\usepackage{ctex}
Command to import macro package
Use
\documentclass{ctexart}
Specify the document type as Chinese article , You don't need to import ctex package
5、 ... and 、 The structure of the article
1. \section Build section :
\chapter
Generate articles with chapters
\tableofcontents
% Generate Directory2. piecewise / Line break
\par or A blank line The text can be divided into paragraphs Two backslashes :\\ Can branch , But not in segments 3. ctexset Set text style
Look up CTeX Macro set manual
Separation of style and content
6、 ... and 、 Font property settings
LaTeX Fonts in have five properties : code 、 Font family 、 HTTP: ( thickness 、 Width )、 Font shape ( Upright italics )、 font size
1. code
- 1. Text font coding :OT1 T1 EU1
- 2. Mathematical font coding :OML OMS OMX
2. Font family settings
Font family type \ Font command { Content } {\ Font declaration Content } Roman font command \textrm{ roman type }
{rmfamily roman type }
Sans serif fonts \textsf{ Sans serif fonts }
{sffamily Sans serif fonts }
Typewriter font \texttt{ Typewriter font }
{ttfamily Typewriter font }
3. HTTP:
command Statement \textmd{ normal }
{\mdseries normal }
\textbf{ In bold }
{\bfseries In bold }
4. Font shape
Font shape command Statement Erect \textup{ Erect upright shape}
{\upshape Erect zhili}
Italics \textit{ Italics italic shape}
{\itshape Italics }
Pseudo italics \textsl{ Pseudo italics slanted shape}
{\slshape Pseudo italics }
Small caps \textsc{ Small caps small caps shape}
{\scshape Small caps }
5. font size
{\tiny Small }
{\scriptsize }
{\footnotesize }
{\small Small }
{\normalsize Normal size }
{\large Big }
{\Large }
{\LARGE}
{\huge }
{\Huge }
normal size The size of is determined by the document parameter ( Optional ) control
\documentclass[10pt]{article}
Set the normal size to 10 pounds
Chinese font style settings
Font type The font size font size {\songti Song style }
{\heiti In black }
{\fangsong Imitation song }
{\kaishu Regular script }
\textbf{ bold }
\textit{ Italics }
\zihao{5} 5 Number
- Command line input
texdoc ctex
open ctex Document review details - Separation of content and style
Definition Font setting command\newcommand{\myfont}{\textit{\textbf{\textsf{fanciy text}}}}
7、 ... and 、 Special characters
1. Blank symbols
- 1. Blank line segmentation , Multiple blank lines are equivalent to one
- 2. Automatic indentation , You can't use spaces instead of
- 3. Multiple spaces in English are equivalent to one , Chinese spaces are ignored
- 4. Hexadecimal use Chinese full corner space
Use the command to display the space character Command syntax spacing Show $a \quad b$ 1 em( In the current font M Width ) a b a \quad b ab $a \qquad b$ 2 em a b a \qquad b ab $a \thinspace b$ 1/6 individual em a b a \thinspace b ab $a \enspace b$ 0.5 individual em a b a \enspace b ab $a\ b$ A space a b a\ b a b $a~b$ Hard space ( Undivided spaces ) a b a~b a b $a \kern 1pc b$ 1pc=12pt=4.218mm a b a \kern 1pc b ab $a \kern -1em b$ The specified width can be a negative number a b a \kern -1em b ab $a \hskip 1em b$ Specify the width a b a \hskip 1em b ab $a \hspace{35pt}b$ Specify the width a b a \hspace{35pt}b ab $a \hphantom{xyz}b$ Generate blank space according to the parameter occupancy width a x y z b a \hphantom{xyz}b axyzb $a \hfill b$ Elastic length space ( Fill the whole space ) $a \hfill b$ 2. LaTeX Controller
- LaTeX in
# $ % {} ~ _ ^ \ &
They all have a special meaning , need\
Escape output \\
Means line break , use\textbackslash
Output \
3. Typesetting symbols
Some special typesetting symbols
\S
\P
\dag
\ddag
\copyright
\pounds
4. TEX Symbols
TeX{}
\LaTeX{}
\LaTeXe{}
5. Other symbols
- 1. quotes
Command syntax Show `
Left single quote ‘ '
Right single quotation mark ’ ``
Left double quote “ ''
Right double quote ” -
2. A hyphen
One - Show hyphens -
Two - Show middle hyphen –
Three - Show long hyphens — -
3. Non English characters
\oe \OE \ae \AE \aa \AA \o \O \l \L \ss \SS !` ?`
-
4. stress mark ( With o For example )
8、 ... and 、 Insert a picture
latex Use graphicx Realize illustration , You need to import the macro package
\usepackage{graphicx} % Insert macro package of picture
\graphicspath{ {figures/},{pics/}} % The pictures are placed in the current directory figures Catalog pics Under the table of contents
Illustration syntax commands :
\includegraphics[ ]{photo.png}
Modify the picture size to achieve scaling , Optional parameters
[scale=0.3,height=2cm,width=2cm]
Nine 、 form tabular
-
1. Generate table vertical bar
|
-
2. Generate table horizontal lines
\hline
-
3. Specifies the left, middle, and right alignment of the column contents
l c r
-
4. from
p{1.5cm}
The specified column width , If the content exceeds, it will automatically wrap%tabular Environmental Science \begin{tabular}{|l| c |r|} % Specify column alignment \hline % Table row divider Student number & full name & class \\ \hline\hline 0 & lgj & 9 \\ 1 & gorgeous & 10\\ 2 & a & 10\\ 4 & b & 10\\ \hline \end{tabular}
Ten 、 Floating body
You need to use the floating environment to manage the layout of pictures and tables
Illustration floating – figure Environmental Science
-
1. Environment introduces
\begin{figure} ... \end{figure}
-
2. Typesetting position
[htbp]
h here ,t Top of page ,b Bottom of page ,p A single page -
3. centered
\centering
-
4. Set title
\caption{\TeX Illustration title }
-
5. Set labels to reference
\label{fig-photo}
-
6. Quote grammar
\ref{fig-photo}
…… See the picture \ref{fig-photo} % Reference label \begin{figure}[htbp] % Typesetting position \centering % centered Insert a picture \caption{\TeX Illustration title }\label{fig-photo} % Add illustration title % Set labels to reference \end{figure}
Table floating – table Environmental Science
- 1. Environment introduces
\begin{table} ... \end{table}
- 2. Typesetting position
[htbp]
h here ,t Top of page ,b Bottom of page ,p A single page - 3. centered
\centering
- 4. Set title
\caption{ Table title }
- 5. Set labels to reference
\label{tab}
- 6. Quote grammar
\ref{tab}
11、 ... and 、 reference
LaTeX The mathematical formula
版权声明
本文为[Every door must work hard]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230835153864.html
边栏推荐
- 是否完全二叉搜索树 (30 分)
- 增强现实技术是什么?能用在哪些地方?
- Illegal character in scheme name at index 0:
- 关于cin,scanf和getline,getchar,cin.getline的混合使用
- Overview of bus structure
- Shell script advanced
- 洋桃电子STM32物联网入门30步笔记一、HAL库和标准库的区别
- 关于堆的判断 (25 分) 两种插入方式
- SYS_ CONNECT_ BY_ Path (column, 'char') combined with start with connect by prior
- RCC introduction of Hal Library
猜你喜欢
SYS_ CONNECT_ BY_ Path (column, 'char') combined with start with connect by prior
DJ音乐管理软件Pioneer DJ rekordbox
面了一圈,整理了这套面试题。。
Virtual online exhibition - Online VR exhibition hall realizes 24h immersive exhibition viewing
Excle plus watermark
Yangtao electronic STM32 Internet of things entry 30 step notes IV. engineering compilation and download
测试你的机器学习流水线
How to generate assembly file
Shell脚本进阶
After a circle, I sorted out this set of interview questions..
随机推荐
IDEA导入commons-logging-1.2.jar包
Idea is configured to connect to the remote database mysql, or Navicat fails to connect to the remote database (solved)
Consensus Token:web3.0生态流量的超级入口
LeetCode396.旋转数组
1099 建立二叉搜索树 (30 分)
LINQ Learning Series ----- 1.4 anonymous objects
Go语言自学系列 | golang结构体的初始化
Search tree judgment (25 points)
Large amount of data submitted by form post
信息收集相关知识点及题解
面了一圈,整理了这套面试题。。
ajax防止缓存方法
企业微信应用授权/静默登录
洋桃电子STM32物联网入门30步笔记四、工程编译和下载
耳穴诊疗随笔0421
synchronized 锁的基本用法
单片机数码管秒表
在sqli-liabs学习SQL注入之旅(第十一关~第二十关)
洋桃电子STM32物联网入门30步笔记一、HAL库和标准库的区别
Ear acupoint diagnosis and treatment essay 0421