<?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>Linux etc. &#187; LaTeX</title>
	<atom:link href="http://promberger.info/linux/category/latex/feed/" rel="self" type="application/rss+xml" />
	<link>http://promberger.info/linux</link>
	<description>my outsourced memory for your perusal</description>
	<lastBuildDate>Thu, 08 Sep 2011 11:06:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Small hyperref error solved</title>
		<link>http://promberger.info/linux/2009/11/09/small-hyperref-error-solved/</link>
		<comments>http://promberger.info/linux/2009/11/09/small-hyperref-error-solved/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 10:58:20 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/?p=323</guid>
		<description><![CDATA[For the record. I got an error running hyperref: Paragraph ended before \Hy@setref@link was complete This was due to having a regulare closing parenthesis directly after the curly bracket that closed a \ref, like this: (see section \ref{section-1}). Putting in a space between the closing curly bracket and parenthesis solved the problem: ... section-1} )]]></description>
			<content:encoded><![CDATA[<p>For the record. I got an error running hyperref:</p>
<pre>Paragraph ended before \Hy@setref@link was complete</pre>
<p>This was due to having a regulare closing parenthesis directly after the curly bracket that closed a <code>\ref</code>, like this: <code>(see section \ref{section-1})</code>. Putting in a space between the closing curly bracket and parenthesis solved the problem: <code>... section-1} )</code></p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2009/11/09/small-hyperref-error-solved/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Emacs with ESS and AucTeX on Windows</title>
		<link>http://promberger.info/linux/2009/09/14/emacs-with-ess-and-auctex-on-windows/</link>
		<comments>http://promberger.info/linux/2009/09/14/emacs-with-ess-and-auctex-on-windows/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 10:53:14 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[MS Windows]]></category>
		<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/?p=270</guid>
		<description><![CDATA[I will have to use MS Windows for my new job, at least some of the time. I&#8217;ll put related posts in a new &#8220;MS Windows&#8221; category. If you use R, you most likely want ESS (Emacs Speaks Statistics) for your GNU Emacs. If you use LaTeX, you will also want AucTeX. I highly recommend [...]]]></description>
			<content:encoded><![CDATA[<p>I will have to use MS Windows for my new job, at least some of the time. I&#8217;ll put related posts in a new &#8220;MS Windows&#8221; category.</p>
<p>If you use <a href="http://www.r-project.org">R</a>, you most likely want <a href="http://ess.r-project.org/">ESS (Emacs Speaks Statistics)</a> for your GNU Emacs. If you use LaTeX, you will also want AucTeX. </p>
<p>I highly recommend you use <a href="http://vgoulet.act.ulaval.ca/en/ressources/emacs/">Vincent Goulet&#8217;s modified Emacs version</a>. As an additional benefit, it comes as a convenient self-installing .exe file.</p>
<p>Thanks Vincent!</p>
<p>p.s. To get LaTeX on Windows, you will want to get <a href="http://miktex.org/">MiKTeX</a>. MiKTeX is very nice and can auto-install missing packages on the fly when you want to use them in a document.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2009/09/14/emacs-with-ess-and-auctex-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MikTeX package manager for Linux</title>
		<link>http://promberger.info/linux/2008/06/15/miktex-package-manager-for-ubuntu-linux/</link>
		<comments>http://promberger.info/linux/2008/06/15/miktex-package-manager-for-ubuntu-linux/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 00:51:51 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/2008/06/15/miktex-package-manager-for-ubuntu-linux/</guid>
		<description><![CDATA[One of the few things I really missed when I switched from Windows to Linux was MikTeX, since it makes installation of LaTeX packages very easy, where Linux makes you jump through hoops. So I&#8217;m delighted that MikTeX brings this functionality to Linux, trough MikTeX&#160;Tools. Since this is not available through aptitude, you have to [...]]]></description>
			<content:encoded><![CDATA[<p>One of the few things I really missed when I switched from Windows to Linux was MikTeX, since it makes installation of LaTeX packages very easy, where Linux makes you jump through hoops. So I&#8217;m delighted that MikTeX brings this functionality to Linux, trough <a href="http://miktex.org/unx/">MikTeX&nbsp;Tools</a>. </p>
<p>Since this is not available through aptitude, you have to download the source and compile, it but it&#8217;s straightforward if you follow the readme file that comes with the package. Above all, Ubuntu proved great as usual at helping me get the missing dependencies, by automatically suggesting which package I needed to <code>aptitude</code> when I typed a command it didn&#8217;t find (<code>curl-config</code> and <code>cmake</code>). </p>
<p>I just had one problem: when I tried to update the mpm database, I got:</p>
<pre>
mpm --update-db
mpm: error while loading shared libraries: libMiKTeX207-core.so.1: cannot open shared object file: No such file or directory
</pre>
<p>It turns out the source files were in a different location, and all I had to do was:</p>
<pre>sudo ldconfig</pre>
<p>Now installing packages is as easy as:</p>
<pre>mpm --install=emerald</pre>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2008/06/15/miktex-package-manager-for-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using the LaTeX landscape package for a plot/ figure in Sweave</title>
		<link>http://promberger.info/linux/2008/04/15/using-the-latex-landscape-package-for-a-plotfigure-in-sweave/</link>
		<comments>http://promberger.info/linux/2008/04/15/using-the-latex-landscape-package-for-a-plotfigure-in-sweave/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 19:36:24 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/2008/04/15/using-the-latex-landscape-package-for-a-plotfigure-in-sweave/</guid>
		<description><![CDATA[I&#8217;ve started using Sweave and immediately ran into a problem. I had a wide figure to include (actually, a plot that combined several plots in R using the layout command). I had used the lscape package in LaTeX and the corresponding landscape environment for that page, and before, it worked fine, but with Sweave, the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started using Sweave and immediately ran into a problem. I had a wide figure to include (actually, a plot that combined several plots in R using the <code>layout</code> command). I had used the <code>lscape</code> package in LaTeX and the corresponding <code>landscape</code> environment for that page, and before, it worked fine, but with Sweave, the figure got chopped off as if somehow LaTex was cropping it to the portrait-oriented &#8220;width&#8221;, i.e. the narrower side of the page. Turns out I had to follow <a href="http://promberger.info/linux/2007/05/29/latex-and-beamer-steps-to-produce-a-pdf-slide-presentation/">my own advice</a> and run <code>dvips</code> followed by <code>ps2pdf</code> instead of <code>dvipdfm</code>. </p>
<p>Since typing in all those commands including the now necessary <code>Sweave</code> gets quite tedious, I created a little shell script <code>sweavetex</code>:</p>
<pre>
#!/bin/bash

R CMD Sweave "$1".Rnw  || exit 1
latex "$1".tex || exit 1
dvips "$1".dvi || exit 1
ps2pdf -dAutoRotatePages=/None "$1".ps || exit 1</pre>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2008/04/15/using-the-latex-landscape-package-for-a-plotfigure-in-sweave/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LaTeX: Figure captions in landscape dvi</title>
		<link>http://promberger.info/linux/2008/03/10/latex-figure-captions-in-landscape-dvi/</link>
		<comments>http://promberger.info/linux/2008/03/10/latex-figure-captions-in-landscape-dvi/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 13:59:45 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/2008/03/10/latex-figure-captions-in-landscape-dvi/</guid>
		<description><![CDATA[I want to include horizontally (landscape) oriented pages in a LaTeX document; to do that I use \usepackage{lscape}. Then: Some normal text &#92;begin{landscape} Some text that should be oriented horizontally. A page break automatically gets put in before and after. &#92;end{landscape} Revert back to portrait orientation. This works fine, except when I include a {figure} [...]]]></description>
			<content:encoded><![CDATA[<p>I want to include horizontally (landscape) oriented pages in a LaTeX document; to do that I use <code>\usepackage{lscape}</code>. Then:</p>
<pre class="blackonwhite">
Some normal text

&#92;begin{landscape}
Some text that should be oriented horizontally.
A page break automatically gets put in before and after.
&#92;end{landscape}

Revert back to portrait orientation.</pre>
<p>This works fine, except when I include a <code>{figure}</code> environment inside the <code>{landscape}</code> environment: In the resulting .dvi file, the figure is in the correct landscape orientation, but the caption is oriented in portrait mode on the same page, running off the page. </p>
<p>I don&#8217;t know how to fix this problem for the .dvi file, but when I run &#8230; </p>
<pre>dvipdfm file.dvi</pre>
<p>&#8230; the resulting .pdf has the caption oriented correctly.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2008/03/10/latex-figure-captions-in-landscape-dvi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Local texmf for LaTeX packages in /home/</title>
		<link>http://promberger.info/linux/2007/10/03/local-texmf-for-latex-packages-in-home/</link>
		<comments>http://promberger.info/linux/2007/10/03/local-texmf-for-latex-packages-in-home/#comments</comments>
		<pubDate>Wed, 03 Oct 2007 18:20:31 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Noobs]]></category>

		<guid isPermaLink="false">http://www.promberger.info/linux/2007/10/03/local-texmf-for-latex-packages-in-home/</guid>
		<description><![CDATA[I told you this blog is my outsourced memory :) I can put packages in my home directory at ~/texmf/tex/latex/, and into subdirectories of that dir. Then, say: texhash This will complain that it can&#8217;t update the system-wide texmf info, but no prob if no changes were made to that. So I moved sciposter.cls there [...]]]></description>
			<content:encoded><![CDATA[<p>I told you this blog is my outsourced memory :)</p>
<p>I can put packages in my home directory at <code>~/texmf/tex/latex/</code>, and into subdirectories of that dir. Then, say:</p>
<pre>texhash</pre>
<p>This will complain that it can&#8217;t update the system-wide texmf info, but no prob if no changes were made to that. So I moved <code>sciposter.cls</code> there instead of having to put it into every dir containing a poster I want to latex.</p>
<p>Some <a href="http://math.arizona.edu/~support/tex/accountpackages.php">really good information</a> about this, and alternatives.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2007/10/03/local-texmf-for-latex-packages-in-home/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dia: exporting to eps with fonts that scale well</title>
		<link>http://promberger.info/linux/2007/10/02/dia-exporting-to-eps-with-fonts-that-scale-well/</link>
		<comments>http://promberger.info/linux/2007/10/02/dia-exporting-to-eps-with-fonts-that-scale-well/#comments</comments>
		<pubDate>Tue, 02 Oct 2007 10:54:16 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Dia]]></category>
		<category><![CDATA[Fonts]]></category>
		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://www.promberger.info/linux/2007/10/02/dia-exporting-to-eps-with-fonts-that-scale-well/</guid>
		<description><![CDATA[I use Dia to produce diagrams that I then include in LaTeX documents. I export them to .eps (encapsulated postscript) file format. If your diagram contains fonts and they look ugly (ragged) in the resulting LaTeX document, you picked the wrong export format. Make sure you pick &#8220;Encapsulated Postscript (using PostScript &#8230; fonts) (*eps)&#8221;. Or, [...]]]></description>
			<content:encoded><![CDATA[<p>I use <a href="http://live.gnome.org/Dia">Dia</a> to produce diagrams that I then include in LaTeX documents. I export them to .eps (encapsulated postscript) file format. If your diagram contains fonts and they look ugly (ragged) in the resulting LaTeX document, you picked the wrong export format. Make sure you pick &#8220;Encapsulated Postscript (using PostScript &#8230; fonts) (*eps)&#8221;. Or, from the commandline:</p>
<pre>
dia -e file.eps -t eps-builtin file.dia</pre>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2007/10/02/dia-exporting-to-eps-with-fonts-that-scale-well/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conference posters using LaTeX</title>
		<link>http://promberger.info/linux/2007/10/01/conference-posters-using-latex/</link>
		<comments>http://promberger.info/linux/2007/10/01/conference-posters-using-latex/#comments</comments>
		<pubDate>Mon, 01 Oct 2007 09:48:36 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Noobs]]></category>

		<guid isPermaLink="false">http://www.promberger.info/linux/2007/10/01/conference-posters-using-latex/</guid>
		<description><![CDATA[I produce my conference posters using LaTeX. Here are a few notes on how to do it. This is in the preamble of my document (let&#8217;s say poster.tex), for a landscape formatted poster on A0 paper: &#92;documentclass[landscape,a0,plainboxedsections]{sciposter} &#92;usepackage{epsfig} % &#92;usepackage{amsmath} % &#92;usepackage{amssymb} &#92;usepackage{multicol} &#92;usepackage{avant} &#92;usepackage{sfmath} I don&#8217;t remember what the commented-out packages would do. In [...]]]></description>
			<content:encoded><![CDATA[<p>I produce my conference posters using LaTeX. Here are a few notes on how to do it. </p>
<p>This is in the preamble of my document (let&#8217;s say <code>poster.tex</code>), for a landscape formatted poster on A0 paper:</p>
<pre>
&#92;documentclass[landscape,a0,plainboxedsections]{sciposter}

&#92;usepackage{epsfig}
% &#92;usepackage{amsmath}
% &#92;usepackage{amssymb}
&#92;usepackage{multicol}
&#92;usepackage{avant}
&#92;usepackage{sfmath}</pre>
<p>I don&#8217;t remember what the commented-out packages would do. In the directory that contains my <code>poster.tex</code>, I have the corresponding files <code>sciposter.cls</code> and <code>sfmath.sty</code>. I&#8217;m sure you could also put them in your regular <code>texmf</code>-tree (<a href="http://promberger.info/linux/2007/10/03/local-texmf-for-latex-packages-in-home/">more info on texmf tree</a>). In the same directory (as <code>poster.tex</code>) I also have <code>a0size.sty</code>. </p>
<p>If you have no figures in your poster, just do: </p>
<pre>
pdflatex poster.tex</pre>
<p>I usually have figures, and I like them to be <code>eps</code> format, since that means they scale nicely. In that case, you need to run <code>latex</code> first, since <code>pdflatex</code> can&#8217;t handle <code>eps</code> files. However, you then need to pass some options to <code>dvips</code>. For a poster in landscape format, run:</p>
<pre>
latex poster.tex
dvips -t a0 -t landscape poster.dvi
ps2pdf poster.ps</pre>
<p>For portrait formatted posters, just omit <code>-t landscape</code>. </p>
<p>To spare yourself lots of typing, you could make a very small shell script called &#8220;poster&#8221; containing: </p>
<pre>
#!/bin/sh

latex $1.tex
dvips -t a0 -t landscape $1.dvi
ps2pdf $1.ps</pre>
<p>Put it in your <code>~/bin</code> and <code>chmod 700 ~/bin/poster</code></p>
<p>Then, to process file <code>poster.tex</code>, just say:</p>
<pre>poster poster</pre>
<p>Of course, R outputs nice .eps figures, and for diagrams under Linux, I use <a href="http://www.gnome.org/projects/dia/">dia</a>, which lets you export to many formats, including eps (maybe read <a href="http://www.promberger.info/linux/2007/10/02/dia-exporting-to-eps-with-fonts-that-scale-well/">this post about dia fonts in eps files</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2007/10/01/conference-posters-using-latex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Managing references with CiteULike</title>
		<link>http://promberger.info/linux/2007/06/11/managing-references-with-citeulike/</link>
		<comments>http://promberger.info/linux/2007/06/11/managing-references-with-citeulike/#comments</comments>
		<pubDate>Mon, 11 Jun 2007 15:43:42 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[CiteULike]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[misc.]]></category>

		<guid isPermaLink="false">http://www.promberger.de/blog/index.php/2007/06/11/managing-references-with-citeulike/</guid>
		<description><![CDATA[I&#8217;ve just set up an acount with www.citeulike.org to keep track of papers. Speaking from my first impressions, here are some advantages and disadvantages: Advantages: Clear and intuitive layout Can import and export BibTeX references. Can export EndNote and RSS. Lets you manually edit BibTeX citation keys (unlike Connotea). Lets you upload a personal .pdf [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just set up an acount with <a href="http://www.citeulike.org">www.citeulike.org</a> to keep track of papers. Speaking from my first impressions, here are some advantages and disadvantages:</p>
<p>Advantages:</p>
<ul>
<li>Clear and intuitive layout</li>
<li>Can import and export BibTeX references.</li>
<li>Can export EndNote and RSS.</li>
<li>Lets you manually edit BibTeX citation keys (unlike Connotea).</li>
<li>Lets you upload a personal .pdf copy.</li>
<li>Can automatically add a post from a number of publisher&#8217;s URLs, via a bookmarklet.</li>
<li>You can also manually add a citation, in case it is not online (again, seems this is not possible with Connotea).</li>
<li>The interface for searching your articles is intuitive and fast (for my handful of articles so far), and there&#8217;s a nice function for filtering by keywords (tags) either within your own library or for all articles.</li>
<li>Haven&#8217;t tried the function for &#8220;groups&#8221;, but this could be nice for labs.</li>
<li>It is free.</li>
</ul>
<p>Disadvantages:</p>
<ul>
<li>It does not recognize doi.</li>
<li>When I visit a publisher&#8217;s URL via the university library website, CiteULike is not able to extract information about that article, even though it can extract the information just fine when I visit the publisher&#8217;s URL directly (probably has to do with the library proxy servers?).</li>
<li>It is not open source</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2007/06/11/managing-references-with-citeulike/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LaTeX and Beamer &#8212; steps to produce a .pdf slide presentation</title>
		<link>http://promberger.info/linux/2007/05/29/latex-and-beamer-steps-to-produce-a-pdf-slide-presentation/</link>
		<comments>http://promberger.info/linux/2007/05/29/latex-and-beamer-steps-to-produce-a-pdf-slide-presentation/#comments</comments>
		<pubDate>Tue, 29 May 2007 19:45:06 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.promberger.de/blog/index.php/2007/05/29/latex-and-beamer-steps-to-produce-a-pdf-slide-presentation/</guid>
		<description><![CDATA[It will work if you use pdflatex: pdflatex file.tex However, using that method, you cannot include .eps graphics, and bitmap graphics often look bad in your presentation. As an alternative, run: latex file.tex followed by divps file.dvi and then ps2pdf file.ps Note that going directly &#8220;dvipdfm file.dvi&#8221; does not work for me (does not handle [...]]]></description>
			<content:encoded><![CDATA[<p>It will work if you use pdflatex:</p>
<pre>pdflatex file.tex</pre>
<p>However, using that method, you cannot include .eps graphics, and bitmap graphics often look bad in your presentation. As an alternative, run:</p>
<pre>latex file.tex</pre>
<p>followed by</p>
<pre>divps file.dvi</pre>
<p>and then </p>
<pre>ps2pdf file.ps</pre>
<p>Note that going directly &#8220;dvipdfm file.dvi&#8221; does not work for me (does not handle overlays correctly). Sometimes, ps2pdf tries to rotate individual pages wrong. In that case, say:</p>
<pre>ps2pdf -dAutoRotatePages=/None file.ps</pre>
<p>You can, of course, combine the above commands into a shell script.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2007/05/29/latex-and-beamer-steps-to-produce-a-pdf-slide-presentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

