当前位置:网站首页>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 .texCommand build .dvi file
- 3. use
dvipdfmx file name .dviCommand 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 :
\chapterGenerate 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 ctexopen 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\textbackslashOutput \
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 contentsIllustration 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
边栏推荐
- DOM learning notes - traverse all element nodes of the page
- 使用flask和h5搭建网站/应用的简要步骤
- rembg 分割mask
- 1099 建立二叉搜索树 (30 分)
- Navicat远程连接mysql
- 根据字节码获取类的绝对路径
- Basic usage of synchronized locks
- STM32使用HAL库,整体结构和函数原理介绍
- Whether the same binary search tree (25 points)
- Notes d'apprentissage oneflow: de functor à opexprinterpreter
猜你喜欢

《深度学习》学习笔记(八)

信息收集相关知识点及题解

【58】最后一个单词的长度【LeetCode】

HAL库的RCC简介

MySQL查询两张表属性值非重复的数据

Chris LATTNER, father of llvm: the golden age of compilers

'bully' Oracle enlarged its move again, and major enterprises deleted JDK overnight...

On time atom joins hands with oneos live broadcast, and the oneos system tutorial is fully launched

Notes on 30 steps of introduction to Internet of things of yangtao electronics STM32 III. Explanation of new cubeide project and setting

K210学习笔记(二) K210与STM32进行串口通信
随机推荐
ajax防止缓存方法
Failed to convert a NumPy array to a Tensor(Unsupported Object type int)
正点原子携手OneOS直播 OneOS系统教程全面上线
DOM learning notes - traverse all element nodes of the page
JSP page coding
DOM 学习之—添加+-按钮
Notes d'apprentissage oneflow: de functor à opexprinterpreter
tsdf +mvs
Transformer XL: attention language modelsbbeyond a fixed length context paper summary
怎样读取Excel表格到数据库
OneFlow學習筆記:從Functor到OpExprInterpreter
Ear acupoint diagnosis and treatment essay 0421
Excle plus watermark
Go语言自学系列 | golang嵌套结构体
Consensus Token:web3.0生态流量的超级入口
Noyer électronique stm32 Introduction à l'Internet des objets 30 étapes notes I. différences entre la Bibliothèque Hal et la Bibliothèque standard
'bully' Oracle enlarged its move again, and major enterprises deleted JDK overnight...
Queue (C language / linked list)
耳穴诊疗随笔0421
'恶霸' Oracle 又放大招,各大企业连夜删除 JDK。。。
