<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://baszerr.eu/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>BaSzErr - prjs:latex_template</title>
        <description></description>
        <link>https://baszerr.eu/</link>
        <lastBuildDate>Tue, 05 May 2026 10:21:17 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://baszerr.eu/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
            <title>BaSzErr</title>
            <link>https://baszerr.eu/</link>
        </image>
        <item>
            <title>latex_template</title>
            <link>https://baszerr.eu/doku.php?id=prjs:latex_template:latex_template</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;latex_template&quot;&gt;LaTeX template&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
&lt;em&gt;NOTE: this template is written using Polish language and assumes Polish encoding of input files. this is not a big problem in general, but it might be a bit difficult to use it not knowing Polish (mostly macros). i plan to rewrite it using English language in the future.&lt;/em&gt;
&lt;/p&gt;

&lt;p&gt;
writting in LaTeX is great experience. one who have tried it once will never go back to &lt;abbr title=&quot;What You See Is What You Get&quot;&gt;WYSIWYG&lt;/abbr&gt;-kind editors. but there is small problem – some basic elements are always the same and you need to enter them each time. there are also some general-purpose macros you write to make things even simpler.
&lt;/p&gt;

&lt;p&gt;
all of this basics have been collected creating extra-small LaTeX template package.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;LaTeX template&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;latex_template&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:1,&amp;quot;range&amp;quot;:&amp;quot;1-694&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit2&quot; id=&quot;package_content&quot;&gt;package content&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
here i&amp;#039;ll describe how to use this package and what is inside of it.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;package content&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;package_content&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:2,&amp;quot;range&amp;quot;:&amp;quot;695-794&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit3&quot; id=&quot;directory_structure&quot;&gt;directory structure&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
the main structure looks this way:
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &amp;lt;root&amp;gt;/ – root directory of whole template.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &amp;lt;root&amp;gt;/pic – directory in which pictures are to be stored.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &amp;lt;root&amp;gt;/common – directory containing common code, namely: macros.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &amp;lt;root&amp;gt;/chapters – user directory. here sources of all chapters/sections should be kept. &lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
be default there are two files in &amp;lt;root&amp;gt;/chapter: root.tex and root_test.tex. these are the main files that are included from templates root. they are separated to ensure user will need not to change any file inside template itself. purpose of both files will be described later on.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;directory structure&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;directory_structure&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:3,&amp;quot;range&amp;quot;:&amp;quot;795-1425&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit4&quot; id=&quot;how_to_latex_code&quot;&gt;how to latex code&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
there are two possible modes to building output PDF from template: building full code and only selected part. below both of them are described.
&lt;/p&gt;

&lt;/div&gt;

&lt;h4 id=&quot;release_mode&quot;&gt;&amp;quot;release&amp;quot; mode&lt;/h4&gt;
&lt;div class=&quot;level4&quot;&gt;

&lt;p&gt;
in this case root.tex file is taken as selector for user input. structure of whole document should be placed here. of course it is good idea to split content into separate files that will be included from root.tex. there is no requirement of how exactly this must be done, except of that all files must be kept in &amp;lt;root&amp;gt;/chapters/ directory (for Makefile targets).
&lt;/p&gt;

&lt;p&gt;
to build whole document as PDF type:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;make final&lt;/pre&gt;

&lt;p&gt;
in template root.
&lt;/p&gt;

&lt;/div&gt;

&lt;h4 id=&quot;test_mode&quot;&gt;&amp;quot;test&amp;quot; mode&lt;/h4&gt;
&lt;div class=&quot;level4&quot;&gt;

&lt;p&gt;
in test mode root_test.tex is take instead of root.tex . normal course of work is to put only currently processed chapter/section/subsection (whatever one needs) in root_test.tex so that building of “test” will be as fast as possible (this allows fast checking what have been written).
&lt;/p&gt;

&lt;p&gt;
to build “test” PDF type:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;make test-final&lt;/pre&gt;

