the use of Latex for paper writing
2010-03-16 05:49
441 查看
A latex file (.tex) need to have a document type, specified like this "/documentclass{myclass}". Each class has an associated *.cls file in the system directories which is read in at start-up time. If you use some default document class, you do not have to have a separete class file, as they are build-in in miktex (like article.cls in the folder C:/Program Files/MiKTeX 2.8/tex/latex/base).
1, A good software I am using: TeXnicCenter (http://www.texniccenter.org/)
2, To use the figures, one of the most trouble thing -- generating EPS figure!!!
I did the following steps:
1) paste the figures into an ppt file;
2) print this file directly into eps (remember to choose the layout to be landscape, and after you got the .prn file, you can rename it to be .eps);
3) use the following format:
/begin{figure}
/centering
/vspace{0.5in}
/epsfig{file=myfigure.eps, height=2.5in}
/vspace{-2.0in}
/caption{A test caption.}
/end{figure}
(notice that these steps are based on my own laptop, where there is such an option in the Print window "Print to EPS". I do not remember where it is from. maybe it is because I have installed "CutePDF Writer" or "Qicken PDF Printer", as there is no such an option in my desktop.)
this way of generating eps figure will not have any problems like reversed pictures which is hard to adjust -- it ever wasted me a lot of time. You just get what you see in the original figure file, and can use the command of {figure} in latex to reverse the figure any direction you want.
3, To use tables,
Some useful latex table use:
http://en.wikibooks.org/wiki/LaTeX/Tables#The_tabular.2A_environment_-_controlling_table_width
http://www.artofproblemsolving.com/LaTeX/AoPS_L_GuideLay.php#boxes
http://www.latex-community.org/forum/viewtopic.php?f=35&t=803
4, How to set the document size!!!
It is the problem I just understand today. By default, the generated pdf size could be either A4 (8.3*11.7) or Letter(8.5*11). From the conference template, I found my paper size is different from the sample pdf file's, although we are using the same tex file. The effect is, same latex file, but different margins in pdf. Mine does not look like all the others. I googled and find some solutions. This one is best which does not require to change your class file (like setting /pdfpagewidth=8.5in in .tex or .cls) -- http://people.engr.ncsu.edu/txie/publications/writingtools.html. I copy some text directly related here:
If I create a PDF file using
PS2PDF or PDFLaTeX the paper size is changed to Letter instead of A4
(the generated PDF has a narrow top margin)
(or the other way around when the
prefered size is letter)
TeXnicCenter
specific
(1beta
6.31)
:
You can
configure the PS2PDF command line options at menu
"Build->Define Output Profiles..." Click
LaTeX=>PS=>PDF on the
left-size list box, then click Postprocessor tag, click the
"Ghostscript (ps2pdf)" entry in the list box on the right. The
"Arguments" box on the bottom should be put with the following command
line options:
-sPAPERSIZE=a4 -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite
-dPDFSETTINGS=/printer -dMaxSubsetPct=100 -dSubsetFonts=true
-dEmbedAllFonts=true -sOutputFile="%bm.pdf" -c save pop -f "%bm.ps"
where "-sPAPERSIZE=a4" specifies that A4 size is generated.
If your
preferred size is letter instead of A4, you need to replace the "
-sPAPERSIZE=a4" above with "
-sPAPERSIZE=letter".
In addition, add "-t letter" to the command line argument for dvips.
Note that you don't need to put
/pdfpagewidth=8.5in
/pdfpageheight=11in
to the document preamble as some guideline suggests.
1, A good software I am using: TeXnicCenter (http://www.texniccenter.org/)
2, To use the figures, one of the most trouble thing -- generating EPS figure!!!
I did the following steps:
1) paste the figures into an ppt file;
2) print this file directly into eps (remember to choose the layout to be landscape, and after you got the .prn file, you can rename it to be .eps);
3) use the following format:
/begin{figure}
/centering
/vspace{0.5in}
/epsfig{file=myfigure.eps, height=2.5in}
/vspace{-2.0in}
/caption{A test caption.}
/end{figure}
(notice that these steps are based on my own laptop, where there is such an option in the Print window "Print to EPS". I do not remember where it is from. maybe it is because I have installed "CutePDF Writer" or "Qicken PDF Printer", as there is no such an option in my desktop.)
this way of generating eps figure will not have any problems like reversed pictures which is hard to adjust -- it ever wasted me a lot of time. You just get what you see in the original figure file, and can use the command of {figure} in latex to reverse the figure any direction you want.
3, To use tables,
Some useful latex table use:
http://en.wikibooks.org/wiki/LaTeX/Tables#The_tabular.2A_environment_-_controlling_table_width
http://www.artofproblemsolving.com/LaTeX/AoPS_L_GuideLay.php#boxes
http://www.latex-community.org/forum/viewtopic.php?f=35&t=803
4, How to set the document size!!!
It is the problem I just understand today. By default, the generated pdf size could be either A4 (8.3*11.7) or Letter(8.5*11). From the conference template, I found my paper size is different from the sample pdf file's, although we are using the same tex file. The effect is, same latex file, but different margins in pdf. Mine does not look like all the others. I googled and find some solutions. This one is best which does not require to change your class file (like setting /pdfpagewidth=8.5in in .tex or .cls) -- http://people.engr.ncsu.edu/txie/publications/writingtools.html. I copy some text directly related here:
If I create a PDF file using
PS2PDF or PDFLaTeX the paper size is changed to Letter instead of A4
(the generated PDF has a narrow top margin)
(or the other way around when the
prefered size is letter)
TeXnicCenter
specific
(1beta
6.31)
:
You can
configure the PS2PDF command line options at menu
"Build->Define Output Profiles..." Click
LaTeX=>PS=>PDF on the
left-size list box, then click Postprocessor tag, click the
"Ghostscript (ps2pdf)" entry in the list box on the right. The
"Arguments" box on the bottom should be put with the following command
line options:
-sPAPERSIZE=a4 -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite
-dPDFSETTINGS=/printer -dMaxSubsetPct=100 -dSubsetFonts=true
-dEmbedAllFonts=true -sOutputFile="%bm.pdf" -c save pop -f "%bm.ps"
where "-sPAPERSIZE=a4" specifies that A4 size is generated.
If your
preferred size is letter instead of A4, you need to replace the "
-sPAPERSIZE=a4" above with "
-sPAPERSIZE=letter".
In addition, add "-t letter" to the command line argument for dvips.
Note that you don't need to put
/pdfpagewidth=8.5in
/pdfpageheight=11in
to the document preamble as some guideline suggests.
相关文章推荐
- Angel Borja博士教你如何撰写科学论文三:Writing the first draft of your science paper — some dos and don’ts
- (NOT CLEAR)Question 21: Which of the following statements provide a valid reason not to use RTTI for distributed (i.e. networked
- Google has disabled use of the Maps API for this application
- LaTex Templates and Samples for Writing IEEE Conference Paper
- 160 You want to use the automatic management of backup and recovery operations features for your dat
- Schedule for Final paper of the Undergraduate
- 写出完美论文的十个技巧10 Tips for Writing the Perfect Paper
- Writing Efficient CSS for use in the Mozilla UI
- Install multiple instances of Reporting Services on the same computer (for use with Microsoft Dynami
- The Importance of Writing a Paper
- Class for the use of RegQueryInfoKey pinvoke interop in C#
- flask_socket_io中报错RuntimeError: You need to use the eventlet server. See the Deployment section of the documentation for more information.的解决办法
- Eliminate the Use of Temporary Tables For HUGE Performance Gains
- The use of "." or not for current directory, in Java
- Position Paper For the Workshop on Web of Services for Enterprise Computing
- The Note of the Paper "Optimal Decoding of Linear Codes for Minimizing Symbol Error Rate"(1)
- prepare for the provincial time --9.1-- Yet Another Story of Rock-paper-scissors
- Writing the first draft of your science paper — some dos and don’ts
- The best manual of how to use "The easiest Xdebug" addon for Firefox
- Paper Reading: In Defense of the Triplet Loss for Person Re-Identification