Showing posts with label Latex. Show all posts
Showing posts with label Latex. Show all posts

Friday, 5 April 2013

How to use Latex to prepare the academic CV?

In the post, I attached a academic resume template in Latex that I stolen from Web, and I am also keen to helping someone who just needs it.

Note that I also include some chinese characters in my CV, in case you modify it for your purpose, you should use XeLatex to compile or use Latex after removing the following lines:
%%% Chinese typesetting %%%%%%%%%%%
\usepackage{xeCJK}
\setCJKmainfont{STFangsong}
\XeTeXlinebreaklocale "zh" 
\XeTeXlinebreakskip = 0pt plus 1pt
Meanwhile the bibliography is managed using bibtex. I put all the publications in a single file (*.bib), and then I include them in tex file.

One snapshot of the CV can be viewed as follow:

Relevant files can be downloaded here: Tex,   Bib

Monday, 24 October 2011

How to generate PDFs with hyper reference by Latex?

When you use LaTex to write up a PDF file, you can use cross reference to make your document inherent. To make it even easier for reading, the package {hyperref} is a quite useful package to go. You can quickly jump to the right place where you do want to, no matter it is equation, figures, or just sections.

A quick example is as follows:

\documentclass{article}
\usepackage{amsmath}
\usepackage{hyperref}
\begin{document}
\begin{equation}\label{eq:test}
  a=b\end{equation}
\eqref{eq:test}
\end{document}

Monday, 12 September 2011

How to write the piecewise equation in latex?

When you are writing a paper, especially with a lot of mathematical equations, like piecewise equation, to know some ways to achieve this is quite a fun. To myself, I prefer using "cases environment" . Feel free to take place "\[ ... \]" by "\begin{equation}...\end{equation}"  

The cases environment

The cases environment[1] allows the writing of piecewise functions:
\[
 u(x) =
  \begin{cases}
   \exp{x} & \text{if } x \geq 0 \\
   1       & \text{if } x < 0
  \end{cases
}
\
]

u(x) = 
\begin{cases}
\exp{x} & \text{if } x \geq 0 \\
1       & \text{if } x < 0
\end{cases}

More information about editing advanced math in Latex can be referred here!

Thursday, 8 September 2011

IEEE style Bibliography in Latex can not display?

Recently I am writing an IEEE conference paper by Latex, unfortunately, I can not link to references even though I define everything correctly by \bibliography{bibs}. Usually, I only need to run "Bibtex" and "Latex" for couple of times, it will fix the link issue automatically. However, it does not work this time. 


Through searching on Internet, I found a solution from this blog
Just put \bibliographystyle{IEEEtran} under \documentclass line. Now it will display bibliography properly after recompiling.