    
 
  
 
1 Introduction
  
h t t p : / / o v e r l e a f . c o m /
       
          source le  
               
                  
                 
                
                   
   
1.1 Using Overleaf
              
                  
                  
                 

                 
Overleaf and Trees
         source window         
         preview window        

                
     
                 
         
                  
                 
   
\ d o c u m e n t c l a s s [ 1 2 p t , b o r d e r = 5 p t , v a r w i d t h = t r u e ] { s t a n d a l o n e }
\ u s e p a c k a g e [ T 1 ] { f o n t e n c }
\ u s e p a c k a g e [ l i n g u i s t i c s ] { f o r e s t }
\ b e g i n { d o c u m e n t }
\ b e g i n { f o r e s t }
[ T P
[ D P [ D \ \ t h e ] [ N P [ N \ \ m a n ] ] ]
[ T
[ T \ \ w i l l ]
[ V P
[ V \ \ e a t ]
[ D P [ D \ \ a ] [ N P [ N \ \ b u r g e r ] ] ]
]
]
]
\ e n d { f o r e s t }
\ e n d { d o c u m e n t }
           












                   
Overleaf and Trees
                   
                  
        
f o r e s t
 
2 Some basic things to understand about LaTeX
                 
                 
   
    
     
                
     kind              
     
               
\ doc u m e n t c l a s s
     
\ d o c u m e n t c l a s s
   
s t a n d a l o n e
   
                
                
                 
{ c l a s s - n a m e }

             
s t a n d a l o n e
   

1 2 p t
                
packages            preamble    
    
\ u s e p a c k a g e { }
        
   
\ u s e p a c k a g e [ T 1 ] { f o n t e n c }

\ u s e p a c k a g e [ u t f 8 ] { i n p u t e n c }
  
                 
    
f o r e s t
            
            
3 Tree notation

f o r e s t
              
f o r e s t
  
 Bracketing Rules
    
\ b e g i n { f o r e s t }
  
\ e n d { f o r e s t }
             
            
        
{ f o r e s t }

             
 
\ b e g i n { f o r e s t }
[ D P [D [t h e ] ] [ N P [N [m a n ] ] ] ]
\ e n d { f o r e s t }
Overleaf and Trees
 



                   
                  
               
\ \
  
        
 
\ b e g i n { f o r e s t }
[ D P [D \ \ t h e ] [N P [ N \ \ m a n ] ] ]
\ e n d { f o r e s t }
 



            
\ b e g i n { d o c u m e n t } . . . \ e n d { d o c u m e n t }
           
Overleaf and Trees
                  
                      
                    
     
3.1 How to convert a tree to brackets
                
                      
                  
                  
          
[
TP

[
DP

[
D
]
[
NP

[
N
]]]
[
T’

[
T
]
[
VP

[
V
]
[
DP

[
D
]]
[
NP

[
N
]]]]]]
[ T P
[ D P [D \ \ t h e ] [N P [ N \ \ m a n ]] ]
[ T
[ T \ \ w i l l ]
[ V P
[ V \ \ e a t ]
[ D P [D \ \ a ] [ N P [N \ \ b u r g e r ]] ]
]
]
]
3.2 More
f o r e s t
commands

f o r e s t
              
     
r o o f
             
  
{ . . . }
              
r o o f

Overleaf and Trees
 
\ b e g i n { f o r e s t }
[ T P [D P [{ t h e ma n w i t h th e h a t } , r o o f ] ]
[ T
[ T \ \ w i l l ]
[ V P [ { g o to th e s t o r e t o m o r r o w } , r o o f ] ]
]
]
\ e n d { f o r e s t }
 

    



    
4 Some useful latex commands
                   
    
\
        
  
{ }
           
    
  
𝑖

t $ _ { i } $
  
𝑖

t $ ^ { i } $
       
\ \
          
{ }
                
\ { s o m e te x t \ }
  
     sans serif 
\ s f f a m i l y
     
    italics   
\ t e x t i t { }
    bold   
\ t e x t b f { }
        
\ t e x t s c { }
       
\ t e x t c o l o r { r e d } { }
         
 
Overleaf and Trees
5 Some examples
                 
                
     will  
 
\ b e g i n { f o re s t }
[ T P
[ D P [ D \ \ t h e ] [ N P [ N \ \ m a n ] ] ]
[ T [ T \ \ m i g h t ]
[ V P [ V \ \ e x p e c t ]
[ T P [ D P [ { t h e w o m a n} , r o o f ] ]
[ T
[ T \ \ t o ]
[ V P [ V P
[ V \ \ l e a v e ] [ D P [ D\ \ { \ o } ] [ N P [ N\ \ t o w n ] ] ] ]
[ P P [ P \ \ a f t e r ]
[ D P [ D \ \ t h e ] [ N P [ N \ \ p a r t y ] ] ]
]
] ]
]
]
]
]
\ e n d { f o r e st }

\ b e g i n { f o re s t }
[ T P
[ A d v P [ A d v \ \ u s u a l l y ] ]
[ T P
[ D P [ D \ \ { \ O } ] [ N P\ \ J o h n ] ]
[ T
[ T \ \ \ e m p h {P R E S E N T } ]
[ V P [ V P
[ V \ \ g o e s ] [ P P [ P \ \ t o ]
[ D P [ D \ \ t h e ] [ N P \ \ p a r k ] ]
]
]
[ P P [ P \ \ o n ]
[ D P [ D \ \ { \ O } ] [ N P\ \ T u e s d a y s ] ]
]
]
]
]
]
\ e n d { f o r e st }
Overleaf and Trees

\ b e g i n { f o re s t }
[ T P
[ D P [ N P \ \ H a n a k o ] [ D \ \ g a ] ]
[ T
[ V P
[ C P
[ T P
[ D P [ N P \ \ Y o s h i ] [ D \ \ g a ] ]
[ T
[ V P [ D P [ N P \ \ Y u k i ] [ D \\ - o ] ]
[ V \ \ m i ] ]
[ T \ \ t a ] ] ]
[ C \ \ t o ]
]
[ V \ \ i t ]
]
[ T \ \ t a ]
]
]
\ e n d { f o r e st }
  










 














Overleaf and Trees
 








PRESENT














 























Overleaf and Trees
6 Really advanced stu
               
                  
                
             
         
a m s m a t h
     
 
       
  
\ n e w c o m m a n d { \ S B } [ 1 ] { $ [ \ t e x t { # 1 } ] $ }
  
\ S B { s o m e t e x t }
 
 
                    

\ S B
     
 
\ n e w c o m m a n d { \ S B } [ 1 ] { $ [ \ t e x t { # 1 } ] $ }
\ b e g i n { f o r e s t }
[ T P [D P \ S B { N o m } [D \ \ t h e ] [N P [ N \ \ m a n ] ] ]
[ T [T \ \ w i l l \ \ \ S B { C a s e : N o m } ] [ V P [V \ \ l e f t ] ] ] ]
\ e n d { f o r e s t }
 









                  
   
\ l e f t

\ r i g h t
    
     

$ \ l e f t [ \ b e g i n { a r r a y } { c }
\ t e x t { T e n s e } \ \
\ t e x t { N o m } \ \
\ t e x t { 3 P S g } \ \
\ e n d { a r r a y } \ r i g h t ] $
 



Overleaf and Trees 
7 More information
                  
                   
                
                 
               
          LaTeX and Friends   
  
Appendix How to insert PDF images into MSWord documents
             
                 
               

Overleaf and Trees 