<?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>Ionut's WebSpace &#187; MacOS</title>
	<atom:link href="http://www.vioan.ro/wp/category/macos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vioan.ro/wp</link>
	<description>Exploring Creativity Is My Passion</description>
	<lastBuildDate>Wed, 05 Oct 2011 14:28:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Yahoo Mail and free IMAP</title>
		<link>http://www.vioan.ro/wp/2009/08/26/yahoo-mail-and-free-imap/</link>
		<comments>http://www.vioan.ro/wp/2009/08/26/yahoo-mail-and-free-imap/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 14:31:09 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Apple/OS X]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[yahoo]]></category>
		<category><![CDATA[zimbra]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=400</guid>
		<description><![CDATA[


If you are using yahoo mail, like me, then you missed for a long time IMAP access for your inbox. They provide just POP3 access and  I don&#8217;t want that. I would like to have/access the messages also via web interface and also to have them on my computer for offline access. So, the solution [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using yahoo mail, like me, then you missed for a long time IMAP access for your inbox. They provide just POP3 access and  I don&#8217;t want that. I would like to have/access the messages also via web interface and also to have them on my computer for offline access. So, the solution is <a href="http://www.zimbra.com/products/desktop.html">Zimbra Desktop</a> and you can use it on Windows, Linux or Mac.</p>
<p>&#8220;Zimbra software is open source, meaning we make both the software code and the application itself available to anyone at no charge. Also, Zimbra Desktop is a full version; there are no missing features or catches&#8221;</p>
<p>For a complete list of features see this link: <a href="http://www.zimbra.com/products/desktop_features.html">http://www.zimbra.com/products/desktop_features.html</a></p>
<p>If you have any issue with it you can find the answer on their <a href="http://wiki.zimbra.com/index.php?title=Zimbra_Desktop">wiki</a>.</p>
<p>Here is just a screenshot:</p>
<p style="text-align: center;"><img class="aligncenter size-medium wp-image-401" title="zimbra_desktop" src="http://www.vioan.ro/wp/wp-content/uploads/2009/08/zimbra_desktop-300x193.png" alt="zimbra_desktop" width="300" height="193" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2009/08/26/yahoo-mail-and-free-imap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Encrypting External HDD with LUKS</title>
		<link>http://www.vioan.ro/wp/2009/03/28/encrypting-external-hdd-with-luks/</link>
		<comments>http://www.vioan.ro/wp/2009/03/28/encrypting-external-hdd-with-luks/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 20:21:14 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[luks]]></category>
		<category><![CDATA[opensuse]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=367</guid>
		<description><![CDATA[I am using OpenSUSE on my main computers, so LUKS is a good option to encrypt my external hdd. I can use Truecrypt if I want to use the hdd with mac or windows, but here is not the case. You can also use LUKS under windows with FreeOTFE. 
Here are the steps to encrypt [...]]]></description>
			<content:encoded><![CDATA[<p>I am using OpenSUSE on my main computers, so <a href="http://en.wikipedia.org/wiki/LUKS">LUKS</a> is a good option to encrypt my external hdd. I can use <a href="http://www.vioan.ro/wp/2009/03/26/my-usb-memory-stick-companion/">Truecrypt</a> if I want to use the hdd with mac or windows, but here is not the case. You can also use LUKS under windows with <a href="http://en.wikipedia.org/wiki/FreeOTFE">FreeOTFE</a>. </p>
<p>Here are the steps to encrypt the hdd:</p>
<p>1. be sure that the device is not part of filesystem</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdd1</pre></td></tr></table></div>

<p>2. Option 1: write some random data on hdd if you had critical files before</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#slow method to fill hdd with semi-random data</span>
<span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;"><span style="color: #000000; font-weight: bold;">if</span></span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdd1</pre></td></tr></table></div>

<p>3. Option 2:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#use next two commands to fill the hdd with &quot;zero&quot; data, much faster</span>
<span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;"><span style="color: #000000; font-weight: bold;">if</span></span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdd1 <span style="color: #007800;">count</span>=<span style="color: #000000;">2</span> <span style="color: #007800;">bs</span>=1M
<span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;"><span style="color: #000000; font-weight: bold;">if</span></span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdd1</pre></td></tr></table></div>

<p>3. start the encryption setup</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">cryptsetup <span style="color: #660033;">-v</span> <span style="color: #660033;">--key-size</span> <span style="color: #000000;">256</span> luksFormat <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdd1
cryptsetup luksDump <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdd1  <span style="color: #666666; font-style: italic;">#details for encrypted partition</span>
cryptsetup luksOpen <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdd1 buffalo</pre></td></tr></table></div>

<p>4. format hdd as ext3</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>mkfs.ext3 <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>buffalo</pre></td></tr></table></div>

<p>5. mount the encrypted hdd</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>buffalo <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>buffalo</pre></td></tr></table></div>

<p>6. add the entry in /etc/fstab</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>buffalo     <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>buffalo      ext3    acl,user_xattr        <span style="color: #000000;">1</span> <span style="color: #000000;">2</span></pre></td></tr></table></div>

<p>7. Optional step: try <strong>tune2fs -L MYLABEL /dev/mapper/buffalo</strong> if you want a nice label for your hdd.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2009/03/28/encrypting-external-hdd-with-luks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dd command &#8220;progress bar&#8221;</title>
		<link>http://www.vioan.ro/wp/2009/03/28/dd-command-progress-bar/</link>
		<comments>http://www.vioan.ro/wp/2009/03/28/dd-command-progress-bar/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 19:45:16 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dd]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=362</guid>
		<description><![CDATA[I am using sometimes

1
2
$ sudo dd if=/dev/urandom of=/dev/sdd1
$ sudo dd if=/dev/zero of=/dev/sdd1

and I would like to see the progress of dd command. So, do the following:
1. open a new terminal/console and type:

1
$ sudo killall -USR1

2. open the terminal/console where your dd is running and you will see something like this:

1
2
3
2242867712 bytes &#40;2.2 GB&#41; copied, 396.007 [...]]]></description>
			<content:encoded><![CDATA[<p>I am using sometimes</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;"><span style="color: #000000; font-weight: bold;">if</span></span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdd1
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;"><span style="color: #000000; font-weight: bold;">if</span></span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdd1</pre></td></tr></table></div>

<p>and I would like to see the progress of <strong>dd</strong> command. So, do the following:</p>
<p>1. open a new terminal/console and type:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">killall</span> <span style="color: #660033;">-USR1</span></pre></td></tr></table></div>

<p>2. open the terminal/console where your <strong>dd</strong> is running and you will see something like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000;">2242867712</span> bytes <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2.2</span> GB<span style="color: #7a0874; font-weight: bold;">&#41;</span> copied, <span style="color: #000000;">396.007</span> s, <span style="color: #000000;">5.7</span> MB<span style="color: #000000; font-weight: bold;">/</span>s
<span style="color: #000000;">5625297</span>+<span style="color: #000000;">0</span> records <span style="color: #000000; font-weight: bold;">in</span>
<span style="color: #000000;">5625297</span>+<span style="color: #000000;">0</span> records out</pre></td></tr></table></div>

<p>Anyway, your <strong>dd</strong> command will continue without any problem.<br />
That&#8217;s all!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2009/03/28/dd-command-progress-bar/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>My USB Memory Stick Companion</title>
		<link>http://www.vioan.ro/wp/2009/03/26/my-usb-memory-stick-companion/</link>
		<comments>http://www.vioan.ro/wp/2009/03/26/my-usb-memory-stick-companion/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 21:53:06 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[SciComputing]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[portable]]></category>
		<category><![CDATA[rescue]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=343</guid>
		<description><![CDATA[I have a Kingston Data Traveler 4 GB USB Drive, and a few days ago I decided to use it also as a rescue boot device (to be bootable in order to recover data when needed), as storage device (to move around some files, used on windows, mac, linux, freebsd), to have on it some [...]]]></description>
			<content:encoded><![CDATA[<p>I have a Kingston Data Traveler 4 GB USB Drive, and a few days ago I decided to use it also as a rescue boot device (to be bootable in order to recover data when needed), as storage device (to move around some files, used on windows, mac, linux, freebsd), to have on it some personal files which I would like to be encrypted (for example: my ssh private keys, my bookmarks, my passwords, &#8230;), but also to have with me some applications which I use day by day (firefox, thunderbird, keypass, &#8230;).</p>
<p>So here is what I did:</p>
<p>As filesystem I used Fat32. I installed <a href="http://www.sysresccd.org/Main_Page">System RescueCD</a> so I have a bootable linux distro with a lot of useful utilities like Partimage, GNU Parted, TestDisk, kernel for i386 and also for x86-64, &#8230; The instructions to install it on fat32 filesystem are here: <a href="http://www.sysresccd.org/Sysresccd-manual-en_How_to_install_SystemRescueCd_on_an_USB-stick">Installation On USB Memory Stick</a>, I used &#8220;Instalation from Windows&#8221; part.</p>
<p>Next step was to install <a href="http://www.truecrypt.org/">Truecrypt</a> for windows in portable mode, a step by step guide how to do it, is available <a href="http://www.makeuseof.com/tag/encrypt-your-usb-stick-with-truecrypt-60/">here</a>, to be able to open my encrypted volume.</p>
<p>Now I can create an encrypted volume, using truecrypt, where we store all my personal files, let&#8217;s say 2 giga.</p>
<p>In that encrypted volume I also installed <a href="http://portableapps.com/">PortableApps Suite</a> and beeing a LaTeX user I also included <a href="http://www.exomatik.net/LaTeX/USBTeXEnglish">USBTeX.</a></p>
<p>Ok, now I still have space to store some useful small iso images, like Clonezilla, Hiren Boot CD, Acronis True Image BootCD.</p>
<p>That&#8217;s my setup for USB Memory Stick, I have it with me all the time, I can use it on any system, mac, windows, linux, I have a bootable linux disto on it, and also my personal files encrypted with some useful software. Maybe I should mention that Portable Apps Suite works well also with wine on linux.</p>
<p>I did a <strong>dd</strong> copy of my complete usb stick configuration/setup, immediately after I finished to install everything I needed, because if I will lose it, then to be able to recover everything quickly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2009/03/26/my-usb-memory-stick-companion/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Parallel Programming with MPI in Bristol</title>
		<link>http://www.vioan.ro/wp/2009/03/26/parallel-programming-with-mpi-in-bristol/</link>
		<comments>http://www.vioan.ro/wp/2009/03/26/parallel-programming-with-mpi-in-bristol/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 21:00:35 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[HPC]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[SciComputing]]></category>
		<category><![CDATA[SciVis]]></category>
		<category><![CDATA[mpi]]></category>
		<category><![CDATA[openmp]]></category>
		<category><![CDATA[pvm]]></category>
		<category><![CDATA[scientific computing]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=339</guid>
		<description><![CDATA[I spent the last 4 days in Bristol to attend to &#8220;Parallel Programming with MPI&#8221; course, provided by HECToR which is the UK&#8217;s high-end computing resource, funded by the Research Councils and available for researchers at UK universities, and by NAG &#8211; The Numerical Algorithms Group specialized in the provision of software for the solution [...]]]></description>
			<content:encoded><![CDATA[<p>I spent the last 4 days in Bristol to attend to &#8220;Parallel Programming with <a href="http://en.wikipedia.org/wiki/Message_Passing_Interface">MPI</a>&#8221; course, provided by <a href="http://www.hector.ac.uk/about-us/"><abbr>HECToR</abbr></a> which is the UK&#8217;s high-end computing resource, funded by the Research Councils and available for researchers at UK universities, and by <a href="http://www.nag.co.uk">NAG &#8211; The Numerical Algorithms Group</a> specialized in the provision of software for the solution of mathematical, statistical and data mining problems.</p>
<p>The course covered the <strong>Introduction to MPI</strong> and <strong>Advanced MPI</strong>.  <a href="http://www.mcs.anl.gov/research/projects/mpi/">MPI (Message Passing Interface)</a> is the <em><em>de facto</em></em> standard for parallel programming. I have also some experience with <a href="http://www.csm.ornl.gov/pvm/">PVM (Parallel Virtual Machine)</a> my Master Thesis was based on that, and I learnt a lot about <a href="http://openmp.org/wp/">OpenMP</a>, so I wanted to extend my knowledge for Parallel Programming with MPI.</p>
<p>The course introduced the concepts and terminology of <a href="http://en.wikipedia.org/wiki/High-performance_computing">High Performance Computing (HPC)</a>.  After an detailed look at point-to-point and collective communication, we learnt some more advanced topics: Cartesian topologies, MPI derived data types, user-defined binary operators, groups and communicators. We also had a lot of practical exercises to solve.  It was a great course.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2009/03/26/parallel-programming-with-mpi-in-bristol/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using LaTeX in Scribus for posters</title>
		<link>http://www.vioan.ro/wp/2008/12/03/using-latex-in-scribus-for-posters/</link>
		<comments>http://www.vioan.ro/wp/2008/12/03/using-latex-in-scribus-for-posters/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 20:13:16 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[SciComputing]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[scribus]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=284</guid>
		<description><![CDATA[I am using LaTeX and beamer class to make presentations and posters. A short introduction to start with latex is available. Sometimes I am using LaTeX just to produce eps/pdf text boxes and after that Scribus for poster layout. In the last development version of Scribus, which is 1.3.5svn, there is possible to use latex [...]]]></description>
			<content:encoded><![CDATA[<p>I am using <a href="http://www.latex-project.org/">LaTeX</a> and <a href="http://latex-beamer.sourceforge.net/">beamer</a> class to make presentations and posters. A short introduction to start with latex is <a href="http://www.vioan.ro/wp/2008/10/10/starting-with-latexpdftex-a-small-template/">available</a>. Sometimes I am using LaTeX just to produce eps/pdf text boxes and after that <a href="http://www.scribus.net/">Scribus</a> for poster layout. In the last development version of Scribus, which is 1.3.5svn, there is possible to use latex source/expressions directly in document, so is not necessary anymore the aditional step to create eps/pdf text boxes.</p>
<p>For <a href="http://www.opensuse.org/">OpenSUSE</a> there is the last version here:<br />
<a href="http://software.opensuse.org/ymp/home:mrdocs/openSUSE_11.0/scribus.ymp">http://software.opensuse.org/ymp/home:mrdocs/openSUSE_11.0/scribus.ymp</a></p>
<p>but I don&#8217;t want to replace 1.3.3.12 stable version, so I will install the latest development version in my home directory</p>
<p><strong>Warning</strong>: The documents saved in 1.3.5 will not be back compatible with the other versions, more here: <a href="http://scribus.info/svn/Scribus/trunk/Scribus/README">http://scribus.info/svn/Scribus/trunk/Scribus/README</a></p>
<p>Let&#8217;s install the last development of Scribus (it is very stable for what I need, I didn&#8217;t have any problems with it):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">mkdir</span> ~<span style="color: #000000; font-weight: bold;">/</span>aplic<span style="color: #000000; font-weight: bold;">/</span>scribus_135
$ <span style="color: #c20cb9; font-weight: bold;">mkdir</span> ~<span style="color: #000000; font-weight: bold;">/</span>tempsrc
$ <span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>tempsrc
$ <span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">co</span> <span style="color: #c20cb9; font-weight: bold;">svn</span>:<span style="color: #000000; font-weight: bold;">//</span>scribus.info<span style="color: #000000; font-weight: bold;">/</span>Scribus<span style="color: #000000; font-weight: bold;">/</span>trunk<span style="color: #000000; font-weight: bold;">/</span>Scribus
$ <span style="color: #7a0874; font-weight: bold;">cd</span> Scribus
$ cmake -DCMAKE_INSTALL_PREFIX:<span style="color: #007800;">PATH</span>=~<span style="color: #000000; font-weight: bold;">/</span>aplic<span style="color: #000000; font-weight: bold;">/</span>scribus_135</pre></td></tr></table></div>

<p>I obtained an error during the compilation because I didn&#8217;t have &#8220;libqt4-devel&#8221; so:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ zypper <span style="color: #c20cb9; font-weight: bold;">install</span> libqt4-devel</pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">make</span>
$ <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
$ ~<span style="color: #000000; font-weight: bold;">/</span>aplic<span style="color: #000000; font-weight: bold;">/</span>scribus_135<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>scribus</pre></td></tr></table></div>

<p>Here are two screenshots, the main window and scribus latex editor:</p>
<p><a href="http://www.vioan.ro/wp/wp-content/uploads/2008/12/scribus135_main.png"><img src="http://www.vioan.ro/wp/wp-content/uploads/2008/12/scribus135_main-300x283.png" alt="" title="scribus135_main" width="300" height="283" class="aligncenter size-medium wp-image-285" /></a></p>
<p><a href="http://www.vioan.ro/wp/wp-content/uploads/2008/12/scribus136_latex_editor.png"><img src="http://www.vioan.ro/wp/wp-content/uploads/2008/12/scribus136_latex_editor-300x182.png" alt="" title="scribus136_latex_editor" width="300" height="182" class="aligncenter size-medium wp-image-286" /></a> </p>
<p>That&#8217;s all.</p>
<p><strong>References</strong>:</p>
<ul>
<li><a href="http://wiki.scribus.net/index.php/Building_SVN_versions_with_CMake">http://wiki.scribus.net/index.php/Building_SVN_versions_with_CMake</a></li>
<li><a href="http://scribus.info/svn/Scribus/trunk/Scribus/README">http://scribus.info/svn/Scribus/trunk/Scribus/README</a></li>
<li><a href="http://wiki.scribus.net/index.php/Working_with_latex_frames">http://wiki.scribus.net/index.php/Working_with_latex_frames</a></li>
<li><a href="http://wiki.scribus.net/index.php/Embedding_other_external_tools_into_a_TeX_frame">http://wiki.scribus.net/index.php/Embedding_other_external_tools_into_a_TeX_frame</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2008/12/03/using-latex-in-scribus-for-posters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Software I am using &#8230;</title>
		<link>http://www.vioan.ro/wp/2008/11/15/software-i-am-using/</link>
		<comments>http://www.vioan.ro/wp/2008/11/15/software-i-am-using/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 23:57:30 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Gnuplot]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[SciComputing]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[workstation]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=275</guid>
		<description><![CDATA[If you would like to see what software I am using on my desktop, laptop, workstation (Windows, Linux, Unix) in order to get my research/scientific work done, or if you want to know what software I am installing on my servers for customers, check this section of my website.
]]></description>
			<content:encoded><![CDATA[<p>If you would like to see what software I am using on my desktop, laptop, workstation (Windows, Linux, Unix) in order to get my research/scientific work done, or if you want to know what software I am installing on my servers for customers, check <a href="http://www.vioan.ro/wp/otherstuff/">this section of my website</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2008/11/15/software-i-am-using/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Access a running X session via x11vnc</title>
		<link>http://www.vioan.ro/wp/2008/11/13/access-a-running-x-session-via-x11vnc/</link>
		<comments>http://www.vioan.ro/wp/2008/11/13/access-a-running-x-session-via-x11vnc/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 20:42:17 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=252</guid>
		<description><![CDATA[I am using FreeNX but here is a solution to access a running X session with x11vnc.
* install the package:

1
$ sudo zypper install x11vnc

* ssh to remote machine and:

1
$ x11vnc -display :0

* ok, now on local machine:

1
$ vncviewer your_remote_ip:0

For more details and some comments (password option, &#8230;) check the following link and try: man x11vnc
]]></description>
			<content:encoded><![CDATA[<p>I am using FreeNX but here is a solution to access a running X session with <a href="http://www.karlrunge.com/x11vnc/">x11vnc</a>.</p>
<p><strong>* install the package:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> zypper <span style="color: #c20cb9; font-weight: bold;">install</span> x11vnc</pre></td></tr></table></div>

<p><strong>* ssh to remote machine and:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ x11vnc <span style="color: #660033;">-display</span> :<span style="color: #000000;">0</span></pre></td></tr></table></div>

<p><strong>* ok, now on local machine:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ vncviewer your_remote_ip:<span style="color: #000000;">0</span></pre></td></tr></table></div>

<p>For more details and some comments (password option, &#8230;) check the <a href="http://liquidat.wordpress.com/2008/11/13/short-tip-access-a-running-x-session-via-x11vnc/">following link</a> and try: <strong>man x11vnc</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2008/11/13/access-a-running-x-session-via-x11vnc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LaTeX useful Tips/Tricks</title>
		<link>http://www.vioan.ro/wp/2008/10/11/latex-useful-tipstricks/</link>
		<comments>http://www.vioan.ro/wp/2008/10/11/latex-useful-tipstricks/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 22:39:14 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[SciComputing]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[bibtex]]></category>
		<category><![CDATA[pdftex]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=213</guid>
		<description><![CDATA[In my previous post I discussed a &#8220;small&#8221; but, I would say &#8220;complet&#8221; template to start your document. If you want to include also movies in your pdf documents, then this post can help you. If you need a good program for bibliographic management check this post.
Below I will post a lot of tips, tricks [...]]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://www.vioan.ro/wp/2008/10/10/starting-with-latexpdftex-a-small-template/">previous post</a> I discussed a &#8220;small&#8221; but, I would say &#8220;complet&#8221; template to start your document. If you want to include also movies in your pdf documents, then <a href="http://www.vioan.ro/wp/2008/10/03/animations-in-pdf-using-latex/">this post</a> can help you. If you need a good program for bibliographic management check <a href="http://www.vioan.ro/wp/2008/10/04/personal-bibliographic-management-software/">this post</a>.</p>
<p>Below I will post a lot of tips, tricks and useful stuff which helps me when I am using LaTeX, for details check the documentation of coresponding package name, or Google .</p>
<p><strong>Customize your header and footer</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\pagestyle</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">fancy</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\lhead</span><span style="color: #E02020; ">{</span><span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">% \chead{}</span>
<span style="color: #800000; font-weight: normal;">\rhead</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\leftmark</span></span><span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">% \lfoot{}</span>
<span style="color: #2C922C; font-style: italic;">% \cfoot{}</span>
<span style="color: #2C922C; font-style: italic;">% \rfoot{}</span></pre></td></tr></table></div>

<p><strong>More packages</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">latexsym</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">% use \Box, \Join</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">setspace</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">subfigure</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">% include subfigures</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">amsmath</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">% equation</span>
<span style="color: #2C922C; font-style: italic;">% table of contents, list of figures</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">titles,subfigure</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">tocloft</span><span style="color: #E02020; ">}</span> 
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">lastpage</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">% total page count</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">makeidx</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">% create index</span></pre></td></tr></table></div>

<p><strong>Old Makefile which I used, you can modify it for your needs</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;">dvi: poster.tex
	latex poster.tex
bib: 
	bibtex poster
view:
	kdvi poster.dvi
ps:
	dvips poster.dvi -o poster.ps
pdf:
	ps2pdf poster.ps poster.pdf
mp:
	psnup -9 -l -d2 poster.ps multpage.ps
a4:
	psresize -H118.9cm -W91.4cm -pa4 poster.ps a4.ps
	ps2pdf a4.ps poster_a4.pdf
.PHONY: clean
clean:
	@echo Cleaning...
	$(RM) *.log *.aux *.dvi *.bbl *.blg *~
	@echo Cleaning... done</pre></td></tr></table></div>

<p><strong>Indexes and Glossaries</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #2C922C; font-style: italic;">% first include the makeidx command in the preamble</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">makeidx</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\makeindex</span></pre></td></tr></table></div>

<p>To index something, use the command:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\index</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Index Entry</span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<p>When the document has been processed through LaTeX, it will create a .idx file. You will then need to run the .idx file through the makeindex program:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;">makeindex filename</pre></td></tr></table></div>

<p>No file extension for the name. The program will look for the .idx file and will output a .ind file. This file is used by the command:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\printindex</span></pre></td></tr></table></div>

<p>Glossaries simply use the commands:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\makeglossary</span> (used in the preamble, like the <span style="color: #800000; font-weight: normal;">\makeindex</span> command)
<span style="color: #800000; font-weight: normal;">\glossary</span> (used for the particular entries, like the <span style="color: #800000; font-weight: normal;">\index</span> command)</pre></td></tr></table></div>

<p><strong>Include/Rotate/Reflect images</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\includegraphics</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">image.png</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\includegraphics</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">angle=45</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">image.png</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\includegraphics*</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">viewport=30 30 120 120</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">image.png</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\includegraphics</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">scale=0.25</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">image.png</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\includegraphics</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">width=5in,height=1in</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">image.png</span><span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">% no explicit size for image</span>
<span style="color: #800000; font-weight: normal;">\includegraphics</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">width=0.88<span style="color: #800000; font-weight: normal;">\hsize</span></span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">image.png</span><span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">% horizontally reflect a image</span>
<span style="color: #800000; font-weight: normal;">\reflectbox</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\includegraphics</span><span style="color: #E02020; ">{</span>myimage.png</span><span style="color: #E02020; ">}}</span>
<span style="color: #2C922C; font-style: italic;">% strange text behaviour</span>
<span style="color: #800000; font-weight: normal;">\scalebox</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">2</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\rotatebox</span><span style="color: #E02020; ">{</span>60</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\reflectbox</span><span style="color: #E02020; ">{</span>Check this text!</span><span style="color: #E02020; ">}}}</span></pre></td></tr></table></div>

<p><strong>Complet environment with two images left-right</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">figure</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">htbp</span><span style="color: #E02020; ">]</span>
<span style="color: #800000; font-weight: normal;">\centering</span>
<span style="color: #800000; font-weight: normal;">\includegraphics</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">width=0.8<span style="color: #800000; font-weight: normal;">\hsize</span></span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">image</span><span style="color: #E02020; ">}\\</span>
<span style="color: #800000; font-weight: normal;">\includegraphics</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">width=0.8<span style="color: #800000; font-weight: normal;">\hsize</span></span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">image</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">caption</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">image caption</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">label</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">fig:mylabel</span><span style="color: #E02020; ">}</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">figure</span></span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">figure*</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">t</span><span style="color: #E02020; ">]</span>
<span style="color: #800000; font-weight: normal;">\centerline</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\includegraphics</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">width=0.8<span style="color: #800000; font-weight: normal;">\textwidth</span></span><span style="color: #E02020; ">]{</span>figures/image</span><span style="color: #E02020; ">}}</span>
<span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">caption</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Caption title. {<span style="color: #800000; font-weight: normal;">\it</span> Caption text.</span><span style="color: #E02020; ">}}</span>
<span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">label</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">fig:image</span><span style="color: #E02020; ">}</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">figure*</span></span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<p><strong>Labeling sections in the document</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\section</span><span style="color: #E02020; ">{</span><span style="color: #00008B; font-weight: bold;">Introduction</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">label</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">sec:intro</span><span style="color: #E02020; ">}</span>
.....
<span style="color: #2C922C; font-style: italic;">% reference to section </span>
<span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">ref</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">sec:intro</span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<p><strong>Adding external files to the document</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\section</span><span style="color: #E02020; ">{</span><span style="color: #00008B; font-weight: bold;">Introduction</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">label</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">sec:intro</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">input</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">sections/intro</span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<p><strong>Math</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\[</span><span style="color: #C08020; font-weight: normal;">...\</span><span style="color: #E02020; ">]</span> <span style="color: #2C922C; font-style: italic;">% produces an unnumbered formula</span>
<span style="color: #E02020; ">\</span>(...<span style="color: #E02020; ">\</span>)
<span style="color: #8020E0; font-weight: normal;">$...$</span>
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">math</span></span><span style="color: #E02020; ">}</span><span style="color: #8020E0; font-weight: normal;"> ... </span><span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">math</span></span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<p><strong>Type properties</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\bf</span> <span style="color: #2C922C; font-style: italic;">% bold</span>
<span style="color: #800000; font-weight: normal;">\sf</span> <span style="color: #2C922C; font-style: italic;">% sans serif</span>
<span style="color: #800000; font-weight: normal;">\sc</span> <span style="color: #2C922C; font-style: italic;">% small caps</span>
<span style="color: #800000; font-weight: normal;">\tt</span> <span style="color: #2C922C; font-style: italic;">% typewriter</span>
<span style="color: #800000; font-weight: normal;">\tiny</span>
<span style="color: #800000; font-weight: normal;">\normalsize</span>
<span style="color: #800000; font-weight: normal;">\large</span>
<span style="color: #800000; font-weight: normal;">\Large</span>
<span style="color: #800000; font-weight: normal;">\LARGE</span></pre></td></tr></table></div>

<p><strong>Lists</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">enumerate</span></span><span style="color: #E02020; ">}</span>
   <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> First item
   <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Second item
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">enumerate</span></span><span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">%</span>
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
   <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> First item
   <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Second item
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">%</span>
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">description</span></span><span style="color: #E02020; ">}</span>
   <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">first</span><span style="color: #E02020; ">]</span> A definition for the first item.
   <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">second</span><span style="color: #E02020; ">]</span> A definition for the second item.
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">description</span></span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<p><strong>Columns</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">tabbing</span></span><span style="color: #E02020; ">}</span>
text <span style="color: #E02020; ">\</span>= some text <span style="color: #E02020; ">\\</span>
   <span style="color: #E02020; ">\</span>&gt; text  <span style="color: #E02020; ">\</span>= text,
   <span style="color: #E02020; ">\</span>&gt;       <span style="color: #E02020; ">\</span>&gt; text; <span style="color: #E02020; ">\\</span>
   <span style="color: #E02020; ">\</span>&gt; text  <span style="color: #E02020; ">\</span>&gt; text. <span style="color: #E02020; ">\\</span>
endif 
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">tabbing</span></span><span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">%</span>
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">tabular</span></span><span style="color: #E02020; ">}{</span><span style="color: #E02020; "><span style="color: #2020C0; font-weight: normal;">|l|c|c|</span></span><span style="color: #E02020; ">}</span>
   <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">hline</span></span>
   <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row 1,Col1</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row1,Col2</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row1,Col3</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">\\</span>
   <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">hline</span></span>
   <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row 2,Col1</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row2,Col2</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row2,Col3</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">\\</span>
   <span style="color: #800000; font-weight: normal;">\cline</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">2-3</span><span style="color: #E02020; ">}</span>
   <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row 3,Col1</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row3,Col2</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row3,Col3</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">\\</span>
   <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">hline</span></span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">tabular</span></span><span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">%</span>
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">tabular</span></span><span style="color: #E02020; ">}{</span><span style="color: #E02020; "><span style="color: #2020C0; font-weight: normal;">|l|c|c|</span></span><span style="color: #E02020; ">}</span>
   <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">hline</span></span>
   <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row 1,Col1</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row1,Col2</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row1,Col3</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">\\</span>
   <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">hline</span></span>
   <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row 2,Col1</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> <span style="color: #800000; font-weight: normal;">\multicolumn</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">2</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">c</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">Row2,Col2-3</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">\\</span>
   <span style="color: #800000; font-weight: normal;">\cline</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">2-3</span><span style="color: #E02020; ">}</span>
   <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row 3,Col1</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row3,Col2</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row3,Col3</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">\\</span>
   <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">hline</span></span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">tabular</span></span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<p><strong>Tables</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\protect</span>
   <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">table</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">t</span><span style="color: #E02020; ">]</span>
      <span style="color: #2C922C; font-style: italic;">% Table body</span>
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">caption</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Caption title. {<span style="color: #800000; font-weight: normal;">\it</span> The caption text.</span><span style="color: #E02020; ">}}</span>
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">label</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">tab:schema</span><span style="color: #E02020; ">}</span>
   <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">table</span></span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">%</span>
<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\protect</span>
   <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">table</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">t</span><span style="color: #E02020; ">]</span>
      <span style="color: #800000; font-weight: normal;">\centering</span>
      <span style="color: #800000; font-weight: normal;">\footnotesize</span>
      <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">tabular</span></span><span style="color: #E02020; ">}{</span><span style="color: #E02020; "><span style="color: #2020C0; font-weight: normal;">|l|c|c|</span></span><span style="color: #E02020; ">}</span>
         <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">hline</span></span>
         <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row 1,Col1</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row1,Col2</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row1,Col3</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">\\</span>
         <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">hline</span></span>
         <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row 2,Col1</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row2,Col2</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row2,Col3</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">\\</span>
         <span style="color: #800000; font-weight: normal;">\cline</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">2-3</span><span style="color: #E02020; ">}</span>
         <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row 3,Col1</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row3,Col2</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Row3,Col3</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">\\</span>
         <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">hline</span></span>
      <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">tabular</span></span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">caption</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Caption title. {<span style="color: #800000; font-weight: normal;">\it</span> The caption text.</span><span style="color: #E02020; ">}}</span>
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">label</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">tab:schema</span><span style="color: #E02020; ">}</span>
   <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">table</span></span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<p><strong>References:</strong></p>
<ul>
<li><a href="http://www.latex-project.org/guides/">LaTeX Project WebSite</a></li>
<li><a href="http://en.wikipedia.org/wiki/LaTeX">LaTeX on Wikipedia</a></li>
<li><a href="http://code.google.com/p/latex-makefile/">Latex Makefile by Google</a></li>
<li><a href="http://www.pps.jussieu.fr/~beffara/soft/rubber/">Makefile: Rubber</a></li>
<li><a http://tug.ctan.org/tex-archive/help/Catalogue/catalogue.html">The TeX Catalogue Online has a very comprehensive list of all the LaTeX packages out there</a></li>
<li><a href="http://csgsa.cs.clemson.edu/seminar/tools06/docbook/html/tools06.html">Latex Tutorial</a></li>
<li><a href="http://texblog.wordpress.com/2007/11/07/headerfooter-in-latex-with-fancyhdr/">Header and Footer in LaTeX &#8211; Explained</a></li>
<li><a href="http://www.markschenk.com/tensegrity/latexexplanation.html">Latex Explained</a></li>
<li><a href="http://dataninja.wordpress.com/2005/12/21/installing-and-using-latex-packages/">Installing and Using LaTeX Packages</a></li>
<li><a href="http://www.uoregon.edu/~noeckel/computernotes.html">Noeckel: Computer Notes (LaTeX and useful stuff)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2008/10/11/latex-useful-tipstricks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Starting with LaTeX/PdfTeX, a small template</title>
		<link>http://www.vioan.ro/wp/2008/10/10/starting-with-latexpdftex-a-small-template/</link>
		<comments>http://www.vioan.ro/wp/2008/10/10/starting-with-latexpdftex-a-small-template/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 19:52:13 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[SciComputing]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[bibtex]]></category>
		<category><![CDATA[pdftex]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=211</guid>
		<description><![CDATA[Just a short template with some packages included:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
\documentclass[a4paper,12pt]{article}
&#160;
% let's use some nice packages
\usepackage{times}
\usepackage{amssymb}
\usepackage{amsmath}
% set all margins to 2.5 cm
\usepackage[margin=2.5cm]{geometry}
% for fancy and easy modification of header and footer
\usepackage{fancyhdr}
% include hyperlinks in pdf file
\usepackage{hyperref}
% decide if run PdfTeX or LaTeX
\ifx\pdfoutput\undefined
% we are running LaTeX, not pdflatex
\usepackage{graphicx}
\else
% we are running pdflatex, so convert .eps files to .pdf
\usepackage[pdftex]{graphicx}
\usepackage{epstopdf}
\fi
&#160;
% [...]]]></description>
			<content:encoded><![CDATA[<p>Just a short template with some packages included:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">documentclass</span></span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">a4paper,12pt</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">article</span><span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #2C922C; font-style: italic;">% let's use some nice packages</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">times</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">amssymb</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">amsmath</span><span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">% set all margins to 2.5 cm</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">margin=2.5cm</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">geometry</span><span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">% for fancy and easy modification of header and footer</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">fancyhdr</span><span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">% include hyperlinks in pdf file</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">hyperref</span><span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">% decide if run PdfTeX or LaTeX</span>
<span style="color: #800000; font-weight: normal;">\ifx</span><span style="color: #800000; font-weight: normal;">\pdfoutput</span><span style="color: #800000; font-weight: normal;">\undefined</span>
<span style="color: #2C922C; font-style: italic;">% we are running LaTeX, not pdflatex</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">graphicx</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\else</span>
<span style="color: #2C922C; font-style: italic;">% we are running pdflatex, so convert .eps files to .pdf</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">pdftex</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">graphicx</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">epstopdf</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\fi</span>
&nbsp;
<span style="color: #2C922C; font-style: italic;">% also include colors</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">color</span><span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">% define bottom line of paper, for DRAFT option</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">prelim2e</span><span style="color: #E02020; ">}</span><span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">none,bottom</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">draftcopy</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\draftcopyName</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">preprint / </span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">1.2</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\renewcommand</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\PrelimWords</span></span><span style="color: #E02020; ">}{</span>Draft<span style="color: #2C922C; font-style: italic;">%</span>
 -- contact: user@mail.yoursite.com -- www.yoursite.com<span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #2C922C; font-style: italic;">% define a path for your images</span>
<span style="color: #800000; font-weight: normal;">\graphicspath</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">{.</span><span style="color: #E02020; ">}</span>,<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">../images/</span><span style="color: #E02020; ">}</span>,,<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">../../images/</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">../../anotherdir/</span><span style="color: #E02020; ">}}</span>
&nbsp;
<span style="color: #2C922C; font-style: italic;">% define a new command</span>
<span style="color: #800000; font-weight: normal;">\newcommand</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\mylab</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">1</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">label</span></span><span style="color: #E02020; ">{</span>#1</span><span style="color: #E02020; ">}}</span>
&nbsp;
<span style="color: #800000; font-weight: normal;">\title</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Your Title</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\author</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Your Name</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\date</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">today</span></span></span><span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">% show the title, author and date</span>
<span style="color: #800000; font-weight: normal;">\maketitle</span>
&nbsp;
<span style="color: #2C922C; font-style: italic;">% article's abstract</span>
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">abstract</span></span><span style="color: #E02020; ">}</span>
body of abstract
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">abstract</span></span><span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #800000; font-weight: normal;">\section</span><span style="color: #E02020; ">{</span><span style="color: #00008B; font-weight: bold;">Section Name</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\subsection</span><span style="color: #E02020; ">{</span><span style="color: #00008B; font-weight: bold;">Subsection Name</span><span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #2C922C; font-style: italic;">% include the bibliography but using bibtex</span>
<span style="color: #800000; font-weight: normal;">\bibliographystyle</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">plain</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\bibliography</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">bibfile1,bibfile2,bibfile3</span><span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<p>Next step is to look at this <a href="http://en.wikibooks.org/wiki/LaTeX">nice book</a>. That&#8217;s all. Bye!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2008/10/10/starting-with-latexpdftex-a-small-template/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

