当前位置:网站首页>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 .
边栏推荐
- Principle of data proxy
- Wireshark introduction and packet capturing principle and process
- Screenshot of Baidu map
- 启牛商学院靠谱吗?讲课老师推荐开华泰账户安全吗
- Construction of Seata multilingual system
- jquer $(‘div li‘) $(‘div,li‘) $(‘div>li‘) $(‘div‘,‘li‘)
- MySQL的最左前缀原则
- 分页的相关知识
- How to implement a state machine?
- WPF implements RichTextBox keyword query highlighting
猜你喜欢

Pytorch structure reparameterization repvggblock

Example analysis of enum data type in MySQL

Latest information of 2022 cloud computing skills competition

Kusionstack open source | exploration and practice of kusion model library and tool chain

Construction of Seata multilingual system

Notes on topic brushing (XXII) -- Dynamic Planning: basic ideas and topics

BisinessCardGen
![[mindspore ascend] [running error] graph_ In mode, run the network to report an error](/img/81/9e96182be149aef221bccb63e1ce96.jpg)
[mindspore ascend] [running error] graph_ In mode, run the network to report an error

Introduction to thread pool

Nodejs package
随机推荐
启牛商学院靠谱吗?讲课老师推荐开华泰账户安全吗
Brush questions of binary tree (5)
Free personal virtual machine - AWS free EC2 package
Heavy forecast! Analysys, together with Microsoft and the Central University of Finance and economics, talks about the digital economy
Pads copper laying
Mobile terminal touch event
Improve static loading dynamic loading
7.20 - daily question - 408
GUI basic application
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
Screenshot of Baidu map
Research and Multisim Simulation of linear circuit characteristics (engineering documents attached)
Install and configure php5-7 version under centos7.4
Listing of China graphite: the market value is nearly HK $1.2 billion, achieving a zero breakthrough in the listing of Hegang private enterprises
Redis pipeline technology / partition
Harbor installation
7.18 - daily question - 408
What can testers do when there is an online bug?
Current events on July 20
阿里 Seata 新版本终于解决了 TCC 模式的幂等、悬挂和空回滚问题