当前位置:网站首页>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 .
边栏推荐
- Find the median of two numbers in the fourth question of C language deduction (three methods)
- Install and configure php5-7 version under centos7.4
- Financial RPA robot enables enterprises to open a new era of intelligence
- Introduction to thread pool
- C language force buckle the flipped number of question 7. Violence Act
- How to better use the touchpad of notebook
- The number of palindromes in question 9 of C language deduction. Two pointer array traversal method
- Mobile terminal touch event
- Unity image control and rawimage
- Nodejs package
猜你喜欢

Join MotoGP Monster Energy British Grand Prix!

js && ||

Harbor installation

Quartus:17.1版本的Quartus安装Cyclone 10 LP器件库

How to implement a state machine?

Esp32 OLED lvgl displays common Chinese characters

自动化测试系列-Selenium三种等待详解

Latest information of 2022 cloud computing skills competition
![[performance optimization] MySQL common slow query analysis tools](/img/97/c7604282544c5fa8cd7e85a6ab9154.png)
[performance optimization] MySQL common slow query analysis tools

This visual is not connected to the presentationsource.
随机推荐
Tencent low code platform is officially open source! You can drag and drop and generate mobile phone projects and PC projects! Get private benefits
Method properties of ASP adodb.stream object
第四章 驱动子系统开发
Number of palindromes in question 5 of C language deduction (two methods)
ROS机械臂 Movelt 学习笔记3 | kinect360相机(v1)相关配置
Director of Shanghai Bureau of culture and Tourism: safety is the lifeline of culture and tourism, and we are seizing the new track of yuancosmos
Add the two numbers in the linked list of the second question of C language. Ergodic method
Harbor installation
C language force buckle the flipped number of question 7. Violence Act
Divide 300000 bonus! Deeperec CTR model performance optimization Tianchi challenge is coming
The leftmost prefix principle of MySQL
[mindspore] [xception model] script statement is suspected to be wrong
How to better use the touchpad of notebook
Find the median of two numbers in the fourth question of C language deduction (three methods)
C language force buckle the eighth question of string conversion integer. Ergodic method
What is iftmcs indicating contract status message?
Example analysis of enum data type in MySQL
asp rs.open sql,conn,3,1中3,1代表什么?
分页的相关知识
Measurement and Multisim Simulation of volt ampere characteristics of circuit components (engineering documents attached)