<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://entorb.net//wiki/index.php?action=history&amp;feed=atom&amp;title=Latex_-_Stuff_for_Advanced_Writers</id>
	<title>Latex - Stuff for Advanced Writers - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://entorb.net//wiki/index.php?action=history&amp;feed=atom&amp;title=Latex_-_Stuff_for_Advanced_Writers"/>
	<link rel="alternate" type="text/html" href="https://entorb.net//wiki/index.php?title=Latex_-_Stuff_for_Advanced_Writers&amp;action=history"/>
	<updated>2026-05-06T09:42:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://entorb.net//wiki/index.php?title=Latex_-_Stuff_for_Advanced_Writers&amp;diff=2111&amp;oldid=prev</id>
		<title>Torben: /* Hyphenation (Silbentrennung) */</title>
		<link rel="alternate" type="text/html" href="https://entorb.net//wiki/index.php?title=Latex_-_Stuff_for_Advanced_Writers&amp;diff=2111&amp;oldid=prev"/>
		<updated>2014-05-11T09:22:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Hyphenation (Silbentrennung)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Latex]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Advanced newcommand for variable+number+unit===&lt;br /&gt;
Defining commands for variables might be usefull to ensure italics when used in text, or to save some typing for vaviables with subscripts&lt;br /&gt;
 \usepackage{xspace} &lt;br /&gt;
 ...&lt;br /&gt;
 \newcommand{\Ea} [0] {\ensuremath{E_\text{act}\xspace}&lt;br /&gt;
 % \xspace ensures space after parameterless command, if not followed by punctuation&lt;br /&gt;
 The \Ea is measured to $\Ea=123\,\text{eV}$ &lt;br /&gt;
&lt;br /&gt;
More advanced we can define a command for a variable that also prints a value and unit if a parameter is given&lt;br /&gt;
 \usepackage[noload={abbr}]{siunitx}&lt;br /&gt;
 \usepackage{xspace}&lt;br /&gt;
 \usepackage{ifthen}&lt;br /&gt;
 ...&lt;br /&gt;
 \newcommand{\Ea} [1][\empty]&lt;br /&gt;
 {%&lt;br /&gt;
 \ifthenelse%&lt;br /&gt;
 {\equal{#1}{\empty}}%&lt;br /&gt;
 {\ensuremath{E_\text{act}}\xspace}%&lt;br /&gt;
 {\mbox{\ensuremath{E_\text{act}=\SI{#1}{\electronvolt}}}%&lt;br /&gt;
 }&lt;br /&gt;
 The \Ea is measured to \Ea[123]&lt;br /&gt;
&lt;br /&gt;
===Create your own personal Bibtex style===&lt;br /&gt;
Just run&lt;br /&gt;
 latex makebst&lt;br /&gt;
(in Linux the package texlive-bibtex-extra is required for this)&amp;lt;br&amp;gt;&lt;br /&gt;
and answer quite a lot of questions (help can be found here [http://www.medicalnerds.com/latex-bibliography-management-and-styles/] and [http://www.ctan.org/get/macros/latex/contrib/custom-bib/makebst.pdf]). This produces a batch (.dbj) file, that can be converted into a bibtex style if you say so at the last question, or by manually running latex FILENAME you chose)&lt;br /&gt;
&lt;br /&gt;
If you want to re-run it with only little changes, you might prefer to edit the batchfile instead...&amp;lt;br&amp;gt;&lt;br /&gt;
Alternative: Copy the Bibtex style of a famous journal. [http://bst.maururu.net/ Here] is a long list&lt;br /&gt;
&lt;br /&gt;
===Display textwidth and columnwidth in cm===&lt;br /&gt;
Important for generating images at the maximum size without scaling&lt;br /&gt;
 \usepackage{layouts}&lt;br /&gt;
 ...&lt;br /&gt;
 \printinunitsof{cm}\prntlen{\textwidth} %   = 17.9219&lt;br /&gt;
 \printinunitsof{cm}\prntlen{\columnwidth} % =  8.64468&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Calculate Length===&lt;br /&gt;
e.g. to calculate the width needed to fit an image [http://anamorphose.de/rechnen.pdf]&lt;br /&gt;
 \newdimen\boxbreite&lt;br /&gt;
 \advance\boxbreite by 0.3cm&lt;br /&gt;
 \advance\boxbreite by 10cm&lt;br /&gt;
 %Ergebnis: \the\boxbreite.&lt;br /&gt;
compare [[Latex_-_Stuff_Every_Writer_Should_Know#Units_of_length_used_in_Latex|Units of length used in Latex]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Footnote inside caption of figure/table===&lt;br /&gt;
 \stepcounter{footnote}           % Fußnotenzähler weitersetzen          &lt;br /&gt;
 \footnotetext{Text der Fußnote}          &lt;br /&gt;
 \begin{figure}            &lt;br /&gt;
  \includegraphics{bild.eps}      % Hochstellung geht nur im Mathemodus ($...$)             &lt;br /&gt;
                                  % damit die richtige Zahl genommen wird, den footnote-Zähler verwenden             &lt;br /&gt;
 \caption{Bildbeschriftung.${}^{\thefootnote}$}  &lt;br /&gt;
Source: [http://projekte.dante.de/DanteFAQ/Fussnote#56 DanteFAQ]&lt;br /&gt;
&lt;br /&gt;
===PDF Warnings===&lt;br /&gt;
&amp;quot;Token not allowed in a PDF string&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
Solution:&lt;br /&gt;
 \texorpdfstring{Code im Text}{Code für bookmark}&lt;br /&gt;
 \texorpdfstring{C$_{60}$}{C60}&lt;br /&gt;
&lt;br /&gt;
===Rotate Text===&lt;br /&gt;
 \rotatebox{90}{Text gedreht}&lt;br /&gt;
&lt;br /&gt;
===Reuse old equation number===&lt;br /&gt;
I want set the equation number of a single equation by hand. (used when an equation that had already been defined, is used later on again. Solution via the \tag command:&lt;br /&gt;
 \begin{align}&lt;br /&gt;
 a \label{eq:asdf}\\&lt;br /&gt;
 b \\&lt;br /&gt;
 a \tag{\ref{eq:asdf}} \\&lt;br /&gt;
 c&lt;br /&gt;
 \end{align}&lt;br /&gt;
For some reason using the \tag command insite an &amp;quot;equation&amp;quot; instead of an &amp;quot;align&amp;quot; sometime results in the following error:&lt;br /&gt;
 destination with the same identifier has been already used, duplicate ignored&lt;br /&gt;
&lt;br /&gt;
===Bold Math in Section Title===&lt;br /&gt;
 \section{C$_{60}$} % looks ugly (non-bold &amp;quot;60&amp;quot;)&lt;br /&gt;
 \section{\boldmath C$_{60}$} % looks right, but bold also in TOC :-(&lt;br /&gt;
 \section[C$_{60}$]{\boldmath C$_{60}$} % looks nice also in text and TOC, but produces a warning&lt;br /&gt;
 \section[\texorpdfstring{C$_{60}$}{C60}]{\boldmath C$_{60}$} % = SOLUTION&lt;br /&gt;
&lt;br /&gt;
===equation, eqnarray or align?===&lt;br /&gt;
Just use align! &lt;br /&gt;
(see [http://texblog.net/latex-archive/maths/eqnarray-align-environment/ this example] or [http://www.ctan.org/get/info/l2tabu/english/l2tabuen.pdf l2tabu.pdf])&lt;br /&gt;
 \begin{align}&lt;br /&gt;
   z_0 &amp;amp;= d = 0 \\&lt;br /&gt;
   z_{n+1} &amp;amp;= z_n^2+c&lt;br /&gt;
 \end{align}&lt;br /&gt;
&lt;br /&gt;
===Float Barrier===&lt;br /&gt;
 \usepackage{placeins}&lt;br /&gt;
 % defines the command \FloatBarrier: the name is program, no from above are allowed to pass this barrier&lt;br /&gt;
 % [section] : floats are not allowed to travel into another section&lt;br /&gt;
&lt;br /&gt;
===Nicer Tables===&lt;br /&gt;
In tables it is nice if numbers are aligned at the decimal point:&lt;br /&gt;
   1.234&lt;br /&gt;
 100.3&lt;br /&gt;
  23.23&lt;br /&gt;
The easiest way to achieve this is using invisible \phantom chars:&lt;br /&gt;
 \phantom{00}1.234&lt;br /&gt;
           100.3\phantom{00}&lt;br /&gt;
 \phantom{0}23.23\phantom{0}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Rotated Table (Tabelle im Querformat)===&lt;br /&gt;
 \usepackage{longtable}&lt;br /&gt;
 \usepackage{rotating}&lt;br /&gt;
 ...&lt;br /&gt;
 \begin{sidewaystable}&lt;br /&gt;
   \centering&lt;br /&gt;
   \begin{longtable}{|lll|}&lt;br /&gt;
     ...&lt;br /&gt;
     table body&lt;br /&gt;
     ...&lt;br /&gt;
     \caption{caption}&lt;br /&gt;
     \label{tab:label}&lt;br /&gt;
   \end{longtable}&lt;br /&gt;
 \end{sidewaystable}&lt;br /&gt;
&lt;br /&gt;
====Rotate single cells of a table====&lt;br /&gt;
 \usepackage{rotating}&lt;br /&gt;
 ...&lt;br /&gt;
 \begin{tabular}{|c|c|}\hline&lt;br /&gt;
 Name &amp;amp;\begin{sideways}Grade\end{sideways} \\&lt;br /&gt;
 \hline&lt;br /&gt;
 Name 1 &amp;amp; 3 \\&lt;br /&gt;
 Name 2 &amp;amp; 1 \\&lt;br /&gt;
 \hline&lt;br /&gt;
 \end{tabular}&lt;br /&gt;
&lt;br /&gt;
===Bibtex Problems===&lt;br /&gt;
====Short Authors Keys + Umlaute====&lt;br /&gt;
When using a bib style that uses keys like &amp;quot;Jon90&amp;quot;, there might be problems with author names including umlautes (äöüß). In the bibfile you have to make sure, that in the author fields the names are written with latex formated umlauts: &lt;br /&gt;
 Kröger -&amp;gt; Kr{\&amp;quot;{o}}ger&lt;br /&gt;
&lt;br /&gt;
===Tracking Changes===&lt;br /&gt;
latexdiff can be used to track changes done to a document, generates a nice colored output&lt;br /&gt;
 latexdiff old.tex new.tex &amp;gt; diff.tex&lt;br /&gt;
 pdflatex diff.tex&lt;br /&gt;
 bibtex diff&lt;br /&gt;
 pdflatex diff.tex ; pdflatex diff.tex&lt;br /&gt;
&lt;br /&gt;
===from Christian K===&lt;br /&gt;
Verteilung von Bildern auf einer Seite&lt;br /&gt;
 \renewcommand{\topfraction}{.8} % max 80% darf von oben mit Bildern belegt sein&lt;br /&gt;
 \renewcommand{\bottomfraction}{.8} % dasselbe von unten&lt;br /&gt;
 \renewcommand{\floatpagefraction}{.7} %  max. 70% der ganzen seite darf mit Bildern belegt sein&lt;br /&gt;
 \renewcommand{\textfraction}{.2} % soviel muss text sein&lt;br /&gt;
 \setcounter{bottomnumber}{1} % verhindert dass zwei floats aneinandergepappt werden, wenn man das nicht will&lt;br /&gt;
 \setcounter{topnumber}{1} &lt;br /&gt;
&lt;br /&gt;
Wenn eine lange Fußzeile mal auf mehrere Seiten verteilt wird, hilft&lt;br /&gt;
\interfootnotelinepenalty=10000 &lt;br /&gt;
&lt;br /&gt;
So kann man die Zeilenhöhe von Tabellen etwas größer machen:&lt;br /&gt;
\renewcommand{\arraystretch}{1.4} &lt;br /&gt;
&lt;br /&gt;
Fußnoten in Tabellen kann man mit dem Paket threeparttable realisieren.&lt;/div&gt;</summary>
		<author><name>Torben</name></author>
	</entry>
</feed>