The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
2answers
1k views

Increasing the size of a minipage proportional to the contain

I am trying to create a simple environment. The enviroment contains a minipage that is surrounded but a dashed box. \NewEnviron{Notes}{ \par \begin{tikzpicture} \node[rectangle,minimum ...
5
votes
1answer
433 views

Table/tabular problem: vertical centering of long text + increase the row height

I already checked this post in this site: Vertical centering of text within a table What I am asking is quite similar to that question: I want all the cells to be vertically centered. This can be ...
11
votes
1answer
742 views

Correct delimiter height in TikZ

When using the left delimiter and right delimiter options, I am having the problem that their height is not equal to the node they are surrounding. Here is an example: \documentclass{article} ...
5
votes
1answer
581 views

How to put fixed-height shading around text (inline)?

I have a chunk of code in an alltt environment and I want to highlight elements that are auto-generated (two colours for different methods): \newcommand{\gen}[1]{\colorbox{DGray}{#1}} ...
5
votes
2answers
441 views

Height of sparkline

I'm trying to place a sparkline in a ctable using the sparklines package. \documentclass[11pt]{article} \usepackage{ctable} \usepackage{sparklines} \begin{document} \ctable[ caption = ...
4
votes
2answers
1k views

Exact height of \hbox

I have problems controlling the exact height of an \hbox; what is wrong with this example? \documentclass{article} \newcommand{\mybox}[2]{ \fbox{ \vbox to #1cm{ \vfil\hbox to 1cm {\hfill #2 ...
8
votes
5answers
2k views

Set \strut height

I'm using quite a few \colorbox and \colorfbox in a document but they weren't sitting at the same heights (because some words contained g and this seemed to push the box down. The solution I found ...
3
votes
1answer
976 views

Table cell overflow

Consider this document example: \documentclass[a4paper,draft]{article} \usepackage{calc} \usepackage[demo]{graphicx} \usepackage{tabularx,multirow} \usepackage{geometry} \geometry{hmargin=0cm} ...
14
votes
3answers
10k views

Height of colorbox

I'm trying to "highlight" two parts of a sentence by using a \colorbox like so: \colorbox{red}{This is} \colorbox{blue}{a great sentence.} The problem is that in the second part the height colorbox ...