The tag has no usage guidance.

learn more… | top users | synonyms

15
votes
3answers
11k 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 ...
14
votes
3answers
1k 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̶ ...
12
votes
1answer
857 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} ...
11
votes
2answers
16k 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 ...
10
votes
4answers
346 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
158 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
189 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 ...
8
votes
5answers
3k 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
471 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
147 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
1k 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?
8
votes
2answers
3k 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
307 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
270 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
9k 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 ...
6
votes
1answer
91 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 ...
6
votes
1answer
144 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) ...
6
votes
3answers
84 views

How can I determine the height and depth of a “multi-line” `\ooalign`?

How can I determine the height and depth of a "multi-line" \ooalign? \ooalign{\relax\cr% \noalign{\vskip-2ex}X\cr% \noalign{\vskip+2ex}\cr% \noalign{\vskip+1ex}X\cr% ...
5
votes
3answers
209 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
817 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
1k 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
93 views

Odd/even page wrongly detected if there is not enough space on the current page

I'd like to put: some text on the outer side of the page, some another text on the inner side of the page. For this, I make use of the (\checkoddpage) \ifoddpage test provided by the changepage ...
5
votes
1answer
664 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
888 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\}, ...
5
votes
1answer
643 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
208 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 ...
5
votes
1answer
467 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
475 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 = ...
5
votes
1answer
72 views

How can I fix the title height in mdframed boxes?

I am trying to write a LaTeX document involving a lot of definitions. For this reason, I decided to create a mdframed environment (see below), and place my definitions one after the other in a ...
4
votes
3answers
233 views

Is there a way to automatically increase the height of a node when the height of its label gets bigger?

In the following code, I want the height of the yellow box to be increased automatically when the number of its lines gets more. Is there a way to do this? \documentclass{article} ...
4
votes
1answer
291 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
209 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
490 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
2k 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
826 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
3answers
360 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 ...
4
votes
1answer
2k 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
64 views

How much bigger are delimiters

While trying to duplicate TeX dimension computations, I noticed that the delimiters placed with \left…\right are slightly bigger than the box around which they wrap. How much bigger, how is that ...
4
votes
1answer
84 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
219 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
144 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
39 views

In fancyhdr : change the height of a logo in the footer

I want to put the logo of my school in the bottom right of my pages. The problem is that the logo collides with the text on top. I know that the position of the footer is ruled by the \footskip ...
4
votes
1answer
31 views

Raise position of text relative to line

It's a relatively minor thing, but in the table below I'd like to raise up the Hebrew relative to the Latin characters. They feel like they're sitting slightly too low on each line. Can anyone ...
3
votes
2answers
105 views

Adjusting exact height of the table rows

I am trying to adjust exact height of the row in my table, but the output is not good: \documentclass[a4paper]{article} \usepackage{array} \usepackage{color, colortbl} ...
3
votes
1answer
1k 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
68 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
590 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
1answer
157 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
37 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 ...