Skip to main content

Posts

Showing posts with the label latex tutorial

Writing basic math in LaTeX - inline math and math environment

Internet abounds with LaTex tutorials on how to write mathematics equations and simple symbols in LaTeX. It is sometimes not clear as to how the math environment works in general and how to differntiate between inline math equations and how to write them on a line of their own. I earlier did a tutorial on how to write mathematical equations using Latex  which covered the "equation" environment in LaTeX. Math environment is equally important and in this tutorial I am going to talk about how to use basic math environment in LaTeX. Specifically, I am going to discuss how to do the following in LaTeX: How to initiate Math environment Writing inline math equations and writing equations in a separate line How to use frac for equations How to use paranthesis and brackets to enclose mathematical symbols and equations How to type powers and indices How to write matrices Following video illustrates the step by step instructions to use math in LaTeX   The code used in...

LaTeX Tutorial: How to use Lists in Latex - itemize, enumerate, description, and inparaenum

LaTeX is a great tool for typesetting and it is more powerful than MS-Word. It has a steep learning curve and that is why I believe these video tutorials will help you guys. Today, I am going to talk about lists in LaTeX. LaTeX can produce both bulleted lists or unordered lists, and numbered lists or ordered lists. We will also see how to use lists with descriptions given to each list item. Specifically, we are going to have an introduction of following topics in LaTex: Lists in LaTeX: Itemize, enumerate, inparalist, and description Itemized list in LaTeX for bullets enumerated list in LaTeX for numbered lists inparalist in LaTeX for lists wrapped around text description lists in LaTeX for lists with description for each item Nested lists in LaTeX Using styles for numbering lists (roman, in parenthesis etc.) Use of paralist LaTeX package Here is the video for this tutorial: If you have a question or comment please do not hesitate to leave a comment. I wil...

How to write an algorithm in Latex : Video Tutorial with sample algorithm

People in Computer Science and Mathematics department often write algorithms for their papers, thesis, and other research articles. In this tutorial I will explain how to write an algorithm in Latex using the algorithm and algorithmic package in Latex . I will explain the basics of an article and show how simple building blocks can be added to Latex to write a full fledged professional quality algorithm. Specifically, we will learn the following in this tutorial: How to write an algorithm in Latex Use of algorithm and algorithmic package How to use loops in an algorithm How to use IF statements in an algorithm How to add caption to an algorithm How to label an algorithm to refer it in the document The code for this algorithm is shown below and explained in the video.  Here is the code used in this video: \documentclass{article} \usepackage{algorithm} \usepackage{algorithmic} \begin{document} \begin{algorithm} \textbf{INPUT:} Set of Base Layer polyg...

How to draw Reddit Alien in LaTeX using Tikz - Video tutorial and code

If you are not a Redditor you are a lucky person. It's a one way traffic scenario with no dead end. Once you subscribe to Reddit there is no way back and it is no good being there. I am expecting my colleagues to have an intervention for my Reddit addiction soon but till then I am all here to invest (read:waste) my precious time. Since we got that out of our way, let us get back to business. Today, we are going to see how to draw a cartoon figure using LaTeX. The motivation behind this post is /r/latex on Reddit as I wanted that subreddit to have its logo drawn in LaTeX. I did not know it already was in LaTeX but it seems my work is appreciated there so I am going to contribute my 2 cents to the community. Specifically, we will learn following things in this tutorial: How to work with Colors - defining RGB colors in LaTeX. How to use multiple layers to set order of document objects (send to back, bring forward like functionality). How to use Arcs in an effective way....

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 prett...

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: How to create a flow chart How to setup styles for reusable components of an image How to draw arrows from one component to other How to change the styles of components How to change the arrowhead for Latex arrows 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...

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: How to draw a rectangle in Latex using TikZ How to draw a ellipse in Latex using TikZ How to draw a circle in Latex using TikZ How to draw an arc in Latex using TikZ How to fill the shapes with colors 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)...

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: How to make text Bold  How to make text Italicized How to use subscript in text How to use superscript in text 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: What is a bibtex database How to create a bibtex database How to add an external database in your paper How to add style to your bibtex database How to assign citation keys to your bibtex database entries. 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...

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: How to write Title of the paper How to write Author names How to write Author Address How to write Author Affiliation How to write Author Emails How to write Abstract How to write the introduction and other sections 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 ...

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.