Editing LaTeX Eksempler

From Midtiby

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Current revision Your text
Line 24: Line 24:
Indsæt en del af en fil
Indsæt en del af en fil
  \\lstinputlisting[firstline=55, lastline=74]{../src/dm14_dev.c}
  \\lstinputlisting[firstline=55, lastline=74]{../src/dm14_dev.c}
-
 
-
== Todo markeringer i margen (inkl. mulighed for en todoliste) ==
 
-
 
-
I preamblen
 
-
% Definition af en kommando der placerer en note i margenen
 
-
\
 
-
ewcommand{\\todo}[1]{\\addcontentsline{tdo}{todo}{\\protect{#1}}\\marginpar{TODO: #1}}
 
-
\
 
-
ewcommand{\\TODO}[1]{\\todo{#1}}
 
-
% Definition af en kommando der genererer en todoliste
 
-
\\makeatletter \
 
-
ewcommand \\listoftodos{\\section*{Todo list} \\@starttoc{tdo}}
 
-
% Beskrivelse af hvordan todo-listen skal se ud.
 
-
\
 
-
ewcommand\\l@todo[2]
 
-
{\\par\
 
-
oindent \\textit{#2}, \\parbox{10cm}{#1}\\par} \\makeatother
 
-
Der hvor todo-listen skal være
 
-
\\listoftodos
 
-
Der hvor en note skal sættes i margin
 
-
\\TODO{Dette skal gøres inden jeg tør aflevere dette projekt.}
 
-
 
-
== Lave plads til ting i margin ==
 
-
 
-
I preamble
 
-
% Sæt margin par modsat af normalt
 
-
\\reversemarginpar
 
-
% Flyt indholdet på en side i den rigtige retning
 
-
\\addtolength{\\evensidemargin}{-2cm}
 
-
\\addtolength{\\oddsidemargin}{2cm}
 
-
% Øg bredden af pladsen til margen noter
 
-
\\addtolength{\\marginparwidth}{2cm}
 
-
 
-
== Pile med ting hen over ==
 
-
 
-
I teksten
 
-
\\stackrel{\\bigtriangleup}{\\rightleftharpoons}
 

Please note that all contributions to Midtiby may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Project:Copyrights for details). DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!


Cancel | Editing help (opens in new window)
Personal tools