Tuesday, August 14, 2018

Coloring rows in tables

For a while I was looking for a solution on how effectively make colors in a table.
Here is a good description:

http://texblog.org/2011/04/19/highlight-table-rowscolumns-with-color/

Tuesday, March 20, 2018

Create tables made easy

This tools provides a great help when creating LaTeX tables from html, xls, etc formats and vice-versa. 

https://www.tablesgenerator.com/latex_tables

Sunday, October 29, 2017

Reference to equations

In my opinion, for equations the best is to use \eqref{}.

How to use reference to page number

For good or bad, I extensively use \autoref from the hyperref package. Mainly because it's simple.

Well there's a command named \autopageref{} which replaces \pageref{} and does exactly what I wanted. More info here.

Friday, October 20, 2017

How to reduce space between lines in a table

Sometimes (horizontal) space is jut too much in a LaTeX table.
In order to decrease it, it is actually possible to give negative values to addlinespce

\begin{tabular}{ll}
   Line1&some text\\
    \addlinespace[-0.3ex]
             Line1&some text\\
\end{tabular}

Original link:
https://tex.stackexchange.com/questions/268508/reduce-the-space-between-two-lines-in-a-latex-table

Friday, June 17, 2016

Tuesday, November 24, 2015

How to write nice equations in LaTeX beamer

The equations in the default beamer presentation slides are rather unattractive.
In my opinion this is merely because of the fonts used for equations.

You can change it by changing the font-theme for equations.

 \usefonttheme[onlymath]{serif}

 This will result equations like in the articles in your beamer presentation.

For further hints check out this post.

Monday, July 6, 2015

Tuesday, April 14, 2015

Horizontal distances in equations

I was wondering for a while how to set the horizontal distances inside the equations.
Well, here is a fairly goo description. See the original source here.


Wednesday, February 11, 2015

Ever wondered about how to set the font sizes you want? Here is a picture that explains all \small \tiny \scriptsize \large \huge etc sizes




See source and complete description here

Friday, January 16, 2015

Placing a figure here, I said right here!

 Sometimes the LaTeX engine decides not to insert the figure exactly where we want, and we want it right there. Well [h] or [h!] were the options I have tried so far, but they do not work well all the time, however if the figure is inserted with [H] option, the engine will not decide differently, even if next page or other things would ruin the layout, so I suggest to use
\begin{figure}[H]
...
\end{figure}
For more info you might check here.

Monday, December 15, 2014

Maple output to LaTeX

Maple can produce latex source using the ... wait for it ... latex( . ) command :-D




latex(expr, options)

latex(expr, filename, options)

See here for more details.
Works on Windows and Linux as well, no experience with OSX (yet).