Latex tricks, once again… Macros

I’m currently using some macros to help writing the Dissertation, here’s a few that are simple and useful: %My own command Macros (PedroLopes) renewcommand{quote}[1]{textquotedblleft{}#1textquotedblright{}} This one allows you to define a closed style for quotes. newcommand{cite2}[1]{[citeNP{#1}]} This forces the cite command to use [1] style for references instead of (1) that the book template uses. […]

Latex note#7 color that thing!

About Latex colors, I’m currently using the xcolor package, which is beatifully documented here. a) You can load it with more than just the base colors, an example: usepackage[svgnames]{xcolor} this svgnames/svgnames* loads a set of 151 rgb color names according to the SVG1.1 specification b) If you want to add it to a table, just alter […]

Latex note#6 use the force of Macros!

Latex is a time-saving tool due to many reasons (my favourite is: consistent formatting and auto-bibliography) but one of the famous latex-tricks is Macro definition.  Like it’s obvious macros are commands that encapsulate some information/commands/text/whatever, that we’ll be replaced automaticly before compilation. A quick example that i use: newcommand{cx}{centeringCross} this new command allows me to […]

Latex note#5 cautious hyphenation…

You you are tyred of latex au-to-ma-tic hy-phe-na-tion for some reason, then there are some easy tricks: Hardcore hack: supress all hyphenation for a target font use hyphencharfont=-1 although, I don’t recommend supressing it all. It will probably produce a horrible document. Medium trick: Supress hyphenation on a series of words use hyphenation{word list} and it […]

Latex note#4 table formatting!

If you’re in need for really hardcore table formating, here’s one of the best guides (pdf). The general stuff is failry easy and its been covered in the tutorial I’ve posted previously (of Andrew Robert’s page), but if you need: rotating tables (use graphicx package) placing footnotes in a table (beware! because footnote does not […]

Latex note#3 managing citations…v2

Tired of editing bibtex files with a half-thousand lines? I suggest you use a bibtex manager: such as JabRef. A feature list includes: Advanced BibTeX editor Detailed editing of BibTeX entries. Search functions Search a pattern in the whole bibliography. Classification of entries You can group entries explicitly, by keywords or any other fields. Import of various […]

Latex note#2 managing citations…

Tex is really powerful as far as managing a bibliographic citation database – using the bibtex format. A nice tutorial is hosted here. The really weird part – multi-pass compiling your document with references. To fully compile and cross-link references on must repeat some commands, in order to obtain several auxiliary files that will compile […]

Setting up Latex (for windows..)

Just a small post, usefull for those starting up in Articles or Thesis in Latex: a) choose a easy editor (I’ll say: LEd, recommeded to me by prof.  Alfredo Ferreira) b) choose a all-in-one Tex converter (I’ll recommend: MixTex, that has DVI->PDF, etc…) The true advantages of LEd are 1 – document preview and navigation […]