SlideShare a Scribd company logo
A
                             Introduction to LTEX
                                  Session #1

                         Oriol Borrega       Pedro Tiago Martins

                                 Universitat de Barcelona


                                  January 14, 2013




Borrega & Martins (UB)                           A
                                 Introduction to L TEX Session #1   January 14, 2013   1 / 39
Outline
1   Preliminary Remarks
      How a scientific document must be
2            A
    Why use LTEX instead of a Word Processor?
                   A
     Advantages of LTEX
                      A
     Disadvantages of LTEX
              A X is good at and appropriate for
     Things LTE
              A
     Things LTEX is bad at or not appropriate for
3           A
    What is LTEX ?
     History
         TEX
         A
         LTEX
4       A
    How LTEX works
           A
      How LTEX documents are created
                               A
      The basic structure of a LTEX document
5   A
    LTEX commands and a small document
    Borrega & Martins (UB)   Introduction to L TEX Session #1
                                             A                  January 14, 2013   2 / 39
Preliminary Remarks

Outline
1   Preliminary Remarks
      How a scientific document must be
2            A
    Why use LTEX instead of a Word Processor?
                   A
     Advantages of LTEX
                      A
     Disadvantages of LTEX
              A X is good at and appropriate for
     Things LTE
              A
     Things LTEX is bad at or not appropriate for
3           A
    What is LTEX ?
     History
         TEX
         A
         LTEX
4       A
    How LTEX works
           A
      How LTEX documents are created
                               A
      The basic structure of a LTEX document
5   A
    LTEX commands and a small document
    Borrega & Martins (UB)        Introduction to L TEX Session #1
                                                  A                  January 14, 2013   3 / 39
Preliminary Remarks   How a scientific document must be

A scientific document must be:


   Structured
           identification (of the author and of the work)
           (optional) table of contents
           well-defined and well-placed sections, paragraphs, footnotes, lists,
           figures, etc.. . .
           references
   Readable
           approx. 66 characters per line (there are actually studies on this. . . )
           large margins (for A4 size paper or similar) or two columns
           serif font for main text
           no underlining for emphasis (underlining was widely used in the past
           when emphasis had to be added manually, after the writing was done)
           no variation between elements of the same kind



  Borrega & Martins (UB)                        A
                                Introduction to L TEX Session #1                January 14, 2013   4 / 39
Preliminary Remarks   How a scientific document must be

A scientific document must be:


   Structured
           identification (of the author and of the work)
           (optional) table of contents
           well-defined and well-placed sections, paragraphs, footnotes, lists,
           figures, etc.. . .
           references
   Readable
           approx. 66 characters per line (there are actually studies on this. . . )
           large margins (for A4 size paper or similar) or two columns
           serif font for main text
           no underlining for emphasis (underlining was widely used in the past
           when emphasis had to be added manually, after the writing was done)
           no variation between elements of the same kind



  Borrega & Martins (UB)                        A
                                Introduction to L TEX Session #1                January 14, 2013   4 / 39
Preliminary Remarks   How a scientific document must be

A scientific document must be:


   Structured
           identification (of the author and of the work)
           (optional) table of contents
           well-defined and well-placed sections, paragraphs, footnotes, lists,
           figures, etc.. . .
           references
   Readable
           approx. 66 characters per line (there are actually studies on this. . . )
           large margins (for A4 size paper or similar) or two columns
           serif font for main text
           no underlining for emphasis (underlining was widely used in the past
           when emphasis had to be added manually, after the writing was done)
           no variation between elements of the same kind



  Borrega & Martins (UB)                        A
                                Introduction to L TEX Session #1                January 14, 2013   4 / 39
Preliminary Remarks   How a scientific document must be

A scientific document must be:


   Structured
           identification (of the author and of the work)
           (optional) table of contents
           well-defined and well-placed sections, paragraphs, footnotes, lists,
           figures, etc.. . .
           references
   Readable
           approx. 66 characters per line (there are actually studies on this. . . )
           large margins (for A4 size paper or similar) or two columns
           serif font for main text
           no underlining for emphasis (underlining was widely used in the past
           when emphasis had to be added manually, after the writing was done)
           no variation between elements of the same kind



  Borrega & Martins (UB)                        A
                                Introduction to L TEX Session #1                January 14, 2013   4 / 39
Preliminary Remarks   How a scientific document must be

A scientific document must be:


   Structured
           identification (of the author and of the work)
           (optional) table of contents
           well-defined and well-placed sections, paragraphs, footnotes, lists,
           figures, etc.. . .
           references
   Readable
           approx. 66 characters per line (there are actually studies on this. . . )
           large margins (for A4 size paper or similar) or two columns
           serif font for main text
           no underlining for emphasis (underlining was widely used in the past
           when emphasis had to be added manually, after the writing was done)
           no variation between elements of the same kind



  Borrega & Martins (UB)                        A
                                Introduction to L TEX Session #1                January 14, 2013   4 / 39
Preliminary Remarks   How a scientific document must be

A scientific document must be:


   Structured
           identification (of the author and of the work)
           (optional) table of contents
           well-defined and well-placed sections, paragraphs, footnotes, lists,
           figures, etc.. . .
           references
   Readable
           approx. 66 characters per line (there are actually studies on this. . . )
           large margins (for A4 size paper or similar) or two columns
           serif font for main text
           no underlining for emphasis (underlining was widely used in the past
           when emphasis had to be added manually, after the writing was done)
           no variation between elements of the same kind



  Borrega & Martins (UB)                        A
                                Introduction to L TEX Session #1                January 14, 2013   4 / 39
Preliminary Remarks   How a scientific document must be

A scientific document must be:


   Structured
           identification (of the author and of the work)
           (optional) table of contents
           well-defined and well-placed sections, paragraphs, footnotes, lists,
           figures, etc.. . .
           references
   Readable
           approx. 66 characters per line (there are actually studies on this. . . )
           large margins (for A4 size paper or similar) or two columns
           serif font for main text
           no underlining for emphasis (underlining was widely used in the past
           when emphasis had to be added manually, after the writing was done)
           no variation between elements of the same kind



  Borrega & Martins (UB)                        A
                                Introduction to L TEX Session #1                January 14, 2013   4 / 39
Preliminary Remarks   How a scientific document must be

A scientific document must be:


   Structured
           identification (of the author and of the work)
           (optional) table of contents
           well-defined and well-placed sections, paragraphs, footnotes, lists,
           figures, etc.. . .
           references
   Readable
           approx. 66 characters per line (there are actually studies on this. . . )
           large margins (for A4 size paper or similar) or two columns
           serif font for main text
           no underlining for emphasis (underlining was widely used in the past
           when emphasis had to be added manually, after the writing was done)
           no variation between elements of the same kind



  Borrega & Martins (UB)                        A
                                Introduction to L TEX Session #1                January 14, 2013   4 / 39
Preliminary Remarks   How a scientific document must be

A scientific document must be:


   Structured
           identification (of the author and of the work)
           (optional) table of contents
           well-defined and well-placed sections, paragraphs, footnotes, lists,
           figures, etc.. . .
           references
   Readable
           approx. 66 characters per line (there are actually studies on this. . . )
           large margins (for A4 size paper or similar) or two columns
           serif font for main text
           no underlining for emphasis (underlining was widely used in the past
           when emphasis had to be added manually, after the writing was done)
           no variation between elements of the same kind



  Borrega & Martins (UB)                        A
                                Introduction to L TEX Session #1                January 14, 2013   4 / 39
Preliminary Remarks   How a scientific document must be

A scientific document must be:


   Structured
           identification (of the author and of the work)
           (optional) table of contents
           well-defined and well-placed sections, paragraphs, footnotes, lists,
           figures, etc.. . .
           references
   Readable
           approx. 66 characters per line (there are actually studies on this. . . )
           large margins (for A4 size paper or similar) or two columns
           serif font for main text
           no underlining for emphasis (underlining was widely used in the past
           when emphasis had to be added manually, after the writing was done)
           no variation between elements of the same kind



  Borrega & Martins (UB)                        A
                                Introduction to L TEX Session #1                January 14, 2013   4 / 39
Preliminary Remarks   How a scientific document must be

A scientific document must be:


   Structured
           identification (of the author and of the work)
           (optional) table of contents
           well-defined and well-placed sections, paragraphs, footnotes, lists,
           figures, etc.. . .
           references
   Readable
           approx. 66 characters per line (there are actually studies on this. . . )
           large margins (for A4 size paper or similar) or two columns
           serif font for main text
           no underlining for emphasis (underlining was widely used in the past
           when emphasis had to be added manually, after the writing was done)
           no variation between elements of the same kind



  Borrega & Martins (UB)                        A
                                Introduction to L TEX Session #1                January 14, 2013   4 / 39
Preliminary Remarks   How a scientific document must be

A scientific document must be:


   Structured
           identification (of the author and of the work)
           (optional) table of contents
           well-defined and well-placed sections, paragraphs, footnotes, lists,
           figures, etc.. . .
           references
   Readable
           approx. 66 characters per line (there are actually studies on this. . . )
           large margins (for A4 size paper or similar) or two columns
           serif font for main text
           no underlining for emphasis (underlining was widely used in the past
           when emphasis had to be added manually, after the writing was done)
           no variation between elements of the same kind



  Borrega & Martins (UB)                        A
                                Introduction to L TEX Session #1                January 14, 2013   4 / 39
Why use L TEX instead of a Word Processor?
                     A


Outline
1   Preliminary Remarks
      How a scientific document must be
2            A
    Why use LTEX instead of a Word Processor?
                   A
     Advantages of LTEX
                      A
     Disadvantages of LTEX
              A X is good at and appropriate for
     Things LTE
              A
     Things LTEX is bad at or not appropriate for
3           A
    What is LTEX ?
     History
         TEX
         A
         LTEX
4       A
    How LTEX works
           A
      How LTEX documents are created
                               A
      The basic structure of a LTEX document
5   A
    LTEX commands and a small document
    Borrega & Martins (UB)               Introduction to L TEX Session #1
                                                         A                  January 14, 2013   5 / 39
Why use L TEX instead of a Word Processor?
                   A


        A
Why use LTEX instead of a Word Processor?




                                     A
   Before seeing how to actually use LTEX , let’s look at some of its
   advantages and disadvantages in relation to Word Processors.




  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1   January 14, 2013   6 / 39
Why use L TEX instead of a Word Processor?
                   A


        A
Why use LTEX instead of a Word Processor?




                                     A
   Before seeing how to actually use LTEX , let’s look at some of its
   advantages and disadvantages in relation to Word Processors.




  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1   January 14, 2013   6 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Advantages of L TEX
                                                                      A


              A
Advantages of LTEX
                                                         A
   portability (since it’s just a plain text document, a LTEX file can be
   written and saved in any device—personal computer, tablet,
   smartphone, toaster—with any operating system, as long as there’s a
   text editor available)
   does not require a lot of processing power, which makes it basically
   crash-proof and extremely stable
   backwards compatibility/longevity (a file written in the late 80s will
                                      A
   work on a 2013 installation of LTEX , and probably the same will be
   true 20 years from now)
   very good reference management
   very high typesetting quality
   default document classes that make the work easier (such as
   article, book, etc.)
   it’s free software
   almost full separation of content and form
  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1       January 14, 2013   7 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Advantages of L TEX
                                                                      A


              A
Advantages of LTEX
                                                         A
   portability (since it’s just a plain text document, a LTEX file can be
   written and saved in any device—personal computer, tablet,
   smartphone, toaster—with any operating system, as long as there’s a
   text editor available)
   does not require a lot of processing power, which makes it basically
   crash-proof and extremely stable
   backwards compatibility/longevity (a file written in the late 80s will
                                      A
   work on a 2013 installation of LTEX , and probably the same will be
   true 20 years from now)
   very good reference management
   very high typesetting quality
   default document classes that make the work easier (such as
   article, book, etc.)
   it’s free software
   almost full separation of content and form
  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1       January 14, 2013   7 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Advantages of L TEX
                                                                      A


              A
Advantages of LTEX
                                                         A
   portability (since it’s just a plain text document, a LTEX file can be
   written and saved in any device—personal computer, tablet,
   smartphone, toaster—with any operating system, as long as there’s a
   text editor available)
   does not require a lot of processing power, which makes it basically
   crash-proof and extremely stable
   backwards compatibility/longevity (a file written in the late 80s will
                                      A
   work on a 2013 installation of LTEX , and probably the same will be
   true 20 years from now)
   very good reference management
   very high typesetting quality
   default document classes that make the work easier (such as
   article, book, etc.)
   it’s free software
   almost full separation of content and form
  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1       January 14, 2013   7 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Advantages of L TEX
                                                                      A


              A
Advantages of LTEX
                                                         A
   portability (since it’s just a plain text document, a LTEX file can be
   written and saved in any device—personal computer, tablet,
   smartphone, toaster—with any operating system, as long as there’s a
   text editor available)
   does not require a lot of processing power, which makes it basically
   crash-proof and extremely stable
   backwards compatibility/longevity (a file written in the late 80s will
                                      A
   work on a 2013 installation of LTEX , and probably the same will be
   true 20 years from now)
   very good reference management
   very high typesetting quality
   default document classes that make the work easier (such as
   article, book, etc.)
   it’s free software
   almost full separation of content and form
  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1       January 14, 2013   7 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Advantages of L TEX
                                                                      A


              A
Advantages of LTEX
                                                         A
   portability (since it’s just a plain text document, a LTEX file can be
   written and saved in any device—personal computer, tablet,
   smartphone, toaster—with any operating system, as long as there’s a
   text editor available)
   does not require a lot of processing power, which makes it basically
   crash-proof and extremely stable
   backwards compatibility/longevity (a file written in the late 80s will
                                      A
   work on a 2013 installation of LTEX , and probably the same will be
   true 20 years from now)
   very good reference management
   very high typesetting quality
   default document classes that make the work easier (such as
   article, book, etc.)
   it’s free software
   almost full separation of content and form
  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1       January 14, 2013   7 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Advantages of L TEX
                                                                      A


              A
