"Latex" e meow new Latex Starter Tutorial (1) Prepare the article

Source: Internet
Author: User
Tags cos

The lights out yesterday is really a pit father. Previously review "Latex" e meow new Latex Starter Tutorial (1) Prepare for the article
"Latex" e Meow latex novice Beginner Tutorial (2) Basic typesetting previous Test answer 1. It must have been \latex{}er at first. In fact, \latex er can also.
2.\latex{} er or \latex\ er math mode Now we're going to insert some mathematical formulas into the document, and in normal terms, the characters in the math formula are usually italic, and we're going to use \ Textit a little bit to turn the text that needs to change into italics this is obviously a very grave thing. The creator of Tex High grandfather said he made Tex out of the typesetting of science and technology articles, for the mathematical formula so common things, must find ways to lazy. Thus, at the beginning of the creation, Tex had a mathematical model of typesetting normal text and typesetting mathematical formulas. As long as in the mathematical model, you can very lazy to play the mathematical formula. Tip: In math mode, Latex ignores all spaces and returns. So the space to enter anything to use. Inline and inline formulas if we want to insert a formula, put the formula between $ and $. God Lian says that $a +b=c$. We use \ (and \) to start and end math patterns as well. The above code can also be written as God Lian says that \ (a+b=c\). Well, the philosopher of the god ♂ learn the truth. Such formulas can be interspersed within the body, so called inline formulas. In addition to this formula, we can often find another type of formula in the literature, which has a single line and is centered, and some are numbered for other parts to refer to. This is obviously not the simple question you →_→ with the center environment. For this formula we call it the formula of the lines. The method for generating the lines formula is:

    1. Use \[and \] to surround the formula. This generates an inline formula with no numbering.
    2. Use the equation environment. This generates an inline formula with an AutoNumber.
    3. Use the equation* environment. This generates an inline formula with no numbering.

You may have read some references to the use of $$...$$ to generate an inline formula. This method is not a Latex method but Tex, which may produce potential forms of confusion hidden. Give me a chestnut. God Lian says that $a +b=c$.

God Lian says that
\[
A+b=c
\]
is a philosophical theorem.

God Lian says that
\begin{equation}
A+b=c
\LABEL{EQ:ABC}
\end{equation}
is a philosophical theorem.

Equation (\ref{eq:abc}) is God Lian's philosophical theorem. Here we come across something new: \label and \ref. The role of the two goods is a legendary cross-reference. The \label{tag name} is placed in an environment that can be referenced by graphs, tables, formulas, and so on, and it has a parameter that is the label name. You can then use the \ref{tag name} anywhere in the document to automatically get the number of the Graph/table/formula. Note: All cross-referenced items (including directories) must be compiledtwo timeswill only take effect.
If you use Kile this ide,kile will automatically compile it for you two times. Mathematical symbols Home travel kill anyone essential Amsmath macro package Amsmath is the AMS provided by the Mathematical class macro package, to fill the latex itself with less mathematical symbols, fewer formats and so many shortcomings, so as long as the mathematical formula, it must be used. So if your article contains a mathematical formula. \usepackage{amsmath} In the introduction area add it, not dead. (Amsmath will conflict with some other macro packages in rare cases.) But it doesn't usually happen. →_→) The following is a hypothetical scenario where you have already used the Amsmath macro package. Fractions, superscripts, radicals we usually use the text to express the superscript and subscript often using the "2^32" or "a_2" format. This handy format is also used in the Latex math model. However, the ^_ symbol for Latex is only valid for one character after it. If there is a lot of content in the superscript, you must enclose them with curly braces {}. Give me a chestnut. $2^32,a_12$

$2^{32},a_{12}$ can be used at the same time and in nested nesting. $a _2^{2^{2^2}}$ as to the score. Can be obtained using the \frac{numerator} {denominator}. 1+\frac{1}{2+\frac{1}{3+\frac{1}{4+\frac{1}{5+\dots}}}} We can see that the denominator of this fraction is getting smaller. This is actually for the sake of typesetting beautiful. If you do not feel that it is awkward, you can use \dfrac instead of \frac to make the fraction into a normal size (need to amsmath macro package). Radicals can be generated using \SQRT. It has an optional option to indicate how many times it is open. $\sqrt{a+b}$

