New answers tagged

2

Some values are accessible in TeX, e.g.: \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{color} \setlength{\fboxsep}{0pt} \setlength{\fboxrule}{.3pt} \setcounter{secnumdepth}{0} \begin{document} \subsection{Bounding box} \begin{quote} \color{red} \Huge \def\test#1{\fbox{\color{blue}#1}} \test{\`A} ...


5

Don't use \color unless you specifically need it (which should be rare); use \textcolor, instead. \documentclass{scrartcl} \usepackage{tabulary} \usepackage{xcolor} \begin{document} \begin{tabulary}{.5\textwidth}{|L|L|R|} \hline foo & \rule{1cm}{1ex} & bar \\ \hline foo & \rule{1cm}{1ex} bar & baz \\ \hline foo & bar ...


2

A workaound: add >{\mbox{}} (or >{\leavevmode} in the preamnle of the table for the relevant columns: \documentclass{scrartcl} \usepackage{tabulary} \usepackage{xcolor} \begin{document} \begin{tabulary}{.5\textwidth}{|L|L|R|} \hline% foo & \rule{1cm}{1ex} & bar ...


1

The general solution I needed was a combination of both baseline and the wonderful key use as bounding box: consider this :) \documentclass[a4paper, 12pt]{report} \usepackage{tikz} \tikzset{x=1pt, y=1pt, z=1pt} \begin{document} \def\myfig{\begin{tikzpicture}[baseline=(base)] % choose baseline % box dimensions \path[draw, use as bounding box] ...



Top 50 recent answers are included