当前位置:网站首页>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
边栏推荐
- 应纳税所得额
- 正点原子携手OneOS直播 OneOS系统教程全面上线
- Knowledge points and problem solutions related to information collection
- 洋桃电子STM32物联网入门30步笔记四、工程编译和下载
- Large amount of data submitted by form post
- Flash project cross domain interception and DBM database learning [Baotou cultural and creative website development]
- rembg 分割mask
- ESP32程序下载失败,提示超时
- bashdb下载安装
- Anonymous type (c Guide Basics)
猜你喜欢

HAL库的RCC简介

Shell script advanced

Harbor企业级镜像管理系统实战

OneFlow学习笔记:从Functor到OpExprInterpreter

Virtual online exhibition - Online VR exhibition hall realizes 24h immersive exhibition viewing

Notes on 30 steps of introduction to the Internet of things of yangtao electronics STM32 III. cubemx graphical programming and setting the IO port on the development board

bashdb下载安装

虚拟线上展会-线上vr展馆实现24h沉浸式看展

让地球少些“碳”息 度能在路上

引用传递1
随机推荐
tsdf +mvs
洋桃电子STM32物联网入门30步笔记三、新建CubeIDE工程和设置讲解
jsp页面编码
【IndexOf】【lastIndexOf】【split】【substring】用法详解
Failed to prepare device for development
Navicat远程连接mysql
Go语言自学系列 | golang结构体指针
Basic usage of synchronized locks
Go语言自学系列 | golang结构体的初始化
单片机数码管秒表
DOM 学习之—添加+-按钮
Go语言自学系列 | golang嵌套结构体
LLVM之父Chris Lattner:编译器的黄金时代
Shell script advanced
引用传递1
Yangtao electronic STM32 Internet of things entry 30 step notes II. Cube ide download, installation, sinicization and setting
Virtual online exhibition - Online VR exhibition hall realizes 24h immersive exhibition viewing
Chris LATTNER, father of llvm: the golden age of compilers
'bully' Oracle enlarged its move again, and major enterprises deleted JDK overnight...
是否完全二叉搜索树 (30 分)
