<?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>jOhblOg &#187; LaTeX</title>
	<atom:link href="http://web.slzm.de/blog/category/latex/feed/" rel="self" type="application/rss+xml" />
	<link>http://web.slzm.de/blog</link>
	<description></description>
	<lastBuildDate>Wed, 02 Jun 2010 10:31:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>XeTeX und das Schriftenparadies</title>
		<link>http://web.slzm.de/blog/linux/xetex-und-das-schriftenparadies/</link>
		<comments>http://web.slzm.de/blog/linux/xetex-und-das-schriftenparadies/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 16:52:39 +0000</pubDate>
		<dc:creator>Johannes</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Jaunty]]></category>
		<category><![CDATA[Schriften]]></category>
		<category><![CDATA[XeTeX]]></category>

		<guid isPermaLink="false">http://web.slzm.de/blog/?p=157</guid>
		<description><![CDATA[Schriften sind in LaTeX ein leidiges Thema. Nur wenige (zugegeben schöne) stehen von Anfang an zur Verfügung, lediglich einige weitere lassen sich problemlos von CTAN besorgen. Abhilfe dafür verspricht XeTeX, eine Erweiterung von LaTeX. Neben der Schriften verbessert sie auch &#8230; <a href="http://web.slzm.de/blog/linux/xetex-und-das-schriftenparadies/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Schriften sind in LaTeX ein leidiges Thema. Nur wenige (zugegeben schöne) stehen von Anfang an zur Verfügung, lediglich einige weitere lassen sich problemlos von CTAN besorgen.</p>
<p>Abhilfe dafür verspricht XeTeX, eine Erweiterung von LaTeX. Neben der Schriften verbessert sie auch das Handlung von Unicode-Zeichen, aber darum soll es hier nicht gehen.<br />
<span id="more-157"></span><br />
Installation unter Ubuntu Jaunty Jackalope:<br />
<strong>sudo apt-get install texlive-xetex</strong></p>
<p>Dann ein &#8220;paar&#8221; Schriften installieren mit:</p>
<p><strong>sudo apt-get install linux-libertine<br />
sudo apt-get install ttf-larabie-deco<br />
sudo apt-get install ttf-larabie-straight<br />
sudo apt-get install ttf-larabie-uncommon</strong></p>
<p>(siehe http://wiki.ubuntuusers.de/Schriften)</p>
<p>Beispieldokument:</p>
<pre>\documentclass[oneside,a4paper]{scrartcl}
% XeTeX
\usepackage[cm-default]{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{fontspec}
\defaultfontfeatures{Mapping=tex-text}
\newfontinstance\stilvoll{Kayrawan}
\newfontinstance\platzsparend{Kenyan Coffee}
\newfontinstance\videogame{Joystix}
%\newfontinstance\in3d{Gunplay 3D}
\newfontinstance\child{Minya Nouvelle}
\newfontinstance\serifstilvoll{Rachana}
\newfontinstance\boxed{Tinsnips}
\newfontinstance\tasten{Betsy Flanagan}
\newfontinstance\reklame{Budmo Jiggler}
\newfontinstance\wanted{DirtyBakersDozen}
\newfontinstance\erpressung{Earwig Factory}
\newfontinstance\deutschland{German Participants}
\newfontinstance\army{Gunplay}
%\newfontinstance\stilvoll2{Linux Libertine O C}
\setmainfont{Kayrawan} % oder: Century Schoolbook L
\setsansfont{CMU Bright}
\setmonofont[Scale=MatchLowercase]{LMTypewriter10}
%\setromanfont{}

\usepackage{blindtext}

\usepackage[ngerman]{babel}
\usepackage[colorlinks]{hyperref}
\usepackage{booktabs}
\usepackage[table]{xcolor}

\begin{document}

\tableofcontents
\vfill
\clearpage

\section{Teil 1}
\wanted{WANTED FOR MURDER}

\child{\blindtext}
\reklame{Dead or Alive}

\section{Teil 2}
\Huge\deutschland{DEUTSCHLAND}

\normalsize\erpressung{\blindtext}

\Huge\videogame{Spiel mit mir!}

\vspace{3cm}
\normalfont \scriptsize{Endlich wieder normal <img src='http://web.slzm.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .}

\section{Teil 3}
\blindtext

\end{document}</pre>
<p>Wichtig:<br />
%\usepackage[utf8]{inputenc}<br />
%\usepackage[T1]{fontenc}<br />
auskommentieren, ebenso jegliche anderen usepackages zum Laden von Schriften.</p>
<p>Ärgerlich ist der Bug, dass \newfontinstance\in3d{Gunplay 3D} fehltschlägt, wenn Gunplay auch installiert ist. Dann versucht XeTeX offenbar, 3D als Alternativschrift zu laden, was natürlich fehlschlägt. Eventuell ist das in der aktuellen Version bereits gefixt, die aber nicht als Paket in Ubuntu verfügbar ist.</p>
<p>Achja: Kompilieren dann mit xelatex datei.tex statt pdflatex.</p>
<p><a href="http://web.slzm.de/blog/wp-content/uploads/Beispiel1.pdf">Beispiel</a></p>
<p>Johannes</p>
]]></content:encoded>
			<wfw:commentRss>http://web.slzm.de/blog/linux/xetex-und-das-schriftenparadies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aufzählungen von Word/HTML nach LaTeX konvertieren</title>
		<link>http://web.slzm.de/blog/programmieren/aufzahlungen-von-wordhtml-nach-latex-konvertieren/</link>
		<comments>http://web.slzm.de/blog/programmieren/aufzahlungen-von-wordhtml-nach-latex-konvertieren/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 13:50:34 +0000</pubDate>
		<dc:creator>Johannes</dc:creator>
				<category><![CDATA[AutoIt]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Programmieren]]></category>

		<guid isPermaLink="false">http://web.slzm.de/blog/?p=129</guid>
		<description><![CDATA[Das folgende Skript habe ich mir gebastelt, um Word-Aufzählungen in LaTeX zu konvertieren. Gerade wenn es mehrere Ebenen sind, ist es in Word einfach jedes Mal wieder nervig, die Ebenen zu koordinieren. Als das aktuelle (!) Word 2007 es dann &#8230; <a href="http://web.slzm.de/blog/programmieren/aufzahlungen-von-wordhtml-nach-latex-konvertieren/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Das folgende Skript habe ich mir gebastelt, um Word-Aufzählungen in LaTeX zu konvertieren. Gerade wenn es mehrere Ebenen sind, ist es in Word einfach jedes Mal wieder nervig, die Ebenen zu koordinieren. Als das aktuelle (!) Word 2007 es dann doch geschafft hat, Einzüge zu machen, wo sie keinen Sinn machen, hat es gereicht und ordentlicher Textsatz musste her &#8212; LaTeX.</p>
<p><span id="more-129"></span>Hier das <a href="http://www.autoit.de">AutoIt</a>-Skript, dass die Konvertierung besorgt:</p>

<div class="wp_syntax"><div class="code"><pre class="autoit" style="font-family:monospace;"><span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>File<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span>
<span style="color: #F000FF; font-style: italic;">#include</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span>Array<span style="color: #FF0000; font-weight: bold;">.</span><span style="color: #0000FF; font-style: italic; font-weight: bold;">au3</span><span style="color: #FF0000; font-weight: bold;">&gt;</span>
&nbsp;
<span style="font-style: italic; color: #009933;">; Definitions</span>
<span style="color: #0000FF; font-weight: bold;">Global</span> <span style="font-weight: bold; color: #AA0000;">$lvlMatch</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">4</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #008080;">&quot;^\s*\d*\.\s*(.*)&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;^\s*[a-z]\.\s*(.*)&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;^\s*[ivx]*\.\s*(.*)&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;^\s*\d*\.\s*(.*)&quot;</span><span style="color: #FF0000; font-weight: bold;">&#93;</span>
<span style="color: #0000FF; font-weight: bold;">Global</span> <span style="font-weight: bold; color: #AA0000;">$data</span>
<span style="color: #0080FF; font-style: italic; font-weight: bold;">_FileReadToArray</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">@ScriptDir</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\input.txt&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #AA0000;">$data</span><span style="color: #FF0000; font-weight: bold;">&#41;</span>
<span style="color: #0080FF; font-style: italic; font-weight: bold;">_ArrayDelete</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$data</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#41;</span>
<span style="color: #0000FF; font-weight: bold;">Global</span> <span style="font-weight: bold; color: #AA0000;">$levels</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="color: #000080; font-style: italic; font-weight: bold;">UBound</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$data</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><span style="color: #FF0000; font-weight: bold;">&#93;</span>
&nbsp;
<span style="font-style: italic; color: #009933;">; Levels herausfinden</span>
<span style="color: #0000FF; font-weight: bold;">For</span> <span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span> <span style="color: #0000FF; font-weight: bold;">To</span> <span style="color: #000080; font-style: italic; font-weight: bold;">UBound</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$data</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="color: #FF0000; font-weight: bold;">-</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span>
	<span style="font-weight: bold; color: #AA0000;">$levels</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #FF0000; font-weight: bold;">-</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <span style="font-style: italic; color: #009933;">; Default (= no explicit match)</span>
	<span style="color: #0000FF; font-weight: bold;">For</span> <span style="font-weight: bold; color: #AA0000;">$j</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #000080; font-style: italic; font-weight: bold;">UBound</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$lvlMatch</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="color: #FF0000; font-weight: bold;">-</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <span style="color: #0000FF; font-weight: bold;">To</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span> <span style="color: #0000FF; font-weight: bold;">Step</span> <span style="color: #FF0000; font-weight: bold;">-</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <span style="font-style: italic; color: #009933;">; zu hoch raten im Notfall</span>
		<span style="color: #0000FF; font-weight: bold;">If</span> <span style="color: #000080; font-style: italic; font-weight: bold;">StringRegExp</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$data</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #AA0000;">$lvlMatch</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$j</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="color: #0000FF; font-weight: bold;">Then</span>
			<span style="font-weight: bold; color: #AA0000;">$levels</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$j</span>
			<span style="font-weight: bold; color: #AA0000;">$data</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #000080; font-style: italic; font-weight: bold;">StringRegExpReplace</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$data</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #AA0000;">$lvlMatch</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$j</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;\1&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#41;</span>
			<span style="color: #0000FF; font-weight: bold;">ContinueLoop</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">2</span>
		<span style="color: #0000FF; font-weight: bold;">EndIf</span>
	<span style="color: #0000FF; font-weight: bold;">Next</span>
<span style="color: #0000FF; font-weight: bold;">Next</span>
&nbsp;
<span style="font-style: italic; color: #009933;">; 0/3-Fix</span>
<span style="color: #0080FF; font-style: italic; font-weight: bold;">_ArrayInsert</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$data</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span>
<span style="color: #0080FF; font-style: italic; font-weight: bold;">_ArrayInsert</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$levels</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #FF0000; font-weight: bold;">-</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#41;</span>
&nbsp;
<span style="color: #0000FF; font-weight: bold;">For</span> <span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <span style="color: #0000FF; font-weight: bold;">To</span> <span style="color: #000080; font-style: italic; font-weight: bold;">UBound</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$data</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="color: #FF0000; font-weight: bold;">-</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">2</span> <span style="font-style: italic; color: #009933;">; !</span>
	<span style="color: #0000FF; font-weight: bold;">If</span> <span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$levels</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">3</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="color: #0000FF; font-weight: bold;">And</span> <span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$levels</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">+</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="color: #0000FF; font-weight: bold;">OR</span> <span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$levels</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">3</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="color: #0000FF; font-weight: bold;">And</span> <span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="color: #000080; font-style: italic; font-weight: bold;">StringRegExp</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$data</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">-</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;^\s*$&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="color: #0000FF; font-weight: bold;">Then</span>
		<span style="font-weight: bold; color: #AA0000;">$levels</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span>
	<span style="color: #0000FF; font-weight: bold;">EndIf</span>
<span style="color: #0000FF; font-weight: bold;">Next</span>
&nbsp;
<span style="font-style: italic; color: #009933;">; Fix für Ende</span>
<span style="color: #0080FF; font-style: italic; font-weight: bold;">_ArrayAdd</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$data</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;&quot;</span><span style="color: #FF0000; font-weight: bold;">&#41;</span>
<span style="color: #0080FF; font-style: italic; font-weight: bold;">_ArrayAdd</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$levels</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#41;</span>
&nbsp;
<span style="font-style: italic; color: #009933;">; Output generieren</span>
<span style="font-weight: bold; color: #AA0000;">$currLevel</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #FF0000; font-weight: bold;">-</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span>
<span style="font-weight: bold; color: #AA0000;">$output</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #008080;">&quot;&quot;</span>
<span style="color: #0000FF; font-weight: bold;">For</span> <span style="font-weight: bold; color: #AA0000;">$i</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span> <span style="color: #0000FF; font-weight: bold;">To</span> <span style="color: #000080; font-style: italic; font-weight: bold;">UBound</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$data</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="color: #FF0000; font-weight: bold;">-</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span>
	<span style="font-weight: bold; color: #AA0000;">$newLevel</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$levels</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span>
	<span style="color: #0000FF; font-weight: bold;">If</span> <span style="font-weight: bold; color: #AA0000;">$newLevel</span> <span style="color: #FF0000; font-weight: bold;">&lt;&gt;</span> <span style="color: #FF0000; font-weight: bold;">-</span><span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span> <span style="color: #0000FF; font-weight: bold;">Then</span>
		<span style="font-style: italic; color: #009933;">; runter</span>
		<span style="color: #0000FF; font-weight: bold;">if</span> <span style="font-weight: bold; color: #AA0000;">$newLevel</span> <span style="color: #FF0000; font-weight: bold;">&gt;</span> <span style="font-weight: bold; color: #AA0000;">$currLevel</span> <span style="color: #0000FF; font-weight: bold;">Then</span>
			<span style="font-weight: bold; color: #AA0000;">$output</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$output</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\begin{enumerate}&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">@CRLF</span>
		<span style="color: #0000FF; font-weight: bold;">EndIf</span>
		<span style="font-style: italic; color: #009933;">; (u.U. mehrfach!) hoch</span>
		<span style="color: #0000FF; font-weight: bold;">while</span> <span style="font-weight: bold; color: #AA0000;">$newLevel</span> <span style="color: #FF0000; font-weight: bold;">&lt;</span> <span style="font-weight: bold; color: #AA0000;">$currLevel</span>
			<span style="font-weight: bold; color: #AA0000;">$output</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$output</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\end{enumerate}&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">@CRLF</span>
			<span style="font-weight: bold; color: #AA0000;">$currLevel</span> <span style="color: #FF0000; font-weight: bold;">-=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">1</span>
		<span style="color: #0000FF; font-weight: bold;">WEnd</span>
&nbsp;
		<span style="font-weight: bold; color: #AA0000;">$currLevel</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$newLevel</span>
	<span style="color: #0000FF; font-weight: bold;">EndIf</span>
&nbsp;
	<span style="color: #0000FF; font-weight: bold;">If</span> <span style="color: #000080; font-style: italic; font-weight: bold;">StringRegExp</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$data</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;^\s*$&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span><span style="color: #FF0000; font-weight: bold;">&#41;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span> <span style="color: #0000FF; font-weight: bold;">Then</span>
		<span style="color: #0000FF; font-weight: bold;">if</span> <span style="font-weight: bold; color: #AA0000;">$levels</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">0</span> <span style="color: #0000FF; font-weight: bold;">Then</span>
			<span style="font-weight: bold; color: #AA0000;">$output</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$output</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\item \hl{&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$data</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;}&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">@CRLF</span>
		<span style="color: #0000FF; font-weight: bold;">Else</span>
			<span style="font-weight: bold; color: #AA0000;">$output</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$output</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\item &quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">$data</span><span style="color: #FF0000; font-weight: bold;">&#91;</span><span style="font-weight: bold; color: #AA0000;">$i</span><span style="color: #FF0000; font-weight: bold;">&#93;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">@CRLF</span>
		<span style="color: #0000FF; font-weight: bold;">EndIf</span>
	<span style="color: #0000FF; font-weight: bold;">else</span>
		<span style="font-weight: bold; color: #AA0000;">$output</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="font-weight: bold; color: #AA0000;">$output</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">@CRLF</span>
	<span style="color: #0000FF; font-weight: bold;">EndIf</span>
<span style="color: #0000FF; font-weight: bold;">Next</span>
<span style="font-weight: bold; color: #AA0000;">$output</span> <span style="color: #FF0000; font-weight: bold;">&amp;=</span> <span style="font-weight: bold; color: #008080;">&quot;\end{enumerate}&quot;</span>
&nbsp;
<span style="font-style: italic; color: #009933;">; verschönern</span>
<span style="font-weight: bold; color: #AA0000;">$output</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #000080; font-style: italic; font-weight: bold;">StringReplace</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$output</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #AA0000;">@CRLF</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\end{enumerate}&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #008080;">&quot;\end{enumerate}&quot;</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #AA0000;">@CRLF</span><span style="color: #FF0000; font-weight: bold;">&#41;</span>
&nbsp;
<span style="font-style: italic; color: #009933;">; schreiben</span>
<span style="font-weight: bold; color: #AA0000;">$fhndl</span> <span style="color: #FF0000; font-weight: bold;">=</span> <span style="color: #000080; font-style: italic; font-weight: bold;">FileOpen</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">@ScriptDir</span> <span style="color: #FF0000; font-weight: bold;">&amp;</span> <span style="font-weight: bold; color: #008080;">&quot;\output.txt&quot;</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="color: #AC00A9; font-style: italic; font-weight: bold;">2</span><span style="color: #FF0000; font-weight: bold;">&#41;</span>
<span style="color: #000080; font-style: italic; font-weight: bold;">FileWrite</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$fhndl</span><span style="color: #FF0000; font-weight: bold;">,</span> <span style="font-weight: bold; color: #AA0000;">$output</span><span style="color: #FF0000; font-weight: bold;">&#41;</span>
<span style="color: #000080; font-style: italic; font-weight: bold;">FileClose</span><span style="color: #FF0000; font-weight: bold;">&#40;</span><span style="font-weight: bold; color: #AA0000;">$fhndl</span><span style="color: #FF0000; font-weight: bold;">&#41;</span></pre></div></div>

<p>Das Skript erwartet eine input.txt in seinem Verzeichnis und schmeißt den LaTeX-Schnipsel in der Datei  output.txt raus.<br />
Die regulären Ausdrücke zur Erkennung der Aufzählungszeichen lassen sich oben anpassen.</p>
<p>Der Code steht unter der <a href="http://www.gnu.org/licenses/gpl-3.0.html">GPLv3</a>-Lizenz.</p>
<p>Viel Spaß damit,<br />
Johannes</p>
]]></content:encoded>
			<wfw:commentRss>http://web.slzm.de/blog/programmieren/aufzahlungen-von-wordhtml-nach-latex-konvertieren/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AutoIt-Buch, Episode II</title>
		<link>http://web.slzm.de/blog/programmieren/autoit-buch-episode-ii/</link>
		<comments>http://web.slzm.de/blog/programmieren/autoit-buch-episode-ii/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 16:36:01 +0000</pubDate>
		<dc:creator>Johannes</dc:creator>
				<category><![CDATA[AutoIt]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[AutoIt leicht gemacht]]></category>
		<category><![CDATA[Buch]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[kostenlos]]></category>

		<guid isPermaLink="false">http://web.slzm.de/blog/?p=118</guid>
		<description><![CDATA[Hallo, Vor allem dank der tatkräftigen Unterstützung von Rasta gibt es eine neue Version des Buches über AutoIt. Vielen herzlichen Dank für das ausführliche und sehr fundierte Lektorat. Weiterer Dank geht an bernd670 für Hinweise zur Verbesserung. In der neuen &#8230; <a href="http://web.slzm.de/blog/programmieren/autoit-buch-episode-ii/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hallo,</p>
<p>Vor allem dank der tatkräftigen Unterstützung von Rasta gibt es eine neue Version des <a title="Erste Version des Buches" href="http://web.slzm.de/blog/programmieren/autoit-leicht-gemacht/" target="_self">Buches über AutoIt</a>. Vielen herzlichen Dank für das ausführliche und sehr fundierte Lektorat. Weiterer Dank geht an bernd670 für Hinweise zur Verbesserung.</p>
<p><span id="more-118"></span>In der neuen Version gibt es neben der Korrektur von viel zu zahlreichen Rechtschreib-, Komma- und Formulierungsfehlern vor allem weit schönere Tabellen und Quellcodelistings. Die Tabellen sind jetzt schön alternierend gefärbt, die Listings farblich deutlich an SciTE angenähert. Wer mir sagen kann, wie ich die Variablen ($xyz) erfassen kann, bekommt eine Erwähnung im Buch <img src='http://web.slzm.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>

<a href='http://web.slzm.de/blog/programmieren/autoit-buch-episode-ii/attachment/titelseite/' title='Titelseite'><img width="150" height="150" src="http://web.slzm.de/blog/wp-content/uploads/titelseite-150x150.png" class="attachment-thumbnail" alt="Titelseite" title="Titelseite" /></a>
<a href='http://web.slzm.de/blog/programmieren/autoit-buch-episode-ii/attachment/listings/' title='Listings'><img width="150" height="150" src="http://web.slzm.de/blog/wp-content/uploads/listings-150x150.png" class="attachment-thumbnail" alt="Listings" title="Listings" /></a>

<p>Gun-Food hat in einem Kommentar zur ersten Veröffentlichung geschrieben, er fände die Titelseite des &#8220;Gelben Buches&#8221; nicht so schön. Daher rufe ich an dieser Stelle einen Wettbewerb aus, in dem eine neue Titelseite gekürt werden soll. Auch hierfür gibt es eine Erwähnung im Buch. Die Graphik im Format DIN-A4 soll (mindestens) den Titel (AutoIt leicht gemacht), eine Reminiszenz an AutoIt und meinen Namen enthalten. Die Datei muss unter einer passenden CC-Lizenz stehen und als Quelldatei (Ebenen mit änderbarem Text) zur Verfügung gestellt werden.</p>
<p>Die Lizenz des Buches bleibt unverändert (siehe auch im PDF selbst).</p>
<p><strong>Download:</strong> <a href="http://web.slzm.de/blog/wp-content/uploads/AutoIt_leicht_gemacht_2009-07-11.pdf"> AutoIt leicht gemacht &#8211; 11. Juli 2009</a></p>
<p>Viel Erfolg damit,<br />
<em>Johannes</em></p>
]]></content:encoded>
			<wfw:commentRss>http://web.slzm.de/blog/programmieren/autoit-buch-episode-ii/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>LaTeX-Tipps (II)</title>
		<link>http://web.slzm.de/blog/latex/latex-tipps-ii/</link>
		<comments>http://web.slzm.de/blog/latex/latex-tipps-ii/#comments</comments>
		<pubDate>Fri, 01 May 2009 15:43:15 +0000</pubDate>
		<dc:creator>Johannes</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Brief]]></category>
		<category><![CDATA[deutsch]]></category>
		<category><![CDATA[KOMA-Skript]]></category>
		<category><![CDATA[Lebenslauf]]></category>
		<category><![CDATA[Querformat]]></category>
		<category><![CDATA[scrlttr2]]></category>
		<category><![CDATA[Tipps]]></category>
		<category><![CDATA[Vorlage]]></category>

		<guid isPermaLink="false">http://web.slzm.de/blog/?p=85</guid>
		<description><![CDATA[Noch mehr LaTeX-Tricks: 1. Querformat \documentclass[a4paper,landscape,10pt]{scrarlcl} \usepackage[dvips]{geometry} % wichtig für pdflatex 2. Vorlagen Deutscher Brief: Eine schöne, funktionierende Vorlage für deutsche Briefe nach DIN-Normen gibt es hier: http://www.komascript.de/node/355. Sehr nett sind dabei die Faltmarken und die korrekte Platzierung der Adresse &#8230; <a href="http://web.slzm.de/blog/latex/latex-tipps-ii/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Noch mehr LaTeX-Tricks:</p>
<h2><span id="more-85"></span>1. Querformat</h2>
<pre>\documentclass[a4paper,landscape,10pt]{scrarlcl}
\usepackage[dvips]{geometry} % wichtig für pdflatex</pre>
<h2>2. Vorlagen</h2>
<p><strong>Deutscher Brief: </strong></p>
<p>Eine schöne, funktionierende Vorlage für deutsche Briefe nach DIN-Normen gibt es hier: <a title="LaTeX-Briefvorlage (deutsch)" href="http://www.komascript.de/node/355" target="_blank">http://www.komascript.de/node/355</a>. Sehr nett sind dabei die Faltmarken und die korrekte Platzierung der Adresse für Sichtfelder in Briefumschlägen. Die Vorlage basiert auf scrlttr aus dem KOMA-Skript-Paket.<em> </em></p>
<p><strong>Lebenslauf:</strong></p>
<p><a title="LaTeX-Lebenslaufvorlage" href="http://xeroc.org/uebermich/cv.shtml" target="_blank">http://xeroc.org/uebermich/cv.shtml</a></p>
<p><em>Johannes</em></p>
]]></content:encoded>
			<wfw:commentRss>http://web.slzm.de/blog/latex/latex-tipps-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LaTeX-Tipps (I)</title>
		<link>http://web.slzm.de/blog/latex/latex-tipps-1/</link>
		<comments>http://web.slzm.de/blog/latex/latex-tipps-1/#comments</comments>
		<pubDate>Fri, 01 May 2009 07:59:00 +0000</pubDate>
		<dc:creator>Johannes</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Anführungszeichen]]></category>
		<category><![CDATA[longtable]]></category>
		<category><![CDATA[mehrspaltig]]></category>
		<category><![CDATA[Spalten]]></category>
		<category><![CDATA[supertabular]]></category>
		<category><![CDATA[tabular]]></category>
		<category><![CDATA[Umlaute]]></category>
		<category><![CDATA[zweispaltig]]></category>

		<guid isPermaLink="false">http://web.slzm.de/blog/?p=76</guid>
		<description><![CDATA[Ein paar Tipps zu LaTeX, die ich ich letzter Zeit gesammelt habe: 1. Anführungszeichen Damit man im Text die englischen Anführungszeichen (&#8220;) verwenden kann, reicht am Anfang des Dokumentes ein einfaches: \shorthandoff{"} 2. Zweispaltiger Satz mit Tabellen Mit dem Paket &#8230; <a href="http://web.slzm.de/blog/latex/latex-tipps-1/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ein paar Tipps zu LaTeX, die ich ich letzter Zeit gesammelt habe:</p>
<h2><span id="more-76"></span>1. Anführungszeichen</h2>
<p>Damit man im Text die englischen Anführungszeichen (&#8220;) verwenden kann, reicht am Anfang des Dokumentes ein einfaches:</p>
<pre>\shorthandoff{"}</pre>
<h2>2. Zweispaltiger Satz mit Tabellen</h2>
<p>Mit dem Paket &#8220;supertabular&#8221; lassen sich Tabellen auch in zwei- oder mehrspaltigem Satz über mehrere Spalten verteilen. Sie brechen automatisch um und fließen weiter.</p>
<p>Man setzt dazu</p>
<pre>\twocolumn</pre>
<p>an eine Stelle (führt zu einer neuen Seite) und legt eine Tabelle dann z.B. wie folgt an:</p>
<pre>\begin{supertabular*}{0.5\textwidth}{p{0.15\textwidth}p{0.15\textwidth}p{0.16\textwidth}}
\hline
Spalte 1 &amp; Spalte 2 &amp; Spalte 3 \\
\hline
\end{supertabular*}</pre>
<h2>3. Ränder</h2>
<p>In KOMA-Skript (scrartcl usw.) setzt man Ränder am einfachsten mit dem Befehl</p>
<pre>\areaset{width}{height}</pre>
<p>Für sehr wenig Rand bei DIN A4 also z.B.:</p>
<pre>\areaset{18cm}{28cm}</pre>
<h2>4. Nette PDFs</h2>
<p><strong>Längere, gute Einführung:</strong> <a title="LaTeX-Einführung (pdf)" href="http://www.zdv.uni-tuebingen.de/static/skripte/tech/theorie.pdf" target="_blank">http://www.zdv.uni-tuebingen.de/static/skripte/tech/theorie.pdf</a><br />
<strong>Cheat Sheet:</strong> <a title="Cheat Sheet Download" href="http://jamesie.de/latex/" target="_blank">http://jamesie.de/latex/</a></p>
<h2>5. Vorlage</h2>
<p>Eine schöne Facharbeitsvorlage, die für Bayern gleich so passt: <a title="Facharbeitsvorlage" href="http://gute2.de/?Facharbeit_mit_LaTeX:Mit_Linux" target="_blank">http://gute2.de/?Facharbeit_mit_LaTeX:Mit_Linux</a></p>
<p><em>Johannes</em></p>
]]></content:encoded>
			<wfw:commentRss>http://web.slzm.de/blog/latex/latex-tipps-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
