当前位置:网站首页>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 .
边栏推荐
- Detailed explanation of alexnet of paddlepaddle paper series (with source code)
- Several states of the process
- 进程的几种状态
- Advanced multithreading (Part 2)
- How to implement a state machine?
- Breederdao's first proposal was released: the constitution of the Dao organization
- Tencent low code platform is officially open source! You can drag and drop and generate mobile phone projects and PC projects! Get private benefits
- Redis pipeline technology / partition
- Dynamic programming-01 knapsack rolling array optimization
- asp rs.open sql,conn,3,1中3,1代表什么?
猜你喜欢

Quartus: install cyclone 10 LP device library for quartus version 17.1

Wireshark introduction and packet capturing principle and process

mysql初次安装的root密码是什么

如果实现与在线CAD图中的线段实时求交点

C # "learning code snippet" - recursively obtain all files under the folder

What is iftmcs indicating contract status message?

Breederdao's first proposal was released: the constitution of the Dao organization

Pytorch structure reparameterization repvggblock
![[mindspore] [training warning] warning when executing training code](/img/5a/978889301bdd02d6474c6e5723ad97.jpg)
[mindspore] [training warning] warning when executing training code

The model needs to use two losses_ FN, how to operate?
随机推荐
GUI basic application
Nodejs package
Verification of Kirchhoff's law and Multisim Simulation (engineering documents attached)
7.19 - daily question - 408
Codeworks round 651 (Div. 2) ABCD solution
On let variable promotion
Chapter III kernel development
Cloud native observability tracking technology in the eyes of Baidu engineers
Simple use of mongodb database
Educational codeforces round 89 (rated for Div. 2) ABC problem solution
分页的相关知识
自动化测试系列-Selenium三种等待详解
Add the two numbers in the linked list of the second question of C language. Ergodic method
Solution to the shortest Hamilton path problem
Wireshark introduction and packet capturing principle and process
Find the median of two numbers in the fourth question of C language deduction (three methods)
A string "0" was actually the culprit of the collapse of station b
第三章 内核开发
Educational events
Multi table query of SQL