Advantages of LTEX
                                                         A
   portability (since it’s just a plain text document, a LTEX file can be
   written and saved in any device—personal computer, tablet,
   smartphone, toaster—with any operating system, as long as there’s a
   text editor available)
   does not require a lot of processing power, which makes it basically
   crash-proof and extremely stable
   backwards compatibility/longevity (a file written in the late 80s will
                                      A
   work on a 2013 installation of LTEX , and probably the same will be
   true 20 years from now)
   very good reference management
   very high typesetting quality
   default document classes that make the work easier (such as
   article, book, etc.)
   it’s free software
   almost full separation of content and form
  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1       January 14, 2013   7 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Advantages of L TEX
                                                                      A


              A
Advantages of LTEX
                                                         A
   portability (since it’s just a plain text document, a LTEX file can be
   written and saved in any device—personal computer, tablet,
   smartphone, toaster—with any operating system, as long as there’s a
   text editor available)
   does not require a lot of processing power, which makes it basically
   crash-proof and extremely stable
   backwards compatibility/longevity (a file written in the late 80s will
                                      A
   work on a 2013 installation of LTEX , and probably the same will be
   true 20 years from now)
   very good reference management
   very high typesetting quality
   default document classes that make the work easier (such as
   article, book, etc.)
   it’s free software
   almost full separation of content and form
  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1       January 14, 2013   7 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Advantages of L TEX
                                                                      A


              A
Advantages of LTEX
                                                         A
   portability (since it’s just a plain text document, a LTEX file can be
   written and saved in any device—personal computer, tablet,
   smartphone, toaster—with any operating system, as long as there’s a
   text editor available)
   does not require a lot of processing power, which makes it basically
   crash-proof and extremely stable
   backwards compatibility/longevity (a file written in the late 80s will
                                      A
   work on a 2013 installation of LTEX , and probably the same will be
   true 20 years from now)
   very good reference management
   very high typesetting quality
   default document classes that make the work easier (such as
   article, book, etc.)
   it’s free software
   almost full separation of content and form
  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1       January 14, 2013   7 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Advantages of L TEX
                                                                      A


              A
Advantages of LTEX
                                                         A
   portability (since it’s just a plain text document, a LTEX file can be
   written and saved in any device—personal computer, tablet,
   smartphone, toaster—with any operating system, as long as there’s a
   text editor available)
   does not require a lot of processing power, which makes it basically
   crash-proof and extremely stable
   backwards compatibility/longevity (a file written in the late 80s will
                                      A
   work on a 2013 installation of LTEX , and probably the same will be
   true 20 years from now)
   very good reference management
   very high typesetting quality
   default document classes that make the work easier (such as
   article, book, etc.)
   it’s free software
   almost full separation of content and form
  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1       January 14, 2013   7 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Disadvantages of L TEX
                                                                         A


                 A
Disadvantages of LTEX


   intimidating at first
   steep learning curve
   although widely used in some academic circuits, it’s not as ubiquitous
   as, for example, Word; some editors and publishers still don’t accept
   it. Working on a document which requires reviewing or corrections by
   others can be difficult
   there is usually no interface (menus, buttons, etc.)
   lack of native reviewing functionalities like commenting,
   change-tracking, etc. (not as problematic nowadays, since most pdf
   viewers have commenting functionalities)
   the general public sees no clear reason to use it (which contributes to
   the third point)


  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1          January 14, 2013   8 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Disadvantages of L TEX
                                                                         A


                 A
Disadvantages of LTEX


   intimidating at first
   steep learning curve
   although widely used in some academic circuits, it’s not as ubiquitous
   as, for example, Word; some editors and publishers still don’t accept
   it. Working on a document which requires reviewing or corrections by
   others can be difficult
   there is usually no interface (menus, buttons, etc.)
   lack of native reviewing functionalities like commenting,
   change-tracking, etc. (not as problematic nowadays, since most pdf
   viewers have commenting functionalities)
   the general public sees no clear reason to use it (which contributes to
   the third point)


  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1          January 14, 2013   8 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Disadvantages of L TEX
                                                                         A


                 A
Disadvantages of LTEX


   intimidating at first
   steep learning curve
   although widely used in some academic circuits, it’s not as ubiquitous
   as, for example, Word; some editors and publishers still don’t accept
   it. Working on a document which requires reviewing or corrections by
   others can be difficult
   there is usually no interface (menus, buttons, etc.)
   lack of native reviewing functionalities like commenting,
   change-tracking, etc. (not as problematic nowadays, since most pdf
   viewers have commenting functionalities)
   the general public sees no clear reason to use it (which contributes to
   the third point)


  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1          January 14, 2013   8 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Disadvantages of L TEX
                                                                         A


                 A
Disadvantages of LTEX


   intimidating at first
   steep learning curve
   although widely used in some academic circuits, it’s not as ubiquitous
   as, for example, Word; some editors and publishers still don’t accept
   it. Working on a document which requires reviewing or corrections by
   others can be difficult
   there is usually no interface (menus, buttons, etc.)
   lack of native reviewing functionalities like commenting,
   change-tracking, etc. (not as problematic nowadays, since most pdf
   viewers have commenting functionalities)
   the general public sees no clear reason to use it (which contributes to
   the third point)


  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1          January 14, 2013   8 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Disadvantages of L TEX
                                                                         A


                 A
Disadvantages of LTEX


   intimidating at first
   steep learning curve
   although widely used in some academic circuits, it’s not as ubiquitous
   as, for example, Word; some editors and publishers still don’t accept
   it. Working on a document which requires reviewing or corrections by
   others can be difficult
   there is usually no interface (menus, buttons, etc.)
   lack of native reviewing functionalities like commenting,
   change-tracking, etc. (not as problematic nowadays, since most pdf
   viewers have commenting functionalities)
   the general public sees no clear reason to use it (which contributes to
   the third point)


  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1          January 14, 2013   8 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Disadvantages of L TEX
                                                                         A


                 A
Disadvantages of LTEX


   intimidating at first
   steep learning curve
   although widely used in some academic circuits, it’s not as ubiquitous
   as, for example, Word; some editors and publishers still don’t accept
   it. Working on a document which requires reviewing or corrections by
   others can be difficult
   there is usually no interface (menus, buttons, etc.)
   lack of native reviewing functionalities like commenting,
   change-tracking, etc. (not as problematic nowadays, since most pdf
   viewers have commenting functionalities)
   the general public sees no clear reason to use it (which contributes to
   the third point)


  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1          January 14, 2013   8 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Disadvantages of L TEX
                                                                         A


                 A
Disadvantages of LTEX


   intimidating at first
   steep learning curve
   although widely used in some academic circuits, it’s not as ubiquitous
   as, for example, Word; some editors and publishers still don’t accept
   it. Working on a document which requires reviewing or corrections by
   others can be difficult
   there is usually no interface (menus, buttons, etc.)
   lack of native reviewing functionalities like commenting,
   change-tracking, etc. (not as problematic nowadays, since most pdf
   viewers have commenting functionalities)
   the general public sees no clear reason to use it (which contributes to
   the third point)


  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1          January 14, 2013   8 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Things L TEX is good at and appropriate for
                                                               A


A
LTEX is good at and appropriate for



   potentially long, well structured documents
   typesetting “complicated things” such as math, logic, phonetic
   symbols, different writing systems, etc.. . .
   slide presentations (such as this one)
   scientific posters
   managing bibliographic references, cross–references, table of contents,
   indexes, etc.. . .
   figures, tables, lists, etc.. . .
   justification and hyphenation




  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1                  January 14, 2013   9 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Things L TEX is good at and appropriate for
                                                               A


A
LTEX is good at and appropriate for



   potentially long, well structured documents
   typesetting “complicated things” such as math, logic, phonetic
   symbols, different writing systems, etc.. . .
   slide presentations (such as this one)
   scientific posters
   managing bibliographic references, cross–references, table of contents,
   indexes, etc.. . .
   figures, tables, lists, etc.. . .
   justification and hyphenation




  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1                  January 14, 2013   9 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Things L TEX is good at and appropriate for
                                                               A


A
LTEX is good at and appropriate for



   potentially long, well structured documents
   typesetting “complicated things” such as math, logic, phonetic
   symbols, different writing systems, etc.. . .
   slide presentations (such as this one)
   scientific posters
   managing bibliographic references, cross–references, table of contents,
   indexes, etc.. . .
   figures, tables, lists, etc.. . .
   justification and hyphenation




  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1                  January 14, 2013   9 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Things L TEX is good at and appropriate for
                                                               A


A
LTEX is good at and appropriate for



   potentially long, well structured documents
   typesetting “complicated things” such as math, logic, phonetic
   symbols, different writing systems, etc.. . .
   slide presentations (such as this one)
   scientific posters
   managing bibliographic references, cross–references, table of contents,
   indexes, etc.. . .
   figures, tables, lists, etc.. . .
   justification and hyphenation




  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1                  January 14, 2013   9 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Things L TEX is good at and appropriate for
                                                               A


A
LTEX is good at and appropriate for



   potentially long, well structured documents
   typesetting “complicated things” such as math, logic, phonetic
   symbols, different writing systems, etc.. . .
   slide presentations (such as this one)
   scientific posters
   managing bibliographic references, cross–references, table of contents,
   indexes, etc.. . .
   figures, tables, lists, etc.. . .
   justification and hyphenation




  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1                  January 14, 2013   9 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Things L TEX is good at and appropriate for
                                                               A


A
LTEX is good at and appropriate for



   potentially long, well structured documents
   typesetting “complicated things” such as math, logic, phonetic
   symbols, different writing systems, etc.. . .
   slide presentations (such as this one)
   scientific posters
   managing bibliographic references, cross–references, table of contents,
   indexes, etc.. . .
   figures, tables, lists, etc.. . .
   justification and hyphenation




  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1                  January 14, 2013   9 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Things L TEX is good at and appropriate for
                                                               A


A
LTEX is good at and appropriate for



   potentially long, well structured documents
   typesetting “complicated things” such as math, logic, phonetic
   symbols, different writing systems, etc.. . .
   slide presentations (such as this one)
   scientific posters
   managing bibliographic references, cross–references, table of contents,
   indexes, etc.. . .
   figures, tables, lists, etc.. . .
   justification and hyphenation




  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1                  January 14, 2013   9 / 39
Why use L TEX instead of a Word Processor?
                   A                                    Things L TEX is good at and appropriate for
                                                               A


A
LTEX is good at and appropriate for



   potentially long, well structured documents
   typesetting “complicated things” such as math, logic, phonetic
   symbols, different writing systems, etc.. . .
   slide presentations (such as this one)
   scientific posters
   managing bibliographic references, cross–references, table of contents,
   indexes, etc.. . .
   figures, tables, lists, etc.. . .
   justification and hyphenation




  Borrega & Martins (UB)                               A
                                       Introduction to L TEX Session #1                  January 14, 2013   9 / 39
Why use L TEX instead of a Word Processor?
                    A                                    Things L TEX is bad at or not appropriate for
                                                                A


A
LTEX is bad at or not appropriate for




    producing badly structured documents (This is really true; if the
                                         A
    document is not properly structured, LTEX will probably give you an
    error and no ouput)
    taking notes
    graphics-heavy or “creative” documents such as flyers, banners, etc.
    (although it can be done)




   Borrega & Martins (UB)                               A
                                        Introduction to L TEX Session #1                  January 14, 2013   10 / 39
Why use L TEX instead of a Word Processor?
                    A                                    Things L TEX is bad at or not appropriate for
                                                                A


A
LTEX is bad at or not appropriate for




    producing badly structured documents (This is really true; if the
                                         A
    document is not properly structured, LTEX will probably give you an
    error and no ouput)
    taking notes
    graphics-heavy or “creative” documents such as flyers, banners, etc.
    (although it can be done)




   Borrega & Martins (UB)                               A
                                        Introduction to L TEX Session #1                  January 14, 2013   10 / 39
Why use L TEX instead of a Word Processor?
                    A                                    Things L TEX is bad at or not appropriate for
                                                                A


A
LTEX is bad at or not appropriate for




    producing badly structured documents (This is really true; if the
                                         A
    document is not properly structured, LTEX will probably give you an
    error and no ouput)
    taking notes
    graphics-heavy or “creative” documents such as flyers, banners, etc.
    (although it can be done)




   Borrega & Martins (UB)                               A
                                        Introduction to L TEX Session #1                  January 14, 2013   10 / 39
Why use L TEX instead of a Word Processor?
                    A                                    Things L TEX is bad at or not appropriate for
                                                                A


A
LTEX is bad at or not appropriate for




    producing badly structured documents (This is really true; if the
                                         A
    document is not properly structured, LTEX will probably give you an
    error and no ouput)
    taking notes
    graphics-heavy or “creative” documents such as flyers, banners, etc.
    (although it can be done)




   Borrega & Martins (UB)                               A
                                        Introduction to L TEX Session #1                  January 14, 2013   10 / 39
What is L TEX ?
                                     A


Outline
1   Preliminary Remarks
      How a scientific document must be
2            A
    Why use LTEX instead of a Word Processor?
                   A
     Advantages of LTEX
                      A
     Disadvantages of LTEX
              A X is good at and appropriate for
     Things LTE
              A
     Things LTEX is bad at or not appropriate for
3           A
    What is LTEX ?
     History
         TEX
         A
         LTEX
4       A
    How LTEX works
           A
      How LTEX documents are created
                               A
      The basic structure of a LTEX document
5   A
    LTEX commands and a small document
    Borrega & Martins (UB)    Introduction to L TEX Session #1
                                              A                  January 14, 2013   11 / 39
What is L TEX ?
                                   A         History

           A
History of LTEX




         TEXwas designed and
         developed by Donald
         Knuth in 1978 (left)
         A
         LTEX was developed by
         Leslie Lamport as an
         extension of TEXin 1985
         (right)




  Borrega & Martins (UB)                    A
                            Introduction to L TEX Session #1   January 14, 2013   12 / 39
What is L TEX ?
                                    A         History

