en:rusturen:how-to-latex

Forskelle

Dette viser forskellene mellem den valgte og den nuværende udgave af dokumentet. Gul er linjer der findes i den gamle udgave, og grøn er linjer der findes i den nuværende.

Link til denne sammenlinings vising

Begge sider forrige revision Forrige revision
Næste revision
Forrige revision
en:rusturen:how-to-latex [2020-06-20 23:19] – [Tabel til tidsplan] nielsen:rusturen:how-to-latex [2022-02-22 11:00] (nuværende) – [Emergency LaTeX support] niels
Linje 1: Linje 1:
-FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// 
- 
 //Back to [[da:rusturen:start|Rustrips]]// //Back to [[da:rusturen:start|Rustrips]]//
  
-{{ ::latex_logo.png?200 |}}+{{ da:rusturen:how_to_latex:latex_logo.png?200 |}}
  
 ====== How-to-LaTeX ====== ====== How-to-LaTeX ======
Linje 11: Linje 9:
  
 =====Basic setup===== =====Basic setup=====
-For efficiency's sake it is a good idea to split your LaTeX document into smaller files — as you would any other big LaTeX project. It is recommended to use one of the premade playbook templates. We have made 2 versions that uses 2 different methods for splitting the document into smaller parts. The first is one made with the ''subfiles'' which has the advantage of you only having to compile the working document and not the whole playbook. The ''\input{}'' version is a much more simple solution however when compiling the document you have to compile the whole playbook. For at playbook of 20-30 pages it might not matter too much to use the more simple solution however for a playbook of 50+ pages you waste a lot of time compiling. +For efficiency's sake it is a good idea to split your LaTeX document into smaller files — as you would any other big LaTeX project. It is recommended to use one of the premade playbook templates. The template can be found on [[https://github.com/KABSDTU/Drejebog-skabelon/tree/en_subfiles|github]] and a read-only version on [[https://www.overleaf.com/read/ykxbtwyfnyzv|Overleaf]] which you can easily create copy of.
- +
-  * The ''subfiles'' template can be found on [[https://github.com/KABSDTU/Drejebog-skabelon/tree/en_subfiles|github]] and a read-only version on [[https://www.overleaf.com/read/ykxbtwyfnyzv|Overleaf]] +
-  * The ''\input{}'' template can be found on [[https://github.com/KABSDTU/Drejebog-skabelon/tree/en_simple|github]] and read-only version on [[https://www.overleaf.com/read/mxspfbyxhgzt|Overleaf]]+
  
-The templates is already split into //days, activities and general stuff//+The templates is already split into //days, activities, front- and back-matter//
  
   fig   fig
Linje 199: Linje 194:
  
 {{ :en:rusturen:drejebog_rotationsskema.png?direct&600 |}} {{ :en:rusturen:drejebog_rotationsskema.png?direct&600 |}}
 +
 +Take note of how one makes line breaks inside a table. You have to use ''\makecell[l]'' to enable this. The ''l'' indicates that it is "left-aligned".
 ==== Timetable ==== ==== Timetable ====
 It is a good idea to create a timetable for each day with a list of what happends when. The following It is a good idea to create a timetable for each day with a list of what happends when. The following
Linje 237: Linje 234:
 {{ :en:rusturen:drejebog_tidsplan.png?600 |}} {{ :en:rusturen:drejebog_tidsplan.png?600 |}}
  
-==== Tabel til vektorinformationer ==== +==== Vector information ==== 
-Vektorinformationerne er noget af det første der står i jeres drejebog sammen med oplysninger vedr. nærmeste skadestue/hospitalpolitihyttefars informationer osvSelvom de fleste af jer nok har telefonnumrene på jeres tværvektorer er det vigtig at have dem ved hånden, hvis jeres mobil skulle være løbet tør for strøm eller lignende og i står i en nødsituation.\\ +Vector information should be at one of the first pages in the playbook together with information about 
-Nedenstående er et eksempel påhvordan disse informationer kan angives. De er igen angivet med navne som kodeordDe tilhørende telefonnumre er fiktive.+nearest hopsitalpolicecabin daddy etcEven though most of you have written the number of you probably 
 +have the teams phone numberswhat if your telephone is destroyed and you are in an emegency that need some 
 +other vectors? 
 + 
 +The following is an example of how to create this listIt is also included in the template.
  
 <code latex> <code latex>
-\subsection{Vores telefonnumre}+\subsection{Our telephone numbers}
      
 \begin{tabular}{c|l} \begin{tabular}{c|l}
Linje 264: Linje 265:
 \end{tabular} \end{tabular}
 </code> </code>
-Et screenshot af koden compilet ser ud som følger:\\ 
-{{ :da:rusturen:drejebog_tlf.png?200 |}} 
  
 +This gives the following:\\
 +{{ :en:rusturen:drejebog_tlf.png?200 |}}
  
-==== Hvis din tabel er for stor ==== + 
-Hvis du har en tabel som er for stor til din side, kan du prøve at lægge den ned i "landscapemode, altså lægge siden nedDette gøres ved at sætte ''\begin{landscape}'' og ''\end{landscape}'' rundt om din tabel.+==== Your table won't fit ==== 
 +It happends a lot. You have a table to big for your page. What you can try to do is put it in ''landscape'' mode. 
 +Simply put you turn the page 90 degrees. You do this by surround the table with ''\begin{landscape}'' and  
 +''\end{landscape}''.
  
 <code latex> <code latex>
Linje 277: Linje 281:
 </code> </code>
  
-En anden mulighed som kan sættes i kombination med ovenstående er at ændre skriftstørrelsen LaTeX skriver iFølgende er listen over de standard skirftstørelser som LaTeX bruger+Another option is to reduce the font sizeThis can also be combined with the above. The following is a list 
 +of all the default sizes you can operate with LaTeX.
  
 <code latex> <code latex>
Linje 292: Linje 297:
 </code> </code>
  
-Der findes måder at ændre på skriftstørrelsen i LaTeX+There are methods to change the font size in LaTeX
  
 <code latex> <code latex>
-{\small Dette er tekst med en lille skriftstørrelse skrevet `inline'}+{\small This is some text with a small font size written `inline'}
  
 \begin{small} \begin{small}
-Dette er tekst med en lille skriftstørrelse skrevet i et LaTeX enviroment+This is some text with a small font size written in a LaTeX enviroment
 \end{small} \end{small}
 </code> </code>
  
-Hvis man bare skriver ''\small'' i sin kode, vil alt tekst efter ændres til at bruge størrelsen ''\small'' indtil dette ændresDe ovenstående måder er forskellige måder at begrænse hvor meget tekst som bliver påvirket.+If you write just ''\small'' in your playbook ALL text afterwards (in the given enviroment) will be at the font  
 +size ''\small''The methods above are ways of limiting how much of the text is affected.
  
  
 ---- ----
  
-===== Flere kolonner =====+===== Multiple columns =====
  
-Ofte har man lyst til at give sin drejebog flere kolonner, for at give mere plads til tekst eller gøre ting mere overskueligtDet kan gøres meget simpelt i drejebogen ved at omringe den tekst man gerne vil have i flere kolonner med ''\begin{multicols}{X}'' og ''\end{multicols}'', hvor ''X'' er antallet af kolonnerFølgende er et eksempel på noget som sættes i kolonner.+Some times you want to write your playbook in multiple columns to utilize more of the pageIt is very simple to  
 +do in the playbook template. Simply surround what you want in mutliple columns with ''\begin{multicols}{X}'' and 
 +''\end{multicols}''. The is the amount of columns you wantThe following is an example of writing in columns
  
 <code latex> <code latex>
 \begin{multicols}{2} \begin{multicols}{2}
-  Denne tekst er nu i kolonner+  This text is now in columns
 \end{multicols} \end{multicols}
 </code> </code>
  
 ---- ----
-===== Materialeliste =====+=====  Material list =====
 ==== Matlist ==== ==== Matlist ====
-For at gøre materialelisten så simpel som mulig kan man vælge at lave denne i LaTeX. På denne måde vil LaTeX samle alle items på materialelisten for digDette gøres på følgende måde:+When making the material list we recommend using our custom ''mats'' enviroment. It automatically 
 +collects all materials written in the playbook and writes it at the end of the playbook
  
-Start materialelisten med følgende kommando: +To use the enviroment you simply write 
-<code latex>\begin{mats}{DAG}{AKTIVITET}</code> +<code latex> 
-Herefter skrives alle materialer på følgende måde: +\begin{mats}{DAY}{ACTIVITY} 
-<code latex>\mat{antal}{materiale}</code> +</code> 
-Når der ikke er flere materialer afsluttes der med: +For each item you want to add to the list you write 
-<code latex>\end{mats}</code> +<code latex> 
- +\mat{QUANTITY}{MATERIAL} 
-Når man gør det på denne måde kommer materialelisten automatisk bagerst i drejebogen og samler det nemt og overskueligt sammen.+</code> 
 +When you want to end your list you end the enviroment with 
 +<code latex> 
 +\end{mats} 
 +</code>
  
-**Eksempel på en post, hvor mats er brugt:**+**Example of a post from a starrun where mats is used**
 <code latex> <code latex>
-{\large \textbf{Post 8 - Kassestaffet}} \\ +{\large \textbf{Post 7: Fear Pong}} \\ 
-\textbf{Postansvarlig:} \LORD \\+\textbf{Postansvarlig:} \backupvictor and \carl \\
  
-\begin{mats}{Lørdag}{Kassestaffet+A game of beer pong without liquid. Underneath each cup there is a challenge you have to do aswell. If you wanted to turn it into a drinking game you can suggest the russes that they can drink a few sips every hit.\\ 
-   \mat{4}{Mælkekasser+ 
 +\begin{mats}{Tuesday}{Fear Pong
 +   \mat{12}{plastic cups} 
 +    \mat{1}{Ping pong balls} 
 +    \mat{1}{Challenges} 
 +    \mat{1}{Small weights to prevent the cups from falling over}
 \end{mats} \end{mats}
  
-Russerne stilles op på mælkekasserne og skal nu transportere sit hold så langt som muligt uden at røre jorden.+\textbf{Challenge ideas are printed, ask \carl}
 </code> </code>
  
-{{ :da:rusturen:drejebog_mats.png?nolink&500 |}} 
  
-Til sidst i drejebogen, hvor man kan se at den er kommet ind under Lørdag, Kassestaffet:+{{ :en:rusturen:drejebog_mats.png?nolink&500 |}}
  
-{{ :da:rusturen:drejebog_samlet_mats.png?link&500 |}}+At the end of the playbook you can see Tuesday and Fear Pong where the materials are listed.
  
  
 ---- ----
  
-====== Eksterne links til hjælp ====== +====== External links for extra help ====== 
-Det aller hurtigste er klart et søg på Google med dit specifikke problem, Stackoverflow og Wiki-sider plejer nemt at kunne løse de små problemer eller spørgsmål.+The fastest method is most likely a Google search with your specific problem, stackoverflow and wiki-pages usually have great solutions to your problem/questionHowever here is a small collection of links that might be usefull
  
-  * https://www.overleaf.com/learn/latex/​Main_Page ​- overordnet side  +  * https://www.overleaf.com/learn/latex/​Main_Page ​- The main page 
-  * https://www.overleaf.com/learn/latex/Tables - tabeller generelt  +  * https://www.overleaf.com/learn/latex/Tables - about tables  
-  * https://www.overleaf.com/learn/latex/Hyperlinks - links og labels +  * https://www.overleaf.com/learn/latex/Hyperlinks - links and labels 
-  * https://www.overleaf.com/learn/latex/Lists - lister (''​enumreate''​ og ''​itemize''​)+  * https://www.overleaf.com/learn/latex/Lists - lists (''​enumreate''​ og ''​itemize''​)
  
 ---- ----
-//Første udkast lavet af Henriette Steenhoff d. 26-06-2015, revideret af Niels Kjær Ersbøll 2020// + 
 + 
 +====== Emergency LaTeX support ====== 
 + 
 +^ Name ^ mail| 
 +| Niels Kjær Ersbøll | niels@bund.nu | 
 +| Rasmus Aagaard | latex-student@student.dtu.dk| 
 + 
 +//First draft made by Henriette Steenhoff the 26-06-2015, revised by Niels Kjær Ersbøll in 2020//
  • en/rusturen/how-to-latex.1592687956.txt.gz
  • Sidst ændret: 2020-06-20 23:19
  • af niels