Editing documents     with L TEX           A  Laura M. Castro Souto          Master on Free Software
List of topics1 Introduction2 Creating documents3 Formatting documents4 Editting documents5 Conclusions                   ...
Introduction: what is LaTeX?Software system to produce high-quality digitaldocuments                    Master on Free Sof...
Introduction: what is LaTeX?Software system to produce high-quality digitaldocuments . . . oh, yet another text processor?...
Introduction: what is LaTeX?Software system to produce high-quality digitaldocuments . . . oh, yet another text processor?...
Introduction: what is LaTeX?Input file                       Document   Text    +Commands                LATEX            ...
Introduction: what is LaTeX?Input file                          Document   Text    +Commands                  LATEX       ...
Introduction: what for? Text typesetting = Text processing• Page numbering• Context-sensitive headings• Chapters, sections...
Introduction: what for? Text typesetting = Text processing• Page numbering• Context-sensitive headings• Chapters, sections...
Introduction: what for?   Text typesetting = Text processing • Page numbering • Context-sensitive headings • Chapters, sec...
Introduction: what for?• Articles, reports• Dissertations, manuals, books                      Master on Free Software
Introduction: what for?• Articles, reports• Dissertations, manuals, books  also,    • letters    • presentations    • web ...
Introduction: how?1   Source text edition      •   Input file (plain text, .tex)      •   Embedded L TEX commands          ...
Introduction: how?               document.aux                document.log                     ...                         ...
Introduction: how?               document.aux                document.log                     ...                         ...
Introduction: how?• Linux:    •   texlive; kile, texmaker; evince, okular. . .• Windows:    •   MikTEX; TEXnicCenter• Mac:...
Creating documents:       basic structureL TEX source files are logically divided in twoAparts:Preamble At the beginning of...
Creating documents:         basic structure documentclass{ a r t i c l e } begin{document}This i s my f i r s t LaTeX docu...
Creating documents:         basic structure                                          Preamble documentclass{ a r t i c l e...
Creating documents:         basic structure                                          Preamble documentclass{ a r t i c l e...
Creating documents:         basic structure documentclass{ a r t i c l e }           command begin{document}This i s my f ...
Creating documents:         basic structure documentclass{ a r t i c l e }           command begin{document}This i s my f ...
Creating documents:       document typesEvery document begins with the command: documentclass [ options ]{document−class−n...
Creating documents:      document typesDocument class options:Base font size: 10pt, 11pt, 12ptPaper format: letterpaper, a...
Creating documents:        global settingsL TEX assumes English language, but:A usepackage [ spanish ]{babel} usepackage [...
Formatting documents:       front (title) pageL TEX generates simple title pages if we provideAsome information in the pre...
Formatting documents:         divisionsSyntax:  section [ Short t i t l e ]{Long t i t l e of d i v i s i o n}L TEX divisi...
Formatting documents:       stylesThere are 3 basic headings/footers styles: empty empty headers and footers   plain empty...
Editting documents:          basic elementsAn environment is a document portionbetween a pair of begin-end commands: begin...
Editting documents:      basic elementsEnvironments and blocks: • affect the portion of the document inside • can be neste...
Editting documents: fontsL TEX font families:A  1   roman (default)  2   sanserif  3   typewriter   textrm{Short text}    ...
Editting documents: fontsL TEX font shapes:A  1   up (default)               3   slanted  2   italics                    4...
Editting documents: fontsL TEX font faces:A  1   medium (default)  2   bold   textmd{Short text}     {  mdseries Text }   ...
Editting documents: fonts         Master on Free Software
Editting documents: fonts{tiny         Text }{scriptsize    Text }{footnotesize Text }                      L TEX font siz...
Editting documents: fontsContext-sensitive emphasis:emph{Text}Underline: underline{Text}Unprocessed text: begin{verbatim} ...
Editting documents: listsThere are three kinds of lists in L TEX:                                  A  • this is one of the...
Editting documents: lists  1   This is another kind of list,  2   a list of items with a numbered label,  3   presents ord...
Editting documents: lists      last this is the third kind of listskeyword a description after the highlighted       term ...
Editting documents: lists  1   Of course:        •   different kinds of lists        •   can be combined  2   as needed. b...
Editting documents:         text alignmentL TEX always aligns text in both margins.A begin{ f l u s h l e f t }Left−only a...
Editting documents:         text alignment                            But we can customize it. . . begin{f l u s h r i g h...
Editting documents:        text alignment                . . . to fit our needs. begin{center}Centered text end{center} cen...
Editting documents:           citations and notesSide notes and footnotes1 : footnote{Footnote text} marginpar{Side note t...
Editting documents:      floating elementsText can be rearranged; some elements can’t:floating elements  • position of a floa...
Editting documents: tablesText can be arranged as a table using thetabular environment:               this is just a simpl...
Editting documents: tablesThere are several commands to draw linesalongside rows and columns:               this is just a...
Editting documents: tablesThere are several commands to draw linesalongside rows and columns:                this is just ...
Editting documents: tablesSame-row/-column cells can be combined:                 this is just                            ...
Editting documents: tablesSame-row/-column cells can be combined:                 this is just                            ...
Editting documents: tablesTabular is not a floating environment, we usetable to wrap it as such:              this is just ...
Editting documents: tablesFloating elements placement preferenceoptions:        h preferred location is here        b pref...
Editting documents: imagesImages can be inserted using commandincludegraphics from package graphicx: includegraphics [ wid...
Editting documents: imagesIncludegraphics options:  width = integer/decimal + unit height = integer/decimal + unit  scale ...
Editting documents: imagesIncludegraphics does not turn an image into afloating element, figure environment does:           ...
Editting documents: imagesImage formats supported byincludegraphics depend on the toolwe use to produce the final document!...
Editting documents:        referencesTo include references in a L TEX document:                           A  1   Mark refe...
Editting documents:         bibliographic references begin{thebibliography}{ZZ} bibitem{libroLaTeX}   Bernardo Cascales Sa...
Editting documents:        bibliographic referencesBibTEX is a complementary tool to L TEX which                          ...
Editting documents:       bibliographic referencesBibliographic references file (.bib) format:@BOOK{libroLatex ,  author   ...
Editting documents:       bibliographic referencesBibTEX file (sample.bib) usage in L TEX source:                          ...
Editting documents:     bibliographic references            latex document . tex            bibtex document . aux         ...
ConclusionsL TEX is a very powerful tool whichA  • automatizes many of the formatting    tasks involved in producing a dig...
ConclusionsWe have learned to create a L TEX document,                            A  • choose the appropriate document cla...
L TEX references    AEl libro de L TEX.            ABernardo Cascales Salinas et al.Prentice Hall, 2004.Iniciación a L TEX...
L TEX references   AThe Comprehensive TEX Archive Network(CTAN)www.ctan.orgL TEX – A document preparation systemAwww.latex...
Advanced topics:        what do you want to know?How do I. . . ?  • structure a document in different files?  • set up my o...
Advanced topics:     what do you want to know?• adjust spacing?• personalize an itemize list?• use color in text or tables...
How to:          structure a file (physically) input{ f i l e . tex} include{ f i l e }Diferences:  • include assumes .tex ...
How to:       create your title pageTo create a customized front/title page: begin{titlepage}TITLE PAGE DEFINITION HERE en...
How to:       set up columnsWhole document: documentclass[twocolumn]{...}Document portion: usepackage{multicol} begin{mult...
How to:        change headingsCustomizable page style myheadings,enables use of markright{right −header} markboth{ l e f t...
How to:        customize marginsEasiest way: usepackage{anysize}enables use of marginsize{ l e f t }{r i g h t}{top}{botto...
How to:       mess with spacingChange line spacing: usepackage{setspace} singlespacing  onehalfspacing         doublespaci...
How to:       personalize listsCustomizable list environment: list ♣ list ♣ with customized ♣ symbol      begin{ l i s t }...
How to:       use colorUsing package color we can:text                 textcolor{green}{text} background          colorbox...
How to:       use colorUsing package color we can:text                textcolor{green}{text} background         colorbox{g...
How to:        use color               this is just a simple           example          of a table begin{tabular }{| rc |>...
How to:        use color               this is just a simple           example          of a table begin{tabular }{| rc |>...
How to:        create letters documentclass{ l e t t e r } begin{document} begin{ l e t t e r }{Chalmers University} openi...
How to:    create slides• First L T X document class aimed for slide        A           E  presentations: slides• Each sli...
How to:     create slides• One of the first alternatives: Prosper• Best result/effort ration• documentclass{prosper}, envir...
How to:          create slides   • 3rd tool generation: Beamer   • The most flexible, powerful, popular   • Class beamer, e...
Upcoming SlideShare
Loading in...5
×

Editing documents with LaTeX

735

Published on

Master on Free Software.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
735
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
40
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Editing documents with LaTeX

  1. 1. Editing documents with L TEX A Laura M. Castro Souto Master on Free Software
  2. 2. List of topics1 Introduction2 Creating documents3 Formatting documents4 Editting documents5 Conclusions Master on Free Software
  3. 3. Introduction: what is LaTeX?Software system to produce high-quality digitaldocuments Master on Free Software
  4. 4. Introduction: what is LaTeX?Software system to produce high-quality digitaldocuments . . . oh, yet another text processor? Master on Free Software
  5. 5. Introduction: what is LaTeX?Software system to produce high-quality digitaldocuments . . . oh, yet another text processor?Not really: • Not a WYSIWYG tool • Any text editor can be used for editing • Together with the text content, some commands are written • Commands specify how the text is turned into the digital document Master on Free Software
  6. 6. Introduction: what is LaTeX?Input file Document Text +Commands LATEX Master on Free Software
  7. 7. Introduction: what is LaTeX?Input file Document Text +Commands LATEX Actually, this is L TEX too. A Master on Free Software
  8. 8. Introduction: what for? Text typesetting = Text processing• Page numbering• Context-sensitive headings• Chapters, sections, figures. . . numbering• Management of indexes, notes, refs. . . Master on Free Software
  9. 9. Introduction: what for? Text typesetting = Text processing• Page numbering• Context-sensitive headings• Chapters, sections, figures. . . numbering• Management of indexes, notes, refs. . . L TEX automatizes text processing A Master on Free Software
  10. 10. Introduction: what for? Text typesetting = Text processing • Page numbering • Context-sensitive headings • Chapters, sections, figures. . . numbering • Management of indexes, notes, refs. . . L TEX automatizes text processing A. . . so that you can focus on text typesetting. Master on Free Software
  11. 11. Introduction: what for?• Articles, reports• Dissertations, manuals, books Master on Free Software
  12. 12. Introduction: what for?• Articles, reports• Dissertations, manuals, books also, • letters • presentations • web content • ... Master on Free Software
  13. 13. Introduction: how?1 Source text edition • Input file (plain text, .tex) • Embedded L TEX commands A2 Compilation • L TEX compiler processes source code, A applying commands to text content to produce final document3 Visualization/printing • L TEX’s compiler DVI output is usually A transformed into Postscript or PDF Master on Free Software
  14. 14. Introduction: how? document.aux document.log ... document.ps dvips pdf2ps LA T E X document.dvidocument.tex ps2pdf dvipdfm P D F LA T E X document.pdf Master on Free Software
  15. 15. Introduction: how? document.aux document.log ... document.ps dvips pdf2ps LA T E X document.dvidocument.tex ps2pdf dvipdfm P D F LA T E X document.pdf Master on Free Software
  16. 16. Introduction: how?• Linux: • texlive; kile, texmaker; evince, okular. . .• Windows: • MikTEX; TEXnicCenter• Mac: • MacTEX; TEXShop, iTEXMac Master on Free Software
  17. 17. Creating documents: basic structureL TEX source files are logically divided in twoAparts:Preamble At the beginning of the document, includes general settings Body After the preamble, includes text content together with embedded commands with limited scope Master on Free Software
  18. 18. Creating documents: basic structure documentclass{ a r t i c l e } begin{document}This i s my f i r s t LaTeX document . end{document} Master on Free Software
  19. 19. Creating documents: basic structure Preamble documentclass{ a r t i c l e } begin{document}This i s my f i r s t LaTeX document . end{document} Master on Free Software
  20. 20. Creating documents: basic structure Preamble documentclass{ a r t i c l e } begin{document}This i s my f i r s t LaTeX document . end{document} Body Master on Free Software
  21. 21. Creating documents: basic structure documentclass{ a r t i c l e } command begin{document}This i s my f i r s t LaTeX document . end{document} Master on Free Software
  22. 22. Creating documents: basic structure documentclass{ a r t i c l e } command begin{document}This i s my f i r s t LaTeX document . end{document} environment Master on Free Software
  23. 23. Creating documents: document typesEvery document begins with the command: documentclass [ options ]{document−class−name}Basic L TEX document classes: Aarticle, proc Suitable for short documentsbook, report Suitable for long documentsletter, slides Specific purpose documents Master on Free Software
  24. 24. Creating documents: document typesDocument class options:Base font size: 10pt, 11pt, 12ptPaper format: letterpaper, a4paper. . .Page format: oneside, twoside ⇒ openright/openanyColumn format: onecolumn, twocolumnTitle page: titlepage, notitlepage Master on Free Software
  25. 25. Creating documents: global settingsL TEX assumes English language, but:A usepackage [ spanish ]{babel} usepackage [ utf8 ]{ inputenc} • Command usepackage loads modules • Placed always in the preamble • May receive options (spanish, utf8. . . ) Master on Free Software
  26. 26. Formatting documents: front (title) pageL TEX generates simple title pages if we provideAsome information in the preamble: t i t l e {Document t i t l e } author{Author or authors of the document} date{Document date}To actually display the title page, in the body: maketitle Master on Free Software
  27. 27. Formatting documents: divisionsSyntax: section [ Short t i t l e ]{Long t i t l e of d i v i s i o n}L TEX divisions: part, chapter, section,Asubsection, subsubsection, paragraph,subparagraphRelated commands: tableofcontents, appendix Master on Free Software
  28. 28. Formatting documents: stylesThere are 3 basic headings/footers styles: empty empty headers and footers plain empty header, centered page number in footerheadings page number and current division title in headerUsed/changed adding to the preamble: pagestyle{style −name} Master on Free Software
  29. 29. Editting documents: basic elementsAn environment is a document portionbetween a pair of begin-end commands: begin{environment−name}... end{environment−name}Similarly, a block is a document portionbetween two brackets:{ ... } Master on Free Software
  30. 30. Editting documents: basic elementsEnvironments and blocks: • affect the portion of the document inside • can be nested • when nested, their effects are combined Master on Free Software
  31. 31. Editting documents: fontsL TEX font families:A 1 roman (default) 2 sanserif 3 typewriter textrm{Short text} { rmfamily Text } t e x t s f{Short text} { sffamily Text } t e x t t t{Short text} { t t f a m i l y Text } begin{rmfamily} Long text end{rmfamily} begin{sffamily} Long text end{sffamily} begin{t t f a m i l y} Long text end{t t f a m i l y} Master on Free Software
  32. 32. Editting documents: fontsL TEX font shapes:A 1 up (default) 3 slanted 2 italics 4 small caps textup{Short text} { upshape Text } t e x t i t {Short text} { itshape Text } t e x t s l{Short text} { slshape Text } textsc{Short text} { scshape Text } begin{upshape} Long text end{upshape} begin{itshape} Long text end{itshape} begin{slshape} Long text end{slshape} begin{scshape} Long text end{scshape} Master on Free Software
  33. 33. Editting documents: fontsL TEX font faces:A 1 medium (default) 2 bold textmd{Short text} { mdseries Text } textbf{Short text} { bfseries Text } begin{mdseries} Long text end{mdseries} begin{bfseries} Long text end{bfseries}Different font families, shapes and fonts can becombined, but not every combination exists. . . Master on Free Software
  34. 34. Editting documents: fonts Master on Free Software
  35. 35. Editting documents: fonts{tiny Text }{scriptsize Text }{footnotesize Text } L TEX font sizes A{small Text }{normalsize Text }{large Text }{Large Text }{LARGE Text }{huge Text }{Huge Text } Master on Free Software
  36. 36. Editting documents: fontsContext-sensitive emphasis:emph{Text}Underline: underline{Text}Unprocessed text: begin{verbatim} Verbatim environment end{verbatim} Master on Free Software
  37. 37. Editting documents: listsThere are three kinds of lists in L TEX: A • this is one of them • a list of items • the most widely used begin{itemize} item t h i s i s one of them item a l i s t of items item the most widely used end{itemize} Master on Free Software
  38. 38. Editting documents: lists 1 This is another kind of list, 2 a list of items with a numbered label, 3 presents ordered items. begin{enumerate} item This i s another kind of l i s t , item a l i s t of items with a numbered label , item presents ordered items . end{enumerate} Master on Free Software
  39. 39. Editting documents: lists last this is the third kind of listskeyword a description after the highlighted term begin{description} item [ l a s t ] t h i s i s the t h i r d kind of l i s t s item [keyword] a description a f t e r the highlighted term end{description} Master on Free Software
  40. 40. Editting documents: lists 1 Of course: • different kinds of lists • can be combined 2 as needed. begin{enumerate} item Of course : begin{itemize} item d i f f e r e n t kinds of l i s t s item can be combined end{itemize} item as needed . end{enumerate} Master on Free Software
  41. 41. Editting documents: text alignmentL TEX always aligns text in both margins.A begin{ f l u s h l e f t }Left−only aligned text end{ f l u s h l e f t } l e f t l i n e {Left−only aligned l i n e } Master on Free Software
  42. 42. Editting documents: text alignment But we can customize it. . . begin{f l u s h r i g h t}Right−only aligned text end{ f l u s h l e f t } r i g h t l i n e {Right−only aligned l i n e } Master on Free Software
  43. 43. Editting documents: text alignment . . . to fit our needs. begin{center}Centered text end{center} centerline{Centered l i n e } Master on Free Software
  44. 44. Editting documents: citations and notesSide notes and footnotes1 : footnote{Footnote text} marginpar{Side note text}Text in a quote or quotation environment: Wider margins and emphasized font, so that it stands out among the rest. 1 Are very easy to include. Master on Free Software
  45. 45. Editting documents: floating elementsText can be rearranged; some elements can’t:floating elements • position of a floating element will be determined depending on its context • dimensions and placement of the floating element are as important as its contentTypical floating elements: tables and figures Master on Free Software
  46. 46. Editting documents: tablesText can be arranged as a table using thetabular environment: this is just a simple example of a table begin{tabular}{ r c l }this & i s j u s t & a simple example & & of a table end{tabular} Master on Free Software
  47. 47. Editting documents: tablesThere are several commands to draw linesalongside rows and columns: this is just a simple example of a table begin{tabular }{| r | c | l |} hlinethis & i s j u s t & a simple hlineexample & & of a table hline end{tabular} Master on Free Software
  48. 48. Editting documents: tablesThere are several commands to draw linesalongside rows and columns: this is just a simple example of a table begin{tabular }{| rc | l |} hline hlinethis & i s j u s t & a simple c l i n e{1−2}example & & of a table hline hline end{tabular} Master on Free Software
  49. 49. Editting documents: tablesSame-row/-column cells can be combined: this is just table a simple example of begin{tabular }{| r | c | l |} hline multicolumn{2}{c}{t h i s i s j u s t} & multirow{2}{*}{table } c l i n e{1−2}a simple & example of & c l i n e{1−2} end{tabular} Master on Free Software
  50. 50. Editting documents: tablesSame-row/-column cells can be combined: this is just table a simple example of begin{tabular }{| r | c | l |} hline multicolumn{2}{c}{t h i s i s j u s t} & multirow{2}{*}{table } c l i n e{1−2}a simple & example of & c l i n e{1−2} end{tabular} usepackage{multirow} Master on Free Software
  51. 51. Editting documents: tablesTabular is not a floating environment, we usetable to wrap it as such: this is just table a simple example of Table: Sample table begin{table }[hp ! ]TABLE DEFINITION HERE caption{Sample table} end{table} Master on Free Software
  52. 52. Editting documents: tablesFloating elements placement preferenceoptions: h preferred location is here b preferred location is page bottom t preferred location is page top p preferred location is exclusive page ! demands flexibilityTable index: listoftables Master on Free Software
  53. 53. Editting documents: imagesImages can be inserted using commandincludegraphics from package graphicx: includegraphics [ width=2cm]{ figures / sample . png} Master on Free Software
  54. 54. Editting documents: imagesIncludegraphics options: width = integer/decimal + unit height = integer/decimal + unit scale = scale factor (decimal) angle = rotate factor (0 ≥ |integer| ≥ 360)Useful commands: textheight textwidth columnwidth Master on Free Software
  55. 55. Editting documents: imagesIncludegraphics does not turn an image into afloating element, figure environment does: begin{figure }[hp ! ] IMAGE DEFINITION HERE caption{Sample image} end{figure} Figure: Sample image Image index: listoffigures Master on Free Software
  56. 56. Editting documents: imagesImage formats supported byincludegraphics depend on the toolwe use to produce the final document! dvips eps, ps dvipdf eps, jpg, pdf, png, pspdflatex jpg, png, pdf, tiff Master on Free Software
  57. 57. Editting documents: referencesTo include references in a L TEX document: A 1 Mark referrable elements with a label: label{label −name} • enumerate items • floating elements with caption • document sections • (and pretty much anything with a number) 2 Refer to a label: • element number ref{label−name} • element page number pageref{label−name} Master on Free Software
  58. 58. Editting documents: bibliographic references begin{thebibliography}{ZZ} bibitem{libroLaTeX} Bernardo Cascales Salinas . { itshape El l i b r o de LaTeX{}}. Prentice Hall , 2004. bibitem{iniciacionLaTeX} J a v i e r Sanguino Botella . { itshape I n i c i a c i o n a LaTeX{}}. Addison−Wesley , 1997. end{thebibliography}References are made using cite{bibitem−label} Master on Free Software
  59. 59. Editting documents: bibliographic referencesBibTEX is a complementary tool to L TEX which A • allows an easier management of bibliographic reference sets • integrates with L T X and automatically A E generates thebibliography environment 1 Create bibliographic references file (.bib) 2 Include .bib file usage in L TEX source file A Master on Free Software
  60. 60. Editting documents: bibliographic referencesBibliographic references file (.bib) format:@BOOK{libroLatex , author = {Cascales Salinas , Bernardo} , publisher = {Prentice Hall } , title = {El l i b r o de LaTeX{}}, year = {2004}}@ARTICLE{iniciacionLaTeX , author = {Sanguino Botella , J a v i e r } , title = {I n i c i a c i o n a LaTeX{}}, journal = {Addison−Wesley Series } , year = {1997}} Master on Free Software
  61. 61. Editting documents: bibliographic referencesBibTEX file (sample.bib) usage in L TEX source: A bibliography{sample} bibliographystyle{bibliography−style −name} plain numbered refs, alphabetic order unsrt numbered refs, citation order alpha alphanumeric refs, alphabetic order abbrv shortened version of plain Master on Free Software
  62. 62. Editting documents: bibliographic references latex document . tex bibtex document . aux latex document . tex• BibT X uses cites information in .aux E• Only cited references will be part of the generated bibliography• We can use nocite{bibitem−label}, to consider uncited references (or nocite*) Master on Free Software
  63. 63. ConclusionsL TEX is a very powerful tool whichA • automatizes many of the formatting tasks involved in producing a digital document • generates high-quality results • requires very lightweight source files • produces consistent output regardless of editor or platform Master on Free Software
  64. 64. ConclusionsWe have learned to create a L TEX document, A • choose the appropriate document class and/or modify its basic appearance, • generate basic title pages, • select font families, shapes, faces, sizes, alignment. . . , • insert lists, notes, tables, images, references, bibliography,and deliver a standard, safe version (PS/PDF). Master on Free Software
  65. 65. L TEX references AEl libro de L TEX. ABernardo Cascales Salinas et al.Prentice Hall, 2004.Iniciación a L TEX 2ε . AUn sistema para preparar documentos.Javier Sanguino Botella.Addison-Wesley, 1997.Una descripción de L TEX 2ε . AToms Bautista et al.www.lsi.upc.es/~eipec/pdf/ldesc2e.pdf Master on Free Software
  66. 66. L TEX references AThe Comprehensive TEX Archive Network(CTAN)www.ctan.orgL TEX – A document preparation systemAwww.latex-project.orgCervanTEX: Grupo de usuarioshispanohablantes de TEXwww.cervantex.es Master on Free Software
  67. 67. Advanced topics: what do you want to know?How do I. . . ? • structure a document in different files? • set up my own customized title page? • arrange text into columns? • change the headings of a document? • customize the margins in a document? Master on Free Software
  68. 68. Advanced topics: what do you want to know?• adjust spacing?• personalize an itemize list?• use color in text or tables?• write a letter?• create a slide presentation? Master on Free Software
  69. 69. How to: structure a file (physically) input{ f i l e . tex} include{ f i l e }Diferences: • include assumes .tex file extension • include starts over in a new page • include cannot be nested • for each included file, a .aux is generated Master on Free Software
  70. 70. How to: create your title pageTo create a customized front/title page: begin{titlepage}TITLE PAGE DEFINITION HERE end{titlepage} Master on Free Software
  71. 71. How to: set up columnsWhole document: documentclass[twocolumn]{...}Document portion: usepackage{multicol} begin{multicols}{3}This text i s automatically rearranged into amany columns as stated in the argument ofthe multicols environment . end{multicols}This text is into as many argument ofautomatically columns as the multicolsrearranged stated in the environment. Master on Free Software
  72. 72. How to: change headingsCustomizable page style myheadings,enables use of markright{right −header} markboth{ l e f t −header}{right −header}in preamble (default values match headings).Useful commands: thesection, sectionnameFor more complex customization:usepackage{fancyhdr}, usepackage{titleref} Master on Free Software
  73. 73. How to: customize marginsEasiest way: usepackage{anysize}enables use of marginsize{ l e f t }{r i g h t}{top}{bottom}in preamble. Master on Free Software
  74. 74. How to: mess with spacingChange line spacing: usepackage{setspace} singlespacing onehalfspacing doublespacingIntroduce page changes:newpage clearpage cleardoublepageIntroduce blank spaces: hspace{length} vspace{length}To fill in space: hfill dotfill hrulefill vfill Master on Free Software
  75. 75. How to: personalize listsCustomizable list environment: list ♣ list ♣ with customized ♣ symbol begin{ l i s t }{$ clubsuit$}{} item l i s t item with customized item symbol end{ l i s t } Master on Free Software
  76. 76. How to: use colorUsing package color we can:text textcolor{green}{text} background colorbox{green}{background}Predefined colors: white, black, red, blue, green,cyan, magenta, yellowDefine colors:definecolor{color−name}{schema}{specification} Master on Free Software
  77. 77. How to: use colorUsing package color we can:text textcolor{green}{text} background colorbox{green}{background}Predefined colors: white, black, red, blue, green,cyan, magenta, yellow gray|rgb|RGB|HTML|cmykDefine colors:definecolor{color−name}{schema}{specification} Master on Free Software
  78. 78. How to: use color this is just a simple example of a table begin{tabular }{| rc |>{columncolor{green}} l |} hline hline rowcolor{green} t h i s & i s j u s t & a simple c l i n e{1−2} example & & of a table hline hline end{tabular} Master on Free Software
  79. 79. How to: use color this is just a simple example of a table begin{tabular }{| rc |>{columncolor{green}} l |} hline hline rowcolor{green} t h i s & i s j u s t & a simple c l i n e{1−2} example & & of a table hline hline end{tabular} Master on Free Software
  80. 80. How to: create letters documentclass{ l e t t e r } begin{document} begin{ l e t t e r }{Chalmers University} opening{To Whom i t May Concern:}Please consider the following . . . signature{Laura M. Castro} closing{Sincerely ,} end{ l e t t e r } end{document} Master on Free Software
  81. 81. How to: create slides• First L T X document class aimed for slide A E presentations: slides• Each slide: begin{s l i d e}{ T i t l e } SLIDE CONTENTS end{s l i d e}• Poor results• No flexibility, no customizability Master on Free Software
  82. 82. How to: create slides• One of the first alternatives: Prosper• Best result/effort ration• documentclass{prosper}, environment slides• Predefined designs (document option): alienglow autumn azure contemporain darkblue frames lignesbleues nuancegris troispoints gyom rico• Still low customization level, no dynamism Master on Free Software
  83. 83. How to: create slides • 3rd tool generation: Beamer • The most flexible, powerful, popular • Class beamer, environment frame begin{frame}{ T i t l e }{S u b t i t l e} begin{itemize} item One item Two item Three end{itemize} end{frame} Master on Free Software
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×