TEX


      written by Donald Knuth out of frustration with digital typesetting,
      when attempting to publish part of his long book “The Art of
      Computer Programming”
      the name TEXis formed by the upper-case Greek letters tau, epsilon
      and chi, resembling the Greek root for the English tech, as in
      technical (hence the pronunciation)
      complex typesetting system and programming language
      very powerful and versatile
      difficult to use
      nobody really uses plain TEXanymore



  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1   January 14, 2013   13 / 39
What is L TEX ?
                                    A         History

TEX


      written by Donald Knuth out of frustration with digital typesetting,
      when attempting to publish part of his long book “The Art of
      Computer Programming”
      the name TEXis formed by the upper-case Greek letters tau, epsilon
      and chi, resembling the Greek root for the English tech, as in
      technical (hence the pronunciation)
      complex typesetting system and programming language
      very powerful and versatile
      difficult to use
      nobody really uses plain TEXanymore



  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1   January 14, 2013   13 / 39
What is L TEX ?
                                    A         History

TEX


      written by Donald Knuth out of frustration with digital typesetting,
      when attempting to publish part of his long book “The Art of
      Computer Programming”
      the name TEXis formed by the upper-case Greek letters tau, epsilon
      and chi, resembling the Greek root for the English tech, as in
      technical (hence the pronunciation)
      complex typesetting system and programming language
      very powerful and versatile
      difficult to use
      nobody really uses plain TEXanymore



  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1   January 14, 2013   13 / 39
What is L TEX ?
                                    A         History

TEX


      written by Donald Knuth out of frustration with digital typesetting,
      when attempting to publish part of his long book “The Art of
      Computer Programming”
      the name TEXis formed by the upper-case Greek letters tau, epsilon
      and chi, resembling the Greek root for the English tech, as in
      technical (hence the pronunciation)
      complex typesetting system and programming language
      very powerful and versatile
      difficult to use
      nobody really uses plain TEXanymore



  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1   January 14, 2013   13 / 39
What is L TEX ?
                                    A         History

TEX


      written by Donald Knuth out of frustration with digital typesetting,
      when attempting to publish part of his long book “The Art of
      Computer Programming”
      the name TEXis formed by the upper-case Greek letters tau, epsilon
      and chi, resembling the Greek root for the English tech, as in
      technical (hence the pronunciation)
      complex typesetting system and programming language
      very powerful and versatile
      difficult to use
      nobody really uses plain TEXanymore



  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1   January 14, 2013   13 / 39
What is L TEX ?
                                    A         History

TEX


      written by Donald Knuth out of frustration with digital typesetting,
      when attempting to publish part of his long book “The Art of
      Computer Programming”
      the name TEXis formed by the upper-case Greek letters tau, epsilon
      and chi, resembling the Greek root for the English tech, as in
      technical (hence the pronunciation)
      complex typesetting system and programming language
      very powerful and versatile
      difficult to use
      nobody really uses plain TEXanymore



  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1   January 14, 2013   13 / 39
What is L TEX ?
                                    A         History

TEX


      written by Donald Knuth out of frustration with digital typesetting,
      when attempting to publish part of his long book “The Art of
      Computer Programming”
      the name TEXis formed by the upper-case Greek letters tau, epsilon
      and chi, resembling the Greek root for the English tech, as in
      technical (hence the pronunciation)
      complex typesetting system and programming language
      very powerful and versatile
      difficult to use
      nobody really uses plain TEXanymore



  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1   January 14, 2013   13 / 39
What is L TEX ?
                                   A         History

A
LTEX


   written by Leslie Lamport as a set of TEXmacros (almost like simple
   shortcuts for more complex commands), making it possible for
   mortals to use it
            A
   the name LTEX is a combination of the first two letters in Lamport
   and TEX
   much simpler to use than TEX
   the user enters commands which the define the structure of the
   document along with the text
                                      A
   the formatting is taken care of by LTEX itself
   “packages” add extra functionality
   widely used (within the –TEXfamily)



  Borrega & Martins (UB)                    A
                            Introduction to L TEX Session #1   January 14, 2013   14 / 39
What is L TEX ?
                                   A         History

A
LTEX


   written by Leslie Lamport as a set of TEXmacros (almost like simple
   shortcuts for more complex commands), making it possible for
   mortals to use it
            A
   the name LTEX is a combination of the first two letters in Lamport
   and TEX
   much simpler to use than TEX
   the user enters commands which the define the structure of the
   document along with the text
                                      A
   the formatting is taken care of by LTEX itself
   “packages” add extra functionality
   widely used (within the –TEXfamily)



  Borrega & Martins (UB)                    A
                            Introduction to L TEX Session #1   January 14, 2013   14 / 39
What is L TEX ?
                                   A         History

A
LTEX


   written by Leslie Lamport as a set of TEXmacros (almost like simple
   shortcuts for more complex commands), making it possible for
   mortals to use it
            A
   the name LTEX is a combination of the first two letters in Lamport
   and TEX
   much simpler to use than TEX
   the user enters commands which the define the structure of the
   document along with the text
                                      A
   the formatting is taken care of by LTEX itself
   “packages” add extra functionality
   widely used (within the –TEXfamily)



  Borrega & Martins (UB)                    A
                            Introduction to L TEX Session #1   January 14, 2013   14 / 39
What is L TEX ?
                                   A         History

A
LTEX


   written by Leslie Lamport as a set of TEXmacros (almost like simple
   shortcuts for more complex commands), making it possible for
   mortals to use it
            A
   the name LTEX is a combination of the first two letters in Lamport
   and TEX
   much simpler to use than TEX
   the user enters commands which the define the structure of the
   document along with the text
                                      A
   the formatting is taken care of by LTEX itself
   “packages” add extra functionality
   widely used (within the –TEXfamily)



  Borrega & Martins (UB)                    A
                            Introduction to L TEX Session #1   January 14, 2013   14 / 39
What is L TEX ?
                                   A         History

A
LTEX


   written by Leslie Lamport as a set of TEXmacros (almost like simple
   shortcuts for more complex commands), making it possible for
   mortals to use it
            A
   the name LTEX is a combination of the first two letters in Lamport
   and TEX
   much simpler to use than TEX
   the user enters commands which the define the structure of the
   document along with the text
                                      A
   the formatting is taken care of by LTEX itself
   “packages” add extra functionality
   widely used (within the –TEXfamily)



  Borrega & Martins (UB)                    A
                            Introduction to L TEX Session #1   January 14, 2013   14 / 39
What is L TEX ?
                                   A         History

A
LTEX


   written by Leslie Lamport as a set of TEXmacros (almost like simple
   shortcuts for more complex commands), making it possible for
   mortals to use it
            A
   the name LTEX is a combination of the first two letters in Lamport
   and TEX
   much simpler to use than TEX
   the user enters commands which the define the structure of the
   document along with the text
                                      A
   the formatting is taken care of by LTEX itself
   “packages” add extra functionality
   widely used (within the –TEXfamily)



  Borrega & Martins (UB)                    A
                            Introduction to L TEX Session #1   January 14, 2013   14 / 39
What is L TEX ?
                                   A         History

A
LTEX


   written by Leslie Lamport as a set of TEXmacros (almost like simple
   shortcuts for more complex commands), making it possible for
   mortals to use it
            A
   the name LTEX is a combination of the first two letters in Lamport
   and TEX
   much simpler to use than TEX
   the user enters commands which the define the structure of the
   document along with the text
                                      A
   the formatting is taken care of by LTEX itself
   “packages” add extra functionality
   widely used (within the –TEXfamily)



  Borrega & Martins (UB)                    A
                            Introduction to L TEX Session #1   January 14, 2013   14 / 39
What is L TEX ?
                                   A         History

A
LTEX


   written by Leslie Lamport as a set of TEXmacros (almost like simple
   shortcuts for more complex commands), making it possible for
   mortals to use it
            A
   the name LTEX is a combination of the first two letters in Lamport
   and TEX
   much simpler to use than TEX
   the user enters commands which the define the structure of the
   document along with the text
                                      A
   the formatting is taken care of by LTEX itself
   “packages” add extra functionality
   widely used (within the –TEXfamily)



  Borrega & Martins (UB)                    A
                            Introduction to L TEX Session #1   January 14, 2013   14 / 39
How L TEX works
                                 A


Outline
1   Preliminary Remarks
      How a scientific document must be
2            A
    Why use LTEX instead of a Word Processor?
                   A
     Advantages of LTEX
                      A
     Disadvantages of LTEX
              A X is good at and appropriate for
     Things LTE
              A
     Things LTEX is bad at or not appropriate for
3           A
    What is LTEX ?
     History
         TEX
         A
         LTEX
4       A
    How LTEX works
           A
      How LTEX documents are created
                               A
      The basic structure of a LTEX document
5   A
    LTEX commands and a small document
    Borrega & Martins (UB)     Introduction to L TEX Session #1
                                               A                  January 14, 2013   15 / 39
How L TEX works
                               A              How L TEX documents are created
                                                  A


    A
How LTEX documents are created



   you write a file with all the commands and text, which will have the
   extension .tex
            A
   you run LTEX on that file, which will interpret all the commands in
   order to produce the output, at which point you will also be prompted
   to choose a folder for your document
   a beautiful .pdf file is created, suitable for printing
   (some auxiliary files will be created too, but there’s usually no need to
   mess with them)




  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1               January 14, 2013   16 / 39
How L TEX works
                               A              How L TEX documents are created
                                                  A


    A
How LTEX documents are created



   you write a file with all the commands and text, which will have the
   extension .tex
            A
   you run LTEX on that file, which will interpret all the commands in
   order to produce the output, at which point you will also be prompted
   to choose a folder for your document
   a beautiful .pdf file is created, suitable for printing
   (some auxiliary files will be created too, but there’s usually no need to
   mess with them)




  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1               January 14, 2013   16 / 39
How L TEX works
                               A              How L TEX documents are created
                                                  A


    A
How LTEX documents are created



   you write a file with all the commands and text, which will have the
   extension .tex
            A
   you run LTEX on that file, which will interpret all the commands in
   order to produce the output, at which point you will also be prompted
   to choose a folder for your document
   a beautiful .pdf file is created, suitable for printing
   (some auxiliary files will be created too, but there’s usually no need to
   mess with them)




  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1               January 14, 2013   16 / 39
How L TEX works
                               A              How L TEX documents are created
                                                  A


    A
How LTEX documents are created



   you write a file with all the commands and text, which will have the
   extension .tex
            A
   you run LTEX on that file, which will interpret all the commands in
   order to produce the output, at which point you will also be prompted
   to choose a folder for your document
   a beautiful .pdf file is created, suitable for printing
   (some auxiliary files will be created too, but there’s usually no need to
   mess with them)




  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1               January 14, 2013   16 / 39
How L TEX works
                               A              How L TEX documents are created
                                                  A


    A
How LTEX documents are created



   you write a file with all the commands and text, which will have the
   extension .tex
            A
   you run LTEX on that file, which will interpret all the commands in
   order to produce the output, at which point you will also be prompted
   to choose a folder for your document
   a beautiful .pdf file is created, suitable for printing
   (some auxiliary files will be created too, but there’s usually no need to
   mess with them)




  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1               January 14, 2013   16 / 39
How L TEX works
                               A              The basic structure of a L TEX document
                                                                       A


                     A
Basic structure of a LTEX file




                                           A
   There are three basic commands that all LTEX documents must have:
   documentclass{article}
   begin{document}
   end{document}




  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1                January 14, 2013   17 / 39
How L TEX works
                               A              The basic structure of a L TEX document
                                                                       A


                     A
Basic structure of a LTEX file




                                           A
   There are three basic commands that all LTEX documents must have:
   documentclass{article}
   begin{document}
   end{document}




  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1                January 14, 2013   17 / 39
How L TEX works
                               A              The basic structure of a L TEX document
                                                                       A


                     A
Basic structure of a LTEX file




                                           A
   There are three basic commands that all LTEX documents must have:
   documentclass{article}
   begin{document}
   end{document}




  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1                January 14, 2013   17 / 39
How L TEX works
                               A              The basic structure of a L TEX document
                                                                       A


                     A
Basic structure of a LTEX file




                                           A
   There are three basic commands that all LTEX documents must have:
   documentclass{article}
   begin{document}
   end{document}




  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1                January 14, 2013   17 / 39
How L TEX works
                               A              The basic structure of a L TEX document
                                                                       A


                     A
Basic structure of a LTEX file




                                           A
   There are three basic commands that all LTEX documents must have:
   documentclass{article}
   begin{document}
   end{document}




  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1                January 14, 2013   17 / 39
How L TEX works
                               A              The basic structure of a L TEX document
                                                                       A


                     A
Basic structure of a LTEX file

   The existence of these commands defines different parts of your file:
   documentclass[options]{article}
   everything that appears here is called the Preamble. Here is where
   you define general characteristics of your document besides the
   document class, such as the title, the author, the date, the input
   language, and other options which will influence the general layout.
   All of this is accomplished through the use of commands
   begin{document}
   here is where the content of your document is going to be, along with
   commands that define its internal structure
   end{document}
   anything that appears here will be completely ignored, even if it’s the
   complete works of Shakespeare

  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1                January 14, 2013   18 / 39
How L TEX works
                               A              The basic structure of a L TEX document
                                                                       A


                     A
Basic structure of a LTEX file

   The existence of these commands defines different parts of your file:
   documentclass[options]{article}
   everything that appears here is called the Preamble. Here is where
   you define general characteristics of your document besides the
   document class, such as the title, the author, the date, the input
   language, and other options which will influence the general layout.
   All of this is accomplished through the use of commands
   begin{document}
   here is where the content of your document is going to be, along with
   commands that define its internal structure
   end{document}
   anything that appears here will be completely ignored, even if it’s the
   complete works of Shakespeare

  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1                January 14, 2013   18 / 39
How L TEX works
                               A              The basic structure of a L TEX document
                                                                       A


                     A