&lt;p&gt;
this forces 3 passes of pdflatex over source + 1 bibtech. you can skip this and process just once by typing:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;make test&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;how to latex code&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;how_to_latex_code&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:4,&amp;quot;range&amp;quot;:&amp;quot;1426-2540&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit5&quot; id=&quot;macros&quot;&gt;macros&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
description of basic macros available in template:
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; \tableka{label}{format}{description}{content} – creates table labeled as &amp;#039;label&amp;#039; of format &amp;#039;format&amp;#039; (ex: &amp;#039;ccc&amp;#039;), with &amp;#039;description&amp;#039; underneath. content of table is last arg.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; \tabelkaRef{label} – insert reference to table created with \tabelka macro.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; \rysunek{label}{description}{input_file_path} – inserts image into text. there is a samilly of \rysunek functions allowing to insert images of predefined scales: \rysunekSmall, \rysunekNormal and \rysunekBig. by default small/normal/big is defined in terms of procentage of page width. there is also possibility to use page height for this: \rysunekSmallH, \rysunekNormalH and \rynsunekBigH. by default \rysunek*W is called.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; \rysunekRef{label} – inserts reference to inage with a given label.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; \rysunekTwoInRow{label}{description}{file1}{file2} – inserts two images horizontally.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; \wstawSI{value}{units} – inserts values with units. ex: \wstawSI{5}{V} will generate formated text similar to &amp;#039;5[V]&amp;#039;.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; \wstawAng{txt} – inserts given text marking that it is written in English.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; \rozdzial{label}{title}{file} – inserts given file as a chapter with given label and title.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; \rozdzialRef{label} – insert reference to chapter of given label.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; \sekcja{lable}{title} – begins new section of given name.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; \sekcjaRef{label} – insert reference to given section.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; \subSekcja{label}{title} – begins new subsection.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; \subSekcjaRef{label} – inserts reference to given subsection.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; \wzorMat{label}{eqn} – inserts equation.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; \wzorMatTab{label}{eqns} – creates equation array.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; \wzorRef{label} – references given equation.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; \degree{} – inserts degree symbol&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; \wstawRok{year} – inserts year into text.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;macros&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;macros&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:5,&amp;quot;range&amp;quot;:&amp;quot;2541-4320&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit6&quot; id=&quot;download&quot;&gt;download&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
here you can download current version of &lt;a href=&quot;https://baszerr.eu/lib/exe/fetch.php?media=prjs:latex_template:latex_tmpl.tar.bz2&quot; class=&quot;media mediafile mf_bz2&quot; title=&quot;prjs:latex_template:latex_tmpl.tar.bz2 (3 KB)&quot;&gt;LaTeX template&lt;/a&gt;. this is 0.5.1 version.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;download&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;download&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:6,&amp;quot;range&amp;quot;:&amp;quot;4321-4467&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit7&quot; id=&quot;current_version_notes&quot;&gt;current version notes&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
release notes for different versions.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;current version notes&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;current_version_notes&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:7,&amp;quot;range&amp;quot;:&amp;quot;4468-4541&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit8&quot; id=&quot;v051&quot;&gt;v0.5.1&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; updated link to project&amp;#039;s page.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;v0.5.1&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;v051&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:8,&amp;quot;range&amp;quot;:&amp;quot;4542-4595&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit9&quot; id=&quot;v050&quot;&gt;v0.5.0&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; added new license: revised BSD.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; default encoding is not UTF-8.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; removed unnecessary declarations.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; compatible with texlive (default for &lt;a href=&quot;http://debian.org&quot; class=&quot;urlextern&quot; title=&quot;http://debian.org&quot; rel=&quot;ugc nofollow&quot;&gt;Debian&lt;/a&gt; etch).&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;v0.5.0&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;v050&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:9,&amp;quot;range&amp;quot;:&amp;quot;4596-&amp;quot;} --&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 15 Jun 2021 20:09:52 +0000</pubDate>
        </item>
    </channel>
</rss>
