How to make the PDFs produced by `pdflatex` smaller

One of the major issues faced with documents using Latex is the size of the document. The best method to reduce the size of the document or pdf is to use ghost script.
Ghostscript (gs) is installed by most Linux distributions and easily available for other platforms (Windows/ GNU/Linux / Mac).

Issue the below command to generate a smaller size pdf.

 gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf

Lots of options are available and you can change that according to your need.Change the input.pdf with your file name.

Latex IEEE tunefonts error

After installing the IEEEtrans i started to make my document and encountered with IEEEtunefonts error.During compiling the error message appeared like this…

or you may get the following error also

IEEEtran.cls:366:Font OT1/ppl/m/n/10=pplr7t at 10.0pt not loadable: Metric (TFM) file not found.

then install the font package on ubuntu using the command:

sudo apt-get install texlive-fonts-recommended

This fixed the issue for me ­čÖé

Get IEEE class in Latex

You must need latex preinstalied in your system to do this …if you dont have latex use this command

sudo apt-get install texmaker

Texmaker is latex ide while installing ide it also installs the sufficient packages…

Next how to install IEEE templates in latex so as to get IEEE class…

Download the template from http://www.ieee.org/conferences_events/conferences/publishing/templates.html select the unix packages

Extract this file in a folder IEEEtran.

create a subdirectory “bibtex” in that folder

Download the bibtex file “IEEEtranBST1.tar.gz” from the same┬á┬ásite to this directory and extract

Move IEEEtran directory to /usr/share/texmf-texlive/tex/latex/ if you are in same folder you can use this command

sudo  mv  IEEEtran  /usr/share/texmf-texlive/tex/latex/

run this command next

sudo texhash

you can see your templates get added to the Latex

Now you can start your latex document like this

\documentclass{IEEEtran}