$\sqrt[3]{a+b}$ various symbols: For example, we know 3x5=15, want to export this formula in Latex, use search * Input method to hit X,latex is absolutely not recognized. To add a variety of symbols to a mathematical formula, you need to remember the control sequence that each symbol corresponds to. For example, if we want to play a multiplication sign, we need to use \times in math mode to get multiplication sign. Most ides have buttons for inserting mathematical symbols on menus or toolbars for the sake of laziness, but if you memorize the control sequences of these symbols, you will be much faster than pressing the button. The following figure is the Math toolbar for TeXnicCenter. The following mathematical symbol table is derived from document Lshort, a good latex tutorial (unfortunately not in Chinese). If you want to see this document directly, for Tex live users, you can perform texdoc lshort-zh-cn to view it. The symbols are too many to remember. You can remember only a few common symbols. If you can't remember, you can check the documentation. In the Tex live system, there is a document that contains almost all of the symbols, not only in mathematical mode, but also in text mode. Look at it this way: Texdoc symbols-a4 This document to see if the classification is OK, if you specifically want to find a specific symbol. It's our turn to be the big killer: legendary you can find a magical website of symbolic control sequences when you encounter symbols that are not entered, draw the symbols on the left-hand side of the artboard, and it will automatically help you find the appropriate input method for the symbol. The symbol table above the giant operator already has the notation of summation \sum, integral \int, and even multiplication \prod, as long as they are added to the upper and lower bounds according to the syntax of the superscript and subscript, they can become the upper and lower limit of them directly. So what if double integrals? If we use \int\int. Will get this thing. This is really .... Hang Daddy! In fact.. \[
\iint
\]

\[
\iiint
\] These two symbols are in the Amsmath macro package. In addition, closed integral \oiint in other macro package, we can go to symbols-a4 to find. Matrices need to use the array environment to generate matrices in mathematical mode. How to use the array environment: \begin{array}{Alignment}
First line: \\
Second line: \\
Last line:
\end{array} where alignment refers to how each column is aligned. C refers to the center, l refers to the left, R refers to the right. In the middle of each column you can use | or | | To represent single and double separators, or not. Each item in a row is separated by &, and the number of items in each row must be the same as the number specified for the alignment. If there is nothing to write about, then write A & can give a chestnut. \[
\begin{array}{c|c| | C
X_{11} & x_{12} & \ldots \ \
\hline
X_{21} & x_{22} & \ldots \ \
\hline\hline
\vdots & \vdots & \ddots
\end{array}
\] Delimiter saying that there are brackets on both sides of the matrix. So you need to add two extra-large brackets around the matrix to the other side. \[
\left (
\begin{array}{c|c| | C
X_{11} & x_{12} & \ldots \ \
\hline
X_{21} & x_{22} & \ldots \ \
\hline\hline
\vdots & \vdots & \ddots
\end{array}
\right)
\] We use the \left< symbol > and the \right< symbol, and you can get the left and right delimiters that match the size of the brackets around the object. For the delimiter, you play what symbol is what symbol, so \left (get the left parenthesis, \right (GET or left parenthesis →_→ available have () [] \{\} | \| (double line) delimiter of the left and right can be arbitrarily selected, side parenthesis side square brackets can also. Note, however, that curly braces are used \{and \}, such as \left\{, otherwise it becomes a passing parameter ... There is also a hidden delimiter \left. and \right. They are invisible. So you can use them to make things that have a delimiter on one side. For fractions, it is also necessary to use the left and right delimiters to enclose the two sides of the fraction in order to be beautiful. The concrete effect is that you know which one to use. \[
(\frac{a}{b}) ^2
\]

\[
\left (\frac{a}{b}\right) ^2
\] Multi-line formula equations and something. For this kind of thing. How it's written, everyone can guess ........ Someone must have thought of a way to add an array environment with the left curly brace to the right without the delimiter. Hey, you won't be lazy. \[
x=
\begin{cases}
A, & X\le 5\\
B, & X>5
\end{cases}
\] True • Multi-line formula using the aligned environment, you can make the alignment of the multi-line formula. \[
\begin{aligned}
(a+b) ^2 &= (a+b) (a+b) \ \
&= a^2+2ab+b^2
\end{aligned}
You may see some documents referring to the Eqnarray environment. This environment is outdated and not recommended for use. Special mathematical fonts look at a formula: \[
\int x DX
\] This typesetting is actually slightly unscientific. The more scientific effect is this: it has two differences from the previous one:

    1. There's a small space in front of D.
    2. D is traditional.

So first we'll put some spaces in front of D. These spaces are available for use in latex math mode: \quad is the width of an empty lead block, which is used for typesetting at that time. It's about the width of the letter M. \qquad=2 a \quad, and \,\:\, respectively, to produce 3/18, 4/18, 5/18 \quad-sized spaces. \! generates-1/6 \quad spaces, which is the effect of a backspace. Here we use \; ok. The code becomes \int x\;d x and then we turn D into positive. This is to insert a font for the Roman font family, so use \mathrm{d} to generate a positive d. \int X\;\mathrm{d}xok, the beautiful formula comes out. In addition to \MATHRM's ability to generate traditional text, \MATHBF can generate traditional bold text. In addition there are a variety of fancy mathematical fonts. Some of the math functions that we all love to use. In mathematical formulas, sin and cos are all traditional, and they are not made out of \MATHRM. You can use \sin, \cos, etc... Give me a chestnut. \[
\lim_{x\to0}\frac{x}{\sin x}
And then there's no more. Next trailer: Insert pictures and tables ... With them basically writing a formal document is no problem.

from:http://blog.renren.com/share/407476619/17831977575

"Latex" e meow new Latex Starter Tutorial (1) Prepare the article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.