<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>ads' corner - TeX</title>
    <link>http://andreas.scherbaum.la/blog/</link>
    <description>a place to store my stuff</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.5.3 - http://www.s9y.org/</generator>
    <pubDate>Mon, 01 Mar 2010 01:36:14 GMT</pubDate>

    <image>
        <url>http://andreas.scherbaum.la/blog/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: ads' corner - TeX - a place to store my stuff</title>
        <link>http://andreas.scherbaum.la/blog/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Read number lines in a file - in LaTeX</title>
    <link>http://andreas.scherbaum.la/blog/archives/670-Read-number-lines-in-a-file-in-LaTeX.html</link>
            <category>TeX</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/670-Read-number-lines-in-a-file-in-LaTeX.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=670</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=670</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;Probably a rare needed feature, but i had to count the number lines in a text file - in LaTeX.&lt;/font&gt; &lt;br /&gt;&lt;a href=&quot;http://andreas.scherbaum.la/blog/archives/670-Read-number-lines-in-a-file-in-LaTeX.html#extended&quot;&gt;Continue reading &quot;Read number lines in a file - in LaTeX&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sun, 28 Feb 2010 19:05:00 +0100</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/670-guid.html</guid>
    <category>LaTeX</category>
<category>Number lines in file</category>
<category>Presentation</category>
<category>Software</category>
<category>Talk</category>
<category>TeX</category>
<category>Vortrag</category>

</item>
<item>
    <title>Generate random number in LaTeX</title>
    <link>http://andreas.scherbaum.la/blog/archives/668-Generate-random-number-in-LaTeX.html</link>
            <category>TeX</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/668-Generate-random-number-in-LaTeX.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=668</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=668</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;
It is possible to generate random numbers in a TeX document. For a gimmick  i wanted a random line from a text file in my slides. The first step was to find a random number.&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt; &lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://andreas.scherbaum.la/blog/archives/668-Generate-random-number-in-LaTeX.html#extended&quot;&gt;Continue reading &quot;Generate random number in LaTeX&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sat, 27 Feb 2010 20:51:58 +0100</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/668-guid.html</guid>
    <category>LaTeX</category>
<category>Presentation</category>
<category>Random number</category>
<category>Software</category>
<category>Talk</category>
<category>TeX</category>
<category>Vortrag</category>

</item>
<item>
    <title>Include and exclude latex-beamer frames</title>
    <link>http://andreas.scherbaum.la/blog/archives/633-Include-and-exclude-latex-beamer-frames.html</link>
            <category>TeX</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/633-Include-and-exclude-latex-beamer-frames.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=633</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=633</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;For my slides i sometimes want to disable parts of the presentation, as example: if the operating system is &lt;em&gt;Linux&lt;/em&gt;, i don&#039;t need &lt;em&gt;Solaris&lt;/em&gt; installation instructions. The &lt;em&gt;\ifthenelse{&amp;lt;condition&amp;gt;}{...true...}{...false...}&lt;/em&gt; from the &lt;a href=&quot;http://andreas.scherbaum.la/blog/exit.php?url_id=7600&amp;amp;entry_id=633&quot; title=&quot;http://ctan.org/tex-archive/help/Catalogue/entries/ifthen.html&quot;  onmouseover=&quot;window.status=&#039;http://ctan.org/tex-archive/help/Catalogue/entries/ifthen.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; target=&quot;_blank&quot;&gt;ifthen&lt;/a&gt; package works very well for normal frames, but it fails, if there are examples (&lt;em&gt;verbatim&lt;/em&gt; environment) in the code.&lt;/font&gt; &lt;/p&gt; 
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;In such a case &lt;em&gt;\iftrue&lt;/em&gt; and &lt;em&gt;\iffalse&lt;/em&gt; are much more lazy than &lt;em&gt;\ifthenelse&lt;/em&gt; and compiling the examples results no longer in latex parser errors. The downside of this solution: i need to predefine the condition, but in my case i have them in a separate file anyway.&lt;/font&gt;&lt;/p&gt; 
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;The definition looks like:&lt;/font&gt;&lt;/p&gt; 
&lt;pre&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;div class=&quot;geshi&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #800000; font-weight: normal;&quot;&gt;\newboolean&lt;/span&gt;{&lt;span style=&quot;color: #2222D0; font-weight: normal;&quot;&gt;usesolaris&lt;/span&gt;}&lt;br /&gt;&lt;span style=&quot;color: #800000; font-weight: normal;&quot;&gt;\ifthenelse&lt;/span&gt;{&lt;span style=&quot;color: #2222D0; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #800000; font-weight: normal;&quot;&gt;\equal&lt;/span&gt;{&lt;span style=&quot;color: #800000; font-weight: normal;&quot;&gt;\targetos&lt;/span&gt;}{solaris}&lt;/span&gt;}{&lt;br /&gt;&amp;#160; &lt;span style=&quot;color: #800000; font-weight: normal;&quot;&gt;\setboolean&lt;/span&gt;{&lt;span style=&quot;color: #2222D0; font-weight: normal;&quot;&gt;usesolaris}{true&lt;/span&gt;}&lt;br /&gt;}{&lt;br /&gt;&amp;#160; &lt;span style=&quot;color: #800000; font-weight: normal;&quot;&gt;\setboolean&lt;/span&gt;{&lt;span style=&quot;color: #2222D0; font-weight: normal;&quot;&gt;usesolaris}{false&lt;/span&gt;}&lt;br /&gt;}&lt;/div&gt;
&lt;/font&gt;&lt;/pre&gt; 
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;I have defined the variable \targetos, which contains a string with the currently used platform name for my presentation. If the string matches &amp;quot;solaris&amp;quot;, the boolean \usesolaris is set to &amp;quot;&lt;em&gt;true&lt;/em&gt;&amp;quot;, else to &amp;quot;&lt;em&gt;false&lt;/em&gt;&amp;quot;. Latex compiles the &amp;quot;&lt;em&gt;\ifusesolaris&lt;/em&gt;&amp;quot; definition from the boolean, which i later can use to include or exclude frames:&lt;/font&gt;&lt;/p&gt; 
&lt;pre&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;div class=&quot;geshi&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #800000; font-weight: normal;&quot;&gt;\ifusesolaris&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #800000; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #F00000; font-weight: normal;&quot;&gt;\begin&lt;/span&gt;&lt;/span&gt;{&lt;span style=&quot;color: #2222D0; font-weight: normal;&quot;&gt;frame&lt;/span&gt;}[&lt;span style=&quot;color: #2222D0; font-weight: normal;&quot;&gt;fragile&lt;/span&gt;]&lt;br /&gt;&amp;#160; ... frame content&lt;br /&gt;&lt;span style=&quot;color: #800000; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #F00000; font-weight: normal;&quot;&gt;\end&lt;/span&gt;&lt;/span&gt;{&lt;span style=&quot;color: #2222D0; font-weight: normal;&quot;&gt;frame&lt;/span&gt;}&lt;br /&gt;&lt;span style=&quot;color: #800000; font-weight: normal;&quot;&gt;\fi&lt;/span&gt;&lt;/div&gt;
&lt;/font&gt;&lt;/pre&gt; 
&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;In addition, it is also possible to add code for the case where &lt;em&gt;\usesolaris&lt;/em&gt; is false. Just add &lt;em&gt;\else&lt;/em&gt; and the code before &lt;em&gt;\fi&lt;/em&gt;.&lt;br /&gt;&lt;/font&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Tue, 08 Dec 2009 22:46:46 +0100</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/633-guid.html</guid>
    <category>LaTeX</category>
