<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/">
    <channel>
        <title>SysAdmin Journal · LaTeX</title>
        <link>https://sysadmin-journal.com/tag/latex</link>
        <description>Posts tagged with LaTeX</description>
        <language>en</language>
        <lastBuildDate>Fri, 24 Jul 2020 07:28:33 +0000</lastBuildDate>
        <atom:link href="https://sysadmin-journal.com/tag/latex/rss" rel="self" type="application/rss+xml" />
        <ttl>60</ttl>
        <item>
            <title>41st Annual Conference of the TeX Users Group</title>
            <link>https://sysadmin-journal.com/41st-annual-conference-of-the-tex-users-group</link>
            <guid isPermaLink="true">https://sysadmin-journal.com/41st-annual-conference-of-the-tex-users-group</guid>
            <pubDate>Fri, 24 Jul 2020 07:28:33 +0000</pubDate>
            <dc:creator>Ish Sookun</dc:creator>
            <category>LaTeX</category>
            <category>Conference</category>
            <description>Last night, at 20h00 MUT, prior to the conference, TUG carried out an introductory LaTeX workshop. Participants could attend and chat through Zoom or stream on YouTube. Check the conference programme and join to learn more about what is happening in the TeX world</description>
            <content:encoded><![CDATA[<p>TUG 2020, the 41st Annual Conference of the TeX Users Group kicks off online today.</p><p>Last night, at 20h00 MUT, prior to the conference, TUG carried out an introductory LaTeX workshop. Participants could attend and chat through Zoom or stream on <a href="https://www.youtube.com/watch?v=pjDTtDvph6U">YouTube</a>. Check the <a href="http://tug.org/tug2020/program.html">conference programme</a> and join to learn more about what is happening in the TeX world.</p><h2 id="introductory-latex-workshop">Introductory LaTeX Workshop</h2><p>Sue DeMeritt and Cheryl Ponchin covered quite an extensive list of features that will get someone ready to create his/her first LaTeX documents. Cheryl used <a href="https://www.xm1math.net/texmaker/">Texmaker</a> as LaTeX editor which is also what I prefer.</p><p>I learned something that might appear trivial but I did not know about it before and it could be useful in many cases; it's about the use of <code>\label</code> to reference <code>\section</code> later on in the same document. Say you have a document with two sections in which you speak about "randomness" and you want to refer to those sections in your conclusion. You could do this:</p><pre><code class="language-text">\section{Randomness}\label{sec:randomness}

I am talking about random stuff.

\section{More Randomness}\label{sec:morerandomness}

I go on talking about more random stuff.

\section{Conclusion}

Finally, I will stop talking about random stuff but I
would like you to know that I spoke about random things 
in Sections~\ref{sec:randomness} and~\{sec:morerandomness}.</code></pre><p>At build time the <code>~\ref{sec:randomness}</code> will be replaced by the corresponding section number. Afterwards, if you add other sections about the "Randomness" section, then the section numbers in your conclusion will be updated accordingly when re-building the document.</p>]]></content:encoded>
        </item>
        <item>
            <title>Change the page margins for a single page in a LaTeX document</title>
            <link>https://sysadmin-journal.com/change-the-page-margins-for-a-single-page-in-a-latex-document</link>
            <guid isPermaLink="true">https://sysadmin-journal.com/change-the-page-margins-for-a-single-page-in-a-latex-document</guid>
            <pubDate>Sun, 24 Nov 2019 10:54:30 +0000</pubDate>
            <dc:creator>Ish Sookun</dc:creator>
            <category>LaTeX</category>
            <description>The simplest way I found of doing it is using the changepage package available from ctan.org. While the package provides several commands to adjust the page margins, text blocks or the entire page design, I find the below single line command extremely useful.</description>
            <content:encoded><![CDATA[<p>I've looked for it myself and search results always return complicated hacks to achieve it. Adjusting the top, bottom or right and left margins (only) are not usually a straightforward task if you do not know the right package to use.</p><p>Like for example, this <a href="https://tex.stackexchange.com/questions/68855/changing-top-bottom-left-right-margins-on-the-fly"><strong>StackExchange (TeX)</strong></a> suggestion is definitely NOT recommended.</p><p>The reasons to have to modify the page margins in the middle of a document could vary; say if you need to display an almost "full-page" figure in a landscape layout, you'd surely be touching the margins and getting additional blank pages being created if you do not reduce those margins of the current page.</p><p>The simplest way I found of doing it is using the <code>changepage</code> package available from <a href="https://www.ctan.org/pkg/changepage"><strong>ctan.org</strong></a>. While the package provides several commands to adjust the page margins, text blocks or the entire page design, I find the below single line command extremely useful.</p><pre><code>\changepage{〈text height〉}{〈text width〉}{〈even-side margin〉}{〈odd-side margin〉}{〈column sep.〉}{〈topmargin〉}{〈headheight〉}{〈headsep〉}{〈footskip〉</code></pre><p>Thus, in one single line the entire page can be re-designed in the middle of your LaTeX document.</p><p>The <code>changepage</code> command takes nine arguments, which can either be blank or contain a value of a length. The length value is added to the current length. If a length value is not supplied then a zero value is assigned which is then added to the current length, therefore, resulting in no change. A negative value is used to reduce the current length.</p>]]></content:encoded>
        </item>
    </channel>
</rss>
