Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Online Compiler/Editor
wikibooks has a comprehensive tutorial about LaTeX.
TeXample.net has lots of useful example resources for TeX users.
-
LaTeX does not recognize
~
as one's home directory. -
Sometimes these old temporary files generated by LaTeX during compiling can lead LaTeX to failure. So if you don't think there's anything wrong in your LATeX code (especially when the code works well before but it doesn't work now), you might want to delete all these temporary files and then compile LaTeX again. If you're working on a big LaTeX project and there're many subfolders which containing temporary file to be deleted, it's very annoying to deleted them manually. A good is to deleted them recursively using command prompt (in windows) or terminal (in linux).
-
When you define you new commands in LaTeX, you'd better put them after command
\begin{document}
, especially when you import these commands from a existing file, otherwise, LaTeX might fail to find these user-defined commands. -
Usually we don't have to put a string into a quotation mark in LaTeX, however, we have do this if the string contains space(s).
-
Command
\include{}
cannot be nested, and the file being imported cannot contain command\setcounter
. -
You must use
\printanswers
to show contents in solution environment if you use the document classexam
. Note this offers a neat way for controlling the solutions. -
If you use the
hyperref
, then you'd better not use the optiondvipdfm
. Without the optiondvipdfm
, both the commandslatex
andpdflatex
work well; with the optiondvipdfm
, only thelatex
wroks. -
If you want to compile different LaTeX code according to different compiler used, you can use
ifpdf
. In your LaTeX code, you can use the following syntax to achieve the purpose\ifpdf %latex code to be compiled using pdflatex \else %latex code to be compiled using latex \fi
-
Most LaTeX IDEs support user-defined templates, so you can create your own LaTeX templates for different purposes.
-
Sometimes you might want to use a picture or some data table in a PDF document, but you do not have the source picture nor the source LaTeX code. What you can do is to take a snap shot of the part on the PDF using Adobe Reader, copy and paste the snap shot into Word, change the word file into PDF using
Save as ...
function in Word, and then include the PDF pages into the your LaTeX source file. Some PDF viewer softwares (e.g., evince) might also allows you to extract the picture directly. -
When you use environment
align
, you do not have to use&
to align equations manually though can do that. If you don't align equations manually, they will be aligned automatically.
Related Image Converter/Editer
Bibliography Management
Integration with Other Tools
References
http://www.tug.org/books/