The experience of latex beginners

Source: Internet
Author: User

1. Be sure to change lines in time, otherwise latex will not be for you to automatically line indent, on the contrary, if I change the first dozens of words then it will automatically indent for me to line.

2. For the first paragraph indent in Chinese, you can use \usepackage{indentfirst} + \setlength{\parindent}{2em} to achieve

3.\setcounter{section}{-1} to start the chapter from the 0 ordinal

4.\usepackage[top=25mm,left=25mm,right=20mm,bottom=20mm]{geometry} can customize document format

5.\documentclass[a4paper,12pt]{article} can be used to specify paper and common font sizes

6.\USEPACKAGE[DVIPS]{GRAPHICX}

\BEGIN{FIGURE}[!H]% only add [!h] to display below the text
\centering
\includegraphics[width=16cm]{1}
\renewcommand{\figurename}{Diagram}
\label{figure1}
\caption{}
\end{figure}

Can be used to insert an ESP picture, the picture is available in GIMP conversion, and if the reference reference is used, Figure1 cannot be Chinese.

7. The reference number in the main body can be $\,^\mathrm{\cite{id}}$ to achieve the purpose of the superscript, and the other ID can not be Chinese.

8.\renewcommand{\figurename}{Diagram}

\renewcommand{\contentsname}{Directory}
\renewcommand{\abstractname}{Summary}

The English format can be changed to Chinese.

9. If using \usepackage{listings} + \begin{lstlisting} \end{lstlisting} contains code errors, you may wish to try \begin{lstlisting}[extendedchars=true , language=c++] or \begin{lstlisting}[extendedchars=false,language=c++]

If you still have some Chinese annotation problems, try \lstset{basicstyle=\ttfamily,escapechar= '} to set the escape character, and then use the

' Chinese comments on problems ' to solve the problem.

10. On the cover of the class that produces the name of the school number

Can be implemented using \begin{tabular}{l@{}c p{10cm}}.

11. Use vspace{1cm} to produce a Chinese space




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.