The Not So Short
Introduction to L
A
T
E
X 2
ε
Or L
A
T
E
X 2
ε
in 139 minutes
by Tobias Oetiker
Hubert Partl, Irene Hyna and Elisabeth Schlegl
    
ii
        
             
            
           
            without
any warranty       merchantability  fitness for
a particular purpose         
            
             
   
Thank you!
           
 
    
  <partl@mail.boku.ac.at>
Zentraler Informatikdienst der Universität für Bodenkultur Wien
  <Irene.Hyna@bmwf.ac.at>
Bundesministerium für Wissenschaft und Forschung Wien
  <noemail>
in Graz
           
 
ε
   CTAN://info/lshort/german
iv Thank you!
        
              
            
              
             
 
             
  https://github.com/oetiker/lshort    

         
         
         
         
           
          
          
            
           
         
        
          
        
           
         
           
          
          
           
          
           
           
           
         
          
         
         
         
Preface
         
          
           
  

   
   
ε
   
  
       

     
Chapter 1       
ε
 
        
   
      

Chapter 2          
   
    
            
      
Chapter 3      
  
     
    
          

Chapter 4        
  
Chapter 5    
     
           
  
      

  
Chapter 6        
     
    
         

      
vi Preface
              
            
       
            
           
          
 
     Local Guide   
           
      not         
            
 

       
      
 
      
 http://www.ctan.org
          
          
       CTAN:  
        
    
        
  CTAN://systems
             
          
            
   
  <tobi@oetiker.ch>
 
 
 

        
CTAN://info/lshort
Contents
Thank you! iii
Preface v
1 Things You Need to Know 1
       

   

   
     
       
      
     

   
     
      

  
     
     
      
         
    
    
       
       
       
2 Typesetting Text 15
         
        
     
      
       
       
viii CONTENTS
     
        
    
       
       
     e   
       
      
       
      
     
       
       
       
      
     
      
     
       
       
      
       
    
       
       
3 Typesetting Mathematical Formulae 43
  A
M
S
     
     
     
        
          
     
     
     
       
      
       
    
        
     
       
       
       
CONTENTS ix
4 Specialities 73
      
        
       
      
      

      
       
      
      
  
    
       
  
 

       
5 Producing Mathematical Graphics 89
      
  picture    
       
       
      
      
      
 \multiput  \linethickness   
      
       
        
    
        
       
6 Customising L
A
T
E
X 103
        
     
     
     
 
  
        
      
        
       
    
      
       
x CONTENTS
       
     
       
       
       
      
        
A Installing L
A
T
E
X 121
          
      

    

   
 
   
       

    
 
  

   
       
        

        
Bibliography 125
Index 128
List of Figures
 
    
       
         
     test.png   
  fancyhdr      
     beamer      
       
          
List of Tables
      
        
      
   
     
   
          
       
    graphicx    
      
      
       
       
       
       
      
        
      
     
       
     
 A
M
S      
 A
M
S        
     
 A
M
S     
 A
M
S     
 A
M
S      
 A
M
S      
 A
M
S      
       
        
       
xiv LIST OF TABLES
         
       

   
Chapter 1
Things You Need to Know
The first part of this chapter presents a short overview of the philosophy and
history of L
A
T
E
X 2
ε
. The second part focuses on the basic structures of a L
A
T
E
X
document. After reading this chapter, you should have a rough knowledge of
how L
A
T
E
X works, which you will need to understand the rest of this book.
1.1 A Bit of History
1.1.1 T
E
X
           
         
           
          
            
           
            
          
          
            
   π     3.141592653
          

           
     
        
    
 TeX
              
              
   I do not get angry when people pronounce T
E
X in their favorite way
and in Germany many use a soft ch because the X follows the vowel e, not the harder ch
that follows the vowel a. In Russia, ‘tex’ is a very common word, pronounced ‘tyekh’. But I
believe the most proper pronunciation is heard in Greece, where you have the harsher ch of
ach and Loch.
2 Things You Need to Know
1.1.2 L
A
T
E
X
           
     
 
       
   
   
  

        

     LaTeX
ε
  
   LaTeX2e
1.2 Basics
1.2.1 Author, Book Designer, and Typesetter
        
            
           
           
        
            
         
          
   


       

    
     
          
           
   

      
   
    MS Word  LibreOffice    
         
              
   
 
          
            
    
      
      
1.2.2 Layout Design
         
           
         
      
1.2 Basics 3
               
         
   
            
         
             
        
       
      
 
        logical   

     
1.2.3 Advantages and Disadvantages
         
 
    
     
             
            
 
        
 
    
       
    
        
         
         
        
         
     
         
   
      
       
          
The L
A
T
E
X Companion 
       
 
  
4 Things You Need to Know
    
ε
    
         
           
            
;-)
          
       
           
  
         
        
        
1.3 L
A
T
E
X Input Files
  
         
            
            
         
   
  
    
1.3.1 Spaces
          

 Several consecutive     
one           
      
           
Several        one     
                
       
It does not matter whether you
enter one or several spaces
after a word.
An empty line starts a new
paragraph.
       
    
     
               
 
1.3 L
A
T
E
X Input Files 5
1.3.2 Special Characters
          
 
           
           
      
# $ % ^ & _ { } ~ \
            
    
\# \$ \% \^{} \& \_ \{ \} \~{}
\textbackslash
          
          not
         \\   
      \textbackslash  
1.3.3 L
A
T
E
X Commands
          

     \       
        
  
       
         
   
         
          {}  
          
 {} 
         

New \TeX users may miss whitespaces
after a command. % renders wrong
Experienced \TeX{} users are
\TeX perts, and know how to use
whitespaces. % renders correct

    
    


      

          
  { }        
6 Things You Need to Know
          
 [ ]
\command[optional parameter]{parameter}
    
    
   
You can \textsl{lean} on me!
  lean  
Please, start a new line
right here!\newline
Thank you!
     
 
1.3.4 Comments

 %        
              
    
             
    
This is an % stupid
% Better: instructive <----
example: Supercal%
ifragilist%
icexpialidocious
    

 %            
     
       comment  
 verbatim     \usepackage{verbatim}  
          
This is another
\begin{comment}
rather stupid,
but helpful
\end{comment}
example for embedding
comments in your document.
     
   
          

1.4 Input </