Friday, December 30, 2011

LaTeX Video Tutorial: How to Create a Resume or CV (Curriculum Vitae) using LaTeX

One of the most frequent questions my colleagues ask me is how to create a Resume or Curriculum Vitae (CV), if you will, in LaTeX. I have a style file that was passed to me by a friend who found it on Internet. Since this looked good I used it and, thanks to the original contributor, I am going to share it with you all today. You will be able to download these files and create a professional Resume for yourself. 

The files can be download from the linked locations:

The Resume.tex file (main document)
The Class file res.cls (for page setting)

In the video tutorial, attached below, I have explained how to change the text for your needs. The structure of the Resume (or CV) is highly flexible and once you get hold of the basics it will be pretty straight forward for you to tweak it for your own use. 

I have tried to add the basic sections that are present in most of the Resumes but you will most probably add more depending on your requirements. I am pretty sure it will be easy for you to add or remove a particular section. 

Please leave a comment with a link to your Resume if you were able to use this template successfully. This will motivate me to work harder to bring you even cooler stuff. Moreover, please comment with requests if you want me to do a video tutorial of a specific topic.




Tuesday, December 27, 2011

Latex Tutorial: How to Create Images, Diagrams, and Flow Charts Using Latex

This tutorial is an extension of previous video tutorial on how to use tikz for image creation in Latex. In this video I explain how to set up your document for flow chat design. This equally applies to any other image that uses similar structure.

Specifically, in this video I talk about following things:
  1. How to create a flow chart
  2. How to setup styles for reusable components of an image
  3. How to draw arrows from one component to other
  4. How to change the styles of components
  5. How to change the arrowhead for Latex arrows
  6. How to align components left, right, top, and below of each other

The code use:d in the video is here:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes,shadows,arrows}
\begin{document}
\tikzstyle{decision} = [diamond, draw, fill=blue!50]
\tikzstyle{line} = [draw, -stealth, thick]
\tikzstyle{elli}=[draw, ellipse, fill=red!50,minimum height=8mm, text width=5em, text centered]
\tikzstyle{block} = [draw, rectangle, fill=blue!50, text width=8em, text centered, minimum height=15mm, node distance=10em]
\begin{tikzpicture}
\node [block] (start) {Start};
\node [block, left of=start, xshift=-5em] (process1) {Process 1};
\node [elli, above of=start, yshift=5em] (user) {user};
\node [block, right of=start, xshift=5em] (process2) {Process 2};
\node[decision, below of=start, yshift=-5em](decision1){Process 1?};
%arrows
\path [line] (user) -- (start);
\path [line] (start) -- (decision1);
\path [line] (decision1) -| node[yshift=0.5em, xshift=10em] {yes} (process1);
\path [line] (decision1) -| node[yshift=0.5em, xshift=-10em] {no} (process2);
\end{tikzpicture}
\end{document}
The image produced by this code is :

The explanation of this code is given in the tutorial as we develop this code:


Latex Tutorial: How to use Tikz to create images in Latex

Tikz is one of the most widely used packages for image creation in Latex. It has so much that there is absolutely nothing that you can't draw with latex and can with some other tool. In this tutorial we explain the basics of Tikz. We go over the basic shapes, how to draw them, how to understand the co-ordinates, and positioning of the components of an image. 

Specifically, this tutorial demonstrates:
  1. How to draw a rectangle in Latex using TikZ
  2. How to draw a ellipse in Latex using TikZ
  3. How to draw a circle in Latex using TikZ
  4. How to draw an arc in Latex using TikZ
  5. How to fill the shapes with colors
  6. How to change the line styles - solid, dashed etc.

The code for this experiment is here:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes, arrows, shadows}
\begin{document}
\begin{tikzpicture}
\draw[fill=blue] (2,3) ellipse (2 and 3);
\draw[fill=red, style=dashed] (2,3) circle (2);
\draw (0,0) rectangle (4,4);
\draw[fill=red!50] (1,2) -- +(40:4) arc(40:180:4) -- cycle;
\end{tikzpicture}
\end{document}
The video where I develop this code and explain everything is below. If you have a question or want me to demonstrate any particular feature in Latex just leave me a comment and I will address it.



Saturday, December 24, 2011

Latex tutorial on how to add formatting to text - boldface, italicized, superscript, and subscript

This tutorial explains how to add basic text formatting to a Latex document. It is a short succinct video explaining to the point with examples. The code and the video both are available here.

