The tag has no wiki summary.

learn more… | top users | synonyms

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 ...
13
votes
3answers
823 views

How to make a row in a table shorter?

I have a row of a table (tabular) that has small text (tiny). I would like to make this (first) row shorter, either automatically (automatic height) o̶r̶ ̶m̶a̶n̶u̶a̶l̶l̶y̶ ̶(̶s̶e̶t̶ ̶a̶ ...
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} ...
9
votes
4answers
287 views

Depth and height confusion

I create two equations: $x \notin \mathbb{N}$; and $x \in \mathbb{N}$. As it turns out, both have the same depth value: Depth = 0.39098pt Height = 7.5pt Depth = 0.39098pt Height = 6.88889pt ...
9
votes
1answer
123 views

What is the cleanest way to adjust the dimensions (height, depth, width to the left and right) of a symbol?

Every once in a while the nominal (i.e. declared) dimensions of a symbol are not identical to the actual ones. This can be intentional or not, but sometimes it is inconvenient. The dimensions of ...
9
votes
1answer
10k views

Fitting tables into beamer

I have some tables in my presentations that are rather big. I found out how to use \resizebox to fit them into my page. Unfortunately this only works for tables that are wide. For long tables, my ...
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 ...
8
votes
2answers
414 views

How can I draw a very thin row?

I want to draw a table like the attached with LaTeX. I'm using the table and tabular environmnet. My problem is how I can represent the line which goes from the begining to the end of the table at the ...
8
votes
1answer
122 views

What is the correct expression to exactly divide \textheight into n rows?

I want to create a table exactly occupying the whole printed area with no space left. The table consists of 5 rows per page, as follows. \documentclass[table]{article} ...
8
votes
1answer
129 views

Measuring the true height of a character

Suppose you have got a character that sits above the reference point. When you measure its height, the empty space above reference point gets also included in its height measurement but that is not ...
7
votes
1answer
990 views

How can I determine the height of a minipage?

If I have a minipage \begin{minipage}{5cm} content \end{minipage} How can I determine its height and save this value as a length?
7
votes
2answers
2k views

How to determine the height of a beamer block?

To keep content from jumping between slides in a beamer presentation, I would like to use an overlayarea environment. By trial and error, one can determine the appropriate amount of space to reserve. ...
6
votes
3answers
180 views

How to set an Inline figure matching the text height?

I want to put a very small figure inline with text. The figure must have the same height as the line it is positioned in. I have this: Some text... \includegraphics[height=\baselineskip]{picture.png} ...
6
votes
2answers
236 views

tabular height savebox problem

I'd like to build a tabular and next to it a graphics in the same height. I use the following code (for minimal working purposes, I used \rule) and do not understand, what is going wrong: ...
6
votes
1answer
68 views

Why is a varwidth incorrectly vertically centered by \raisebox{-0.5\height}?

I was creating a pseudocode/JavaScript comparison table, and wanted to typeset algorithms written with the algorithm2e package vertically centered in table cells. Out-of-the box, algorithm2e can't do ...
5
votes
3answers
103 views

How to make a fixed height-width box with custom padding

I am new to latex, I am trying to include output of TI84 calculator in my document. It is supposed to look like this: Following is what I am able to make. My output's height and width arrange ...
5
votes
2answers
616 views

TikZ: Make node height span several others

How can I make the Z node span the total height of the ABCD column? My current code is: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc,positioning} \begin{document} ...
5
votes
2answers
744 views

Set Table height to fixed height

I found the \resizebox command but I don't want to scale my table. I want to be able to set it to X height and have it stay there. Is there a way to set the height of a table and leave it there no ...
5
votes
1answer
104 views

Constant height and depth of hyperref link boxes

For boxes around links which the hyperref package creates, their height/depth seems to be dependent on the maximum height and depth not of letters of the enclosed material (see top example pair below) ...
5
votes
1answer
438 views

Table cell height too small when wrapping text

I have the following problem with my table: The height of the 2nd row is slightly too small and the text overlaps with the line at the bottom and the top of the cell. My code is below: ...
5
votes
1answer
6k views

Content doesn't fit in one slide

I have a paragraph which I want to put in one slide, but it doesn't fit and some content can't be seen. I am using the Warsaw theme as follows. I tried increasing the height of the slide using the ...
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
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 ...
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
1answer
254 views

Heights of elements and spaces (after, before)

I wish to know how to set the following: height of a text line in paragraph (is it fontsize?) height of space between text lines in paragraph (\baselineskip - fontsize?) height of space before and ...
4
votes
2answers
113 views

How to set fit height and width for tcbox according to the text inside?

I want to place a word into a \tcbox, but the box has too much space around the word. For example, the word "EQUAL".
4
votes
1answer
359 views

Set same height for all cells in longtable

I have created longtable with some text and I want set same height for all cells. It looks like: \documentclass[11pt]{article} \usepackage{longtable} \begin{document} ...
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 ...
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 ...
4
votes
1answer
410 views

