<?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>gehrcke.de &#187; LaTeX</title> <atom:link href="http://gehrcke.de/category/technical-stuff/latex/feed/" rel="self" type="application/rss+xml" /><link>http://gehrcke.de</link> <description>Jan-Philip Gehrcke&#039;s website</description> <lastBuildDate>Sun, 13 May 2012 17:17:35 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>LaTeX: jump/skip to the bottom of a page</title><link>http://gehrcke.de/2011/08/latex-jumpskip-to-the-bottom-of-a-page/</link> <comments>http://gehrcke.de/2011/08/latex-jumpskip-to-the-bottom-of-a-page/#comments</comments> <pubDate>Tue, 16 Aug 2011 12:24:39 +0000</pubDate> <dc:creator>Jan-Philip Gehrcke</dc:creator> <category><![CDATA[LaTeX]]></category> <category><![CDATA[Technical Stuff]]></category> <guid
isPermaLink="false">http://gehrcke.de/?p=1755</guid> <description><![CDATA[<p>I could not remember the command to &#8220;jump&#8221; to the bottom of a page in LaTeX. I searched, but my keywords turned out to be crap. This post is just for the people searching with the same keywords (latex, jump, skip, bottom, page)</p><p>The solution is \vfill. You can also use \vfil, and \vfilll), [...]]]></description> <content:encoded><![CDATA[<p>I could not remember the command to &#8220;jump&#8221; to the bottom of a page in LaTeX.<span
id="more-1755"></span> I searched, but my keywords turned out to be crap. This post is just for the people searching with the same keywords (latex, jump, skip, bottom, page) <img
src='http://gehrcke.de/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>The solution is <code>\vfill</code>. You can also use <code>\vfil</code>, and <code>\vfilll)</code>, having a lower/higher priority than <code>\vfill</code>, respectively.</p><p>German reference:<br
/> <a
href="http://www.golatex.de/wiki/index.php?title=\vfill" title="http://www.golatex.de/wiki/index.php?title=\vfill">http://www.golatex.de/wiki/index.php?title=\vfill</a></p> ]]></content:encoded> <wfw:commentRss>http://gehrcke.de/2011/08/latex-jumpskip-to-the-bottom-of-a-page/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Javascript in PDF using LaTeX</title><link>http://gehrcke.de/2010/11/javascript-in-pdf-using-latex/</link> <comments>http://gehrcke.de/2010/11/javascript-in-pdf-using-latex/#comments</comments> <pubDate>Thu, 04 Nov 2010 11:03:18 +0000</pubDate> <dc:creator>Jan-Philip Gehrcke</dc:creator> <category><![CDATA[Javascript]]></category> <category><![CDATA[LaTeX]]></category> <category><![CDATA[Technical Stuff]]></category> <guid
isPermaLink="false">http://gehrcke.de/?p=1215</guid> <description><![CDATA[<p>Yesterday, I tried to measure the startup time of Adobe Reader (AR) on Windows and wondered if I could create a PDF file triggering the AR application exit on load of itself. For some hours, I wondered how the hell to include Javascript in a PDF document without having to use Acrobat.</p><p>I found a [...]]]></description> <content:encoded><![CDATA[<p>Yesterday, I tried to measure the startup time of Adobe Reader (AR) on Windows and wondered if I could create a PDF file triggering the AR application exit on load of itself. For some hours, I wondered how the hell to include Javascript in a PDF document without having to use Acrobat.<span
id="more-1215"></span></p><p>I found a neat way to include Javascript in a PDF file: using LaTeX! Look at this piece of code:</p><div
class="wp-geshi-highlight-wrap5"><div
class="wp-geshi-highlight-wrap4"><div
class="wp-geshi-highlight-wrap3"><div
class="wp-geshi-highlight-wrap2"><div
class="wp-geshi-highlight-wrap"><div
class="wp-geshi-highlight"><div
class="latex"><pre class="de1"><span class="sy0">\</span><span class="kw1">documentclass</span><span class="sy0">{</span><span class="re9">article<span class="sy0">}</span>
<span class="sy0">\</span><span class="kw1">usepackage</span><span class="sy0">[</span><span class="re2">pdftex</span>]{insdljs</span><span class="sy0">}</span>
&nbsp;
<span class="re12">\OpenAction</span><span class="sy0">{</span><span class="re12">\JS</span><span class="sy0">{</span><span class="co1">%</span>
app.alert(&quot;HALLO WELT&quot;);
<span class="sy0">}}</span>
&nbsp;
<span class="re8">\begin</span><span class="sy0">{</span><span class="re9"><span class="re7">document</span><span class="sy0">}</span>
THIS DOCUMENT IS A DOCUMENT
<span class="re8">\end</span><span class="sy0">{</span><span class="re7">document</span></span><span class="sy0">}</span></pre></div></div></div></div></div></div></div><p>I compiled this using PDFLaTeX, yielding the following result:<br
/> <a
href="http://gehrcke.de/files/perm/latex/js_in_pdf_test.pdf">js_in_pdf_test.pdf</a></p><p>The <code>insdljs</code> package is providing the <code>\OpenAction</code> command, which lets you define Javascript code executed on loading the PDF document at page one. And much more is possible. Together with some other packages collected in the <code>AcroTeX</code> [<strong>1</strong>] package, you can create interactive PDF documents using LaTeX, as partly presented in [<strong>2</strong>]. An entire documentation for creating such documents is provided in [<strong>3</strong>]. The Javascript API you can use for the Adobe Reader is documented in [<strong>4</strong>]. Unfortunately, there is no way to close the parent application using Javascript, so this whole approach was not useful for my initial problem. Anyway, I&#8217;ve learned something.</p><h5>References:</h5><p><small>[<strong>1</strong>] <a
href="http://www.ctan.org/tex-archive/help/Catalogue/entries/acrotex.html">http://www.ctan.org/tex-archive/help/Catalogue/entries/acrotex.html</a><br
/> [<strong>2</strong>] <a
href="http://www.tug.org/TUGboat/Articles/tb22-3/tb72story.pdf">http://www.tug.org/TUGboat/Articles/tb22-3/tb72story.pdf</a><br
/> [<strong>3</strong>] <a
href="http://www.ctan.org/tex-archive/macros/latex/contrib/acrotex/doc/eformman.pdf">http://www.ctan.org/tex-archive/macros/latex/contrib/acrotex/doc/eformman.pdf</a><br
/> [<strong>4</strong>] <a
href="http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JavaScript_SectionPage.70.1.html">http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JavaScript_SectionPage.70.1.html</a><br
/> </small></p> ]]></content:encoded> <wfw:commentRss>http://gehrcke.de/2010/11/javascript-in-pdf-using-latex/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>LaTeX Briefvorlage</title><link>http://gehrcke.de/2009/12/latex-briefvorlage/</link> <comments>http://gehrcke.de/2009/12/latex-briefvorlage/#comments</comments> <pubDate>Fri, 04 Dec 2009 00:07:44 +0000</pubDate> <dc:creator>Jan-Philip Gehrcke</dc:creator> <category><![CDATA[German]]></category> <category><![CDATA[LaTeX]]></category> <category><![CDATA[Technical Stuff]]></category> <guid
isPermaLink="false">http://gehrcke.de/?p=1092</guid> <description><![CDATA[<p>In den letzten Monaten musste ich des Öfteren wichtige formale Briefe versenden und natürlich vorher erstellen. Einmal nahm ich mir die Zeit, dieses vernünftig mit LaTeX (freies Textsatzsystem) zu tun und war total begeistert: das Ergebnis sieht ungemein professionell aus und wenn man sich einmal eingearbeitet und eine Vorlage erstellt hat, ist jeder neue Brief [...]]]></description> <content:encoded><![CDATA[<p>In den letzten Monaten musste ich des Öfteren wichtige formale Briefe versenden und natürlich vorher erstellen. Einmal nahm ich mir die Zeit, dieses vernünftig mit <a
href="http://de.wikipedia.org/wiki/LaTeX">LaTeX</a> (freies Textsatzsystem) zu tun und war total begeistert: das Ergebnis sieht ungemein <strong>professionell</strong> aus und wenn man sich einmal eingearbeitet und eine Vorlage erstellt hat, ist jeder neue Brief <strong>extrem schnell und einfach</strong> zu erstellen &#8212; schneller und viel besser, als man es mit einer Office-Anwendung schaffen könnte. Als LaTeX-Neuling ist man jedoch auf eine Vorlage, an der man sich orientieren kann, angewiesen. Diese möchte ich mit diesem Beitrag liefern.<span
id="more-1092"></span></p><p>Die Vorlage ist für Briefe an deutsche Adressaten gedacht. Sie baut auf einer LaTeX-Dokumentenklasse auf, die alle relevanten DIN-Regeln automatisch umsetzt. Daher ist die Vorlage nicht unbedingt für Briefe an englische Adressaten geeignet &#8212; zumindest, wenn man penibel arbeiten und in diesem Fall entsprechend amerikanische oder britische Satzregeln anwenden möchte. Die Beschränkung auf deutschen Briefsatz führt auch dazu, dass ich diesen Beitrag auf Deutsch formuliere.</p><h4>Die Vorlage</h4><p>Das Ergebnis zuerst: <a
href="http://gehrcke.de/files/perm/latex/letter_template/letter.pdf">letter.pdf</a></p><p>Der Brief ist schlicht, jedoch perfekt nach DIN-Regeln gesetzt, inklusive Faltmarken am linken Rand. Den zugehörigen Quelltext habe ich auf zwei Dateien verteilt:</p><ul><li>In einer Datei ist das Layout (z.B. Briefkopf) bzw. die anzuzeigenden Elemente definiert sowie Absenderdaten:<br
/> <a
href="http://gehrcke.de/files/perm/latex/letter_template/letter_options.lco">letter_options.lco</a></li></ul><ul><li>Die andere Datei beginnt mit einer gewöhnlichen LaTeX-Präambel. In der Dokumentenklassendefinition wird obig beschriebene Datei eingebunden. Ansonsten befindet sich in dieser Datei fast nur noch der Inhalt des Briefes:<br
/> <a
href="http://gehrcke.de/files/perm/latex/letter_template/letter.tex">letter.tex</a></li></ul><p>Wenn man eine LaTeX-Distribution installiert hat (z.B. <a
href="http://miktex.org/">MiKTeX</a>) und über einen vernünftigen Editor verfügt (z.B. <a
href="http://www.latexeditor.org/">LEd</a>, welcher funktional aber dennoch sehr schlank ist), muss man nur noch obige Dateien in ein Verzeichnis stecken, den Briefinhalt, Absender und Empfänger editieren und auf ein Knöpfchen drücken &#8212; schon hat man seinen professionellen Brief fertig im PDF-Format vorliegen und muss ihn nur noch ausdrucken. Dann kann man ihn anhand der Knickmarken korrekt falten und in einen Umschlag mit Sichtfenster stecken: die Empfängeradresse passt natürlich exakt.</p><h4>Spielereien</h4><p>Die eingesetzte Dokumentenklasse nennt sich <code>scrlttr2</code> aus dem <a
href="http://komascript.de">Koma-Script</a>. Sie ist im <a
href="ftp://ftp.dante.de/tex-archive/macros/latex/contrib/koma-script/scrguide.pdf">scrguide</a> dokumentiert. Wenn man sich dort einliest und dann mit den Einstellungen spielt, kann man z.B. den Briefkopf ein wenig verändern: <a
href="http://gehrcke.de/files/perm/latex/letter_template/other_head.pdf">other_head.pdf</a></p> ]]></content:encoded> <wfw:commentRss>http://gehrcke.de/2009/12/latex-briefvorlage/feed/</wfw:commentRss> <slash:comments>15</slash:comments> </item> </channel> </rss>
