<?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>Some TeX Developments &#187; General</title>
	<atom:link href="http://www.texdev.net/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.texdev.net</link>
	<description>Coding in the TeX world</description>
	<lastBuildDate>Sun, 22 Jan 2012 10:34:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Popularity</title>
		<link>http://www.texdev.net/2011/11/29/popularity/</link>
		<comments>http://www.texdev.net/2011/11/29/popularity/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 19:21:12 +0000</pubDate>
		<dc:creator>Joseph Wright</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[blogs]]></category>

		<guid isPermaLink="false">http://www.texdev.net/?p=1188</guid>
		<description><![CDATA[TeX and LaTeX continue to attract attention, as you can see from the list of TeX-related blogs on TeXample.net. I don&#8217;t know how many hits each of those sites get, but I do know how popular my blog is and have some idea about a few other places. So I thought it might be worth [...]]]></description>
			<content:encoded><![CDATA[<p>TeX and LaTeX continue to attract attention, as you can see from the <a href="http://www.texample.net/community/">list of TeX-related blogs</a> on <a href="http://www.texample.net/">TeXample.net</a>. I don&#8217;t know how many hits each of those sites get, but I do know how popular my blog is and have some idea about a few other places. So I thought it might be worth a quick look at the numbers.</p>
<p>In a typical day, ‘Some TeX Developments’ gets around 200 hits. That varies a bit, depending on whether I post something. There are also occasional spikes, with the <a title="Writing a curriculum vitae in LaTeX: Part 1" href="http://www.texdev.net/2011/11/05/writing-a-curriculum-vitae-in-latex-part-1/">CV mini-series</a> getting me over 500 hits a day for four days, and <a title="LaTeX3 Roadmap" href="http://www.texdev.net/2011/09/05/latex3-roadmap/">my thoughts on a LaTeX3 roadmap</a> attracting over 2000 hits that day! By way of comparison, the <a href="http://tex.blogoverflow.com/">TeX.sx community blog</a> gets around 100 hits per day when there is not a post, rising to 300 to 400 on days when a post is added. The <a href="http://uk.tug.org/">UK-TUG website</a> gets around 60 hits per day, mainly for the templates. (It&#8217;s not really a blog, although we do use it for announcements.)</p>
<p>The <a href="http://www.texample.net/">TeXample.net</a> site features both the community aggregator and the very useful <a href="http://www.texample.net/tikz/">set of TikZ examples</a>. As you&#8217;d expect, this combination gains it a lot more hits than a blog: I believe about 2500 per day.</p>
<p>Then there&#8217;s <a href="http://tex.stackexchange.com/">TeX.sx</a>, which has grown rapidly in the last year to become a great place to find TeX answers. Hits-per-day have been rising steadily there, and are now well over 20,000 per day. There are usually at lest 40 new questions and 70 new answers driving this growth, which I think bodes well for TeX.</p>
<p>So over all the picture is of a range of sites getting a good number of hits. I&#8217;ve no idea how that compares with other typesetting systems or programming languages, but I&#8217;d like to feel it is a good sign for the future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.texdev.net/2011/11/29/popularity/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>TeX on Windows: MiKTeX or TeX Live</title>
		<link>http://www.texdev.net/2011/11/19/tex-on-windows-miktex-or-tex-live/</link>
		<comments>http://www.texdev.net/2011/11/19/tex-on-windows-miktex-or-tex-live/#comments</comments>
		<pubDate>Sat, 19 Nov 2011 23:11:17 +0000</pubDate>
		<dc:creator>Joseph Wright</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[MiKTeX]]></category>
		<category><![CDATA[TeX Live]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.texdev.net/?p=1179</guid>
		<description><![CDATA[Around two years ago, I wrote a short post comparing MiKTeX and TeX Live for Windows-based TeX users. Looking at my log files, this topic is perhaps the most common search term that brings people here. As such, I think it&#8217;s time to revisit the question and bring what I said before up to date. [...]]]></description>
			<content:encoded><![CDATA[<p>Around two years ago, I wrote a <a title="Windows TeX Users: MiKTeX or TeX Live" href="http://www.texdev.net/2009/11/07/windows-tex-users-miktex-or-tex-live/">short post comparing MiKTeX and TeX Live for Windows-based TeX users</a>. Looking at my log files, this topic is perhaps the most common search term that brings people here. As such, I think it&#8217;s time to revisit the question and bring what I said before up to date.</p>
<p>On Windows, there are two actively-developed TeX systems with similar coverage: <a href="http://www.miktex.org/">MiKTeX</a> and <a href="http://tug.org/texlive">TeX Live</a>. Before I look at the comparison, a reminder that they are not the only choices. <a href="http://w32tex.org/">W32TeX</a> is popular in the far east, and as well as being a TeX system in its own right is the source of the Windows binaries for TeX Live. There are also the commercial <a href="http://www.bakoma-tex.com/">BaKoMa</a> and <a href="http://www.micropress-inc.com/">VTeX</a> systems (although whether anyone can get hold of the supplier of the latter is another question). However, for most users it comes down to a choice between the ‘big two’.</p>
<p>The good news is that there is a lot of similarity between the two systems, so for most users both systems are equally usable. However, there are differences and depending on what you need these might be important.</p>
<ul>
<li>The standard settings install <em>everything</em> for TeX Live, but only a minimal set of packages for MiKTeX. MiKTeX will then install extra packages ‘on the fly’, while TeX Live does not (there is a <a href="http://ctan.org/pkg/texliveonfly">package to do that in TeX Live</a>, but it&#8217;s aimed at Linux). Install-on-the-fly is useful if space is limited, but is more problematic on server set ups. So this is very much a feature who&#8217;s usefulness depends on your circumstances. Of course, there is nothing to stop you using MiKTeX and installing everything.</li>
<li>The <a href="http://www.xindy.org/">xindy</a> program is only available in TeX Live. For those of you not familiar with it, xindy is an index-processor, and is much more capable of dealing with multi-lingual situations than MakeIndex. If you need xindy, TeX Live really is the way to go.</li>
<li>MiKTeX is very much a Windows tool set, while TeX Live comes from a Unix background. This shows up from time to time in the way TeX Live is administered, and the fact that the TeX Live GUI is written based on Perl rather than as a ‘native’ Windows application.</li>
<li>As TeX Live is the basis of <a href="http://tug.org/mactex">MacTeX</a>, and is <em>the</em> TeX system for Unix, if you work cross-platform and want an identical system on all of your machines, then TeX Live is the way to go.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.texdev.net/2011/11/19/tex-on-windows-miktex-or-tex-live/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Writing a curriculum vitae in LaTeX: Part 4</title>
		<link>http://www.texdev.net/2011/11/08/writing-a-curriculum-vitae-in-latex-part-4/</link>
		<comments>http://www.texdev.net/2011/11/08/writing-a-curriculum-vitae-in-latex-part-4/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 20:31:29 +0000</pubDate>
		<dc:creator>Joseph Wright</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[curriculum vitae]]></category>
		<category><![CDATA[résumé]]></category>

		<guid isPermaLink="false">http://www.texdev.net/?p=1167</guid>
		<description><![CDATA[I&#8217;ve looked over the last few days at some issues centring on writing a CV in LaTeX, first looking at the wider picture, then at creating a CV using custom macros and most recently at including a list of publications. To round things off, I&#8217;m going to create a short example: the source of my [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve looked over the last few days at some issues centring on writing a CV in LaTeX, first <a title="Writing a curriculum vitae in LaTeX: Part 1" href="http://www.texdev.net/2011/11/05/writing-a-curriculum-vitae-in-latex-part-1/">looking at the wider picture</a>, then at <a title="Writing a curriculum vitae in LaTeX: Part 2" href="http://www.texdev.net/2011/11/06/writing-a-curriculum-vitae-in-latex-part-2/">creating a CV using custom macros</a> and most recently at <a title="Writing a curriculum vitae in LaTeX: Part 3" href="http://www.texdev.net/2011/11/07/writing-a-curriculum-vitae-in-latex-part-3/">including a list of publications</a>. To round things off, I&#8217;m going to create a <a href="http://www.texdev.net/wp-content/uploads/2011/11/cv-short.tex">short example</a>: the source of <a href="http://www.texdev.net/wp-content/uploads/2011/11/cv.zip">my own CV</a> cut down to a blog post. Before I do that, I&#8217;d point out that everyone&#8217;s CV is different, and while my approach makes sense for me it should be seen very much as something to pick up ideas from more than any form of template.</p>
<h2>Package loading</h2>
<p>I&#8217;ll start as before by loading the article class and setting up some fonts. To allow a bit of flexibility, here I&#8217;ve made LuaLaTeX optional, so that the file can be processed, for example, using <a href="http://www.tug.org/applications/tex4ht/mn.html">TeX4ht</a>. As far as possible, the look will be the same with pdfLaTeX or LuaLaTeX (as I <a title="Writing a curriculum vitae in LaTeX: Part 2" href="http://www.texdev.net/2011/11/06/writing-a-curriculum-vitae-in-latex-part-2/">said earlier</a>, I use LuaLaTeX for my CV as it makes some aspects of the real thing easier).</p>
<pre>\documentclass[11pt]{article}

\usepackage{ifluatex}
\ifluatex
  \usepackage{fontspec}
  \setmainfont[Ligatures = TeX,Numbers = OldStyle]{TeX Gyre Pagella}
  \setsansfont[Ligatures = TeX]{TeX Gyre Adventor}
  \setmonofont[Ligatures = TeX]{Inconsolata}
\else
  \usepackage[T1]{fontenc}
  \usepackage{tgpagella}
  \usepackage{tgadventor}
  \usepackage{inconsolata}
\fi</pre>
<p>The next phase is to load the rest of the support needed, with <a href="http://ctan.org/pkg/hyperref">hyperref</a> last as this is usually the best idea.</p>
<pre>\usepackage{array,etaremune,geometry,fixltx2e,microtype,pifont}
\usepackage{ragged2e,titlesec,xcolor}
\usepackage{hyperref}</pre>
<h2>Appearance adjustments</h2>
<p>Setting up hyperref is easy, so that is done next.</p>
<pre>\hypersetup
  {
    hidelinks = true             ,
    pdfauthor = Joseph Wright    ,
    pdftitle  = Curriculum Vitae
  }</pre>
<p>Now there is some adjustment of the appearance. The page size is adjusted, and as I described in <a title="Writing a curriculum vitae in LaTeX: Part 2" href="http://www.texdev.net/2011/11/06/writing-a-curriculum-vitae-in-latex-part-2/">part 2</a> I set up a custom appearance for sections and subsections. I also miss out page numbers (which should not really be needed in a two page CV), and alter spacing a little.</p>
<pre>\geometry
  {
    a4paper         ,
    nohead          ,
    nofoot          ,
    hmargin = 1.5cm ,
    vmargin = 2cm
  }

\titleformat{\section}{\Large\bfseries\sffamily}{}{0 em}
  {%
    \begingroup
      \color{gray!30}%
      \titleline{\leaders\hrule height 0.6 em\hfill\kern 0 pt\relax}%
    \endgroup
    \nobreak
    \vspace{-1.2 em}%
    \nobreak
  }

\titleformat{\subsection}{\large\itshape}{}{0 em}{}

\renewcommand*\arraystretch{1.4}
\pagestyle{empty}
\frenchspacing</pre>
<h2>Specialist macros</h2>
<p>Now comes some custom code, first for publications as I described in <a title="Writing a curriculum vitae in LaTeX: Part 3" href="http://www.texdev.net/2011/11/07/writing-a-curriculum-vitae-in-latex-part-3/">part 3</a>.</p>
<pre>\newcommand*{\paper}[2]
  {\item \href{http://dx.doi.org/#1}{\ignorespaces#2\unskip.}}
\newcommand*{\papertitle}[1]
  {%
    \begingroup
      \ifluatex
        \addfontfeature{Numbers = Lining}%
      \fi
      \emph{#1}%
    \endgroup
  }</pre>
<p>Next is the set up for the tabular nature of the CV. The text used here sets the width of the left-hand column, so may need to be adjusted to suite whatever is the widest thing you actually use!</p>
<pre>\newlength{\sidewidth}
\newlength{\mainwidth}
\AtBeginDocument
  {%
    \settowidth{\sidewidth}{\textbf{Professional bodies}\hspace{0.75 em}}%
    \setlength{\mainwidth}{\dimexpr\linewidth - \sidewidth\relax}%
  }</pre>
<p>Finally for the preamble, the macros which actually go into the body of the CV.</p>
<pre>\newcommand*{\headline}[1]
  {%
    \hbox{%
      \llap{\ding{72}\hspace*{0.2 em}}%
      \textbf{#1}%
    }%
  }
\newenvironment{CVtable}
  {%
    \begin{tabular}
      {@{}&gt;{\bfseries}p{\sidewidth}@{}&gt;{\RaggedRight}p{\mainwidth}@{}}%
  }
  {\end{tabular}}</pre>
<h2>The document body</h2>
<p>There is not so much you can say about the body of the CV! As described before, I start of with some general contact details.</p>
<pre>\begin{document}

% Title block
\begin{raggedleft}
  \textbf{Joseph Wright}    \\
  School of Chemistry       \\
  University of East Anglia \\
  Norwich NR4 7TJ           \\
  Tel.: 01603 592902        \\
  Mobile: 0797 414 8180     \\
  \href{mailto:joseph.wright@uea.ac.uk}
    {\texttt{joseph.wright@uea.ac.uk}} \\
\end{raggedleft}

\begin{center}
  \Huge\bfseries\sffamily
  Joseph Alexander Wright
\end{center}</pre>
<p>The first of several sections. Here, I&#8217;ve taken one which also has subsections, which work in the normal way.</p>
<pre>\section{Employment history}

\subsection{Current position}

\begin{CVtable}
  2008-- &amp;
    \headline{PDRA -- University of East Anglia} \par
    Supervisor Prof.~C.~J.~Pickett \par
    Studies on [Fe]- and [FeFe]-hydrogenase active sites mimics \par
    Synthesis of novel ligands and model compounds \par
    Mechanistic studies using stopped-flow UV and IR spectroscopies
  \\
\end{CVtable}

\subsection{Previous positions}

\begin{CVtable}
  2007--2008 &amp;
    \headline{Senior Demonstrator -- University of East Anglia} \par
    Teaching degree level chemistry:
    tutorials and laboratory classes \par
    Preparation of M.~Chem.~third year practical course in
    organic chemistry
\end{CVtable}

\dots</pre>
<p>Several more sections would now follow, but I&#8217;ll leave this to the imagination.</p>
<pre>\section{Academic history}

\dots</pre>
<p>I find that it&#8217;s best to start a publication list on a new page, as I have quite a lot. In the UK, this list does not count as part of the general CV, so is allowed to go beyond two pages. As I said in <a title="Writing a curriculum vitae in LaTeX: Part 3" href="http://www.texdev.net/2011/11/07/writing-a-curriculum-vitae-in-latex-part-3/">part 3 of the series</a>, it&#8217;s often useful to have this list as a separate file.</p>
<pre>\newpage

\section{List of Publications}

\begin{etaremune}[start = 45] % Remember to adjust this
  \paper{10.1021/ja2087536}{
    \papertitle{Paramagnetic Bridging Hydrides of Relevance to Catalytic
    Hydrogen Evolution at Metallosulfur Centers}, A.~Jablonskyt{\.e},
    J.\,A.~Wright, S.\,A.~Fairhurst, J.\,N.\,T.~Peck, S.\,K.~Ibrahim,
    V.\,S.~Oganesyan, and C.\,J.~Pickett, \emph{J.~Am. Chem. Soc.},
    in press
  }

  \paper{10.1039/c1cc11320h}{
    \papertitle{The role of CN and CO ligands in the vibrational relaxation
    dynamics of model compounds of the [FeFe]-\break hydrogenase enzyme},
    S.~Kaziannis, J.\,A.~Wright, M.~Candelaresi, R.~Kania, G.\,M.~Greetham,
    A.\,W.~Parker, C.\,J.~Pickett and N.\,T.~Hunt
    \emph{Phys. Chem. Chem. Phys.}, 2011, \textbf{13}, 10295--10305
  }

\end{etaremune}

\dots

\end{document}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.texdev.net/2011/11/08/writing-a-curriculum-vitae-in-latex-part-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing a curriculum vitae in LaTeX: Part 3</title>
		<link>http://www.texdev.net/2011/11/07/writing-a-curriculum-vitae-in-latex-part-3/</link>
		<comments>http://www.texdev.net/2011/11/07/writing-a-curriculum-vitae-in-latex-part-3/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 09:18:49 +0000</pubDate>
		<dc:creator>Joseph Wright</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[curriculum vitae]]></category>
		<category><![CDATA[résumé]]></category>

		<guid isPermaLink="false">http://www.texdev.net/?p=1157</guid>
		<description><![CDATA[I work in a university, so an important part of my CV is a list of my publications. In part 2, I described how I put together the bulk of my CV using some custom macros: here, I&#8217;ll focus on publications. BibTeX? The obvious approach to setting up a publication list is to use a [...]]]></description>
			<content:encoded><![CDATA[<p>I work in a university, so an important part of my CV is a list of my publications. In <a title="Writing a curriculum vitae in LaTeX: Part 2" href="http://www.texdev.net/2011/11/06/writing-a-curriculum-vitae-in-latex-part-2/">part 2</a>, I described how I put together the bulk of my CV using some custom macros: here, I&#8217;ll focus on publications.</p>
<h2>BibTeX?</h2>
<p>The obvious approach to setting up a publication list is to use a BibTeX database. I have all of my publications in one, so that does suggest itself as an easy way to go. As with the balance between pre-built styles and custom macros, I&#8217;ve decided that for a CV the task is sufficiently specialised that doing it by hand is actually easier. There are a few reasons.</p>
<p>Usually, you give your publications in date order, newest first. That won&#8217;t quite come out correctly if you simply order by year, so using BibTeX it&#8217;s best to <code>\nocite</code> the keys in the order you want. No big deal, but it does mean you can&#8217;t just dump them all in one go.</p>
<p>There are a couple of style differences between what I want in my CV and what I&#8217;d usually use in a publication. We chemists don&#8217;t normally include article titles in citations, but for a CV it makes sense to add these. At the same time, I like to add hyperlinks to my publications in my CV using the <a href="http://www.doi.org">DOI </a>system. These can both be added to a standard BibTeX style (indeed, my own <a href="http://ctan.org/pkg/biblatex-chem">biblatex-chem</a> style already has a switch for titles), but of course it&#8217;s another thing to sort out.</p>
<p>The inclusion of article titles brings me to perhaps the biggest reason that I&#8217;m not using BibTeX for my CV. Chemistry titles tend to contain lots of awkward material, such as formulae, which are hard to line break well. So there is a bit of work to do by hand to get things looking right. If I only ever used the publication list in my CV, with one set of formatting rules, then that would be fine. However, I use it in a few ways, and so manually adjusting line breaks <em>via</em> BibTeX is more awkward than simply including the text directly.</p>
<h2>A little structure</h2>
<p>While usually my publication list is part of my CV, I sometimes need it as a stand-alone document. So I have the list itself as a separate file, and <code>\input</code> it into the main CV source. So all I have to do for a stand-alone list of publications is write a short wrapper around the list (again as a separate file).</p>
<p>Whether you use BibTeX or not, you&#8217;ll need to do is set up a reverse-enumerated environment, so that the most recent publication has the highest number. I do that using the <a href="http://ctan.org/pkg/etaremune">etaremune</a> package, which provides a suitable environment. The package needs to know how many items to enumerate, so either two LaTeX runs or a known starting value are needed. As I work by hand, I go with the latter approach</p>
<pre>\begin{etaremune}[start  = 45] % Update when you add a publication
   ...
\end{etaremune}</pre>
<p>It&#8217;s then just a question of filling in the items. I use a couple of custom macros for this. First, to let me quickly wrap up each entire item in a hyperlink, I define</p>
<pre>\newcommand*{\paper}[2]{%
  % Standard style
  \item \href{http://dx.doi.org/#1}{\ignorespaces#2\unskip.}
  % Including DOI
  %\item \href{http://dx.doi.org/#1}
  %  {\ignorespaces#2\unskip.\\\textsc{doi}: \texttt{#1}}
}</pre>
<p>which takes the text as <code>#1</code> and the DOI as <code>#2</code>. As you can see from the comments, this lets me quickly decide whether I want to include the DOI in the printed output or to just use it to create a link.</p>
<p>The second custom macro is one for the paper title</p>
<pre>\newcommand*{\papertitle}[1]{%
  \begingroup
    \addfontfeature{Numbers = Lining}%
    \emph{#1}%
  \endgroup
}</pre>
<p>There are a couple of reasons for having a macro here. The first is that lining numbers seem to work better in chemical formulae than lower case ones do: of course this is my opinion! The second reason is that it makes it easy to quickly omit the title entirely if I need a short version of the publication list.</p>
<h2>Putting it all together</h2>
<p>I&#8217;ve covered a few different ideas for creating a CV in LaTeX. Each one is I hope pretty simple, and as I&#8217;ve said most people want a CV that&#8217;s in a style they have chosen. But it&#8217;s always nice to have something complete to start from. So in the final part of this short series, I&#8217;ll put the various ideas together into an example.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.texdev.net/2011/11/07/writing-a-curriculum-vitae-in-latex-part-3/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Date for the diary: TUG 2012</title>
		<link>http://www.texdev.net/2011/11/07/date-for-the-diary-tug2012/</link>
		<comments>http://www.texdev.net/2011/11/07/date-for-the-diary-tug2012/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 08:25:42 +0000</pubDate>
		<dc:creator>Joseph Wright</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Meetings]]></category>
		<category><![CDATA[TUG 2012]]></category>

		<guid isPermaLink="false">http://www.texdev.net/?p=1159</guid>
		<description><![CDATA[The dust has only just settled on TUG 2011, but I see that there is already a date set for TUG 2012. The meeting is planned for the 16th to the 18th of July next year, in Boston (US). For those of us who find that clashes happen, it&#8217;s probably worth penciling this one in. [...]]]></description>
			<content:encoded><![CDATA[<p>The dust has only just settled on <a href="http://tug.org/2011">TUG 2011</a>, but I see that there is already a date set for <a href="http://tug.org/2012">TUG 2012</a>. The meeting is planned for the 16th to the 18th of July next year, in Boston (US). For those of us who find that clashes happen, it&#8217;s probably worth penciling this one in.</p>
<p>Now, the next step is to raise the money to go …</p>
]]></content:encoded>
			<wfw:commentRss>http://www.texdev.net/2011/11/07/date-for-the-diary-tug2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing a curriculum vitae in LaTeX: Part 2</title>
		<link>http://www.texdev.net/2011/11/06/writing-a-curriculum-vitae-in-latex-part-2/</link>
		<comments>http://www.texdev.net/2011/11/06/writing-a-curriculum-vitae-in-latex-part-2/#comments</comments>
		<pubDate>Sun, 06 Nov 2011 12:08:54 +0000</pubDate>
		<dc:creator>Joseph Wright</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[curriculum vitae]]></category>
		<category><![CDATA[résumé]]></category>

		<guid isPermaLink="false">http://www.texdev.net/?p=1142</guid>
		<description><![CDATA[In part 1, I looked at some general ideas about writing CVs, and said that my approach is to ‘roll my own’ format based on the standard article class. Here, I want to look at the process in a bit more detail. Most of this is about using LaTeX, and so the ideas I use [...]]]></description>
			<content:encoded><![CDATA[<p>In <a title="Writing a curriculum vitae in LaTeX: Part 1" href="http://www.texdev.net/2011/11/05/writing-a-curriculum-vitae-in-latex-part-1/">part 1</a>, I looked at some general ideas about writing CVs, and said that my approach is to ‘roll my own’ format based on the standard article class. Here, I want to look at the process in a bit more detail. Most of this is about using LaTeX, and so the ideas I use apply to many other cases.</p>
<p>I make use of quite a few packages to get the appearance as I want. Rather than list all of them at once, I&#8217;ll take about the effects I&#8217;m aiming for, and include the package names as I go.</p>
<h2>Setting up the appearance</h2>
<p>Starting from the article class, the first thing to address is the overall appearance of the CV. The standard Computers Modern font is well designed, but I guess says ‘LaTeX’ in a may that many people don&#8217;t want for a CV. With the availability of <a href="http://tug.org/xetex">XeTeX</a> and <a href="http://www.luatex.org/">LuaTeX</a>, using system fonts is easy (using <a href="http://ctan.org/pkg/fontspec">fontspec</a>, of course), and that&#8217;s particularly useful if like me you have some non-Latin characters that you&#8217;d like to include in the CV but keep visually ‘matching’ everything else.  For me, LuaTeX turns out to be a better choice than XeTeX (I want fully-functional microtypography as it helps with typesetting chemical names), so my CV starts off with</p>
<pre>% !TeX program = LuaLaTeX
\documentclass[11pt,draft]{article}

% Font set up
\usepackage{fontspec}
\setmainfont[Ligatures = TeX,Numbers = OldStyle]{TeX Gyre Pagella}
\setsansfont[Ligatures = TeX]{TeX Gyre Adventor}
\setmonofont[Ligatures = TeX]{Inconsolata}</pre>
<p>Here, as well as loading the fonts I like, I&#8217;ve set up to use lower case (old style) numbers as recommend by <a href="http://www.amazon.com/Elements-Typographic-Style-Robert-Bringhurst/dp/0881792063">Bringhurst</a>. I&#8217;ve also included a <a title="TeXworks ‘magic comments’" href="http://www.texdev.net/2011/03/24/texworks-magic-comments/">‘magic’ comment</a> to let my <a href="http://www.texdev.net/?s=texworks">editor</a> know to use LuaLaTeX. You might wonder about the <code>draft</code> option: I&#8217;ll come back to that later.</p>
<p>As I say, I want microtypography set up, so do</p>
<pre>\usepackage[final]{microtype}</pre>
<p>(Using the <code>final</code> option here will override the <code>draft</code> one set for the document class.)</p>
<p>That sets up the fonts, but what about page layout? Well, the standard here is to use the <a href="http://ctan.org/pkg/geometry">geometry</a> package</p>
<pre>\usepackage[a4paper,nohead,nofoot,hmargin=1.5cm,vmargin=2cm]{geometry}</pre>
<p>I have pretty small margins, as for a CV this seems to make the most sense. I&#8217;m also not going to use a header or footer (so set <code>\pagestyle{empty}</code>), and so remove the space normally reserved for those.</p>
<h2>Hyperlinks</h2>
<p>Before looking at the content of the CV, I&#8217;ll mention hyperlinks as these come up throughout. My CV usually gets sent electronically, and I want to be able to include links for my e-mail address and publications. So I have</p>
<pre>\usepackage[final]{hyperref}

\hypersetup
  {
    hidelinks = true ,
    pdfauthor = Joseph Wright ,
    pdftitle = Curriculum Vitae
  }</pre>
<p>at the end of my package-loading section. The <a href="http://ctan.org/pkg/hyperref">hyperref</a> package deals with the links, while the set up makes them blend in to the text and adds my name to the PDF information.</p>
<h2>Lead-off: the address block</h2>
<p>A very common way to start a CV is with basic contact details: what I&#8217;m going to call an ‘address block’. I do this very simply</p>
<pre>\begin{document}

% Title block
\begin{raggedleft}
  \textbf{Joseph Wright}    \\
  School of Chemistry       \\
  University of East Anglia \\
  Norwich NR4 7TJ           \\
  Tel.: 01603 592902        \\
  Mobile: 0797 414 8180     \\
  \href{mailto:joseph.wright@uea.ac.uk}
    {\texttt{joseph.wright@uea.ac.uk}} \\
\end{raggedleft}</pre>
<p>This therefore sits at the top of the first page, and comes out (to my mind) in a very pleasing style.</p>
<p>Also as part of the lead-off, it&#8217;s normal to have your name (<em>never</em> ‘Curriculum Vitae’), which again I do in a very straightforward way</p>
<pre>\begin{center}
  \Huge\bfseries\sffamily
  Joseph Alexander Wright
\end{center}</pre>
<h2>Sections and subsections</h2>
<p>A CV needs several sections, for example ‘Employment history’, ‘Skills’ and so on. The standard LaTeX <code>\section</code> is the best choice of logical mark up for these, but the appearance is going to be wrong without adjustment. Taking some inspiration from the <a href="http://ctan.org/pkg/curve">CurVe</a> class, and using the abilities of <a href="http://ctan.org/pkg/titlesec">titlesec</a> and <a href="http://ctan.org/pkg/xcolor">xcolor</a>, the output can be customised to give something much more pleasing for a CV. I use</p>
<pre>% Create some nice looking section dividers without too much fuss
\titleformat\section{\Large\bfseries\sffamily}{}{0 em}
  {%
    % This is put in _before_ the text so that an overlap is possible
    \begingroup
      \color{gray!30}%
      \titleline{\leaders\hrule height 0.6 em\hfill\kern 0 pt\relax}%
    \endgroup
    \nobreak
    \vspace{-1.2 em}%
    \nobreak
  }</pre>
<p>which inserts a grey bar across the page, and places the name of the section (with no number) partially overlapping the bar.</p>
<p>For subsections, I go for a much lower visual impact</p>
<pre>\titleformat{\subsection}{\large\itshape}{}{0 em}{}</pre>
<p>which is enough to make them stand out from the body text, but keeps things flowing.</p>
<h2>The main body: lots of tables</h2>
<p>The normal layout for the body of a CV is to use something based on a table, with ‘entries’ on the left and ‘information’ on the right. This can be done in lots of ways, but the approach I take is to set up a fixed column width in the preamble, then apply this to all of the CV. That requires a bit of set up</p>
<pre>% Semi-automatically set up the table width
\newlength\sidewidth
\newlength\mainwidth
\AtBeginDocument{%
  \settowidth\sidewidth{\textbf{Professional bodies}\hspace{0.75 em}}%
  \setlength\mainwidth{\dimexpr\linewidth - \sidewidth\relax}%
}</pre>
<p>Here, I&#8217;m setting two lengths to control the tables, with the only hard-coded part being the text I use to set the left-hand side width. I use the longest entry I&#8217;m going to use: in my case this is ‘Professional bodies’.</p>
<p>I then need the tables themselves. As they are all the same, it makes sense to set them up as a new kind of environment</p>
<pre>\newenvironment{CVtable}
  {%
    \begin{tabular}
      {@{}&gt;{\bfseries}p{\sidewidth}@{}&gt;{\RaggedRight}p{\mainwidth}@{}}%
  }
  {\end{tabular}}</pre>
<p>(this uses the <a href="http://ctan.org/pkg/array">array</a> package). I also <code>\renewcommand*\arraystretch{1.4}</code>, as this spreads the tables out a bit and I think makes things look less crowded.</p>
<p>The new environment is then used for each (sub)section, and contains the body of the CV, for example</p>
<pre>\section{Employment history}

\subsection{Current position}

\begin{CVtable}
  2008-- &amp;
    \headline{PDRA -- University of East Anglia} \par
    Supervisor Prof.~C.~J.~Pickett \par
    Studies on [Fe]- and [FeFe]-hydrogenase active sites mimics \par
    Synthesis of novel ligands and model compounds \par
    Mechanistic studies using stopped-flow UV and IR spectroscopies
  \\
\end{CVtable}

\subsection{Previous positions}

\begin{CVtable}
  2007--2008 &amp;
    \headline{Senior Demonstrator -- University of East Anglia} \par
    Teaching degree level chemistry:
    tutorials and laboratory classes \par
    Preparation of M.~Chem.~third year practical course in
    organic chemistry
  \\

  2005--2008 &amp;
    \headline{PDRA -- University of East Anglia} \par
    Supervisor Prof.~M.~Bochmann \par
    Use of zirconium phosphonates as heterogeneous catalyst supports \par
    Synthesis of novel ligand systems for early transition metals
  \\

  2003--2004 &amp;
    \headline{PDRA -- University of Southampton} \par
    Supervisor Dr A.\,A.~Danopoulos \par
    Synthesis of novel N-heterocyclic carbene complexes \par
    Catalytic testing on novel systems
  \\
\end{CVtable}</pre>
<p>You&#8217;ll notice the <code>\headline</code> macro here: it&#8217;s another formatting shortcut. It&#8217;s for making effectively subsubsections within my CV table, and is defined as</p>
<pre>\newcommand*\headline[1]{%
  \hbox{%
    \llap{\ding{72}\hspace*{0.2 em}}%
    \textbf{#1}%
  }%
}</pre>
<p>making use of the <a href="http://ctan.org/pkg/pifont">pifont</a> package to provide a nice-looking star for each entry. You&#8217;ll see in the above example that I use it for things like marking up each job I&#8217;ve had in the table of employment history.</p>
<h2>Other refinements</h2>
<p>As I mentioned in <a title="Writing a curriculum vitae in LaTeX: Part 1" href="http://www.texdev.net/2011/11/05/writing-a-curriculum-vitae-in-latex-part-1/">part 1</a>, one of the advantages of using LaTeX is that you can store information in your CV as comments. That might be as simple as commenting-out lines that you want to miss out for a particular job, but you might also want to deal with longer optional sections. The <a href="http://ctan.org/pkg/comment">comment</a> package is ideal for this, as it lets you mark up sections for inclusion or exclusion in a pretty rapid way.</p>
<p>I mentioned earlier that I set the <code>draft</code> option for my CV, then override it on a package-by-package basis. The reason is that this will always include bars for overfull boxes: useful as you want to check for these.</p>
<p>In the academic area, a list of publications is an important part of a CV (it&#8217;s probably <em>the</em> most important part, actually). I&#8217;ve got a few things to say about that area, but this post is already long enough, so it will wait for the next part!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.texdev.net/2011/11/06/writing-a-curriculum-vitae-in-latex-part-2/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Writing a curriculum vitae in LaTeX: Part 1</title>
		<link>http://www.texdev.net/2011/11/05/writing-a-curriculum-vitae-in-latex-part-1/</link>
		<comments>http://www.texdev.net/2011/11/05/writing-a-curriculum-vitae-in-latex-part-1/#comments</comments>
		<pubDate>Sat, 05 Nov 2011 22:40:53 +0000</pubDate>
		<dc:creator>Joseph Wright</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[curriculum vitae]]></category>
		<category><![CDATA[résumé]]></category>

		<guid isPermaLink="false">http://www.texdev.net/?p=1131</guid>
		<description><![CDATA[Writing a curriculum vitae (what Americans would call a résumé) is something that most of us have to do when applying for jobs. LaTeX users will naturally want to do this using LaTeX. Beyond the technical detail, there&#8217;s also the question of the wider requirements for a CV: while these are not LaTeX-related, they do [...]]]></description>
			<content:encoded><![CDATA[<p>Writing a <em>curriculum vitae</em> (what Americans would call a <em>résumé</em>) is something that most of us have to do when applying for jobs. LaTeX users will naturally want to do this using LaTeX. Beyond the technical detail, there&#8217;s also the question of the wider requirements for a CV: while these are not LaTeX-related, they do form an important part of the process. So here I&#8217;d like to look first at the big picture, and then at some of the LaTeX approaches available.</p>
<h2>What is a CV?</h2>
<p>Before we look at writing a CV, it&#8217;s important to be clear on what its for. Broadly, a CV is a condensed and (hopefully) easy-to-read summary of your qualifications and job experience. Most people want their CV to look good, but it&#8217;s important to remember that most employers have a tick list of items to find, and the look is probably of marginal importance in most cases. Of course, LaTeX users will still want to take the time to get a great visual result. (If you are applying for a job with a heavy dependence on visual design, then appearance may be the key!)</p>
<p>The other thing to bear in mind is that the requirements for a CV are dependent on the country and subject area you are in. Here in the UK, the normal advice is that a CV should only be two pages long. For academic jobs (like mine), a list of publications will often make the CV longer, while for industrial positions statements about your abilities, non-work activities and so forth are common. There&#8217;s also a strong feeling <em>against</em> having a photograph, both here in the UK and in the US, for equal opportunities reasons. On the other hand, several other countries have very different conventions, so before you start it&#8217;s important to check on what is needed.</p>
<p>Each job you apply for is different, and that means each CV you send of should be targeted to that job if possible. So while the basic structure will vary slowly, you should consider what to emphasise in each application. That&#8217;s an area where LaTeX&#8217;s ability to comment out lines can be a real bonus.</p>
<h2>Classes</h2>
<p>As a CV is a specialist type of document, it&#8217;s no surprise that <a title="TUGBoat  Vol 32, No. 2: Highlights" href="http://www.ctan.org/">CTAN</a> features a number of dedicated classes. I&#8217;m seen a few questions recently about <a href="http://ctan.org/pkg/moderncv">moderncv</a>, while in the past I used <a href="http://ctan.org/pkg/curve">CurVe</a>. In these and other cases, the idea is to use a mix of standard mark up and specialist macros to construct the output. In most cases, there is some form of tabular-like appearance generated along with the necessary headings and so on.</p>
<p>There are advantages and disadvantages to using one of these classes. Most obviously, someone else provides both the mechanisms you need and (hopefully) a good example to start from. The problem tends to be that altering the layout can be a bit awkward. As I said, while CV appearance may not actually be vital, most of us want to make our CV ‘personal’, which means altering the appearance.</p>
<h2>Roll-your-own</h2>
<p>The alternative to using a pre-built class is to construct your CV yourself, setting up a structure that makes sense to you. Now, there is a bit of effort needed to do this, but it does allow you to decide on exactly how things will look. For my <a href="http://www.texdev.net/wp-content/uploads/2011/11/cv.pdf">own CV</a>, I used to use CurVe, but in the end decided this was actually making my life more, not less, complex. So the <a href="http://www.texdev.net/wp-content/uploads/2011/11/cv.zip">current source</a> is based on the standard article, using some custom macros.</p>
<p>Most of what I&#8217;ve done in my CV is pretty simple, but it&#8217;s always nice to have documented examples. That would probably make this post a little too long, so I&#8217;ll return to look at the detail in my next post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.texdev.net/2011/11/05/writing-a-curriculum-vitae-in-latex-part-1/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>TeXprinter 2</title>
		<link>http://www.texdev.net/2011/10/31/texprinter-2/</link>
		<comments>http://www.texdev.net/2011/10/31/texprinter-2/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 19:48:38 +0000</pubDate>
		<dc:creator>Joseph Wright</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[tex.sx]]></category>

		<guid isPermaLink="false">http://www.texdev.net/?p=1128</guid>
		<description><![CDATA[Paulo Cereda has updated his excellent TeXprinter application to version 2, and even posted a demonstration video. For those of you who&#8217;ve missed it, TeXprinter takes the information available on the TeX.sx Q&#38;A site and turns it into a  PDF or LaTeX source for printing. It&#8217;s therefore a great way to get something more permanent [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://tex.stackexchange.com/users/3094/paulo-cereda">Paulo Cereda</a> has updated his excellent <a href="http://texprinter.sourceforge.net/">TeXprinter</a> application to version 2, and even posted a <a href="http://vimeo.com/31378263">demonstration video</a>. For those of you who&#8217;ve missed it, TeXprinter takes the information available on the <a title="Unicode math versus document styling" href="http://tex.stackexchange.com/">TeX.sx</a> Q&amp;A site and turns it into a  PDF or LaTeX source for printing. It&#8217;s therefore a great way to get something more permanent than a webpage, and in a variety of formats. I guess the next phase is to take multiple questions and automatically build an entire book of frequently asked (La)TeX questions!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.texdev.net/2011/10/31/texprinter-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>TeX Live in Linux distributions</title>
		<link>http://www.texdev.net/2011/10/29/tex-live-in-linux-distributions/</link>
		<comments>http://www.texdev.net/2011/10/29/tex-live-in-linux-distributions/#comments</comments>
		<pubDate>Sat, 29 Oct 2011 13:36:21 +0000</pubDate>
		<dc:creator>Joseph Wright</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[TeX Live]]></category>

		<guid isPermaLink="false">http://www.texdev.net/?p=1123</guid>
		<description><![CDATA[A subject which comes up quite a bit is the age of TeX Live systems shipped with common Linux distributions. While the current ‘vanilla’ release is TeX Live 2011, many Linux distributions use TeX Live 2009, or even TeX Live 2007. This leaves many people wondering why. Now, I&#8217;m no expert in this area, but [...]]]></description>
			<content:encoded><![CDATA[<p>A subject which comes up quite a bit is the age of TeX Live systems shipped with common Linux distributions. While the current ‘vanilla’ release is <a href="http://tug.org/texlive">TeX Live 2011</a>, many Linux distributions use TeX Live 2009, or even TeX Live 2007. This leaves many people wondering why. Now, I&#8217;m no expert in this area, but reading the various mailing lists gives me some ideas about the ‘time lag’. Some of this is technical, and some is more conceptual.</p>
<p>The first thing to say is that for many Linux users with a personal system, where they can install vanilla TeX Live each year directly from <a href="http://tug.org/">TUG</a>, it&#8217;s probably easiest to simply not worry about this entire area and simply install TeX Live themselves. However, a lot of Linux systems are either multi-user or server set ups, and it&#8217;s there that a lot of the following is more important.</p>
<p>The technical reason for the delay seems to be the way binaries are ‘linked’ to standard support libraries. To understand this, you first need to know that most programs use third-party code for standard tasks. So for example pdfTeX uses libraries for both <code>.png</code> and PDF support. In the vanilla TeX Live system (on Linux and other systems) these links are ‘static’, and the appropriate support material is supplied as part of the entire bundle. However, Linux distributions link ‘dynamically’. The advantage of the latter approach is that you only have one version of each library installed, and it is easy to update (for example for security fixes).  So re-bundling TeX Live for Linux means building the binaries using dynamic linking. That of course means doing some work, and this is not trivial.</p>
<p>Size is the second stumbling block. TeX Live is big, as it includes a lot of (La)TeX packages and more importantly all of the documentation, mainly in PDF format. On a modern system, the hit in terms of hard disk space is not usually an issue, but at the same time there&#8217;s pressure in the Linux world to keep systems small and only install what is needed. So there is work to do in dividing TeX Live up into the constituent parts, a task that seems pretty difficult to me.</p>
<p>Finally, there is a conceptual point. TeX Live is not a single ‘product’, but is instead a bundle of different items from hundreds of different contributors. So while there is an overall TeX Live version, this does not reflect the status of each constituent part. The Linux packaging approach works best when each package has a small development team and a single version. It&#8217;s not really so well adapted to the much more diffuse status of items in TeX Live. So you often see discussions about stability, that probably make sense for a single software package but fits much less well for TeX systems.</p>
<p>As I said above, for single-user systems where the user can update TeX Live each year it&#8217;s probably easiest to simply bypass all of this. It&#8217;s also worth noting that having TeX Live available is a lot better than the alternative.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.texdev.net/2011/10/29/tex-live-in-linux-distributions/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Unicode math versus document styling</title>
		<link>http://www.texdev.net/2011/10/12/unicode-math-versus-document-styling/</link>
		<comments>http://www.texdev.net/2011/10/12/unicode-math-versus-document-styling/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 20:33:21 +0000</pubDate>
		<dc:creator>Joseph Wright</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[math mode]]></category>
		<category><![CDATA[Unicode]]></category>

		<guid isPermaLink="false">http://www.texdev.net/?p=1118</guid>
		<description><![CDATA[There is a lot of work going on to develop methods for directly including mathematical meaning in documents. Projects such as STIX, XITS and Latin Modern Math are intended to provide a range of glyphs for mathematical use while retaining meaning by using the appropriate Unicode code point. Undoubtedly, this is a great idea for [...]]]></description>
			<content:encoded><![CDATA[<p>There is a lot of work going on to develop methods for directly including mathematical meaning in documents. Projects such as <a href="http://www.stixfonts.org/">STIX</a>, <a href="https://github.com/khaledhosny/xits-math">XITS</a> and <a href="http://www.gust.org.pl/projects/e-foundry/lm-math">Latin Modern Math</a> are intended to provide a range of glyphs for mathematical use while retaining meaning by using the appropriate Unicode code point. Undoubtedly, this is a great idea for reusing information. However, there is always a pay-off, and in this case it is some awkwardness with document styling.</p>
<p>In a standard TeX math font, attributes such as bold or sans-serif can be switched on pretty easily, and also apply on an ‘ongoing’ basis. I make use of this in <a href="http://ctan.org/pkg/siunitx">siunitx</a> to allow ‘detection’ of the local font conditions. Life is much more complex with Unicode maths fonts. Instead of something like bold being a casual attribute of a symbol, it&#8217;s intrinsic to the symbol. So you can&#8217;t simply switch from on bold, or sans-serif, or anything else.</p>
<p>For serious mathematicians, that probably makes good sense: they make a wide and complex use of the appearance of symbols to convey meaning. On the other hand, it&#8217;s a bit awkward if you have a caption which is set in bold and want your simple piece of mathematics to match. I&#8217;m still thinking about the best way to handle this: suggestions are welcome!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.texdev.net/2011/10/12/unicode-math-versus-document-styling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

