Installing LaTeX Packages in Local or Home Directory

A package is a file or collection of files, which provide add-on features for . Most of installations come with pre-installated packages, which are sufficient for catering the majority of our requirements. packages are stored under texmf tree, i.e., in subdirectories of texmf/tex/latex named after each package. CTAN has more […]

Subfigures in LaTeX

In documents we refer to figures by using “label” and “\ref” commands. If a figure is comprised of many subfigures, declare label to each subfigure and then we can refer to the subfigure labels. The main figure is referred using the label defined outside the subfigure environment. In the following […]

Handling graphic files from a common directory in LaTeX

I always prefer to place all graphic files under a common directory, for example GraphicsDir, because it is the easy way to manage graphic files at one location and can be reused in multiple reports. But in latex documents we use includegraphics command to include images in the document. The […]

User control sequences in LaTex

Frequently used expressions in Latex can be reproduced with little effort by user control sequences. They are defined using newcommand and the syntax is, \newcommand{name}[num]{definition} {name} : Name of the command you want to create [num] : optional argument that specifies the number of argument that the newcommand accepts. Maximum […]

Bibliography for LaTex documents

References versus Bibliography References contain a complete list of all the sources (books, journal articles, websites, etc.) that you have cited directly in a document. That means that if there are in-text citations for a source there is a reference list entry, and vice versa. Bibliography, on the other hand, […]

Tikz for Circuits -1 : Passives

Circuitikz provides a set of macros to type­set­ting elec­tronic net­works. It is based on pgf and TikZ packages. Here is the syntax for basic circuits to typeset using circuitikz in LaTeX tikzpicture environment . Ideal sources 1 2 3 4 5 6 7 8 9 \begin{tikzpicture} %——–start graphics code ——– […]

Getting started with TikZ 1

TikZ is a package used for programmatic creation of graphics in LaTex[ more info… ]. Points and paths are the basic elements used to draw pictures in TikZ. Points and Paths Path is drawn between two coordinates in a picture environment by specifying a “path extension operation”. The simplest path […]

Legend Settings in MatLab

This post describes how to handle expression and background color of legend box in MatLab figures. We can print LaTex expressions in legend box, by instructing the legend to interpret the following string as latex expression. Create the handle to legend box and set the interpreter option to latex as […]

Symbol classifier for LaTex

It is not impossible, but difficult to remember the syntax for all the symbols we use in latex documents. Even I find it painful to go through a cheat-sheet that contain the syntax for the symbols. I came across an online tool, where you can scribble online with mouse and […]