After watching this video you will be able to do the following tasks in Latex:
  1. How to make text Bold 
  2. How to make text Italicized
  3. How to use subscript in text
  4. How to use superscript in text
  5. A little of math mode using "$" symbol

Here is the video for this tutorial




The code used in this tutorial can be found below:
\documentclass[8pt,letterpaper]{article}
\begin{document}
\title{A sample \LaTeX{} article by 5 minutes of Latex}
\maketitle
\section{Introduction}
\huge This \normalsize is a \textbf{\textit{sample} introduction} section.\\
This is a \textit{second line} in the introduction.\\
This is a {\it third} line. $X_i$=$Y_{i^2}$
\section{Motivation}
This is an example of how to use a new section
\end{document}

How to cite references in Latex with explanation of a bibtex database and citation index

This is a tutorial that extends what we learnt in the previous tutorial on how to write IEEE style papers using Latex. In this tutorial we are going to talk about how to use citations in your paper. A paper is not complete without proper research and hence you need to cite those papers that add value to your own paper. Specifically, we are going to talk about:


  1. What is a bibtex database
  2. How to create a bibtex database
  3. How to add an external database in your paper
  4. How to add style to your bibtex database
  5. How to assign citation keys to your bibtex database entries.
  6. How to cite those references in your text





The code for this tutorial is given below. You need to create your own .bib file with the name ieetutorial.bib. Please leave a comment if you need help with that and I will post the file from tutorial:


\documentclass[conference]{IEEEtran}
\usepackage{cite}
\begin{document}
\title{Sample IEEE paper style using Latex by QuickLatex.blogspot.com}
\author{\IEEEauthorblockN{Author first, Author Second, and Suthor Third}
\IEEEauthorblockA{Department of Latex Typeset\\
Latex University\\
City - State - Zip \\
Email: latex@latex.lates}
}
\maketitle
\begin{abstract}
This is an abstract for a paper to show how to use latex for IEEE paper typeset.
\end{abstract}
\section{Introduction}
\label{sec:intro} 
Here is a modified text sample for intro section using latex. This is a citation \cite~{authoryear} This is how you refer a section in another section Section~\ref{sec:meth} ..... 
\section{Methodologies} 
\label{sec:meth} 
This is the other section that you can use. 
\bibilographystyle{IEEEtran}
\bibliography{ieetutorial}
 \end{document}

How to use Latex to write a conference paper with an example of IEEE style paper

In this tutorial we demonstrate how to write a paper using IEEE class. If you want  to write a paper/article using two column format this is the way to do it. This tutorial covers:


  1. How to write Title of the paper
  2. How to write Author names
  3. How to write Author Address
  4. How to write Author Affiliation
  5. How to write Author Emails
  6. How to write Abstract
  7. How to write the introduction and other sections
  8. How to refer one section in other sections.

Here is the video of the tutorial
 

The code that is used in this tutorial is here: 
\documentclass[conference]{IEEEtran}
\usepackage{cite}
\begin{document}
\title{Sample IEEE paper style using Latex by QuickLatex.blogspot.com}
\author{\IEEEauthorblockN{Author first, Author Second, and Suthor Third}
\IEEEauthorblockA{Department of Latex Typeset\\
Latex University\\
City - State - Zip \\
Email: latex@latex.lates}
}
\maketitle
\begin{abstract}
This is an abstract for a paper to show how to use latex for IEEE paper typeset.
\end{abstract}
\section{Introduction}
\label{sec:intro} 
Here is a modified text sample for intro section using latex. This is how you refer a section in another section Section~\ref{sec:meth} ..... 
\section{Methodologies} 
\label{sec:meth} 
This is the other section that you can use. 
 \end{document}
If you have a question please leave a comment and I will try to answer your question as soon as possible.

How to create a simple article in Latex - basic latex structure explained and a minimal document created

This is the first tutorial in the video tutorial series on how to learn Latex. In this tutorial I will show you how to create a very basic Latex document.

In order to get started you need to download Latex on your machine (Windows, Mac, Linux). You can download the right package for you from this page.

Here is the code from the tutorial. The video is attached with explanation. Hope this will come handy to you.


\documentclass[8pt,letterpaper]{article}
%\usepackage[left=12mm, top=0.5in, bottom=5in]{geometry}
\begin{document}
\title{A sample /Latex/ article by 5 minutes of Latex}
\maketitle
\section{Introduction}
This is a smaple introduction section.\\
This is a second line in the introduction.\\
This is a third line.
\section{Motivation}
\end{document}
The motivation behind this tutorial is to share the knowledge for the benefit of everyone who wants to start using Latex.