Latex Usage Troubleshooting

Source: Internet
Author: User

Latex Usage Troubleshooting

1. Question: How do I generate PS (PostScript) files?
Answer: There are two ways
(1) With dvips This tool, in the WinEdt editor has a special button;
(2) If using a Windows system, install HP LaserJet 4/4m PostScript in the printer
Drivers. When you browse the DVI file, print to the file. The file is saved as *.PRN,
You just have to change him to *.ps.
2. Question: How do i insert an image?
Answer: I know the way there is,
(1) Use the Img2cct.exe tool under Emtex.
First change the image to monochrome bmp, you can do this with a paintbrush, reminding you to save it as a
Monochrome graphs. For example, there is a monochrome BMP file Test.bmp, and then execute the command: Img2cct test.bmp-t3-c0
Specific IMG2CCT parameters, you can directly execute "img2cct.exe" to view, and finally the Img2cct.exe generated
Copy the code of the Test.tex file into your article and adjust the location appropriately.
(2) Users using scientific WorkPlace (Word), as long as the menu File/import picture
function on the line.
(3) using the drawing software Latexcad, the diagram can be directly converted into latex language.
(4) Use the software to save the image format as PS format.
\USEPACKAGE{GRAPHICX}
\begin{document}
\INCLUDEGRAPHICS{YOUR.PS}
\end{document}
3. Question: Many articles now have theorems, definitions, inferences, and examples that are numbered in a uniform number, and are no longer separate numbers, such as
The definition of 1.1, followed by the theorem 1.2, and then inferred 1.3 How to do a general framework environment, to achieve this
What about the automatic numbering?
Answer: \newtheorem{athm}{\heiti \t}[section]
\newenvironment{thm} [1] {\def\t{#1}
\begin{athm} \fangsong \rm} {\end {athm}}
You can use the following in the text:
\begin{thm}{definition}
\end{thm}
Or begin{thm}{theorem}
\end{thm} and so on.
4. Problem: In the formula or theorem, the definition number, I do not want to follow the original format, such as Theorem 4.2, and want to use
Theorem 4.1.2. Or the direct theorem 123, how to modify it?
Answer: Redefine the label with \renewcommand.
\renewcommand {\theequation} {\arabic{chapter}.
\arabic{section}.\arabic{eqation}
Redefining the label becomes 4.1.2. (Section and subsection in article style)
5. Question: How do I use different font sizes and fonts? How do I use two pages in Chinese and English? (Just like a book)
What are the options and formats behind \documentstyle?
Answer: (1) about the font size, if you want to change the size of the entire article. The simplest way is to put the first sentence
\documentstyle[options in]{format} are modified.
(Options are ..., 9pt,10pt (default), 11pt,...; Twoside,twocolumn,proc,oneside (default);
Leqno (default), FLEQN,EPSF. Formatted with Book,report,article,letter;cbook,carticle,...)
(2) If you want to choose two pages, use Twoside, (cbook default is Twoside, page number on top, chapter of the first page of the next.
(3) in the body of a place to change the size of the font, English with
\tiny, \scriptsize, \footnotesize, \small, \normalize,\large, \large, \large,
\huge, \huge
Chinese with \zihao{n} here n desirable values: 0 (first number), 1 (a number), 2 (second), 3 (third),
4 (fourth), 4 (small four), 5,-5,6,7, etc.
(4) About fonts, English commonly used: \BF blackbody, \rm Rome, \sl Italic, \cal flower body, \SC, \it formula default,
\SF and other line bodies. Chinese commonly used: \songti, \kaishu, \heiti, \fangsong, \biaosong,.
5. Question: How does LaTeX generate a directory?
Answer: 1. It is best to define the table of contents form, beautiful and convenient, the following is a definition of a few, you might as well try
(1) \def\mla#1#2#3{\par\noindent\hspace*{1 true cm}\parbox[b]{12.3 true cm}
{\protect\hspace*{-1 true cm}{#1}\quad{#2}~\dotfill~}
\hbox to1.0 true cm{~ (\HSS#3\HSS)}\vspace{2mm}}
(2) \def\mlb#1#2#3{\par\noindent\hspace*{1 true cm}\parbox[b]{12.3 true cm}
{\protect\hspace*{-1 true cm}{#1}~\dotfill~\hbox{#2}}
\hbox to1.0 true cm{~ (\HSS#3\HSS)}\vspace{2mm}}
(3) \def\mlc#1#2{\par\noindent\hspace*{1 true cm}\parbox[b]{12.3 true cm}
{\protect\hspace*{-1 true cm}\quad{#1}~\dotfill~}
\hbox to1.0 true cm{~ (\HSS#2\HSS)}\vspace{2mm}}
(4) \def\mld#1#2{\par\noindent\hspace*{1 true cm}\parbox[b]{12.3 true cm}
{\protect\hspace*{-1 true cm}\quad{#1}~\hfill~}
\hbox to1.0 true cm{~ (\HSS#2\HSS)}\vspace{2mm}}
2. Use the following methods:
\mla{title}{author}{page No.}
The result: Title author .......... (Page No.)
\mlb{title}{author}{page No.}
The effect: Title ... author ..... .....---------(page No.)
\mlc{title}{page No.}
The effect: Title ................ (Page No.)
\mld{title}{page No.}
Effect: Title (Page No.)
6. Question: How do you make a formula number in Latex (1.2) in this format?
Answer: \documentclass{article}
\usepackage{amsmath}
\numberwithin{equation}{section}
\begin{document}
\section{my section}
\begin{equation}
X^2+y^2=1
\end{equation}
\end[document]
7. Question: How do I convert a Word document into a latex format?
Answer: With mathtype5.0, double-click the formula to open the Formula Editor, set menu Preferences->translators
Translate to another language: Select latex2.09 and later, uncheck include translator
Name and include MathType data select the entire formula, ^c, to Notepad inside ^v on the line.
Six Latex Resources
All Tex software is free, the most famous websites in China are: (1) http://www.ctex.org ;
(2) Http://texhome.dhs.org/texhome . The two sites contain the Tex software you need and related
Auxiliary tools, specific grammar guidance, online grammar reference books and so on.
Reference documents
[1] Latex Intelligent Technology typesetting system, Feng Weiguo authoring, Tongji University Press, 1993.
[2] Introduction to TeX, Ams-tex and latex use, Li Yong, Higher Education Press, 2000.
[3] LATEX2E Technology Typesetting Guide, Deng Jiansong Peng slowly Chen Changsong, Science Press, 2001


From:http://blog.sina.com.cn/s/blog_4b6a68ac010007c2.html

Latex Usage Troubleshooting

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.