<category>Presentation</category>
<category>TeX</category>
<category>Vortrag</category>

</item>
<item>
    <title>Create a newspaper in TeX</title>
    <link>http://andreas.scherbaum.la/blog/archives/207-Create-a-newspaper-in-TeX.html</link>
            <category>Software</category>
            <category>TeX</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/207-Create-a-newspaper-in-TeX.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=207</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=207</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;break&quot;&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;/font&gt;&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;My problem: for our wedding i need a small magazine with a foto in front, the flow sheet, some notes for the music and some more additional informations. The decision was to create A5 sheets and print them doublesided on an A4 paper, so you actually need at least 4 A5 sheets to fill one paper.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;br /&gt;The first attempt was OpenOffice, but if you have more than one A4 paper, it&#039;s really hard to have the sheets in the correct order. For one paper you need sheet 1 and 4 and sheet 2 and 3 adjoin each other. If you have 8 sheets, you need 1 and 8 together, 2 and 7 and so on ...&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;Thats complicated to do in OpenOffice (maybe there&#039;s a way to do this, but i don&#039;t know it).&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;&lt;br /&gt;So after some minutes i changed over to Tex, took one of my existing makefiles and modified it a bit. With the following makefile you can just create sheet after sheet in your TeX-file, type &#039;make&#039; and you get 2 PDFs, one with the odd pages and one with the even pages. Thats all, what you have to do.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;Oh, make sure, you have an exact number of pages (4, 8, 12, ...) ;-)&lt;/font&gt;&lt;/p&gt;&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://andreas.scherbaum.la/blog/archives/207-Create-a-newspaper-in-TeX.html#extended&quot;&gt;Continue reading &quot;Create a newspaper in TeX&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Tue, 31 Jul 2007 12:58:53 +0200</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/207-guid.html</guid>
    
</item>
<item>
    <title>itemize in tabular</title>
    <link>http://andreas.scherbaum.la/blog/archives/183-itemize-in-tabular.html</link>
            <category>TeX</category>
    
    <comments>http://andreas.scherbaum.la/blog/archives/183-itemize-in-tabular.html#comments</comments>
    <wfw:comment>http://andreas.scherbaum.la/blog/wfwcomment.php?cid=183</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://andreas.scherbaum.la/blog/rss.php?version=2.0&amp;type=comments&amp;cid=183</wfw:commentRss>
    

    <author>nospam@example.com (Andreas 'ads' Scherbaum)</author>
    <content:encoded>
    &lt;div class=&quot;serendipity_authorpic&quot;&gt;&lt;img src=&quot;http://andreas.scherbaum.la/blog/templates/default/img/Andreas__ads__Scherbaum.jpg&quot; alt=&quot;Author&quot; title=&quot;Andreas &#039;ads&#039; Scherbaum&quot; /&gt;&lt;br /&gt;&lt;span&gt;Andreas &#039;ads&#039; Scherbaum&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;break&quot;&gt;
&lt;font face=&quot;arial,helvetica,sans-serif&quot;&gt;If you want to put an itemize list inside a tabular environment, the tabular column must be a \parbox typ (thats: p{...}).&lt;/font&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sun, 24 Jun 2007 00:36:35 +0200</pubDate>
    <guid isPermaLink="false">http://andreas.scherbaum.la/blog/archives/183-guid.html</guid>
    
</item>

</channel>
</rss>
