welcome: please sign in
location: Diff for "computerLatexRules"
Differences between revisions 3 and 15 (spanning 12 versions)
Revision 3 as of 2010-06-28 14:01:50
Size: 7480
Editor: helenamalin
Comment: Translation
Revision 15 as of 2011-05-26 15:55:36
Size: 7017
Editor: leif
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
#acl Known:read,write,admin,delete,revert #acl Known:read,write,admin,delete,revert All:read
Line 7: Line 7:
=== Formats (classes) | Packages | Miscellaneous templates ===
Line 13: Line 12:
 \documentclass{pm}:: Suitable for simpler documents on a few pages. The package {paperhead} is included automatically. [[http://www.control.lth.se/intern/dator/latex/templates.html#pm|Template]]  \documentclass{pm}:: Suitable for simpler documents on a few pages. The package {paperhead} is included automatically. [[computerLatexTemplates#pm|Template]]
Line 15: Line 14:
 \documentclass{rapport}:: The standard format for internal reports, theses and similar. [[http://www.control.lth.se/intern/dator/latex/templates.html#rapport|Template]]<<BR>>  \documentclass{rapport}:: The standard format for internal reports, theses and similar. [[computerLatexTemplates#rapport|Template]]<<BR>>
Line 23: Line 22:
 \documentclass{avhandling}:: Format for disserations according to our standards. [[http://www.control.lth.se/intern/dator/latex/templates.html#avhandling|Template]]<<BR>>  \documentclass{avhandling}:: Format for disserations according to our standards. [[computerLatexTemplates#avhandling,_Doktors-|Template]]<<BR>>
Line 29: Line 28:
 \documentclass{lic}:: Format for licenciate theses according to our standards. [[http://www.control.lth.se/intern/dator/latex/templates.html#lic|Template]]<<BR>>  \documentclass{lic}:: Format for licenciate theses according to our standards. [[computerLatexTemplates#lic-avhandling|Template]]<<BR>>
 There is also a more extensive [[computerLatexTemplates#LicTitlePages|template containing title pages]].<<BR>>
 The cover of the licentiate thesis is made from this [[computerLatexTemplates#LicCover|Cover Template]]. It should be made into a separate pdf-file and sent to the printer.<<BR>>
Line 31: Line 32:
   Removes all extra information in the form of date etc.<<BR>>
 `[magnify]`
   Enlarges the text so it's suitable for A4 -> A5 size reduction according to printer's demands.<<BR>>
 `[pdf]`:: Moves the text on the paper so the pdf-file will save in the right format.
  Removes all extra information in the form of date etc.<<BR>>
 `[pdf]`
    Moves the text on the paper so the pdf-file will save in the right format.
## `[
magnify]`
## Enlarges the text so it's suitable for A4 -> A5 size reduction according to printer's demands.<<BR>>
Line 36: Line 38:
 \documentclass{tentamen}:: Format for exams. You can enter both problems and solutions in the same file, and print each seperatly or individually depending on the options. For additional subcommands, see the [[http://www.control.lth.se/intern/dator/latex/tentamen.txt|exemple.]] [[http://www.control.lth.se/intern/dator/latex/templates.html#tentamen|Template]]  \documentclass{tentamen}:: Format for exams. You can enter both problems and solutions in the same file, and print each seperatly or individually depending on the options. For additional subcommands, see the [[attachment:tentamen.txt|example.]] [[computerLatexTemplates#tentamen|Template]]
Line 45: Line 47:
 \documentclass{artikel}:: This format is meant for magazine articles, coference contributions etc. It is not to be used alone but always together with an option that specifies which magazine or conference. Here are only a few options lusted, since they normally are only current a short time.The package {paperhead} is included automatically. [[http://www.control.lth.se/intern/dator/latex/templates.html#artikel|Template]]<<BR>>  \documentclass{artikel}:: This format is meant for magazine articles, coference contributions etc. It is not to be used alone but always together with an option that specifies which magazine or conference. Here are only a few options lusted, since they normally are only current a short time.The package {paperhead} is included automatically. [[computerLatexTemplates#artikel|Template]]<<BR>>
Line 48: Line 50:
     [[http://www.control.lth.se/intern/dator/latex/cdc97special.html|Special information]]      [[computerLatexCDC97|Special information]]
Line 54: Line 56:
 \documentclass{brev}:: Format for letters with the address placed so it fits our window envelopes. For additional commands, see the [[http://www.control.lth.se/intern/dator/latex/brev.txt|example]]. [[http://www.control.lth.se/intern/dator/latex/templates.html#brev|Template]]<<BR>>  \documentclass{brev}:: Format for letters with the address placed so it fits our window envelopes. For additional commands, see the [[attachment:brev.txt|example]]. [[computerLatexTemplates#brev|Template]]<<BR>>
Line 60: Line 62:
 \documentclass{oneslide} \documentclass{fourslides}:: Format for slides. {oneslide} is used for the final version, whereas {fourslides} is used for the documentation, four small images on one side. [[http://www.control.lth.se/intern/dator/latex/templates.html#slide|Template (oneslide)]], [[http://www.control.lth.se/intern/dator/latex/templates.html#slide|Template (fourslides)]]<<BR>>  \documentclass{oneslide} \documentclass{fourslides}:: Format for slides. {oneslide} is used for the final version, whereas {fourslides} is used for the documentation, four small images on one side. [[computerLatexTemplates#oneslide_/_fourslides|Template]]<<BR>>
Line 78: Line 80:
The format for video presentations is shown in an [[http://www.control.lth.se/intern/dator/latex/videoslides.txt|example]]. The format for video presentations is shown in an [[attachment:videoslides.txt|example]].
Line 87: Line 89:
    If there are two author with the same address, write them together with \qquad in between. If there are two authors with different addresses, write them in the order auth1, addr1, auth2, addr2. They will automatically be placed in two columns. See the [[http://www.control.lth.se/intern/dator/latex/paperhead.txt|exemplet]]. If authors and addresses don't fit in two columns, use footnotes instead, as per [[http://www.control.lth.se/intern/dator/latex/paperhead2.txt|this example]], which also includes a footnote to the title.     If there are two author with the same address, write them together with \qquad in between. If there are two authors with different addresses, write them in the order auth1, addr1, auth2, addr2. They will automatically be placed in two columns. See the [[attachment:paperhead.txt|example]]. If authors and addresses don't fit in two columns, use footnotes instead, as per [[attachment:paperhead2.txt|this example]], which also includes a footnote to the title.
Line 96: Line 98:
'''[[http://www.control.lth.se/intern/dator/latex/templates.html#omslag|Cover for report]]'''<<BR>> '''[[computerLatexTemplates#Cover_for_report|Cover for report]]'''<<BR>>
Line 99: Line 101:
'''[[http://www.control.lth.se/intern/dator/latex/docdata.txt|Document datasheet]]'''<<BR>> '''[[attachment:docdata.txt|Document datasheet]]'''<<BR>>
Line 102: Line 104:
'''[[http://www.control.lth.se/intern/dator/latex/spikblad.txt|Posting]]'''<<BR>> '''[[attachment:spikblad.txt|Posting]]'''<<BR>>
Line 105: Line 107:
'''[[http://www.control.lth.se/intern/dator/latex/referens.html|References under different headings]]'''<<BR>> '''[[computerLatexReference|References under different headings]]'''<<BR>>

Latex at Automatic Control

Local extensions for LaTeX, not described in the book, are described here. Under "Miscellaneous templates", there are a couple of special documents and layouts. The following indications are used:

Select the text you want to use in your document and paste it with the mouse (the middle button).

Formats (classes)

\documentclass{pm}

Suitable for simpler documents on a few pages. The package {paperhead} is included automatically. Template

\documentclass{rapport}

The standard format for internal reports, theses and similar. Template
[chapter]

  • For \chapter to be used, this option needs to be included. Section numbers, equation numbers etc. will be of the type 4.3 and similar.

[final]

  • Removes the date on the bottom of the page and moves the text away from stapling and binding.

[twoside]

  • Moves the text on the page and puts the page number where it fits for duplex printing.
\documentclass{avhandling}

Format for disserations according to our standards. Template
[final]

  • Removes all extra information in the form of date etc.

[cropmarks]

  • Moves the text to the middle of the paper and adds help lines for the printer.
\documentclass{lic}

Format for licenciate theses according to our standards. Template
There is also a more extensive template containing title pages.
The cover of the licentiate thesis is made from this Cover Template. It should be made into a separate pdf-file and sent to the printer.
[final]

  • Removes all extra information in the form of date etc.

[pdf]

  • Moves the text on the paper so the pdf-file will save in the right format.

\documentclass{tentamen}

Format for exams. You can enter both problems and solutions in the same file, and print each seperatly or individually depending on the options. For additional subcommands, see the example. Template

[final]

  • Meant for the final version. Removes help dates, etc.

[problemsonly]

  • Just prints the problems. This is the form in which exams are to be given.

[solutionsonly]

  • Just prints the solutions.
\documentclass{artikel}

This format is meant for magazine articles, coference contributions etc. It is not to be used alone but always together with an option that specifies which magazine or conference. Here are only a few options lusted, since they normally are only current a short time.The package {paperhead} is included automatically. Template
[cdc97]

[ifac]

  • For conferences by IFAC

[ieee]

  • For conferences by IEEE
\documentclass{brev}

Format for letters with the address placed so it fits our window envelopes. For additional commands, see the example. Template
[letterhead]

  • Gives a English language letter header and footer.

[brevhuvud]

  • Gives a Swedish language letter header and footer. Also Swedish hyphenation in the letter.
\documentclass{oneslide} \documentclass{fourslides}

Format for slides. {oneslide} is used for the final version, whereas {fourslides} is used for the documentation, four small images on one side. Template
[landscape]

  • Gives landscape format, suitable for slides or video presentation.

[center]

  • Gives vertically centered pictures. The default is that all images begin at the top of the page.

[14pt]

  • Gives a larger font (default is 12pt)

[17pt]

  • Gives an even larger font

{slide}

  • Each new image is defined within the setting {slide}

{lionslide}

  • Is used for the first page and places a grey toned lion seal as the background and is definied within the setting {lionslide}. The page does not behave the same in oneslide as in fourslides. Contact Leif if you are experiencing problems.

\centerhead{...}

  • Gives a centerd headline.

\lefthead{...}

  • Gives a leftern headline.

The format for video presentations is shown in an example.


Packages

\usepackage{paperhead}
This package defines the setting {paperhead} which includes the following commands:

\title{...} The document's title
\author{...} The document's author
\address{...} The author's address

  • If there are two author with the same address, write them together with \qquad in between. If there are two authors with different addresses, write them in the order auth1, addr1, auth2, addr2. They will automatically be placed in two columns. See the example. If authors and addresses don't fit in two columns, use footnotes instead, as per this example, which also includes a footnote to the title.

\subsubsection
is used if Abstract or Keywords should be included in the header. The package {paperhead} is included automatically in {artikel} and in {pm}
\usepackage{schoolbook}

This package changes the fonts so that PostScript-fonts (based on New Century Schoolbook) are used instead of the pixel-based that are default in TeX. Always use this for documents that are to be publiced, especially important if it should be presented in PDF-format.


Miscellaneous templates

Cover for report
The template shows covers as a seperate document. If you want to have the cover together with the report just type the setting {titlepage} in a seperate document and type the command \input{omslag} in the report document. Note that empty rows within {titlepage} are not accepted.

Document datasheet
The templates includes instructions.

Posting
The template is a dummy-document where the necessary changes (hopefully) are pretty obvious.

References under different headings
An example that shows how you can create several seperate reference sections in the same document in Bibtex.

computerLatexRules (last edited 2011-05-26 15:59:48 by leif)