welcome: please sign in
location: Diff for "computerLatexRules"
Differences between revisions 2 and 3
Revision 2 as of 2010-06-28 12:22:53
Size: 5947
Editor: helenamalin
Comment: page was renamed from computerLatexBook
Revision 3 as of 2010-06-28 14:01:50
Size: 7480
Editor: helenamalin
Comment: Translation
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
=== Format (klasser) | Paket | Diverse mallar ===
Här beskrivs lokala tillägg till LaTeX, som inte finns beskrivna i boken. Under "Diverse mallar" finns en del särskilda dokument och uppställningar. Följande beteckningar används:
=== Formats (classes) | Packages | Miscellaneous templates ===
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:
Line 10: Line 10:
Markera den text du vill använda i ditt dokument och klistra in den där med musen (mittknappen). Select the text you want to use in your document and paste it with the mouse (the middle button).
Line 12: Line 12:
== Format (klasser) ==
 \documentclass{pm}:: Lämpligt för enklare dokument på högst ett par sidor. Paketet {paperhead} inkluderas automatiskt.
== Formats (classes) ==
 \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]]
Line 15: Line 15:
 \documentclass{rapport}:: Standardformat för internrapporter, exjobb och liknande.
 [chapter]:: För att \chapter skall kunna användas måste detta tillval finnas med. Sektionsnummer, ekvationsnummer etc. blir då av typen 4.3 och liknande.
 [final]:: Tar bort datum nederst på sidan och flyttar texten bort från häftning eller bindning.
 [twoside]:: Flyttar texten på sidan resp sätter sidnumret så att det passar för dubbelsidig tryckning.
 \documentclass{rapport}:: The standard format for internal reports, theses and similar. [[http://www.control.lth.se/intern/dator/latex/templates.html#rapport|Template]]<<BR>>
 `[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.<<BR>>
 `[final]`
    Removes the date on the bottom of the page and moves the text away from stapling and binding.<<BR>>
 `[twoside]`
     Moves the text on the page and puts the page number where it fits for duplex printing.
Line 20: Line 23:
 \documentclass{avhandling}:: Format för doktorsavhandlingar enligt vår standard.
 [final]:: Tar bort alla extrauppgifter av typen datum och liknande.
 [cropmarks]:: Flyttar in texten mitt på papperet och sätter ut hjälplinjer för tryckaren.
 \documentclass{avhandling}:: Format for disserations according to our standards. [[http://www.control.lth.se/intern/dator/latex/templates.html#avhandling|Template]]<<BR>>
 `[final]`
   Removes all extra information in the form of date etc.<<BR>>
 `[cropmarks]`
   Moves the text to the middle of the paper and adds help lines for the printer.
Line 24: Line 29:
 \documentclass{lic}:: Format för licavhandlingar enligt vår standard
 [final]:: Tar bort alla extrauppgifter av typen datum och liknande.
 [magnify]:: Förstorar texten så att den lämpar sig för förminskning A4 -> A5 enligt tryckarens önskemål
 [pdf]:: Flyttar texten på papperet så att det blir korrekt format när man sedan gör pdf-fil.
 \documentclass{lic}:: Format for licenciate theses according to our standards. [[http://www.control.lth.se/intern/dator/latex/templates.html#lic|Template]]<<BR>>
 `[final]`
   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.
Line 29: Line 36:
 \documentclass{tentamen}:: Format för tentamina. Man kan skriva in både problem och lösningar i samma fil, och skriva ut endera eller båda beroende på tillvalen. För övriga underkommandon, se [[tentamen.txt|exemplet.]]
     Det finns även en samling med [[http://www.control.lth.se/~anton/blockdiagram|blockdiagram]].
 [final]:: Avsedd för slutversionen. Tar bort hjälpdatum och liknande.
 [problemsonly]:: Skriver ut bara problemen. Det är i denna form tentamen skall ges.
 [solutionsonly]:: Skriver bara ut lösningarna.
 \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]]
     There is also a collection of [[computerBlockDiagram|block diagrams]].<<BR>>
 `[final]`
   Meant for the final version. Removes help dates, etc.<<BR>>
 `[problemsonly]`
   Just prints the problems. This is the form in which exams are to be given.<<BR>>
 `[solutionsonly]`
   Just prints the solutions.
Line 35: Line 45:
 \documentclass{artikel}:: Detta format är avsett för tidskriftsartiklar, konferensbidrag och liknande. Det skall inte användas ensamt utan alltid tillsammans med ett tillval som anger vilken tidskrift eller konferens som är aktuell. Här visas bara ett fåtal tillval, eftersom de i allmänhet bara är aktuella en kort tid. Paketet {paperhead} inkluderas automatiskt.
 [cdc97]:: 36th IEEE Conference on Decision and Control, 1997.
     [[cdc97special.html|Speciell information]]
 [ifac]:: För konferenser i regi av IFAC
 [ieee]:: För konferenser i regi av IEEE
 \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>>
 `[cdc97]`
   36th IEEE Conference on Decision and Control, 1997.
     [[http://www.control.lth.se/intern/dator/latex/cdc97special.html|Special information]]
 `[ifac]`
    For conferences by IFAC<<BR>>
 `[ieee]`
    For conferences by IEEE
Line 41: Line 54:
 \documentclass{brev}:: Format för brev med adressen placerad så att den passar våra fönsterkuvert. För övriga kommandon, se [[brev.txt|exemplet]].
 [letterhead]:: Ger ett engelskspråkigt brevhuvud och dito brevfot.
 [brevhuvud]:: Ger svenskt brevhuvud resp. brevfot. Ger dessutom svensk avstavning i brevet.
 \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>>
 `[letterhead]`
    Gives a English language letter header and footer.<<BR>>
 `[brevhuvud]`
    Gives a Swedish language letter header and footer. Also Swedish hyphenation in the letter.
Line 45: Line 60:
 \documentclass{oneslide} \documentclass{fourslides}:: Format för stordia. {oneslide} användes för slutversionen, medan {fourslides} användes för dokumentationen, dvs fyra förminskade bilder på en sida.
 [landscape]:: Ger liggande format, lämpligt för dia eller videopresentation
 [center]:: Ger vertikalt centrerade bilder. Standard är att alla bilder börjar överst på sidan
 [14pt]:: Ger större stilsort (standard är 12pt)
 [17pt]:: Ger ännu större stilsort
 {slide}:: Varje ny bild definieras inom omgivning {slide}
 {lionslide}:: Används för första sidan och placerar ett gråtonat lejonsigill som bakgrund och definieras inom omgivning {lionslide} Sidan beter sig inte likadant för enbildssida och fyrbildssida. Kontakta Leif vid problem.
 \centerhead{...}:: Ger centrerad rubrik
 \lefthead{...}:: Ger vänsterställd rubrik
 \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>>
 `[landscape]`
    Gives landscape format, suitable for slides or video presentation.<<BR>>
 `[center]`
   Gives vertically centered pictures. The default is that all images begin at the top of the page.<<BR>>
 `[14pt]`
   Gives a larger font (default is 12pt)<<BR>>
 `[17pt]`
   Gives an even larger font<<BR>>
 `{slide}`
    Each new image is defined within the setting {slide}<<BR>>
 `{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.<<BR>>
 `\centerhead{...}`
   Gives a centerd headline.<<BR>>
 `\lefthead{...}`
   Gives a leftern headline.<<BR>>
Line 55: Line 78:
Format för videopresentation visas i ett [[videoslides.txt|exempel]]. The format for video presentations is shown in an [[http://www.control.lth.se/intern/dator/latex/videoslides.txt|example]].
Line 58: Line 81:
= Paket =
 \usepackage{paperhead}:: Detta paket definierar omgivningen {paperhead} som innehåller följande kommandon:
= Packages =
 \usepackage{paperhead}:: This package defines the setting {paperhead} which includes the following commands:
Line 61: Line 84:
 \title{...} Dokumentets titel \author{...} Dokumentets författare \address{...} Författarens adress :: Om det finns två författare med samma adress, ange dem tillsammans med \qquad emellan. Om det finns två författare med olika adress, ange dem i ordningen förf1, adr1, förf2, adr2. De kommer då automatiskt att placeras i två kolumner. Se [[paperhead.txt|exemplet]]. Om författare och adresser inte får plats i två kolumner, använd istället fotnoter enligt [[paperhead2.txt|detta exempel]], som också innehåller en fotnot till titeln.
 \subsubsection:: används om Abstract eller Keywords skall ingå i huvudet.
 Paketet {paperhead} inkluderas automatiskt i {artikel} och i {pm}
 `\title{...}` The document's title<<BR>>
 `\author{...}` The document's author<<BR>>
 `\address{...}` The author's address<<BR>>
    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.
 \subsubsection:: is used if Abstract or Keywords should be included in the header.
 The package {paperhead} is included automatically in {artikel} and in {pm}
Line 66: Line 92:
 \usepackage{schoolbook}:: Detta paket ändrar typsnitten så att PostScript-typsnitt (baserade på New Century Schoolbook) användes istället för de pixelbaserade som är standard i TeX. Använd alltid detta för dokument som skall publiceras, speciellt viktigt om det ska presenteras i PDF-format.  \usepackage{schoolbook}:: This package changes the fonts so that Post``Script-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.
Line 69: Line 95:
= Diverse mallar =
 Omslag till rapport:: Mallen visar omslag som ett fristående dokument. Vill du göra omslaget tillsammans med rapporten så skriv endast omgivningen {titlepage} i ett separat dokument och skriv kommandot \input{omslag} i rapportdokumentet. Observera att blanka rader inom {titlepage} inte accepteras.
= Miscellaneous templates =
'''[[http://www.control.lth.se/intern/dator/latex/templates.html#omslag|Cover for report]]'''<<BR>>
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.
Line 72: Line 99:
 Dokumentdatablad:: Mallen innehåller anvisningar. '''[[http://www.control.lth.se/intern/dator/latex/docdata.txt|Document datasheet]]'''<<BR>>
The templates includes instructions.
Line 74: Line 102:
 Spikblad:: Mallen är ett dummy-dokument där de nödvändiga ändringarna förhoppningsvis är ganska uppenbara
 Referenser under olika rubriker:: Ett exempel som visar hur du med Bibtex kan göra flera separata referensavsnitt i samma dokument.
'''[[http://www.control.lth.se/intern/dator/latex/spikblad.txt|Posting]]'''<<BR>>
The template is a dummy-document where the necessary changes (hopefully) are pretty obvious.
Line 77: Line 105:
---- '''[[http://www.control.lth.se/intern/dator/latex/referens.html|References under different headings]]'''<<BR>>
An example that shows how you can create several seperate reference sections in the same document in Bibtex.

Latex at Automatic Control

Formats (classes) | Packages | Miscellaneous templates

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
[final]

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

[magnify]

  • Enlarges the text so it's suitable for A4 -> A5 size reduction according to printer's demands.

`[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 exemple. 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 (oneslide), Template (fourslides)
[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 exemplet. 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)