Questions tagged [height]

{height} is the measurement of the extent of something from top to bottom.

Filter by
Sorted by
Tagged with
2
votes
1answer
649 views

How can I alter the text height and width on a text?

I need to fit a six page document into five pages and would like to increase the text height and perhaps the text width a bit. I used \textheight and \textwidth but to no avail. Can you help me ...
0
votes
2answers
892 views

Measuring the height of a box

Solution in Edit 3. It works well, but seems to need an optimization. :) MWE: \documentclass{scrartcl} \usepackage{calc} \usepackage{mathptmx} \usepackage{anyfontsize} \newcommand{\Title}[1]{ \...
1
vote
1answer
125 views

How to limit the text box height in the first landscape page?

I am not able to control the text box vertical size only for the first page in landscape. How can I limit the height and make the footer visible? I am starting to work with LaTeX and had to do some ...
2
votes
1answer
343 views

How to align multirow table content (text) and keep table rows with similar height?

since 2 weeks working with Tex/Latex I am a beginner but meanwhile frustrated with tables that took me hours. I want to align the elements of this simple table (with multirows) nicely, i.e.: 1) Each ...
2
votes
0answers
90 views

Height of TikZ Graph with Plus/Minus Tolerance

I am attempting to put a TikZ graph in a paper I'm writing and have the height of the graph be a height with a plus/minus tolerance. An MWE is shown below: \begin{minipage}{\columnwidth} \begin{...
3
votes
2answers
2k views

How to keep a nice layout when combining overline/underline with superscript/subscript?

I would like to add indices as subscripts and superscripts to a couple of bounds denoted by underline (lower bound) and overline (upper bound), but I am not able to keep the same well-shaped look of ...
2
votes
1answer
11k views

How to take figure width=\linewidth OR height=\pageheight?

I want to include figures such that either width or height is used to adjust the document on the page. There are about 5\% of images where the height is dominating such that width=\linewidth causes ...
40
votes
1answer
4k views

Why do \sqrt{1} and \sqrt{-1} have different heights?

I noticed that the heights of \sqrt{1} and \sqrt{-1} are different. For instance, when they are in between \left( and \right) parentheses, I must write a character of zero-width (e.g. \sqrt{-1\...
1
vote
1answer
785 views

How to increase the height of a single row in table?

As seen in the figure, the table is incomplete and extends beyond the page. I need to fit it within the page. So, I need to increase row height and decrease column width. How can I do this? Also, the ...
67
votes
1answer
10k views

My table doesn't fit; what are my options?

I have a table that I want to insert on a page, but at least one (perhaps both) of the following conditions are met: The table is too wide to fit within the text block or page. That is, I'm exceeding ...
1
vote
0answers
30 views

Identify that text exceeds parbox height [duplicate]

I'm trying to identify through warnings when a text exceeds it's container parbox height with no luck. Here is my code. \documentclass{article} \usepackage[english]{babel} \usepackage{blindtext} \...
2
votes
1answer
223 views

Display two listings with different lines in same height

I'm trying to display two listings side-by-side. I accomplished this using minipage: \noindent\begin{minipage}[t]{0.45\textwidth} \begin{lstlisting}[title=Bad] some bad code \end{lstlisting} \end{...
1
vote
1answer
458 views

Diagonal line in table cell is not placed correctly with vertical text

I want to have a diagonal line from the top left hand corner to the bottom right hand corner of the first cell of my table. So I want it to look something like the left table: By just plainly using \...
2
votes
1answer
150 views

Why are these boxes not the same height?

I'm having a hard time lining up elements in different boxes, and I have reduced the issue (I think) to a minimal example. The code below puts two fboxes next to each other. They have the same ...
1
vote
1answer
89 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
932 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 ...
3
votes
1answer
771 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
23 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 ...
1
vote
1answer
126 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. ...
2
votes
1answer
674 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
508 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
1k 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 ...
3
votes
1answer
1k 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 ...
2
votes
1answer
392 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
363 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
0answers
271 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
99 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]{% \...
2
votes
2answers
715 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
1k 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
48 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
63 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
1k 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
600 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. \...
9
votes
1answer
3k 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
419 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
307 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 https://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 ...
3
votes
1answer
498 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. ...
1
vote
2answers
54 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,...
4
votes
1answer
3k 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
1answer
86 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{\...
3
votes
1answer
167 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
558 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 ...
1
vote
1answer
8k 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} ...
7
votes
3answers
492 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
212 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
53 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 ...
1
vote
1answer
664 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 ...
3
votes
3answers
267 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}...
1
vote
1answer
450 views

Cut off text height at a given value

Is it possible to have a text box which cuts of text running out of its height? Considering the following minimal working example, I would like to have the text in the first parbox to be cut of as ...
5
votes
1answer
388 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-...