Basic structure of a LTEX file

   The existence of these commands defines different parts of your file:
   documentclass[options]{article}
   everything that appears here is called the Preamble. Here is where
   you define general characteristics of your document besides the
   document class, such as the title, the author, the date, the input
   language, and other options which will influence the general layout.
   All of this is accomplished through the use of commands
   begin{document}
   here is where the content of your document is going to be, along with
   commands that define its internal structure
   end{document}
   anything that appears here will be completely ignored, even if it’s the
   complete works of Shakespeare

  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1                January 14, 2013   18 / 39
How L TEX works
                               A              The basic structure of a L TEX document
                                                                       A


                     A
Basic structure of a LTEX file

   The existence of these commands defines different parts of your file:
   documentclass[options]{article}
   everything that appears here is called the Preamble. Here is where
   you define general characteristics of your document besides the
   document class, such as the title, the author, the date, the input
   language, and other options which will influence the general layout.
   All of this is accomplished through the use of commands
   begin{document}
   here is where the content of your document is going to be, along with
   commands that define its internal structure
   end{document}
   anything that appears here will be completely ignored, even if it’s the
   complete works of Shakespeare

  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1                January 14, 2013   18 / 39
How L TEX works
                               A              The basic structure of a L TEX document
                                                                       A


                     A
Basic structure of a LTEX file

   The existence of these commands defines different parts of your file:
   documentclass[options]{article}
   everything that appears here is called the Preamble. Here is where
   you define general characteristics of your document besides the
   document class, such as the title, the author, the date, the input
   language, and other options which will influence the general layout.
   All of this is accomplished through the use of commands
   begin{document}
   here is where the content of your document is going to be, along with
   commands that define its internal structure
   end{document}
   anything that appears here will be completely ignored, even if it’s the
   complete works of Shakespeare

  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1                January 14, 2013   18 / 39
How L TEX works
                               A              The basic structure of a L TEX document
                                                                       A


                     A
Basic structure of a LTEX file

   The existence of these commands defines different parts of your file:
   documentclass[options]{article}
   everything that appears here is called the Preamble. Here is where
   you define general characteristics of your document besides the
   document class, such as the title, the author, the date, the input
   language, and other options which will influence the general layout.
   All of this is accomplished through the use of commands
   begin{document}
   here is where the content of your document is going to be, along with
   commands that define its internal structure
   end{document}
   anything that appears here will be completely ignored, even if it’s the
   complete works of Shakespeare

  Borrega & Martins (UB)                     A
                             Introduction to L TEX Session #1                January 14, 2013   18 / 39
How L TEX works
                               A              The basic structure of a L TEX document
                                                                       A


Minimal example




   Using only the mandatory commands, we can write a minimal
   document:
documentclass{article}
begin{document}
Hello!
end{document}




  Borrega & Martins (UB)     Introduction to L TEX Session #1
                                             A                               January 14, 2013   19 / 39
How L TEX works
                               A              The basic structure of a L TEX document
                                                                       A


Minimal example




   Using only the mandatory commands, we can write a minimal
   document:
documentclass{article}
begin{document}
Hello!
end{document}




  Borrega & Martins (UB)     Introduction to L TEX Session #1
                                             A                               January 14, 2013   19 / 39
How L TEX works
                               A              The basic structure of a L TEX document
                                                                       A


Minimal example




   Using only the mandatory commands, we can write a minimal
   document:
documentclass{article}
begin{document}
Hello!
end{document}




  Borrega & Martins (UB)     Introduction to L TEX Session #1
                                             A                               January 14, 2013   19 / 39
L TEX commands and a small document
                 A


Outline
1   Preliminary Remarks
      How a scientific document must be
2            A
    Why use LTEX instead of a Word Processor?
                   A
     Advantages of LTEX
                      A
     Disadvantages of LTEX
              A X is good at and appropriate for
     Things LTE
              A
     Things LTEX is bad at or not appropriate for
3           A
    What is LTEX ?
     History
         TEX
         A
         LTEX
4       A
    How LTEX works
           A
      How LTEX documents are created
                               A
      The basic structure of a LTEX document
5   A
    LTEX commands and a small document
    Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                       A                  January 14, 2013   20 / 39
L TEX commands and a small document
               A


Document class


   The document class defines the general layout of the document.
   Common document classes are:
           article (which we will be using for now)
           book
           thesis
           report
           letter
   We can define the document class by using the appropriate command
   followed by the name of the class enclosed in braces, which would
   make it the main argument of the command:

documentclass{article}



  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   21 / 39
L TEX commands and a small document
               A


Document class


   The document class defines the general layout of the document.
   Common document classes are:
           article (which we will be using for now)
           book
           thesis
           report
           letter
   We can define the document class by using the appropriate command
   followed by the name of the class enclosed in braces, which would
   make it the main argument of the command:

documentclass{article}



  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   21 / 39
L TEX commands and a small document
               A


Document class


   The document class defines the general layout of the document.
   Common document classes are:
           article (which we will be using for now)
           book
           thesis
           report
           letter
   We can define the document class by using the appropriate command
   followed by the name of the class enclosed in braces, which would
   make it the main argument of the command:

documentclass{article}



  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   21 / 39
L TEX commands and a small document
               A


Document class


   The document class defines the general layout of the document.
   Common document classes are:
           article (which we will be using for now)
           book
           thesis
           report
           letter
   We can define the document class by using the appropriate command
   followed by the name of the class enclosed in braces, which would
   make it the main argument of the command:

documentclass{article}



  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   21 / 39
L TEX commands and a small document
               A


Document class


   The document class defines the general layout of the document.
   Common document classes are:
           article (which we will be using for now)
           book
           thesis
           report
           letter
   We can define the document class by using the appropriate command
   followed by the name of the class enclosed in braces, which would
   make it the main argument of the command:

documentclass{article}



  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   21 / 39
L TEX commands and a small document
               A


Document class


   The document class defines the general layout of the document.
   Common document classes are:
           article (which we will be using for now)
           book
           thesis
           report
           letter
   We can define the document class by using the appropriate command
   followed by the name of the class enclosed in braces, which would
   make it the main argument of the command:

documentclass{article}



  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   21 / 39
L TEX commands and a small document
               A


Document class


   The document class defines the general layout of the document.
   Common document classes are:
           article (which we will be using for now)
           book
           thesis
           report
           letter
   We can define the document class by using the appropriate command
   followed by the name of the class enclosed in braces, which would
   make it the main argument of the command:

documentclass{article}



  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   21 / 39
L TEX commands and a small document
               A


Document class


   The document class defines the general layout of the document.
   Common document classes are:
           article (which we will be using for now)
           book
           thesis
           report
           letter
   We can define the document class by using the appropriate command
   followed by the name of the class enclosed in braces, which would
   make it the main argument of the command:

documentclass{article}



  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   21 / 39
L TEX commands and a small document
               A


Document class


   The document class defines the general layout of the document.
   Common document classes are:
           article (which we will be using for now)
           book
           thesis
           report
           letter
   We can define the document class by using the appropriate command
   followed by the name of the class enclosed in braces, which would
   make it the main argument of the command:

documentclass{article}



  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   21 / 39
L TEX commands and a small document
               A


Optional arguments


   However, we can also modify the class a little bit by using optional
   arguments, which don’t have to be there (hence the name), and are
   enclosed in square brackets. If more than one is used, they must be
   separated by commas.
   Some common options include:
           Font size: 10pt (default), 11pt, 12pt. . .
           Paper size: a4paper (usually default), letterpaper. . .
           Orientation: portrait (default), landscape. . .
   Let’s say we want to write an article with 12pt fontsize and a4paper.
   We would declare it in the preamble the following way:

documentclass[a4paper,12pt]{article}



  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   22 / 39
L TEX commands and a small document
               A


Optional arguments


   However, we can also modify the class a little bit by using optional
   arguments, which don’t have to be there (hence the name), and are
   enclosed in square brackets. If more than one is used, they must be
   separated by commas.
   Some common options include:
           Font size: 10pt (default), 11pt, 12pt. . .
           Paper size: a4paper (usually default), letterpaper. . .
           Orientation: portrait (default), landscape. . .
   Let’s say we want to write an article with 12pt fontsize and a4paper.
   We would declare it in the preamble the following way:

documentclass[a4paper,12pt]{article}



  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   22 / 39
L TEX commands and a small document
               A


Optional arguments


   However, we can also modify the class a little bit by using optional
   arguments, which don’t have to be there (hence the name), and are
   enclosed in square brackets. If more than one is used, they must be
   separated by commas.
   Some common options include:
           Font size: 10pt (default), 11pt, 12pt. . .
           Paper size: a4paper (usually default), letterpaper. . .
           Orientation: portrait (default), landscape. . .
   Let’s say we want to write an article with 12pt fontsize and a4paper.
   We would declare it in the preamble the following way:

documentclass[a4paper,12pt]{article}



  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   22 / 39
L TEX commands and a small document
               A


Optional arguments


   However, we can also modify the class a little bit by using optional
   arguments, which don’t have to be there (hence the name), and are
   enclosed in square brackets. If more than one is used, they must be
   separated by commas.
   Some common options include:
           Font size: 10pt (default), 11pt, 12pt. . .
           Paper size: a4paper (usually default), letterpaper. . .
           Orientation: portrait (default), landscape. . .
   Let’s say we want to write an article with 12pt fontsize and a4paper.
   We would declare it in the preamble the following way:

documentclass[a4paper,12pt]{article}



  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   22 / 39
L TEX commands and a small document
               A


Optional arguments


   However, we can also modify the class a little bit by using optional
   arguments, which don’t have to be there (hence the name), and are
   enclosed in square brackets. If more than one is used, they must be
   separated by commas.
   Some common options include:
           Font size: 10pt (default), 11pt, 12pt. . .
           Paper size: a4paper (usually default), letterpaper. . .
           Orientation: portrait (default), landscape. . .
   Let’s say we want to write an article with 12pt fontsize and a4paper.
   We would declare it in the preamble the following way:

documentclass[a4paper,12pt]{article}



  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   22 / 39
L TEX commands and a small document
               A


Optional arguments


   However, we can also modify the class a little bit by using optional
   arguments, which don’t have to be there (hence the name), and are
   enclosed in square brackets. If more than one is used, they must be
   separated by commas.
   Some common options include:
           Font size: 10pt (default), 11pt, 12pt. . .
           Paper size: a4paper (usually default), letterpaper. . .
           Orientation: portrait (default), landscape. . .
   Let’s say we want to write an article with 12pt fontsize and a4paper.
   We would declare it in the preamble the following way:

documentclass[a4paper,12pt]{article}



  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   22 / 39
L TEX commands and a small document
               A


Optional arguments


   However, we can also modify the class a little bit by using optional
   arguments, which don’t have to be there (hence the name), and are
   enclosed in square brackets. If more than one is used, they must be
   separated by commas.
   Some common options include:
           Font size: 10pt (default), 11pt, 12pt. . .
           Paper size: a4paper (usually default), letterpaper. . .
           Orientation: portrait (default), landscape. . .
   Let’s say we want to write an article with 12pt fontsize and a4paper.
   We would declare it in the preamble the following way:

documentclass[a4paper,12pt]{article}



  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   22 / 39
L TEX commands and a small document
               A


Optional arguments


   However, we can also modify the class a little bit by using optional
   arguments, which don’t have to be there (hence the name), and are
   enclosed in square brackets. If more than one is used, they must be
   separated by commas.
   Some common options include:
           Font size: 10pt (default), 11pt, 12pt. . .
           Paper size: a4paper (usually default), letterpaper. . .
           Orientation: portrait (default), landscape. . .
   Let’s say we want to write an article with 12pt fontsize and a4paper.
   We would declare it in the preamble the following way:

documentclass[a4paper,12pt]{article}



  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   22 / 39
L TEX commands and a small document
               A


Packages

                                                          A
   Packages are extensions of the basic functionality of LTEX ,
   providing additional features when declared in the preamble.
   There are hundreds of packages available, for doing anything you can
                                                                  A
   think of, and many of them come with the basic installation of LTEX ;
   they just need to be called by us.
   If we were to use a package in our document—we won’t for this
   session, but we will later—we would do it the following way:

documentclass[a4paper,12pt]{article}
usepackage{nameofthepackage}

   (let’s ignore packages for now and delete this command from our
   document)


  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   23 / 39
L TEX commands and a small document
               A


Packages

                                                          A
   Packages are extensions of the basic functionality of LTEX ,
   providing additional features when declared in the preamble.
   There are hundreds of packages available, for doing anything you can
                                                                  A
   think of, and many of them come with the basic installation of LTEX ;
   they just need to be called by us.
   If we were to use a package in our document—we won’t for this
   session, but we will later—we would do it the following way:

documentclass[a4paper,12pt]{article}
usepackage{nameofthepackage}

   (let’s ignore packages for now and delete this command from our
   document)


  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   23 / 39
L TEX commands and a small document
               A


Packages

                                                          A
   Packages are extensions of the basic functionality of LTEX ,
   providing additional features when declared in the preamble.
   There are hundreds of packages available, for doing anything you can
                                                                  A
   think of, and many of them come with the basic installation of LTEX ;
   they just need to be called by us.
   If we were to use a package in our document—we won’t for this
   session, but we will later—we would do it the following way:

documentclass[a4paper,12pt]{article}
usepackage{nameofthepackage}

   (let’s ignore packages for now and delete this command from our
   document)


  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   23 / 39
L TEX commands and a small document
               A


Packages

                                                          A
   Packages are extensions of the basic functionality of LTEX ,
   providing additional features when declared in the preamble.
   There are hundreds of packages available, for doing anything you can
                                                                  A
   think of, and many of them come with the basic installation of LTEX ;
   they just need to be called by us.
   If we were to use a package in our document—we won’t for this
   session, but we will later—we would do it the following way:

documentclass[a4paper,12pt]{article}
usepackage{nameofthepackage}

   (let’s ignore packages for now and delete this command from our
   document)


  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   23 / 39
L TEX commands and a small document
               A


Packages

                                                          A
   Packages are extensions of the basic functionality of LTEX ,
   providing additional features when declared in the preamble.
   There are hundreds of packages available, for doing anything you can
                                                                  A
   think of, and many of them come with the basic installation of LTEX ;
   they just need to be called by us.
   If we were to use a package in our document—we won’t for this
   session, but we will later—we would do it the following way:

documentclass[a4paper,12pt]{article}
usepackage{nameofthepackage}

   (let’s ignore packages for now and delete this command from our
   document)


  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   23 / 39
L TEX commands and a small document
               A


Packages

                                                          A
   Packages are extensions of the basic functionality of LTEX ,
   providing additional features when declared in the preamble.
   There are hundreds of packages available, for doing anything you can
                                                                  A
   think of, and many of them come with the basic installation of LTEX ;
   they just need to be called by us.
   If we were to use a package in our document—we won’t for this
   session, but we will later—we would do it the following way:

documentclass[a4paper,12pt]{article}
usepackage{nameofthepackage}

   (let’s ignore packages for now and delete this command from our
   document)


  Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                     A                  January 14, 2013   23 / 39
L TEX commands and a small document
                A


Title, author and date


    Like we mentioned before, it’s a good idea to identify the document.
    There are three basic things:
            Title
            Author
            Date (if we don’t use the command, the current date is fetched from
            the system and used)
    Let’s give our document a title, author and date, using the
    aptly-named title, author and date commands:

documentclass[a4paper,12pt]{article}
title{It is very simple to write good-looking documents}
author{John Smith}
date{June 10, 2020}



   Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                      A                  January 14, 2013   24 / 39
L TEX commands and a small document
                A


Title, author and date


    Like we mentioned before, it’s a good idea to identify the document.
    There are three basic things:
            Title
            Author
            Date (if we don’t use the command, the current date is fetched from
            the system and used)
    Let’s give our document a title, author and date, using the
    aptly-named title, author and date commands:

documentclass[a4paper,12pt]{article}
title{It is very simple to write good-looking documents}
author{John Smith}
date{June 10, 2020}



   Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                      A                  January 14, 2013   24 / 39
L TEX commands and a small document
                A


Title, author and date


    Like we mentioned before, it’s a good idea to identify the document.
    There are three basic things:
            Title
            Author
            Date (if we don’t use the command, the current date is fetched from
            the system and used)
    Let’s give our document a title, author and date, using the
    aptly-named title, author and date commands:

documentclass[a4paper,12pt]{article}
title{It is very simple to write good-looking documents}
author{John Smith}
date{June 10, 2020}



   Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                      A                  January 14, 2013   24 / 39
L TEX commands and a small document
                A


Title, author and date


    Like we mentioned before, it’s a good idea to identify the document.
    There are three basic things:
            Title
            Author
            Date (if we don’t use the command, the current date is fetched from
            the system and used)
    Let’s give our document a title, author and date, using the
    aptly-named title, author and date commands:

documentclass[a4paper,12pt]{article}
title{It is very simple to write good-looking documents}
author{John Smith}
date{June 10, 2020}



   Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                      A                  January 14, 2013   24 / 39
L TEX commands and a small document
                A


Title, author and date


    Like we mentioned before, it’s a good idea to identify the document.
    There are three basic things:
            Title
            Author
            Date (if we don’t use the command, the current date is fetched from
            the system and used)
    Let’s give our document a title, author and date, using the
    aptly-named title, author and date commands:

documentclass[a4paper,12pt]{article}
title{It is very simple to write good-looking documents}
author{John Smith}
date{June 10, 2020}



   Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                      A                  January 14, 2013   24 / 39
L TEX commands and a small document
                A


Title, author and date


    Like we mentioned before, it’s a good idea to identify the document.
    There are three basic things:
            Title
            Author
            Date (if we don’t use the command, the current date is fetched from
            the system and used)
    Let’s give our document a title, author and date, using the
    aptly-named title, author and date commands:

documentclass[a4paper,12pt]{article}
title{It is very simple to write good-looking documents}
author{John Smith}
date{June 10, 2020}



   Borrega & Martins (UB)             Introduction to L TEX Session #1
                                                      A                  January 14, 2013   24 / 39
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB
First LaTeX session of the BIB

More Related Content

Viewers also liked

Presentation on Smart Textile
Presentation on Smart TextilePresentation on Smart Textile
Presentation on Smart Textile
Shawan Roy
 
Smart textiles new possibilities in textile engineering
Smart textiles  new possibilities in textile engineeringSmart textiles  new possibilities in textile engineering
Smart textiles new possibilities in textile engineering
Nasif Chowdhury
 
Smart Textiles
Smart TextilesSmart Textiles
Smart Textiles
Jutka Czirok
 
Smart Fabrics & Interactive Fabrics
Smart Fabrics &  Interactive FabricsSmart Fabrics &  Interactive Fabrics
Smart Fabrics & Interactive Fabrics
Akhil Kadangode
 
E textiles for military uniforms
E textiles for military uniformsE textiles for military uniforms
E textiles for military uniforms
KaleeswaranPalaniswamy
 
10. smart textiles
10. smart textiles10. smart textiles
10. smart textiles
Ghent University
 
Smart textile
Smart textileSmart textile
Smart textile
SHANTI KUMARI
 
E textile by ashish dua
E textile by ashish duaE textile by ashish dua
E textile by ashish dua
Ashish Dua
 
Electronic textiles
Electronic textilesElectronic textiles
Electronic textiles
ttkbal
 
TeX in educational institutes (TUG 2013)
TeX in educational institutes (TUG 2013)TeX in educational institutes (TUG 2013)
TeX in educational institutes (TUG 2013)
Yasuhide Minoda
 
smart textile
smart textilesmart textile
smart textile
Ritu Solanki
 

Viewers also liked (11)

Presentation on Smart Textile
Presentation on Smart TextilePresentation on Smart Textile
Presentation on Smart Textile
 
Smart textiles new possibilities in textile engineering
Smart textiles  new possibilities in textile engineeringSmart textiles  new possibilities in textile engineering
Smart textiles new possibilities in textile engineering
 
Smart Textiles
Smart TextilesSmart Textiles
Smart Textiles
 
Smart Fabrics & Interactive Fabrics
Smart Fabrics &  Interactive FabricsSmart Fabrics &  Interactive Fabrics
Smart Fabrics & Interactive Fabrics
 
E textiles for military uniforms
E textiles for military uniformsE textiles for military uniforms
E textiles for military uniforms
 
10. smart textiles
10. smart textiles10. smart textiles
10. smart textiles
 
Smart textile
Smart textileSmart textile
Smart textile
 
E textile by ashish dua
E textile by ashish duaE textile by ashish dua
E textile by ashish dua
 
Electronic textiles
Electronic textilesElectronic textiles
Electronic textiles
 
TeX in educational institutes (TUG 2013)
TeX in educational institutes (TUG 2013)TeX in educational institutes (TUG 2013)
TeX in educational institutes (TUG 2013)
 
smart textile
smart textilesmart textile
smart textile
 

Recently uploaded

The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
heathfieldcps1
 
skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)
Mohammad Al-Dhahabi
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Henry Hollis
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
TechSoup
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
RamseyBerglund
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
nitinpv4ai
 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
Prof. Dr. K. Adisesha
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
David Douglas School District
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
MysoreMuleSoftMeetup
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.
IsmaelVazquez38
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"
National Information Standards Organization (NISO)
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
JomonJoseph58
 
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
ImMuslim
 
How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17
Celine George
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
indexPub
 

Recently uploaded (20)

The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
 
skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
 
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
 
How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
 