Why is the Zero Vector so Big?

The esvect package seems to produce a zero vector with height larger than I would have expected. The one shown in red is produced using $\norm*{\Vec{0}}$ and seems to have the delimiters resized ...
4
votes
1answer
1k views

Increasing height of single row in table

Possible Duplicate: Column padding in tables I want to make a table where one column heading has superscript which overlaps with hline above it. How can I increase the height of just that ...
4
votes
1answer
59 views

Changing \textheight in the middle of a LaTeX document

Actually, I want to change \textheight only on one page of my document, then continue with the old dimension again. How can I update \textheight in my .cls file e.g. for my title page? Is there an ...
4
votes
1answer
494 views

How to automatically scale `\mid` within delimiters

\mid within \left and \right delimiters is expected to be automatically scaled, but today I noticed such behavior: L = \sup \left\{ \sum_{x \in F} a(x) \mid F \subset X,\, |F| < \infty \right\}, ...
4
votes
1answer
85 views

tcolorbox/makebox to take up the rest of page

I am trying to make a \begin{tcolorbox} which consumes the remainder of the page and other nested tcolorbox within, which consume the of remaining available area of the outter tcolorbox, Ie Nested ...
4
votes
2answers
114 views

Vertical Alignment of Matrix Cells

In the equation below, I would like to have the horizontal dashed lines that seperate different cells of the matrix to be vertically aligned. Furthermore it would be nice if the square brackets of ...
4
votes
1answer
119 views

How to measure the height and width of several lines (paragraph)?

1. Measuring total height of a paragraph : Hello I'm trying to draw a black box of same height and width of a paragraph with several lines. For this I need to know the size of paragraph and I'm using ...
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} ...
3
votes
1answer
59 views

Vertical tablecell alignment fail for the last one [duplicate]

Using array m{} to vertically align cells in a tabular, and changing row height with \\[] the last cell is not properly aligned: \documentclass{article} \usepackage{array} \begin{document} ...
3
votes
2answers
355 views

pgfplotstable column width & row height

I am drawing a large heatmap containing only colors using \pgfplotstabletypeset. The table contains 103 columns, and 111 rows, which I am trying to squeeze in the area of 13cm * 16cm. In order to save ...
3
votes
3answers
250 views

Determine height of tabular

I am working in a minipage, because I want two columns next to each other in landscape mode. In the first column I would like to place a figure, and then a tabular. I am scaling the tabular to ...
3
votes
1answer
108 views

Fixing picture heights (to avoid overlap with text)

I’m using the picture environment (with linguex). However my pictures overlap with the text: I've fixed the problem by adding in a rule with zero width and height equivalent to the picture (30 ...
3
votes
1answer
31 views

How to: height of “|” depends on both sides

I want that a vertical line depends on the height of the signs to its left and to its right: i.e. \documentclass{article} \begin{document} \begin{equation} \left. AAAA \right| BBBB ...
3
votes
1answer
950 views

Rochester theme titlepage change height of top bar

I want to change the height of the top bar but only on the titlepage. I want to set it first to 7mm, then to 14mm. How can I do that? Now I only know that I can change the height by ...
3
votes
1answer
546 views

Beamer copenhagen theme banner height

I'm using beamer with Copenhagen theme. I want to use a logo in the right-most corner of all slides. I achieved this using textblock and addtobeamertemplate facilities. My question is, when I add ...
3
votes
1answer
870 views

How to vertically align title when reducing the header size in Beamer Palo Alto theme?

I tried for some time to adjust the height of the header in Beamer Palo Alto theme. I now managed to do so, but now I have the problem that the title in the header is not properly aligned anymore. ...
2
votes
2answers
141 views

ConTeXt: Height fitting with row spanning in a table

How can I shrink the height of the foo cell to fit its content? \starttext \startTABLE \NC foo \NC[nr=2]\input knuth \NC \NR \NC bar \NC \NR \stopTABLE \stoptext ...
2
votes
3answers
212 views

Create a good looking 2-actor normal-form game such as Prisoner's Dilemma

I am having difficulties in adjusting the TikZ code to get a symmetrical output matrix; I guess the * is the reason the right block is somehow higher? ...
2
votes
1answer
58 views

Customizing the height of a figure

How do I to increase the height of a figure? and keeping its width like it's mention in the below code. \begin{figure}[H] \hfill{}\includegraphics[width=\linewidth]{images/cu_global_initial}\hfill{} ...
2
votes
1answer
682 views

How to change table row heights and center their contents?

How can I decrease(or increase) the row height of a specific row in a table and center its content both horizontally and vertically? A related answer discusses how to decrease the height of a row, ...
2
votes
1answer
260 views

content-independent total height

I am generating a table from a program with two pairs of name/value columns. Each pair forms a two column tabu table and the two tables are then nested in an overall tabu table to get the effect. I ...