The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
44 views

Weird row height behaviour in tabular

I have a tabular which I fill with "+" signs for some reasons. This is what happens: As you can see, for some reason there is space added on top of the row, making it higher. If I remove all the ...
3
votes
1answer
46 views

Two columns with different background color and height of whole page

I want to create page with two columns with different background color and height of whole page. What I was able to do is two columns with different background color but I can't set proper height and ...
1
vote
1answer
31 views

Memoir : Warnings “The material used in the headers is too large” w/ accented titles

With memoir class, the default headers height seems unsuitable for accented titles of chapter/section. The result doesn't look strange, but Warnings The material used in the headers is too large (14....
2
votes
0answers
20 views

How to write below textheight and above footer [duplicate]

MCQ Paper is mentioned below (Thanks to Erik) ; \documentclass[addpoints,answers,10pt]{exam} \setlength\textheight{15cm} \setlength{\footskip}{8.5cm} \providecommand{\myquestion}{% \question ...
2
votes
1answer
48 views

How to add constant height in exam class

I've MCQ Paper created using \documentclass[addpoints,answers,10pt]{exam} ; here on very page I've to provide "Space for Rough Work". Height of "Space for Rough Work" is around 20% of page height. ...
1
vote
1answer
53 views

How to measure the height of a tikz picture?

I have several graphics (produced by TikZ) in my document. They all have different sizes. How do I get the height of each graphic to do some nasty calculations? Edit I want to access the picture ...
2
votes
2answers
49 views

Specify the height of table header

I'm new to Lyx and I have a problem. I have the following table and everything is good except that I want to limit the height of header cells. I want them to be shorter that this where each header ...
2
votes
2answers
80 views

Equal size subfigure

I want my subfigures to look uniform, thus each having same width and height. Additionally, each of the two rows should have a center, around which all subfigures in that row are centered. I want ...
2
votes
1answer
88 views

How to change row height within xtable environment?

I would like to change row height such that all rows except the header row will have fix height x and the header row will have eight y. I would like to do this within xtable environment because I ...
3
votes
1answer
66 views

Set paperheight to (overall) textlength

The page should when the text ends. So, that there is only one "page". Don't worry. It's not for being printed. \documentclass[12pt]{article} % Packages \usepackage{lipsum,anyfontsize} \usepackage[...
0
votes
2answers
48 views

Linebreak in \raisebox-like environment + consistent height of table cell

In Frank Mittelbach's answer here, he constructs an environment to add linebreak in a \raisebox-like environment. In Alain Matthes' answere here, he shows how to get a consistent row height in a ...
2
votes
1answer
42 views

Two column page with different heights

I am trying to utilise all the whitespace in a two column (ieee) format document. A set of tables must stay grouped on the same page, thus I've nested them under {table*}. Having done that, I now ...
1
vote
2answers
56 views

Determine the height of a box with a rule

\documentclass{scrartcl} \usepackage{calc} \usepackage{showframe} \begin{document} \setlength\parindent{0pt} \newsavebox\maintitleBox \newlength\maintitleHeight \newcommand{\maintitle}[1]{% \...
3
votes
2answers
27 views

Vertical line gap in rows where I have adjusted the row height

I am making a table where I need to adjust the row height. After adjusting the row height, the vertical lines on my second column do not extend to the correct height (they leave a gap). \...
2
votes
2answers
98 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
39 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
56 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
50 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 ...
11
votes
2answers
237 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
71 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
64 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
59 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
81 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
39 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} \definecolor{myblue}{rgb}{0.866,...
2
votes
1answer
326 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
76 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
38 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!}} \settoheight{\...
4
votes
1answer
54 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
110 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
157 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
199 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
92 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
36 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
112 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
248 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} \usepackage{tikz}...
5
votes
1answer
138 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 two-...
6
votes
1answer
144 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
367 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
177 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} \definecolor{mColor1}{rgb}{0....
3
votes
1answer
395 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
338 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
282 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
48 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 \end{...
2
votes
1answer
99 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 ...
9
votes
1answer
163 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} \usepackage[a4paper,margin=1cm,...
5
votes
1answer
435 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 ...
8
votes
1answer
450 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
121 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 ...
3
votes
3answers
898 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? \documentclass[a4paper,fontsize=12pt,a4paper,DIV=...
4
votes
2answers
423 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".