First LaTeX session of the BIB

  • 1. A Introduction to LTEX Session #1 Oriol Borrega Pedro Tiago Martins Universitat de Barcelona January 14, 2013 Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 1 / 39
  • 2. Outline 1 Preliminary Remarks How a scientific document must be 2 A Why use LTEX instead of a Word Processor? A Advantages of LTEX A Disadvantages of LTEX A X is good at and appropriate for Things LTE A Things LTEX is bad at or not appropriate for 3 A What is LTEX ? History TEX A LTEX 4 A How LTEX works A How LTEX documents are created A The basic structure of a LTEX document 5 A LTEX commands and a small document Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 2 / 39
  • 3. Preliminary Remarks Outline 1 Preliminary Remarks How a scientific document must be 2 A Why use LTEX instead of a Word Processor? A Advantages of LTEX A Disadvantages of LTEX A X is good at and appropriate for Things LTE A Things LTEX is bad at or not appropriate for 3 A What is LTEX ? History TEX A LTEX 4 A How LTEX works A How LTEX documents are created A The basic structure of a LTEX document 5 A LTEX commands and a small document Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 3 / 39
  • 4. Preliminary Remarks How a scientific document must be A scientific document must be: Structured identification (of the author and of the work) (optional) table of contents well-defined and well-placed sections, paragraphs, footnotes, lists, figures, etc.. . . references Readable approx. 66 characters per line (there are actually studies on this. . . ) large margins (for A4 size paper or similar) or two columns serif font for main text no underlining for emphasis (underlining was widely used in the past when emphasis had to be added manually, after the writing was done) no variation between elements of the same kind Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 4 / 39
  • 5. Preliminary Remarks How a scientific document must be A scientific document must be: Structured identification (of the author and of the work) (optional) table of contents well-defined and well-placed sections, paragraphs, footnotes, lists, figures, etc.. . . references Readable approx. 66 characters per line (there are actually studies on this. . . ) large margins (for A4 size paper or similar) or two columns serif font for main text no underlining for emphasis (underlining was widely used in the past when emphasis had to be added manually, after the writing was done) no variation between elements of the same kind Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 4 / 39
  • 6. Preliminary Remarks How a scientific document must be A scientific document must be: Structured identification (of the author and of the work) (optional) table of contents well-defined and well-placed sections, paragraphs, footnotes, lists, figures, etc.. . . references Readable approx. 66 characters per line (there are actually studies on this. . . ) large margins (for A4 size paper or similar) or two columns serif font for main text no underlining for emphasis (underlining was widely used in the past when emphasis had to be added manually, after the writing was done) no variation between elements of the same kind Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 4 / 39
  • 7. Preliminary Remarks How a scientific document must be A scientific document must be: Structured identification (of the author and of the work) (optional) table of contents well-defined and well-placed sections, paragraphs, footnotes, lists, figures, etc.. . . references Readable approx. 66 characters per line (there are actually studies on this. . . ) large margins (for A4 size paper or similar) or two columns serif font for main text no underlining for emphasis (underlining was widely used in the past when emphasis had to be added manually, after the writing was done) no variation between elements of the same kind Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 4 / 39
  • 8. Preliminary Remarks How a scientific document must be A scientific document must be: Structured identification (of the author and of the work) (optional) table of contents well-defined and well-placed sections, paragraphs, footnotes, lists, figures, etc.. . . references Readable approx. 66 characters per line (there are actually studies on this. . . ) large margins (for A4 size paper or similar) or two columns serif font for main text no underlining for emphasis (underlining was widely used in the past when emphasis had to be added manually, after the writing was done) no variation between elements of the same kind Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 4 / 39
  • 9. Preliminary Remarks How a scientific document must be A scientific document must be: Structured identification (of the author and of the work) (optional) table of contents well-defined and well-placed sections, paragraphs, footnotes, lists, figures, etc.. . . references Readable approx. 66 characters per line (there are actually studies on this. . . ) large margins (for A4 size paper or similar) or two columns serif font for main text no underlining for emphasis (underlining was widely used in the past when emphasis had to be added manually, after the writing was done) no variation between elements of the same kind Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 4 / 39
  • 10. Preliminary Remarks How a scientific document must be A scientific document must be: Structured identification (of the author and of the work) (optional) table of contents well-defined and well-placed sections, paragraphs, footnotes, lists, figures, etc.. . . references Readable approx. 66 characters per line (there are actually studies on this. . . ) large margins (for A4 size paper or similar) or two columns serif font for main text no underlining for emphasis (underlining was widely used in the past when emphasis had to be added manually, after the writing was done) no variation between elements of the same kind Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 4 / 39
  • 11. Preliminary Remarks How a scientific document must be A scientific document must be: Structured identification (of the author and of the work) (optional) table of contents well-defined and well-placed sections, paragraphs, footnotes, lists, figures, etc.. . . references Readable approx. 66 characters per line (there are actually studies on this. . . ) large margins (for A4 size paper or similar) or two columns serif font for main text no underlining for emphasis (underlining was widely used in the past when emphasis had to be added manually, after the writing was done) no variation between elements of the same kind Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 4 / 39
  • 12. Preliminary Remarks How a scientific document must be A scientific document must be: Structured identification (of the author and of the work) (optional) table of contents well-defined and well-placed sections, paragraphs, footnotes, lists, figures, etc.. . . references Readable approx. 66 characters per line (there are actually studies on this. . . ) large margins (for A4 size paper or similar) or two columns serif font for main text no underlining for emphasis (underlining was widely used in the past when emphasis had to be added manually, after the writing was done) no variation between elements of the same kind Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 4 / 39
  • 13. Preliminary Remarks How a scientific document must be A scientific document must be: Structured identification (of the author and of the work) (optional) table of contents well-defined and well-placed sections, paragraphs, footnotes, lists, figures, etc.. . . references Readable approx. 66 characters per line (there are actually studies on this. . . ) large margins (for A4 size paper or similar) or two columns serif font for main text no underlining for emphasis (underlining was widely used in the past when emphasis had to be added manually, after the writing was done) no variation between elements of the same kind Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 4 / 39
  • 14. Preliminary Remarks How a scientific document must be A scientific document must be: Structured identification (of the author and of the work) (optional) table of contents well-defined and well-placed sections, paragraphs, footnotes, lists, figures, etc.. . . references Readable approx. 66 characters per line (there are actually studies on this. . . ) large margins (for A4 size paper or similar) or two columns serif font for main text no underlining for emphasis (underlining was widely used in the past when emphasis had to be added manually, after the writing was done) no variation between elements of the same kind Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 4 / 39
  • 15. Preliminary Remarks How a scientific document must be A scientific document must be: Structured identification (of the author and of the work) (optional) table of contents well-defined and well-placed sections, paragraphs, footnotes, lists, figures, etc.. . . references Readable approx. 66 characters per line (there are actually studies on this. . . ) large margins (for A4 size paper or similar) or two columns serif font for main text no underlining for emphasis (underlining was widely used in the past when emphasis had to be added manually, after the writing was done) no variation between elements of the same kind Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 4 / 39
  • 16. Why use L TEX instead of a Word Processor? A Outline 1 Preliminary Remarks How a scientific document must be 2 A Why use LTEX instead of a Word Processor? A Advantages of LTEX A Disadvantages of LTEX A X is good at and appropriate for Things LTE A Things LTEX is bad at or not appropriate for 3 A What is LTEX ? History TEX A LTEX 4 A How LTEX works A How LTEX documents are created A The basic structure of a LTEX document 5 A LTEX commands and a small document Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 5 / 39
  • 17. Why use L TEX instead of a Word Processor? A A Why use LTEX instead of a Word Processor? A Before seeing how to actually use LTEX , let’s look at some of its advantages and disadvantages in relation to Word Processors. Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 6 / 39
  • 18. Why use L TEX instead of a Word Processor? A A Why use LTEX instead of a Word Processor? A Before seeing how to actually use LTEX , let’s look at some of its advantages and disadvantages in relation to Word Processors. Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 6 / 39
  • 19. Why use L TEX instead of a Word Processor? A Advantages of L TEX A A Advantages of LTEX A portability (since it’s just a plain text document, a LTEX file can be written and saved in any device—personal computer, tablet, smartphone, toaster—with any operating system, as long as there’s a text editor available) does not require a lot of processing power, which makes it basically crash-proof and extremely stable backwards compatibility/longevity (a file written in the late 80s will A work on a 2013 installation of LTEX , and probably the same will be true 20 years from now) very good reference management very high typesetting quality default document classes that make the work easier (such as article, book, etc.) it’s free software almost full separation of content and form Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 7 / 39
  • 20. Why use L TEX instead of a Word Processor? A Advantages of L TEX A A Advantages of LTEX A portability (since it’s just a plain text document, a LTEX file can be written and saved in any device—personal computer, tablet, smartphone, toaster—with any operating system, as long as there’s a text editor available) does not require a lot of processing power, which makes it basically crash-proof and extremely stable backwards compatibility/longevity (a file written in the late 80s will A work on a 2013 installation of LTEX , and probably the same will be true 20 years from now) very good reference management very high typesetting quality default document classes that make the work easier (such as article, book, etc.) it’s free software almost full separation of content and form Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 7 / 39
  • 21. Why use L TEX instead of a Word Processor? A Advantages of L TEX A A Advantages of LTEX A portability (since it’s just a plain text document, a LTEX file can be written and saved in any device—personal computer, tablet, smartphone, toaster—with any operating system, as long as there’s a text editor available) does not require a lot of processing power, which makes it basically crash-proof and extremely stable backwards compatibility/longevity (a file written in the late 80s will A work on a 2013 installation of LTEX , and probably the same will be true 20 years from now) very good reference management very high typesetting quality default document classes that make the work easier (such as article, book, etc.) it’s free software almost full separation of content and form Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 7 / 39
  • 22. Why use L TEX instead of a Word Processor? A Advantages of L TEX A A Advantages of LTEX A portability (since it’s just a plain text document, a LTEX file can be written and saved in any device—personal computer, tablet, smartphone, toaster—with any operating system, as long as there’s a text editor available) does not require a lot of processing power, which makes it basically crash-proof and extremely stable backwards compatibility/longevity (a file written in the late 80s will A work on a 2013 installation of LTEX , and probably the same will be true 20 years from now) very good reference management very high typesetting quality default document classes that make the work easier (such as article, book, etc.) it’s free software almost full separation of content and form Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 7 / 39
  • 23. Why use L TEX instead of a Word Processor? A Advantages of L TEX A A Advantages of LTEX A portability (since it’s just a plain text document, a LTEX file can be written and saved in any device—personal computer, tablet, smartphone, toaster—with any operating system, as long as there’s a text editor available) does not require a lot of processing power, which makes it basically crash-proof and extremely stable backwards compatibility/longevity (a file written in the late 80s will A work on a 2013 installation of LTEX , and probably the same will be true 20 years from now) very good reference management very high typesetting quality default document classes that make the work easier (such as article, book, etc.) it’s free software almost full separation of content and form Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 7 / 39
  • 24. Why use L TEX instead of a Word Processor? A Advantages of L TEX A A Advantages of LTEX A portability (since it’s just a plain text document, a LTEX file can be written and saved in any device—personal computer, tablet, smartphone, toaster—with any operating system, as long as there’s a text editor available) does not require a lot of processing power, which makes it basically crash-proof and extremely stable backwards compatibility/longevity (a file written in the late 80s will A work on a 2013 installation of LTEX , and probably the same will be true 20 years from now) very good reference management very high typesetting quality default document classes that make the work easier (such as article, book, etc.) it’s free software almost full separation of content and form Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 7 / 39
  • 25. Why use L TEX instead of a Word Processor? A Advantages of L TEX A A Advantages of LTEX A portability (since it’s just a plain text document, a LTEX file can be written and saved in any device—personal computer, tablet, smartphone, toaster—with any operating system, as long as there’s a text editor available) does not require a lot of processing power, which makes it basically crash-proof and extremely stable backwards compatibility/longevity (a file written in the late 80s will A work on a 2013 installation of LTEX , and probably the same will be true 20 years from now) very good reference management very high typesetting quality default document classes that make the work easier (such as article, book, etc.) it’s free software almost full separation of content and form Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 7 / 39
  • 26. Why use L TEX instead of a Word Processor? A Advantages of L TEX A A Advantages of LTEX A portability (since it’s just a plain text document, a LTEX file can be written and saved in any device—personal computer, tablet, smartphone, toaster—with any operating system, as long as there’s a text editor available) does not require a lot of processing power, which makes it basically crash-proof and extremely stable backwards compatibility/longevity (a file written in the late 80s will A work on a 2013 installation of LTEX , and probably the same will be true 20 years from now) very good reference management very high typesetting quality default document classes that make the work easier (such as article, book, etc.) it’s free software almost full separation of content and form Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 7 / 39
  • 27. Why use L TEX instead of a Word Processor? A Advantages of L TEX A A Advantages of LTEX A portability (since it’s just a plain text document, a LTEX file can be written and saved in any device—personal computer, tablet, smartphone, toaster—with any operating system, as long as there’s a text editor available) does not require a lot of processing power, which makes it basically crash-proof and extremely stable backwards compatibility/longevity (a file written in the late 80s will A work on a 2013 installation of LTEX , and probably the same will be true 20 years from now) very good reference management very high typesetting quality default document classes that make the work easier (such as article, book, etc.) it’s free software almost full separation of content and form Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 7 / 39
  • 28. Why use L TEX instead of a Word Processor? A Disadvantages of L TEX A A Disadvantages of LTEX intimidating at first steep learning curve although widely used in some academic circuits, it’s not as ubiquitous as, for example, Word; some editors and publishers still don’t accept it. Working on a document which requires reviewing or corrections by others can be difficult there is usually no interface (menus, buttons, etc.) lack of native reviewing functionalities like commenting, change-tracking, etc. (not as problematic nowadays, since most pdf viewers have commenting functionalities) the general public sees no clear reason to use it (which contributes to the third point) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 8 / 39
  • 29. Why use L TEX instead of a Word Processor? A Disadvantages of L TEX A A Disadvantages of LTEX intimidating at first steep learning curve although widely used in some academic circuits, it’s not as ubiquitous as, for example, Word; some editors and publishers still don’t accept it. Working on a document which requires reviewing or corrections by others can be difficult there is usually no interface (menus, buttons, etc.) lack of native reviewing functionalities like commenting, change-tracking, etc. (not as problematic nowadays, since most pdf viewers have commenting functionalities) the general public sees no clear reason to use it (which contributes to the third point) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 8 / 39
  • 30. Why use L TEX instead of a Word Processor? A Disadvantages of L TEX A A Disadvantages of LTEX intimidating at first steep learning curve although widely used in some academic circuits, it’s not as ubiquitous as, for example, Word; some editors and publishers still don’t accept it. Working on a document which requires reviewing or corrections by others can be difficult there is usually no interface (menus, buttons, etc.) lack of native reviewing functionalities like commenting, change-tracking, etc. (not as problematic nowadays, since most pdf viewers have commenting functionalities) the general public sees no clear reason to use it (which contributes to the third point) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 8 / 39
  • 31. Why use L TEX instead of a Word Processor? A Disadvantages of L TEX A A Disadvantages of LTEX intimidating at first steep learning curve although widely used in some academic circuits, it’s not as ubiquitous as, for example, Word; some editors and publishers still don’t accept it. Working on a document which requires reviewing or corrections by others can be difficult there is usually no interface (menus, buttons, etc.) lack of native reviewing functionalities like commenting, change-tracking, etc. (not as problematic nowadays, since most pdf viewers have commenting functionalities) the general public sees no clear reason to use it (which contributes to the third point) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 8 / 39
  • 32. Why use L TEX instead of a Word Processor? A Disadvantages of L TEX A A Disadvantages of LTEX intimidating at first steep learning curve although widely used in some academic circuits, it’s not as ubiquitous as, for example, Word; some editors and publishers still don’t accept it. Working on a document which requires reviewing or corrections by others can be difficult there is usually no interface (menus, buttons, etc.) lack of native reviewing functionalities like commenting, change-tracking, etc. (not as problematic nowadays, since most pdf viewers have commenting functionalities) the general public sees no clear reason to use it (which contributes to the third point) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 8 / 39
  • 33. Why use L TEX instead of a Word Processor? A Disadvantages of L TEX A A Disadvantages of LTEX intimidating at first steep learning curve although widely used in some academic circuits, it’s not as ubiquitous as, for example, Word; some editors and publishers still don’t accept it. Working on a document which requires reviewing or corrections by others can be difficult there is usually no interface (menus, buttons, etc.) lack of native reviewing functionalities like commenting, change-tracking, etc. (not as problematic nowadays, since most pdf viewers have commenting functionalities) the general public sees no clear reason to use it (which contributes to the third point) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 8 / 39
  • 34. Why use L TEX instead of a Word Processor? A Disadvantages of L TEX A A Disadvantages of LTEX intimidating at first steep learning curve although widely used in some academic circuits, it’s not as ubiquitous as, for example, Word; some editors and publishers still don’t accept it. Working on a document which requires reviewing or corrections by others can be difficult there is usually no interface (menus, buttons, etc.) lack of native reviewing functionalities like commenting, change-tracking, etc. (not as problematic nowadays, since most pdf viewers have commenting functionalities) the general public sees no clear reason to use it (which contributes to the third point) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 8 / 39
  • 35. Why use L TEX instead of a Word Processor? A Things L TEX is good at and appropriate for A A LTEX is good at and appropriate for potentially long, well structured documents typesetting “complicated things” such as math, logic, phonetic symbols, different writing systems, etc.. . . slide presentations (such as this one) scientific posters managing bibliographic references, cross–references, table of contents, indexes, etc.. . . figures, tables, lists, etc.. . . justification and hyphenation Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 9 / 39
  • 36. Why use L TEX instead of a Word Processor? A Things L TEX is good at and appropriate for A A LTEX is good at and appropriate for potentially long, well structured documents typesetting “complicated things” such as math, logic, phonetic symbols, different writing systems, etc.. . . slide presentations (such as this one) scientific posters managing bibliographic references, cross–references, table of contents, indexes, etc.. . . figures, tables, lists, etc.. . . justification and hyphenation Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 9 / 39
  • 37. Why use L TEX instead of a Word Processor? A Things L TEX is good at and appropriate for A A LTEX is good at and appropriate for potentially long, well structured documents typesetting “complicated things” such as math, logic, phonetic symbols, different writing systems, etc.. . . slide presentations (such as this one) scientific posters managing bibliographic references, cross–references, table of contents, indexes, etc.. . . figures, tables, lists, etc.. . . justification and hyphenation Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 9 / 39
  • 38. Why use L TEX instead of a Word Processor? A Things L TEX is good at and appropriate for A A LTEX is good at and appropriate for potentially long, well structured documents typesetting “complicated things” such as math, logic, phonetic symbols, different writing systems, etc.. . . slide presentations (such as this one) scientific posters managing bibliographic references, cross–references, table of contents, indexes, etc.. . . figures, tables, lists, etc.. . . justification and hyphenation Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 9 / 39
  • 39. Why use L TEX instead of a Word Processor? A Things L TEX is good at and appropriate for A A LTEX is good at and appropriate for potentially long, well structured documents typesetting “complicated things” such as math, logic, phonetic symbols, different writing systems, etc.. . . slide presentations (such as this one) scientific posters managing bibliographic references, cross–references, table of contents, indexes, etc.. . . figures, tables, lists, etc.. . . justification and hyphenation Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 9 / 39
  • 40. Why use L TEX instead of a Word Processor? A Things L TEX is good at and appropriate for A A LTEX is good at and appropriate for potentially long, well structured documents typesetting “complicated things” such as math, logic, phonetic symbols, different writing systems, etc.. . . slide presentations (such as this one) scientific posters managing bibliographic references, cross–references, table of contents, indexes, etc.. . . figures, tables, lists, etc.. . . justification and hyphenation Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 9 / 39
  • 41. Why use L TEX instead of a Word Processor? A Things L TEX is good at and appropriate for A A LTEX is good at and appropriate for potentially long, well structured documents typesetting “complicated things” such as math, logic, phonetic symbols, different writing systems, etc.. . . slide presentations (such as this one) scientific posters managing bibliographic references, cross–references, table of contents, indexes, etc.. . . figures, tables, lists, etc.. . . justification and hyphenation Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 9 / 39
  • 42. Why use L TEX instead of a Word Processor? A Things L TEX is good at and appropriate for A A LTEX is good at and appropriate for potentially long, well structured documents typesetting “complicated things” such as math, logic, phonetic symbols, different writing systems, etc.. . . slide presentations (such as this one) scientific posters managing bibliographic references, cross–references, table of contents, indexes, etc.. . . figures, tables, lists, etc.. . . justification and hyphenation Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 9 / 39
  • 43. Why use L TEX instead of a Word Processor? A Things L TEX is bad at or not appropriate for A A LTEX is bad at or not appropriate for producing badly structured documents (This is really true; if the A document is not properly structured, LTEX will probably give you an error and no ouput) taking notes graphics-heavy or “creative” documents such as flyers, banners, etc. (although it can be done) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 10 / 39
  • 44. Why use L TEX instead of a Word Processor? A Things L TEX is bad at or not appropriate for A A LTEX is bad at or not appropriate for producing badly structured documents (This is really true; if the A document is not properly structured, LTEX will probably give you an error and no ouput) taking notes graphics-heavy or “creative” documents such as flyers, banners, etc. (although it can be done) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 10 / 39
  • 45. Why use L TEX instead of a Word Processor? A Things L TEX is bad at or not appropriate for A A LTEX is bad at or not appropriate for producing badly structured documents (This is really true; if the A document is not properly structured, LTEX will probably give you an error and no ouput) taking notes graphics-heavy or “creative” documents such as flyers, banners, etc. (although it can be done) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 10 / 39
  • 46. Why use L TEX instead of a Word Processor? A Things L TEX is bad at or not appropriate for A A LTEX is bad at or not appropriate for producing badly structured documents (This is really true; if the A document is not properly structured, LTEX will probably give you an error and no ouput) taking notes graphics-heavy or “creative” documents such as flyers, banners, etc. (although it can be done) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 10 / 39
  • 47. What is L TEX ? A Outline 1 Preliminary Remarks How a scientific document must be 2 A Why use LTEX instead of a Word Processor? A Advantages of LTEX A Disadvantages of LTEX A X is good at and appropriate for Things LTE A Things LTEX is bad at or not appropriate for 3 A What is LTEX ? History TEX A LTEX 4 A How LTEX works A How LTEX documents are created A The basic structure of a LTEX document 5 A LTEX commands and a small document Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 11 / 39
  • 48. What is L TEX ? A History A History of LTEX TEXwas designed and developed by Donald Knuth in 1978 (left) A LTEX was developed by Leslie Lamport as an extension of TEXin 1985 (right) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 12 / 39
  • 49. What is L TEX ? A History TEX written by Donald Knuth out of frustration with digital typesetting, when attempting to publish part of his long book “The Art of Computer Programming” the name TEXis formed by the upper-case Greek letters tau, epsilon and chi, resembling the Greek root for the English tech, as in technical (hence the pronunciation) complex typesetting system and programming language very powerful and versatile difficult to use nobody really uses plain TEXanymore Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 13 / 39
  • 50. What is L TEX ? A History TEX written by Donald Knuth out of frustration with digital typesetting, when attempting to publish part of his long book “The Art of Computer Programming” the name TEXis formed by the upper-case Greek letters tau, epsilon and chi, resembling the Greek root for the English tech, as in technical (hence the pronunciation) complex typesetting system and programming language very powerful and versatile difficult to use nobody really uses plain TEXanymore Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 13 / 39
  • 51. What is L TEX ? A History TEX written by Donald Knuth out of frustration with digital typesetting, when attempting to publish part of his long book “The Art of Computer Programming” the name TEXis formed by the upper-case Greek letters tau, epsilon and chi, resembling the Greek root for the English tech, as in technical (hence the pronunciation) complex typesetting system and programming language very powerful and versatile difficult to use nobody really uses plain TEXanymore Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 13 / 39
  • 52. What is L TEX ? A History TEX written by Donald Knuth out of frustration with digital typesetting, when attempting to publish part of his long book “The Art of Computer Programming” the name TEXis formed by the upper-case Greek letters tau, epsilon and chi, resembling the Greek root for the English tech, as in technical (hence the pronunciation) complex typesetting system and programming language very powerful and versatile difficult to use nobody really uses plain TEXanymore Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 13 / 39
  • 53. What is L TEX ? A History TEX written by Donald Knuth out of frustration with digital typesetting, when attempting to publish part of his long book “The Art of Computer Programming” the name TEXis formed by the upper-case Greek letters tau, epsilon and chi, resembling the Greek root for the English tech, as in technical (hence the pronunciation) complex typesetting system and programming language very powerful and versatile difficult to use nobody really uses plain TEXanymore Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 13 / 39
  • 54. What is L TEX ? A History TEX written by Donald Knuth out of frustration with digital typesetting, when attempting to publish part of his long book “The Art of Computer Programming” the name TEXis formed by the upper-case Greek letters tau, epsilon and chi, resembling the Greek root for the English tech, as in technical (hence the pronunciation) complex typesetting system and programming language very powerful and versatile difficult to use nobody really uses plain TEXanymore Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 13 / 39
  • 55. What is L TEX ? A History TEX written by Donald Knuth out of frustration with digital typesetting, when attempting to publish part of his long book “The Art of Computer Programming” the name TEXis formed by the upper-case Greek letters tau, epsilon and chi, resembling the Greek root for the English tech, as in technical (hence the pronunciation) complex typesetting system and programming language very powerful and versatile difficult to use nobody really uses plain TEXanymore Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 13 / 39
  • 56. What is L TEX ? A History A LTEX written by Leslie Lamport as a set of TEXmacros (almost like simple shortcuts for more complex commands), making it possible for mortals to use it A the name LTEX is a combination of the first two letters in Lamport and TEX much simpler to use than TEX the user enters commands which the define the structure of the document along with the text A the formatting is taken care of by LTEX itself “packages” add extra functionality widely used (within the –TEXfamily) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 14 / 39
  • 57. What is L TEX ? A History A LTEX written by Leslie Lamport as a set of TEXmacros (almost like simple shortcuts for more complex commands), making it possible for mortals to use it A the name LTEX is a combination of the first two letters in Lamport and TEX much simpler to use than TEX the user enters commands which the define the structure of the document along with the text A the formatting is taken care of by LTEX itself “packages” add extra functionality widely used (within the –TEXfamily) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 14 / 39
  • 58. What is L TEX ? A History A LTEX written by Leslie Lamport as a set of TEXmacros (almost like simple shortcuts for more complex commands), making it possible for mortals to use it A the name LTEX is a combination of the first two letters in Lamport and TEX much simpler to use than TEX the user enters commands which the define the structure of the document along with the text A the formatting is taken care of by LTEX itself “packages” add extra functionality widely used (within the –TEXfamily) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 14 / 39
  • 59. What is L TEX ? A History A LTEX written by Leslie Lamport as a set of TEXmacros (almost like simple shortcuts for more complex commands), making it possible for mortals to use it A the name LTEX is a combination of the first two letters in Lamport and TEX much simpler to use than TEX the user enters commands which the define the structure of the document along with the text A the formatting is taken care of by LTEX itself “packages” add extra functionality widely used (within the –TEXfamily) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 14 / 39
  • 60. What is L TEX ? A History A LTEX written by Leslie Lamport as a set of TEXmacros (almost like simple shortcuts for more complex commands), making it possible for mortals to use it A the name LTEX is a combination of the first two letters in Lamport and TEX much simpler to use than TEX the user enters commands which the define the structure of the document along with the text A the formatting is taken care of by LTEX itself “packages” add extra functionality widely used (within the –TEXfamily) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 14 / 39
  • 61. What is L TEX ? A History A LTEX written by Leslie Lamport as a set of TEXmacros (almost like simple shortcuts for more complex commands), making it possible for mortals to use it A the name LTEX is a combination of the first two letters in Lamport and TEX much simpler to use than TEX the user enters commands which the define the structure of the document along with the text A the formatting is taken care of by LTEX itself “packages” add extra functionality widely used (within the –TEXfamily) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 14 / 39
  • 62. What is L TEX ? A History A LTEX written by Leslie Lamport as a set of TEXmacros (almost like simple shortcuts for more complex commands), making it possible for mortals to use it A the name LTEX is a combination of the first two letters in Lamport and TEX much simpler to use than TEX the user enters commands which the define the structure of the document along with the text A the formatting is taken care of by LTEX itself “packages” add extra functionality widely used (within the –TEXfamily) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 14 / 39
  • 63. What is L TEX ? A History A LTEX written by Leslie Lamport as a set of TEXmacros (almost like simple shortcuts for more complex commands), making it possible for mortals to use it A the name LTEX is a combination of the first two letters in Lamport and TEX much simpler to use than TEX the user enters commands which the define the structure of the document along with the text A the formatting is taken care of by LTEX itself “packages” add extra functionality widely used (within the –TEXfamily) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 14 / 39
  • 64. How L TEX works A Outline 1 Preliminary Remarks How a scientific document must be 2 A Why use LTEX instead of a Word Processor? A Advantages of LTEX A Disadvantages of LTEX A X is good at and appropriate for Things LTE A Things LTEX is bad at or not appropriate for 3 A What is LTEX ? History TEX A LTEX 4 A How LTEX works A How LTEX documents are created A The basic structure of a LTEX document 5 A LTEX commands and a small document Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 15 / 39
  • 65. How L TEX works A How L TEX documents are created A A How LTEX documents are created you write a file with all the commands and text, which will have the extension .tex A you run LTEX on that file, which will interpret all the commands in order to produce the output, at which point you will also be prompted to choose a folder for your document a beautiful .pdf file is created, suitable for printing (some auxiliary files will be created too, but there’s usually no need to mess with them) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 16 / 39
  • 66. How L TEX works A How L TEX documents are created A A How LTEX documents are created you write a file with all the commands and text, which will have the extension .tex A you run LTEX on that file, which will interpret all the commands in order to produce the output, at which point you will also be prompted to choose a folder for your document a beautiful .pdf file is created, suitable for printing (some auxiliary files will be created too, but there’s usually no need to mess with them) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 16 / 39
  • 67. How L TEX works A How L TEX documents are created A A How LTEX documents are created you write a file with all the commands and text, which will have the extension .tex A you run LTEX on that file, which will interpret all the commands in order to produce the output, at which point you will also be prompted to choose a folder for your document a beautiful .pdf file is created, suitable for printing (some auxiliary files will be created too, but there’s usually no need to mess with them) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 16 / 39
  • 68. How L TEX works A How L TEX documents are created A A How LTEX documents are created you write a file with all the commands and text, which will have the extension .tex A you run LTEX on that file, which will interpret all the commands in order to produce the output, at which point you will also be prompted to choose a folder for your document a beautiful .pdf file is created, suitable for printing (some auxiliary files will be created too, but there’s usually no need to mess with them) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 16 / 39
  • 69. How L TEX works A How L TEX documents are created A A How LTEX documents are created you write a file with all the commands and text, which will have the extension .tex A you run LTEX on that file, which will interpret all the commands in order to produce the output, at which point you will also be prompted to choose a folder for your document a beautiful .pdf file is created, suitable for printing (some auxiliary files will be created too, but there’s usually no need to mess with them) Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 16 / 39
  • 70. How L TEX works A The basic structure of a L TEX document A A Basic structure of a LTEX file A There are three basic commands that all LTEX documents must have: documentclass{article} begin{document} end{document} Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 17 / 39
  • 71. How L TEX works A The basic structure of a L TEX document A A Basic structure of a LTEX file A There are three basic commands that all LTEX documents must have: documentclass{article} begin{document} end{document} Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 17 / 39
  • 72. How L TEX works A The basic structure of a L TEX document A A Basic structure of a LTEX file A There are three basic commands that all LTEX documents must have: documentclass{article} begin{document} end{document} Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 17 / 39
  • 73. How L TEX works A The basic structure of a L TEX document A A Basic structure of a LTEX file A There are three basic commands that all LTEX documents must have: documentclass{article} begin{document} end{document} Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 17 / 39
  • 74. How L TEX works A The basic structure of a L TEX document A A Basic structure of a LTEX file A There are three basic commands that all LTEX documents must have: documentclass{article} begin{document} end{document} Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 17 / 39
  • 75. How L TEX works A The basic structure of a L TEX document A A Basic structure of a LTEX file The existence of these commands defines different parts of your file: documentclass[options]{article} everything that appears here is called the Preamble. Here is where you define general characteristics of your document besides the document class, such as the title, the author, the date, the input language, and other options which will influence the general layout. All of this is accomplished through the use of commands begin{document} here is where the content of your document is going to be, along with commands that define its internal structure end{document} anything that appears here will be completely ignored, even if it’s the complete works of Shakespeare Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 18 / 39
  • 76. How L TEX works A The basic structure of a L TEX document A A Basic structure of a LTEX file The existence of these commands defines different parts of your file: documentclass[options]{article} everything that appears here is called the Preamble. Here is where you define general characteristics of your document besides the document class, such as the title, the author, the date, the input language, and other options which will influence the general layout. All of this is accomplished through the use of commands begin{document} here is where the content of your document is going to be, along with commands that define its internal structure end{document} anything that appears here will be completely ignored, even if it’s the complete works of Shakespeare Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 18 / 39
  • 77. How L TEX works A The basic structure of a L TEX document A A Basic structure of a LTEX file The existence of these commands defines different parts of your file: documentclass[options]{article} everything that appears here is called the Preamble. Here is where you define general characteristics of your document besides the document class, such as the title, the author, the date, the input language, and other options which will influence the general layout. All of this is accomplished through the use of commands begin{document} here is where the content of your document is going to be, along with commands that define its internal structure end{document} anything that appears here will be completely ignored, even if it’s the complete works of Shakespeare Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 18 / 39
  • 78. How L TEX works A The basic structure of a L TEX document A A Basic structure of a LTEX file The existence of these commands defines different parts of your file: documentclass[options]{article} everything that appears here is called the Preamble. Here is where you define general characteristics of your document besides the document class, such as the title, the author, the date, the input language, and other options which will influence the general layout. All of this is accomplished through the use of commands begin{document} here is where the content of your document is going to be, along with commands that define its internal structure end{document} anything that appears here will be completely ignored, even if it’s the complete works of Shakespeare Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 18 / 39
  • 79. How L TEX works A The basic structure of a L TEX document A A Basic structure of a LTEX file The existence of these commands defines different parts of your file: documentclass[options]{article} everything that appears here is called the Preamble. Here is where you define general characteristics of your document besides the document class, such as the title, the author, the date, the input language, and other options which will influence the general layout. All of this is accomplished through the use of commands begin{document} here is where the content of your document is going to be, along with commands that define its internal structure end{document} anything that appears here will be completely ignored, even if it’s the complete works of Shakespeare Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 18 / 39
  • 80. How L TEX works A The basic structure of a L TEX document A A Basic structure of a LTEX file The existence of these commands defines different parts of your file: documentclass[options]{article} everything that appears here is called the Preamble. Here is where you define general characteristics of your document besides the document class, such as the title, the author, the date, the input language, and other options which will influence the general layout. All of this is accomplished through the use of commands begin{document} here is where the content of your document is going to be, along with commands that define its internal structure end{document} anything that appears here will be completely ignored, even if it’s the complete works of Shakespeare Borrega & Martins (UB) A Introduction to L TEX Session #1 January 14, 2013 18 / 39
  • 81. How L TEX works A The basic structure of a L TEX document A Minimal example Using only the mandatory commands, we can write a minimal document: documentclass{article} begin{document} Hello! end{document} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 19 / 39
  • 82. How L TEX works A The basic structure of a L TEX document A Minimal example Using only the mandatory commands, we can write a minimal document: documentclass{article} begin{document} Hello! end{document} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 19 / 39
  • 83. How L TEX works A The basic structure of a L TEX document A Minimal example Using only the mandatory commands, we can write a minimal document: documentclass{article} begin{document} Hello! end{document} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 19 / 39
  • 84. L TEX commands and a small document A Outline 1 Preliminary Remarks How a scientific document must be 2 A Why use LTEX instead of a Word Processor? A Advantages of LTEX A Disadvantages of LTEX A X is good at and appropriate for Things LTE A Things LTEX is bad at or not appropriate for 3 A What is LTEX ? History TEX A LTEX 4 A How LTEX works A How LTEX documents are created A The basic structure of a LTEX document 5 A LTEX commands and a small document Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 20 / 39
  • 85. L TEX commands and a small document A Document class The document class defines the general layout of the document. Common document classes are: article (which we will be using for now) book thesis report letter We can define the document class by using the appropriate command followed by the name of the class enclosed in braces, which would make it the main argument of the command: documentclass{article} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 21 / 39
  • 86. L TEX commands and a small document A Document class The document class defines the general layout of the document. Common document classes are: article (which we will be using for now) book thesis report letter We can define the document class by using the appropriate command followed by the name of the class enclosed in braces, which would make it the main argument of the command: documentclass{article} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 21 / 39
  • 87. L TEX commands and a small document A Document class The document class defines the general layout of the document. Common document classes are: article (which we will be using for now) book thesis report letter We can define the document class by using the appropriate command followed by the name of the class enclosed in braces, which would make it the main argument of the command: documentclass{article} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 21 / 39
  • 88. L TEX commands and a small document A Document class The document class defines the general layout of the document. Common document classes are: article (which we will be using for now) book thesis report letter We can define the document class by using the appropriate command followed by the name of the class enclosed in braces, which would make it the main argument of the command: documentclass{article} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 21 / 39
  • 89. L TEX commands and a small document A Document class The document class defines the general layout of the document. Common document classes are: article (which we will be using for now) book thesis report letter We can define the document class by using the appropriate command followed by the name of the class enclosed in braces, which would make it the main argument of the command: documentclass{article} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 21 / 39
  • 90. L TEX commands and a small document A Document class The document class defines the general layout of the document. Common document classes are: article (which we will be using for now) book thesis report letter We can define the document class by using the appropriate command followed by the name of the class enclosed in braces, which would make it the main argument of the command: documentclass{article} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 21 / 39
  • 91. L TEX commands and a small document A Document class The document class defines the general layout of the document. Common document classes are: article (which we will be using for now) book thesis report letter We can define the document class by using the appropriate command followed by the name of the class enclosed in braces, which would make it the main argument of the command: documentclass{article} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 21 / 39
  • 92. L TEX commands and a small document A Document class The document class defines the general layout of the document. Common document classes are: article (which we will be using for now) book thesis report letter We can define the document class by using the appropriate command followed by the name of the class enclosed in braces, which would make it the main argument of the command: documentclass{article} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 21 / 39
  • 93. L TEX commands and a small document A Document class The document class defines the general layout of the document. Common document classes are: article (which we will be using for now) book thesis report letter We can define the document class by using the appropriate command followed by the name of the class enclosed in braces, which would make it the main argument of the command: documentclass{article} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 21 / 39
  • 94. L TEX commands and a small document A Optional arguments However, we can also modify the class a little bit by using optional arguments, which don’t have to be there (hence the name), and are enclosed in square brackets. If more than one is used, they must be separated by commas. Some common options include: Font size: 10pt (default), 11pt, 12pt. . . Paper size: a4paper (usually default), letterpaper. . . Orientation: portrait (default), landscape. . . Let’s say we want to write an article with 12pt fontsize and a4paper. We would declare it in the preamble the following way: documentclass[a4paper,12pt]{article} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 22 / 39
  • 95. L TEX commands and a small document A Optional arguments However, we can also modify the class a little bit by using optional arguments, which don’t have to be there (hence the name), and are enclosed in square brackets. If more than one is used, they must be separated by commas. Some common options include: Font size: 10pt (default), 11pt, 12pt. . . Paper size: a4paper (usually default), letterpaper. . . Orientation: portrait (default), landscape. . . Let’s say we want to write an article with 12pt fontsize and a4paper. We would declare it in the preamble the following way: documentclass[a4paper,12pt]{article} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 22 / 39
  • 96. L TEX commands and a small document A Optional arguments However, we can also modify the class a little bit by using optional arguments, which don’t have to be there (hence the name), and are enclosed in square brackets. If more than one is used, they must be separated by commas. Some common options include: Font size: 10pt (default), 11pt, 12pt. . . Paper size: a4paper (usually default), letterpaper. . . Orientation: portrait (default), landscape. . . Let’s say we want to write an article with 12pt fontsize and a4paper. We would declare it in the preamble the following way: documentclass[a4paper,12pt]{article} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 22 / 39
  • 97. L TEX commands and a small document A Optional arguments However, we can also modify the class a little bit by using optional arguments, which don’t have to be there (hence the name), and are enclosed in square brackets. If more than one is used, they must be separated by commas. Some common options include: Font size: 10pt (default), 11pt, 12pt. . . Paper size: a4paper (usually default), letterpaper. . . Orientation: portrait (default), landscape. . . Let’s say we want to write an article with 12pt fontsize and a4paper. We would declare it in the preamble the following way: documentclass[a4paper,12pt]{article} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 22 / 39
  • 98. L TEX commands and a small document A Optional arguments However, we can also modify the class a little bit by using optional arguments, which don’t have to be there (hence the name), and are enclosed in square brackets. If more than one is used, they must be separated by commas. Some common options include: Font size: 10pt (default), 11pt, 12pt. . . Paper size: a4paper (usually default), letterpaper. . . Orientation: portrait (default), landscape. . . Let’s say we want to write an article with 12pt fontsize and a4paper. We would declare it in the preamble the following way: documentclass[a4paper,12pt]{article} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 22 / 39
  • 99. L TEX commands and a small document A Optional arguments However, we can also modify the class a little bit by using optional arguments, which don’t have to be there (hence the name), and are enclosed in square brackets. If more than one is used, they must be separated by commas. Some common options include: Font size: 10pt (default), 11pt, 12pt. . . Paper size: a4paper (usually default), letterpaper. . . Orientation: portrait (default), landscape. . . Let’s say we want to write an article with 12pt fontsize and a4paper. We would declare it in the preamble the following way: documentclass[a4paper,12pt]{article} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 22 / 39
  • 100. L TEX commands and a small document A Optional arguments However, we can also modify the class a little bit by using optional arguments, which don’t have to be there (hence the name), and are enclosed in square brackets. If more than one is used, they must be separated by commas. Some common options include: Font size: 10pt (default), 11pt, 12pt. . . Paper size: a4paper (usually default), letterpaper. . . Orientation: portrait (default), landscape. . . Let’s say we want to write an article with 12pt fontsize and a4paper. We would declare it in the preamble the following way: documentclass[a4paper,12pt]{article} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 22 / 39
  • 101. L TEX commands and a small document A Optional arguments However, we can also modify the class a little bit by using optional arguments, which don’t have to be there (hence the name), and are enclosed in square brackets. If more than one is used, they must be separated by commas. Some common options include: Font size: 10pt (default), 11pt, 12pt. . . Paper size: a4paper (usually default), letterpaper. . . Orientation: portrait (default), landscape. . . Let’s say we want to write an article with 12pt fontsize and a4paper. We would declare it in the preamble the following way: documentclass[a4paper,12pt]{article} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 22 / 39
  • 102. L TEX commands and a small document A Packages A Packages are extensions of the basic functionality of LTEX , providing additional features when declared in the preamble. There are hundreds of packages available, for doing anything you can A think of, and many of them come with the basic installation of LTEX ; they just need to be called by us. If we were to use a package in our document—we won’t for this session, but we will later—we would do it the following way: documentclass[a4paper,12pt]{article} usepackage{nameofthepackage} (let’s ignore packages for now and delete this command from our document) Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 23 / 39
  • 103. L TEX commands and a small document A Packages A Packages are extensions of the basic functionality of LTEX , providing additional features when declared in the preamble. There are hundreds of packages available, for doing anything you can A think of, and many of them come with the basic installation of LTEX ; they just need to be called by us. If we were to use a package in our document—we won’t for this session, but we will later—we would do it the following way: documentclass[a4paper,12pt]{article} usepackage{nameofthepackage} (let’s ignore packages for now and delete this command from our document) Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 23 / 39
  • 104. L TEX commands and a small document A Packages A Packages are extensions of the basic functionality of LTEX , providing additional features when declared in the preamble. There are hundreds of packages available, for doing anything you can A think of, and many of them come with the basic installation of LTEX ; they just need to be called by us. If we were to use a package in our document—we won’t for this session, but we will later—we would do it the following way: documentclass[a4paper,12pt]{article} usepackage{nameofthepackage} (let’s ignore packages for now and delete this command from our document) Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 23 / 39
  • 105. L TEX commands and a small document A Packages A Packages are extensions of the basic functionality of LTEX , providing additional features when declared in the preamble. There are hundreds of packages available, for doing anything you can A think of, and many of them come with the basic installation of LTEX ; they just need to be called by us. If we were to use a package in our document—we won’t for this session, but we will later—we would do it the following way: documentclass[a4paper,12pt]{article} usepackage{nameofthepackage} (let’s ignore packages for now and delete this command from our document) Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 23 / 39
  • 106. L TEX commands and a small document A Packages A Packages are extensions of the basic functionality of LTEX , providing additional features when declared in the preamble. There are hundreds of packages available, for doing anything you can A think of, and many of them come with the basic installation of LTEX ; they just need to be called by us. If we were to use a package in our document—we won’t for this session, but we will later—we would do it the following way: documentclass[a4paper,12pt]{article} usepackage{nameofthepackage} (let’s ignore packages for now and delete this command from our document) Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 23 / 39
  • 107. L TEX commands and a small document A Packages A Packages are extensions of the basic functionality of LTEX , providing additional features when declared in the preamble. There are hundreds of packages available, for doing anything you can A think of, and many of them come with the basic installation of LTEX ; they just need to be called by us. If we were to use a package in our document—we won’t for this session, but we will later—we would do it the following way: documentclass[a4paper,12pt]{article} usepackage{nameofthepackage} (let’s ignore packages for now and delete this command from our document) Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 23 / 39
  • 108. L TEX commands and a small document A Title, author and date Like we mentioned before, it’s a good idea to identify the document. There are three basic things: Title Author Date (if we don’t use the command, the current date is fetched from the system and used) Let’s give our document a title, author and date, using the aptly-named title, author and date commands: documentclass[a4paper,12pt]{article} title{It is very simple to write good-looking documents} author{John Smith} date{June 10, 2020} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 24 / 39
  • 109. L TEX commands and a small document A Title, author and date Like we mentioned before, it’s a good idea to identify the document. There are three basic things: Title Author Date (if we don’t use the command, the current date is fetched from the system and used) Let’s give our document a title, author and date, using the aptly-named title, author and date commands: documentclass[a4paper,12pt]{article} title{It is very simple to write good-looking documents} author{John Smith} date{June 10, 2020} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 24 / 39
  • 110. L TEX commands and a small document A Title, author and date Like we mentioned before, it’s a good idea to identify the document. There are three basic things: Title Author Date (if we don’t use the command, the current date is fetched from the system and used) Let’s give our document a title, author and date, using the aptly-named title, author and date commands: documentclass[a4paper,12pt]{article} title{It is very simple to write good-looking documents} author{John Smith} date{June 10, 2020} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 24 / 39
  • 111. L TEX commands and a small document A Title, author and date Like we mentioned before, it’s a good idea to identify the document. There are three basic things: Title Author Date (if we don’t use the command, the current date is fetched from the system and used) Let’s give our document a title, author and date, using the aptly-named title, author and date commands: documentclass[a4paper,12pt]{article} title{It is very simple to write good-looking documents} author{John Smith} date{June 10, 2020} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 24 / 39
  • 112. L TEX commands and a small document A Title, author and date Like we mentioned before, it’s a good idea to identify the document. There are three basic things: Title Author Date (if we don’t use the command, the current date is fetched from the system and used) Let’s give our document a title, author and date, using the aptly-named title, author and date commands: documentclass[a4paper,12pt]{article} title{It is very simple to write good-looking documents} author{John Smith} date{June 10, 2020} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 24 / 39
  • 113. L TEX commands and a small document A Title, author and date Like we mentioned before, it’s a good idea to identify the document. There are three basic things: Title Author Date (if we don’t use the command, the current date is fetched from the system and used) Let’s give our document a title, author and date, using the aptly-named title, author and date commands: documentclass[a4paper,12pt]{article} title{It is very simple to write good-looking documents} author{John Smith} date{June 10, 2020} Borrega & Martins (UB) Introduction to L TEX Session #1 A January 14, 2013 24 / 39