Showing posts with label table. Show all posts
Showing posts with label table. Show all posts

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/

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

Saturday, March 1, 2014

Making list / glossary of acronyms and abbreviations

The easiest way to write abbreviations is to make use of the acronym package, see
http://latexbestpractice.blogspot.pt/2013/08/writing-acronyms-and-abbreviations-in.html

To define the glossary (list of abbreviations), I define acronyms using
\acro{short}[short-to-appear]{full-definition} command. Then referring the abbreviations with \ac command. Note \acf, is for full description, even if it's not the first occurrence, and \acs for plural form.

\usepackage{acronym}

...

\subsection*{Abbreviations}
\begin{acronym}
    \acro{mse}[MSE]{Mean Squared Error}
    \acro{mmse}[MMSE]{Minimum Mean Squared Error}
    \acro{}[ODE]{Ordinary Differential Equation}
\end{acronym}

...
\ac{ode} ...
\ac{mse} ....
\acf{ode}

Monday, February 17, 2014

How to prevent figures and tables from floating

Many times I received messages like
 
  LaTeX Warning: `!h' float specifier changed to `!ht'.

resulting my figures / tables appearing on the top of the page, however I wanted to place the figure _exactly_ where at that position.
TThe solution I found here is to use the package float
 
\usepackage{float}
...
\begin{figure}[H]
...
\end{figure}

Thursday, April 12, 2012

How to place figures / images inside a table

Figures and images can be placed within tables, but even into other environments, or without environment. A good description is available here:

http://texblog.org/2008/02/04/placing-graphicsimages-inside-a-table/

Thank you J. !