The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
2answers
25 views

Color-box behind inline text / inline math without vertical space

I'd like to provide a ‘background-colour’ for spans of code or math inline with text, in the same way that CSS allows. I've tried to do this with \colorbox, but unfortunately, that seems to add ...
3
votes
0answers
37 views

Auto images height to get specified number of pages. Is it possible with LaTeX?

I am a very beginner in LaTeX, and need to know if it is possible to do next. There is a book, consisting of text and photos, going one by one. Questions: Is it possible in LaTeX to make images ...
1
vote
1answer
54 views

How do I type TeX without using the command? [duplicate]

How am I able to format TeX without using the command? I know I can use \TeX and it'll do it automatically but I'd like to do it manually for other stuff.
1
vote
1answer
26 views

How to place the text top left in a table cell

We can use \renewcommand{\arraystretch}{2} to increase the height of rows. The text, however, is just in the center. How can we simply put it on the top-left, as in second and third columns in the ...
10
votes
2answers
196 views

{\phantom{X}} sometimes higher than X

Why is {\vphantom{X}}^2 (%8) higher than any of the other options? In particular, why is it higher than %5, %6, and %7. The behavior is normal if I use a lower-case character instead of the X. ...
3
votes
1answer
61 views

Is there a simple command for the available height in a beamer slide?

I would like to add two figures figures to a beamer slide, one on top of the other. Is there a simple command, similar to \linewidth or \textwidth for the height? The figures have dimensions roughly ...
1
vote
1answer
46 views

How to stretch the figure environment across textheight? [duplicate]

When I use the figure environment to set an image as a float in a separate page ([p] specifier), I want to be able to use up the full text height, so that the image and its caption are precisely ...
0
votes
0answers
45 views

How to have the same top/bottom margins (from the footer/header, if any) and the same left/right margins in the book class

I have the following document. Thanks to the answer http://tex.stackexchange.com/a/272591/ the absolute text-height is 20 cm (text-height+footer+header=20cm). I would that the left and the right ...
4
votes
1answer
38 views

How to adjust the `absolute text-height` including the header/footer/footnote (if any)

I would like to have a document of a given absolute text-height (say 20cm) (from the header to last line, including footer/footnote, if any). Currently the settings are as in the following document. ...
2
votes
2answers
38 views

Maths in stretched cells

Here is a minimal working example of my table : \documentclass[10pt,a4paper]{article} \usepackage{color} \usepackage{amsmath} \usepackage{colortbl} \usepackage{array} ...
2
votes
1answer
143 views

Invisible and unselectable text

For alignment reasons (for boxes that align themselves on the text they contain), I currently use this command : \newcommand{\uplowtext}[1]{ \transparent{0.}TJPtjp \transparent{1.}#1 ...
1
vote
0answers
49 views

Vertical rule to fill remaining page height

I need to have a vertically-oriented titles with rules on either side that fill the available space. For example, the vertical SOFTWARE and PERSONAL titles here: Here's the relevant code that ...
2
votes
1answer
35 views

Doubling hbox returned height

I can get the height of the hbox but I am stuck trying to double its height. Here my latex statements: \newlength{\txtlineheight} \settoheight{\txtlineheight}{\hbox{Hello World!}} ...
4
votes
1answer
43 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 ...
4
votes
1answer
72 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 ...
0
votes
0answers
99 views

Error: “Undefined control sequence” in \includegraphics, height

I am using figure and subfigure environment. Inside subfigure I am using includegraphics. The figure and subfigure structure looks like following: \begin{figure} \begin{subfigure}[b]{.25\textwidth} ...
6
votes
3answers
151 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% ...
4
votes
1answer
78 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 ...
2
votes
1answer
31 views

Turn off floats temporally

I have written a command which puts content into a minipage to measures its height. It uses this information to insert "intelligent" pagebreaks, newpages, clearpages and warnings. To do the ...
2
votes
1answer
85 views

Modify main slide dimensions-Beamer

I'mm making a Beamer Presentation and I would like to use as much space as possible for my slides, because I want the images that will be included to be as visible as possible. More specifically I ...
4
votes
3answers
240 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} ...
5
votes
1answer
106 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 ...
5
votes
1answer
119 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 ...
1
vote
2answers
256 views

tabu how to specify individual absolute column width and row height?

I am trying to generate a table that requires different row widths. The first column should have as little width as possible (just to print single digit 1,2,3 upto 9), whereas column 3 (where I have ...
3
votes
2answers
138 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
198 views

How to get rid of height differences in two beamer blocks?

How come the two blocks have a different height? What should be changed in \hole definition in order to have the same height? \documentclass[10pt,lmodern,handout]{beamer} \usepackage[utf8]{inputenc} ...
5
votes
3answers
267 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 ...
3
votes
2answers
196 views

Diagonal line in table with vertical text

I want to add a diagonal line in a the top line of a table where the other entries on the first row are written sideways. I've tried \backslashbox and \diagbox and \diag but no matter how I change the ...
3
votes
1answer
40 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 ...
2
votes
1answer
81 views

Fixed area for footnotes: is it possible?

Is it possible to dedicate to footnotes a same fixed (possibly empty) area, with same height, on each page? Of course, in case of too long footnote text, it should continue on the next page (area) as ...
8
votes
1answer
157 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} ...
4
votes
1answer
332 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 ...
7
votes
1answer
321 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 ...
6
votes
1answer
105 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 ...
2
votes
3answers
698 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? ...
4
votes
2answers
311 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".
2
votes
2answers
220 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 ...
4
votes
1answer
126 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
1k 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 ...
6
votes
1answer
166 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) ...
1
vote
1answer
200 views

\tcbox inside of tabu sticks out

I use \tcbox inside of tabu environment cells. As you see at the screenshot, the tabu is enclosed in tcolorbox as well. So, tabu doesn't measure the size of the content in the cells, when the content ...
1
vote
2answers
2k views

How can we change the height of a header box

In my poster done using baposter, I need to change the height of the \headerbox. for example, I have this example: ...
0
votes
0answers
27 views

Customizing the height of the cells in a table [duplicate]

I have the following table construction in LaTeX: \begin{center} \begin{minipage}[c]{0.3\textwidth} \vspace{0pt} \begin{tabular}[b]{l||c|c|c|c|c|c} \textbf{0} & \textbf{1} & ...
3
votes
1answer
77 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} ...
2
votes
1answer
62 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{} ...
3
votes
2answers
762 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 ...
9
votes
1answer
192 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 ...
4
votes
2answers
173 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 ...
9
votes
1answer
238 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 ...
3
votes
1answer
174 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 ...