<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sprachrohr &#187; latex</title>
	<atom:link href="http://robert-kummer.de/tag/latex/feed/" rel="self" type="application/rss+xml" />
	<link>http://robert-kummer.de</link>
	<description>alles, was der robbi so interessant findet</description>
	<lastBuildDate>Thu, 29 Jul 2010 12:33:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
	<atom:link rel="hub" href="http://superfeedr.com/hubbub" />
			<item>
		<title>nützliche Links zu LaTeX&#8230;</title>
		<link>http://robert-kummer.de/2006/05/11/nuetzliche-links-zu-latex/</link>
		<comments>http://robert-kummer.de/2006/05/11/nuetzliche-links-zu-latex/#comments</comments>
		<pubDate>Thu, 11 May 2006 07:55:00 +0000</pubDate>
		<dc:creator>rok</dc:creator>
				<category><![CDATA[Entwicklung]]></category>
		<category><![CDATA[latex]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hier mal wieder ein paar nützliche Links, damit ich sie nicht vergesse Die LaTeX 2e Kurzreferenz Das LaTeX 2e Cheat Sheet BibTex Styles für Literaturverzeichnisse Carsten Vogel &#8211; TeX-Treff Dresden BibTex, oder wie erstellt man ein Literaturverzeichnis Das könnte Sie &#8230; <a href="http://robert-kummer.de/2006/05/11/nuetzliche-links-zu-latex/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hier mal wieder ein paar nützliche Links, damit ich sie nicht vergesse <img src='http://robert-kummer.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<ul>
<li><a  href="http://www.physicsnet.org/html/content-108-3.html" target="_blank">Die LaTeX 2e Kurzreferenz</a></li>
<li><a  href="http://www.stdout.org/%7Ewinston/latex/latexsheet.pdf" target="_blank">Das LaTeX 2e Cheat Sheet</a></li>
<li><a  href="http://www.din1505.informationskompetenz.net/" target="_blank">BibTex Styles für Literaturverzeichnisse</a></li>
<li><a  href="http://www.wh10.tu-dresden.de/%7Elego/tex_material.php" target="_blank">Carsten Vogel &#8211; TeX-Treff Dresden</a></li>
<li><a  href="http://141.76.121.6/%7Elego/material/Otto_Brueck_BibTeX.pdf" target="_blank">BibTex, oder wie erstellt man ein Literaturverzeichnis</a></li>
</ul>
<h3 class='related_post_title'>Das könnte Sie auch interessieren:</h3>
<ul class='related_post'>
<li><a  href="http://robert-kummer.de/2006/04/18/latex-quellcode-listing/" title="LaTeX: Quellcode-Listing">LaTeX: Quellcode-Listing</a></li>
</ul>
<p><a  class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://robert-kummer.de/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://robert-kummer.de/2006/05/11/nuetzliche-links-zu-latex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LaTeX: Quellcode-Listing</title>
		<link>http://robert-kummer.de/2006/04/18/latex-quellcode-listing/</link>
		<comments>http://robert-kummer.de/2006/04/18/latex-quellcode-listing/#comments</comments>
		<pubDate>Tue, 18 Apr 2006 15:39:00 +0000</pubDate>
		<dc:creator>rok</dc:creator>
				<category><![CDATA[Entwicklung]]></category>
		<category><![CDATA[Privates]]></category>
		<category><![CDATA[latex]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Es gibt mehrere Möglichkeiten mit LaTeX Quellcode einzubinden. Von Haus aus gibt es da die Verbatim-Umgebung. Sie wird folgendermaßen benutzt: \begin{verbatim} hier kommt dann der Quellcode... \end{verbatim} Dieser Text wird dann in einer Festbreitenschrift dargestellt. Eine sehr viel bessere Möglichkeit &#8230; <a href="http://robert-kummer.de/2006/04/18/latex-quellcode-listing/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Es gibt mehrere Möglichkeiten mit LaTeX Quellcode einzubinden. Von Haus aus gibt es da die Verbatim-Umgebung. Sie wird folgendermaßen benutzt:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">verbatim</span></span><span style="color: #E02020; ">}</span>
hier kommt dann der Quellcode...
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">verbatim</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>Dieser Text wird dann in einer Festbreitenschrift dargestellt.</p>
<p>Eine sehr viel bessere Möglichkeit bietet das Paket <a  href="http://www.ctan.org/tex-archive/macros/latex/contrib/listings/listings-1.3.pdf" target="_blank">listings</a>. Dazu in der Präambel einfach das Paket laden mit</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">listings</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>.</p>
<p>Es gibt nun mehrere Möglichkeiten Quellcode darstellen zu lassen.</p>
<ul>
<li>Kurze Quelltexte einfach direkt reinschreiben:

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\lstset</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">language=</span><span style="color: #E02020; ">}</span>
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">lstlisting</span></span><span style="color: #E02020; ">}[]</span>
hier kommt dann der Quellcode...
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">lstlisting</span></span><span style="color: #E02020; ">}</span></pre></div></div>

</li>
<li>Längere Quelltexte kann man auch aus Dateien direkt einbinden mit:

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\lstset</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">language=</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\lstinputlisting</span><span style="color: #E02020; ">[]{</span><span style="color: #2020C0; font-weight: normal;">pfad/zur/datei.php</span><span style="color: #E02020; ">}</span></pre></div></div>

</li>
<li>Innerhalb von Fließtext kann man auch Quellcode darstellen mit:

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\lstinline</span><span style="color: #E02020; ">[]</span>
<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">hier kommt der Quellcode...</span><span style="color: #E02020; ">}</span></pre></div></div>

</li>
</ul>
<p>Die gängigsten Programmiersprachen werden unterstützt und man kann unter anderem folgende Werte als <span>&lt;Sprache&gt;</span> einsetzen:<br />
C, C++, HTML, Ant, Basic, Delphi, Java, Lisp, make, Pascal, PHP, Python, Ruby, tcl, TeX, LaTeX, VRML, Perl, Prolog, SQL, VBScript, XML, XSLT und viele weitere.</p>
<p>Als <span>&lt;Optionen&gt;</span> kann man folgende verwenden:</p>
<ul>
<li><strong>emph</strong> Liste hervorzuhebender Schlüsselwörter

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;">emph=<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">a,b,c</span><span style="color: #E02020; ">}</span></pre></div></div>

</li>
<li><strong>emphstyle</strong> Art der Hervorhebung

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;">emphstyle=<span style="color: #800000; font-weight: normal;">\underbar</span></pre></div></div>

</li>
<li><strong>breaklines</strong> bricht überlange Zeilen um

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;">breaklines=true</pre></div></div>

</li>
<li><strong>showstringspaces</strong> Anzeige von Leerzeichen im Quellcode

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;">showstringspaces=false</pre></div></div>

</li>
<li><strong>showspaces</strong> vgl. showstringspaces</li>
</ul>
<p>Beim</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\lstinputlisting</span></pre></div></div>

<p> kommen zusätzliche Optionen hinzu:</p>
<ul>
<li><strong>firstline</strong> Ausschnittsbeginn festlegen

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;">firstline=2</pre></div></div>

</li>
<li><strong>lastline</strong> Ausschnittsende festlegen

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;">lastline=5</pre></div></div>

</li>
<li><strong>numbers</strong> Zeilennummern

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;">numbers=left</pre></div></div>

</li>
<li><strong>numberstyle</strong> Stil der Nummerierung

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;">numberstyle=<span style="color: #800000; font-weight: normal;">\tiny</span></pre></div></div>

</li>
<dt><strong>stepnumber</strong> Schrittweite der Nummerierung</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;">stepnumber=5</pre></div></div>

</dt>
</ul>
<p>Für große Dokumente sind folgende Optionen sehr sinnvoll:</p>
<ul>
<li><strong>caption</strong> setzt eine Überschrift

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;">caption=<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Titel oder so</span><span style="color: #E02020; ">}</span></pre></div></div>

</li>
<li><strong>label</strong> Bereichsmarkierung um mit

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">ref</span></span><span style="color: #E02020; ">{</span><span style="color: #E02020; ">}</span></pre></div></div>

<p> daraufzuzugreifen,</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;">label=code:Sourcecode</pre></div></div>

</li>
<li><strong>frame</strong> setzt einen Rahmen (Großbuchstaben bedeuten eine Doppellinie)

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;">frame=tlRB</pre></div></div>

</li>
</ul>
<p>Für ein Verzeichnis der enthaltenen Listings benutzt man</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\lstlistoflistings</span></pre></div></div>

<p>.</p>
<p>Als nicht-freie Alternative gibt es noch das</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;">lgrind</pre></div></div>

<p> Paket. Auf dieses wird hier aber nicht weiter eingegangen.<br />
<h3 class='related_post_title'>Das könnte Sie auch interessieren:</h3>
<ul class='related_post'>
<li><a  href="http://robert-kummer.de/2006/05/11/nuetzliche-links-zu-latex/" title="nützliche Links zu LaTeX&#8230;">nützliche Links zu LaTeX&#8230;</a></li>
</ul>
<p><a  class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://robert-kummer.de/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://robert-kummer.de/2006/04/18/latex-quellcode-listing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
