Usando TeXstudio con SumatraPDF

SumatraPDF is my favourite pdf reader and TeXstudio is my favourite LaTeX editor. Here’s how to get them to work nicely together.
Go to Options/Configure TeXstudio and click on “Commands”. Beside Pdf Viewer, untick “Internal viewer” and add the following command:
"c:/Program Files/SumatraPDF/SumatraPDF.exe" -reuse-instance %.pdf
(If you have SumatraPDF stored somewhere other than the specified paths, you will need to edit this accordingly.)
Then you need to tell SumatraPDF how to jump to the correct line in TeXstudio. From within SumatraPDF, go to Settings/Options and set the inverse search command to
"C:\Program Files\TeXstudio\texstudio.exe" "%f" -line %l
Change the path to TeXstudio if necessary.
In order to go from the tex file to the corresponding location in the pdf, you can add a ForwardSearch command within TeXstudio. Select “User” from the main menu, then “User commands” and “Edit User commands”. Then add a command with the following definition:
dde://"C:/Program Files/SumatraPDF/SumatraPDF.exe":SUMATRA/control/
(That should all be on one line with no space before [ForwardSearch. Again, edit the path for SumatraPDF as necessary. Give the command a name such as “ForwardSearch” and click “OK”. Now you should be able to jump to the corresponding part of the pdf file using “Alt-Shift-F1” (or whatever key-combination is associated with your new command).
Being lazy, I prefer a simple function key. To map F2 to your new command, select “Options/Configure TeXstudio” and choose “Shortcuts”. Find your new command under the User menu, double click to the right of it and select “F2” from the drop-down box. Previously F2 was mapped to LaTeX, but I never use LaTeX directly, so losing this function is no problem.
Now you can double click on any part of the pdf from within SumatraPDF and it should take you to the corresponding place in your tex file in TeXstudio. And then F2 will take you back again.


Configurar diccionario en TeXmaker

Para configurar el corrector ortográfico en español, por cierto pueden utilizar los diccionarios de OpenOffice o LibreOffice, una vez que hayan descargado los diccionarios el proceso sería así:

  • Cambien la extensión del archivo a .7z .rar .zip o la que quieran siempre y cuando sea de un archivo comprimido.
  • Extraen el contenido de la carpeta, encontrarán un archivo con extensión .dic y otro con extensión .aff los dos deben de tener el mismo nombre. Estos los pueden mover a una carpeta aparte para estar mas organizados. Estos archivos se copian al directorio de TeXmaker
  • Luego abren Texmaker y van a Opciones > Configurar Texmaker > Editor, verán lo siguiente.
  • En la sección que dice diccionario ortográfico, seleccionan la carpeta que aparece a la derecha y buscan la ubicación en la que tienen los archivos .dic y .aff, seleccionan el .dic luego marcan la casilla de integrado para que la corrección sea en tiempo real, guardan las preferencias y listo.

Instalación de TeXstudio incluido el diccionario

Para llevar a cabo la instalación de TeXstudio
  1. Vaya al sitio oficial de TeXstudio y descargue el archivo TeXstudio correspondiente a su sistema operativo
  2. El archivo que se descargó ejecútelo y ya tendrá TeXstudio instalado en su sistema.
Por alguna razón que desconozco, TeXstudio no trae por defecto el diccionario ni tampoco el thesaurus del idioma español,  (para llevar a cabo la corrección ortográfica y sinónimos), pero nosotros podemos instalarlo y activarlo fácilmente.
  1. Los diccionarios que necesitamos los hallaremos en las extensiones de OpenOffice o LibreOffice, en mi caso, las obtuve del sitio de OpenOffice.El archivo que descargará tendrá extensión oxt
  2. Al archivo descargado cambie su extensión oxt por zip (en realidad es un archivo comprimido que nuestro sistema puede abrir fácilmente con cambiar la extensión) ahi se encuentran los archivos de diccionario que nos interesan, por ejemplo es_ES.dices_ES.aff y th_es_ES_v2.dat. Tampien se pueden descomprimir con 7zip. Copie los archivos (o muévalos) al directorio dictionaries de nuestra aplicación TeXstudio.
  3. Por último, tenemos que decirle a TeXstudio, en caso de que así lo deseemos, que tome el diccionario en español como diccionario por defecto.
  4. Para ello, abra TeXstudio y vaya a la configuración de preferencias generales, en la sección de diccionarios, de la aplicación como se muestra en las figuras siguientes:
  5. Así se verá nuestra configuración 
  6. Eso es todo, ya tenemos nuestro TeXstudio con soporte para corrector ortográfico de idioma español.


Putting a timeline for dates in moderncv

Here's a way of getting this to work with moderncv. I've defined a new macro, \funkycventry that takes the start and end year and then all the same arguments as cventry, and uses this to draw the timeline bar in the same colour and width as the section headers. If the end year is 0, the bar fades out, and no end year is printed.



        inner xsep=0pt,
        anchor=base west,
        inner xsep=0pt,
        anchor=north east,


    \fill [sectionrectanglecolor] (0,0) 
        node [startyear] {#1}
        rectangle (\endfraction*\hintscolumnwidth,0.5ex)
        node [endyear] {\pgfmathparse{ifthenelse(#2==0,,#2)}\pgfmathresult}
        (\hintscolumnwidth,0pt) ;
    \ifnum #2=0
        \shade [left color=sectionrectanglecolor]
        (\endfraction*\hintscolumnwidth-1em,0pt) rectangle ++(1em,0.5ex);

\funkycventry{2002}{2007}{Job title}{Employer}{City}{}{General description no longer than 1--2 lines.\newline{}%
Detailed achievements:%
\item Achievement 1;
\item Achievement 2, with sub-achievements:
\item Achievement 3.
\funkycventry{2000}{2011}{Job title}{Employer}{City}{}{Description line 1\newline{}Description line 2}
\funkycventry{2005}{0}{Job title}{Employer}{City}{}{Description}


For the record, I have adapted Jake's code and began working on a new package calledmoderntimeline:

% Set the scale.
% I go up to 2013 otherwise some late dates overflow on the entry
% Set the line width.
% This automatically sets the space under the top label to be 1pt more
% Set the labels text size
And then a few examples:
\subsection{IT Experience}
\tlcventry[blue]{2006}{0}{Systems Engineer}{\href{http://www.orness.com}{ORNESS} then \href{http://www.alten.fr}{Alten}}{Sophia Antipolis}{}
{Consultant at France T\'el\'ecom
 \item Administration of Cfengine, FAI and the software package repository;
 \item Renewal and industrialization of the software deployment system for Debian/Ubuntu;
 \item Management of the Gforge (collaborative development web interface) platform;
 \item Monitoring of the fleet of servers;
 \item Writing of technical documentation.
  {\href{http://www.croix-rouge.fr/}{French Red Cross}}{Paris Suburbs}{}
  {Served in several volunteer missions as a paramedic}
\tldatelabelcventry[red]{2004}{July 2004}{Blue Collar Internship}
  {Assembled and equilibrated turbo reactors for planes}
\tldatecventry[green]{2005}{Student in Pedagogy (`Gestion Mentale')}
  {Pedagogy, Didacticism, Cognitive Psychology}
Edit: Since moderncv aligns the left column to the right, there were weird things with dates, so I decided to put a white rectangle all over each entry to make sure the whole space was used. After that, my wife suggested I used a thin line to every entry to make things clearer, so now it looks like this (color and width of the thin line can be set):
Full examples can be seen in my updated CV.

Compiling documents online

Online compiler with storage and editor features:
Meanwhile inactive:
Online compiler with basic functionality:
Tiny equation compiler:
Latex Table generator:
Document frame generator:
The other way round:
  • DeTeXify outputs the corresponding LaTeX command code after you've drawn a symbol

Where do I place my own .sty or .cls files, to make them available to all my .tex files?

You could create a folder below your TeX home directory and put your .sty file therein. Use this command at the command prompt to find out where:
kpsewhich -var-value=TEXMFHOME
On my computer it shows
but it might also be ~/texmf/ on a Linux or Unix computer.
Following the TeX directory structure, you should place your file in a subdirectory like ~/texmf/tex/latex/commonstuff/, according to Arthur's comment below. This has the advantage that it is not necessary to update the package database as TeX searches your personal texmf tree directly. If there is an ls-R file in your home texmf tree you can safely delete it as TeX will not use it anyway. (Note: this assumes your personal tree is on a local file system: users with remotely-mounted home folders may still need to hash.)
Regarding MiKTeX, have a look at the section "Installing sty or cls files" in the answer to the question How can I manually install a package on MikTex (Windows).
You can then verify what file will be used with:
kpsewhich filename.sty
This will show the path to the file picked up by the TeX implementation.

There are two parts to telling TeX about a new .sty file. First, you have to put it in the 'right' place and second you need to update the database TeX uses to find files. The place to put the file depends on your operating system. Assuming you have a standard installation, this will probably be
  • Windows XP C:\Documents and Settings\\texmf\tex\latex\local\
  • Windows Vista/7 C:\Users\\texmf\tex\latex\local\
  • Linux ~/texmf/tex/latex/local/
  • Mac OS X /Users//Library/texmf/tex/latex/local/
A few of notes on that. First, on Windows the 'Users' part of the location is language dependent. Second, I've represented your home/user folder as '': this will obviously be dependent on your system. The folder I've indicated may well not exist: you may just have the texmf part, bits within that or nothing at all. The file location is important, and although you could just put your file inside texmf/tex/latex is is usual to keep things organised by package. The local folder is reserved for stuff installed on individual machines.
Letting TeX 'know' about the file means running a program that builds a database of file locations. There are graphical interfaces to do this, but the way that works on all operating systems is to use the Command Prompt/Terminal and type texhash. This will build the databases for your tree (the one that is in your home folder). Once the 'hash' is created TeX should be able to find your file. For recent TeXLive distributions, this step is not necessary for files in the local folder.