Category Archives: LaTeX

Insert source code with syntax highlighting in LaTeX

Use the Listings package to insert source code in LaTeX. Continue reading

Posted in LaTeX | Tagged , , , , | Leave a comment

How to set the margins of a page in LaTeX

Set the LaTeX page margin using geometry package. Using package geometry, you can set the top, bottom, left and right margin size. Continue reading

Posted in LaTeX | Tagged , , , , , | Leave a comment

How to insert very large image/figure in LaTeX

Stretch the large image to fit. How to use the \textwidth command to fit the image automatically in text by percentage. Continue reading

Posted in LaTeX | Tagged , , | 2 Comments

How to create annotation for table of contents in LaTeX

A simple way to add description/annotation of a section in table of contents in LaTeX. Continue reading

Posted in LaTeX | Tagged , , , | Leave a comment

How to create a matrix in LaTeX

We can create a matrix in LaTeX using the array environment, or simplematrix, matrix, pmatrix, bmatrix, vmatrix, and Vmatrix environments via amsmath package. This article provides some examples on how to create a matrix in LaTeX. Continue reading

Posted in LaTeX | Tagged , , , , , , , , , , , | 4 Comments