当前位置:网站首页>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
边栏推荐
猜你喜欢
Use of Arthas in JVM tools
STM32使用HAL库,整体结构和函数原理介绍
RCC introduction of Hal Library
SYS_CONNECT_BY_PATH(column,'char') 结合 start with ... connect by prior
洋桃电子STM32物联网入门30步笔记三、CubeMX图形化编程、设置开发板上的IO口
Get the absolute path of the class according to the bytecode
让地球少些“碳”息 度能在路上
php基于哈希算法出现的强弱比较漏洞
Reference passing 1
L2-3 romantic silhouette (25 points)
随机推荐
Enctype attribute in form
Misunderstanding of flush () method of OutputStream class
Swagger document export custom V2 / API docs interception
LaTeX数学公式
【精品】利用动态代理实现事务统一管理 二
搜索树判断 (25 分)
Failed to convert a NumPy array to a Tensor(Unsupported Object type int)
STM32F103ZET6【标准库函数开发】----库函数介绍
Idea is configured to connect to the remote database mysql, or Navicat fails to connect to the remote database (solved)
Introduction to protobuf
RPC procedure
idea底栏打开services
完全二叉搜索树 (30 分)
汇编语言与逆向工程 栈溢出漏洞逆向分析实验报告
How browser works
Basic usage of synchronized locks
Transformer XL: attention language modelsbbeyond a fixed length context paper summary
Go语言自学系列 | golang嵌套结构体
What is RPC
lgb,xgb,cat k折交叉验证