当前位置:网站首页>Latex notes
Latex notes
2022-07-25 00:58:00 【BugShowMaker】
The overall structure
latex The simple principle of is :latex Code ---> pdf finished product
take latex The code becomes pdf finished product ,latex What is the code format of ? What does each part look like ?
To solve these two problems, yes latex Have a simple understanding , I summarize from the following two aspects latex
latex part
stay latex The code you write usually contains two parts , The relationship is as follows :
1. Words and charts have different forms
2. The command area and the content area have different characteristics
These two different features make it difficult for the compiler to distinguish , To solve this problem , We need to realize the right Environmental Science To illustrate
1. Name of the environment --- Tell the compiler what method to use
2. Environment start and end time ( It can also be understood as a region )--- Tell the compiler when to start and stop the current method
notes : Because the translator needs different methods when dealing with charts and words , The area used to tell the compiler is called environment .
Local details
% This is the command area
\documentclass[12pt]{proc}
\usepackage[utf-8]{ctex}
\usepackage{xeCJK}
\usepackage{enumitem}
% This is the content area
\begin{document}
This is an enumeration ( Ordered list )
\begin{enumerate}
\item documentclass
\item usepackage
\item begin $\backslash$ \{ document \}
\end{enumerate}
\end{document}In this case , Command area There are two command
1.documentclass Document class
2.usepackage Reference macro package
Content area Yes Two environments :
1.document Document environment
\begin Tell compiler So let's start here
{document} Tell compiler Here is the document environment
\end{document} The environment is over
2.enumerate Enumerate environments
\begin Tell compiler So let's start here
{enumerate} Tell compiler Here is the document environment Is it necessary to change the way
\end{enumerate} The environment is over
The compilation results are as follows :

The black arrow in the figure refers to the area where the distance can be adjusted to achieve different effects
One of the items in the unordered list :

The blue arrow in the figure is where the distance can be adjusted
latex The list and text cannot be aligned :
Through the observation of the table , The list symbol is not aligned with the above text , Why is that ? How should we adjust ?
Obviously , There are two ways to align list sequence and text
1. Adjust the distance of the text
2. Adjust the item list
Here we use the second way , Use list items [leftmargin = 38pt] Get the results

Reflection after getting :
leftmargin It is relative to the leftmost paper line rather than the text on the previous line
There is a default arrangement of text inside , There are margins, so the text and list cannot be aligned .
边栏推荐
- Multi table query of SQL
- The use of Multimeter in circuit analysis experiment of Shandong University
- 7.14 - daily question - 408
- Vegetable greenhouses turned into smart factories! Baidu AI Cloud helps Shouguang, Shandong build a new benchmark for smart agriculture
- If real-time intersection with line segments in online CAD drawings is realized
- torch.nn.SyncBatchNorm.convert_ sync_ Mindspore usage corresponding to batchnorm
- 启牛商学院靠谱吗?讲课老师推荐开华泰账户安全吗
- Several states of the process
- Dynamic kubernetes cluster capacity expansion of airbnb
- Simple use of mongodb database
猜你喜欢

BGP机房和BGP

Pads copper laying

What does it operation and maintenance management mean? How to establish an effective IT operation and maintenance management system?

Free personal virtual machine - AWS free EC2 package

Quartus: install cyclone 10 LP device library for quartus version 17.1
![[Bert] transformer/bert/attention interview questions and answers](/img/32/5d29ce8056df16211630c3384adcf4.png)
[Bert] transformer/bert/attention interview questions and answers

Vscode installation and configuration

How to use measurement data to drive the improvement of code review

Game partner topic: the cooperation between breederdao and monkeyleague kicked off
![[leetcode weekly replay] game 83 biweekly 20220723](/img/db/c264c94ca3307d4363d3cf7f5d770b.png)
[leetcode weekly replay] game 83 biweekly 20220723
随机推荐
===、==、Object. Is basic package type
[mindspore] [xception model] script statement is suspected to be wrong
Harbor installation
How to implement a state machine?
Lambda&Stream
Codeworks round 650 (Div. 3) ABCD solution
This visual is not connected to the presentationsource.
The model needs to use two losses_ FN, how to operate?
Unity3d calls between different script functions or parameters
Wireshark introduction and packet capturing principle and process
Number of palindromes in question 5 of C language deduction (two methods)
Basic functions of tea
Tencent low code platform is officially open source! You can drag and drop and generate mobile phone projects and PC projects! Get private benefits
Cloud native observability tracking technology in the eyes of Baidu engineers
Detailed usage of iperf
R language uses ISNA function to check whether the list and dataframe contain missing values, marks abnormal values in data columns in dataframe as missing values Na, and uses na.omit function to dele
Which bank outlet in Zhejiang can buy REITs fund products?
Uxdb resets the password without knowing the plaintext password
Where is the most formal account opening for futures trading? Capital security?
BisinessCardGen