# latex

I used to also use BibTex for referencing when I worked on Latex but now I find that Biblatex is a better option, its interface is easier and more flexible. Moreover, it has a better language localization than BibTex. I hope this helps you.

## Using TeXstudio for Creating LaTeX Documents

TeXstudio is an integrated writing environment for creating LaTeX documents. TeXstudio has numerous features like syntax-highlighting, integrated viewer, reference checking and various assistants. By using TeXstudio writing LaTeX is very easy and comfortable. Most of the LaTeX commands can be easily added to the documents by using the menu-bars or buttons of the TeXstudio. Therefore, by using TeXstudio, there is no need to remember all LaTeX commands and one can completely focus on writing.

## Use latexdiff utility with "flatten" flag to see differences between two latex based documents

In order to see differences between two latex generated documents, one can use a program called latexdiff: https://www.sharelatex.com/blog/2013/02/16/using-latexdiff-for-marking-c...

latexdiff is a Perl script and requires an installation of Perl 5.8 or higher.

If you are a Windows user, you will have to go through the following setup to get latexdiff working on your machine:

1) Install Perl
3) Unzip the latexdiff files and copy them to the Perl > bin folder (default installation in C: drive)

Mac OS X includes an installation of Perl and no additional setup is required. latexdiff can be found in any CTAN repository in TeX Live Utility.

It is important to use --flatten which makes latexdiff recursively operate on any included .tex files. Then use command line like that:
latexdiff --flatten v1.tex v2.tex > diff.tex

where v1.tex is one version (older) and v2.tex is changed (newer) version. diff.tex is then a tex file that is produces as an output.

## Use balance package to trim two columns to the same length in latex

To reformat the two columns to be the same length you can use a package called Balance it is imported at the beginning of the latex file where all other packages are imported to. To import the package you have to write “\usepackage{balance}”. At the end of the document where you want the two columns to be the same length you insert “\balance”. This automatically formats the document every time it is created.