Tagged Questions
2
votes
2answers
29 views
How to align an image to the bottom inside a table cell
I created the following document:
Code:
\documentclass[11pt]{article}
\usepackage[a5paper]{geometry}
\usepackage{tabularx}
\usepackage{graphicx}
\begin{document}
\begin{tabularx}{\textwidth}{|X|}
...
3
votes
2answers
47 views
tabular can't vertically align the cell to the top
I have the following code:
\documentclass[11pt]{article}
\usepackage{array}
\begin{document}
\begin{tabular}{|p{1cm}|m{1cm} | @{}m{0pt}@{}}
\hline
1-1 & 1-2&\\[1cm]
...
4
votes
1answer
23 views
Vertical alignment of the `aligned` environment in table cells
I think most people will agree that the vertical alignment in the table cells below is less than ideal--especially if I want to remove the \cmidrule to be more in line with accepted "best practices" ...
4
votes
1answer
47 views
m column doesn't center text vertically
I want vertically centered text in a simple table like this:
\documentclass{article}
\usepackage{array}
\newcolumntype{Z}{>{\centering\arraybackslash}m{0.2cm}}
\begin{document}
...
4
votes
2answers
65 views
(How) Can I vertically align parts of cell contents differently?
I am trying to create the following game matrix and am wondering how exactly can I vertically align the cell contents? Especially since I need them to be offset differently in the same cell.Is this ...
3
votes
2answers
58 views
Vertical alignment in tabular cells with variable height
I have the code:
\documentclass{article}
\usepackage[a4paper]{geometry}
\usepackage{tabularx}
\usepackage{lipsum}
\begin{document}
\begin{tabularx}{\textwidth}{ | X | c | }
\hline
\lipsum[1] ...
4
votes
1answer
40 views
Vertical alignment in tabularx X column type
I'd like to create a new column type which works exactly like a X column from tabularx but that also has the text vertically centered. I tried with the newcolumntype command but I can't figure out ...
3
votes
3answers
40 views
Vertical alignment in tabular cells with fixed height
I have the code:
\documentclass{article}
\usepackage[a5paper]{geometry}
\begin{document}
\begin{tabular}{ | c | }
\hline
top\\[8ex]
\hline
center\\[8ex]
\hline
bottom\\[8ex]
\hline
...
3
votes
3answers
47 views
Alignment of \includegraphics in a tabular
When putting a graphics inside a table, the text at the right is too much at the bottom
Minimum example :
\documentclass{article}[12pt]
\usepackage{graphicx} % This is already loaded by the ...
3
votes
3answers
65 views
Bad vertical alignment in latex \tabular
I've got a little question about my tabular vertical aligment. I've a two-column tabular with letter and text :
\begin{tabular}{p{0.1\textwidth} p{0.8\textwidth} }
Hypothèse & Description\\
...
5
votes
2answers
133 views
Why doesn't LaTeX vertically center contents of table cells by default?
Or perhaps provides an easier way to do so? Most tables rendered (that I have witnessed) seem to require vertical centering of content in table cells, purely for aesthetics. So what is the reason that ...
3
votes
1answer
50 views
How to increase the vertical space between two “touching” tables?
I skimmed Can't generate vertical space between tables but am looking for sth slightly different: I don't really want to keep the tables together necessarily - I'm happy to let LaTeX (or whoever ...
3
votes
1answer
81 views
Multirows, multicolums and vertical centring in the tabu environment
I have a table, using the tabu environment, in which I would like multirow and multicolumn cells. Inside the cells, any content that doesn't vertically fill the cell should be vertically centred.
...
4
votes
1answer
72 views
tabularx: bottom alignment on r or l-columns when X column wraps
In tabularx, when the X-column wraps on more than one line, l/r/c-columns remains top aligned: MWE:
\begin{tabularx}{5cm}{lXr}
1 & qwer asdf zxcv qwer asdf zxcv qwer asdf zxcv & 1 \\
2 ...
4
votes
0answers
45 views
Aligning a table (vertically) with a subfigure [closed]
I want to show three pictures and a tabel with explanatory text:
--------- ---------
| | | |
| Pic 1 | | Pic 2 |
| | | |
--------- ---------
...
0
votes
1answer
59 views
Centering table in landscape page [duplicate]
I'm trying to get a table centered both vertically and horizontally in a landscape page. I've tried some of the solutions proposed around here but I can't get them to work in my specific case.
Here ...
3
votes
1answer
46 views
Vertical misalignment due to beamer onslide? [duplicate]
The following MWE displays the problem:
\documentclass{beamer}
\begin{document}
\begin{frame}\onslide<+->
\begin{tabular}{p{4cm}r}
Text\\Text & Text \\\hline
Text\\Text & Text ...
1
vote
1answer
52 views
Last cell in complex table not behaving
I am having a hard time figuring out why the text in the last cell on each row of this complex table I am creating is not positioning correctly. As you can see from my code, the issue only occurs when ...
1
vote
1answer
102 views
Horizontal line through table cell
I have a very long, thin table that I'm folding onto itself to make a wider, shorter version. The table has a couple horizontal rules to separate data categories. For example, the original table is ...
3
votes
1answer
133 views
Top-aligned table cells with different font sizes and controlled spacing
I am trying to achieve a table where a few things have to work simultaneously. Several of these things have been discussed before, but I have been unable to make everything work at once (and some ...
3
votes
3answers
92 views
Top alignment of cell content in tabularx
I would like to align the content of each cell (of the first column) to the top. The approaches presented here did not apply. Maybe it has something to do with die tabular-environment inside the ...
1
vote
1answer
69 views
Extra space added in table with multi-rows and columns
I am working with a table with multi-rows and headers. The problem is when I run it, extra space is added both between rows and at the end of the last column.
\documentclass{article}
...
6
votes
2answers
122 views
How to vertically align multiline column
I am trying to set up a table with the tabularx package (although the used package does not really matter to me).
The table should stretch across the entire line. I am trying to get both columns ...
3
votes
1answer
64 views
Line break in a table cell for a math equation?
In the middle of typing up an assessment and trying to work out how to get equations to work inside a table environment
\documentclass [11pt] {article}
\usepackage{amsmath}
\usepackage{pdflscape}
...
2
votes
1answer
91 views
Top aligned tabular: \cline equivalent of \firsthline
When aligning tabular environments with the [t] option, one can use \firsthline (from the array package) instead of \hline when a line is required at the top of the table. Like so:
...
2
votes
2answers
88 views
How to align rotated table texts?
I turned the captions of my table by 90 degrees.
Unfortunately, the headings do not fit to the table contents. Screenshot:
Can this be changed? I already tried parbox but that did not work.
Here ...
3
votes
1answer
64 views
Vertical alignment of nested table
I have two tables nested inside of a larger table. One of the nested tables is taller than the other, and I'd like to have the two tables line up together at the bottom. I've tried inserting [b] in ...
6
votes
1answer
121 views
\hfill in in table cells
There are tables in my document. The baselines between the last row of each table and the following text is usually circa 16,25p (see below). Now I wanted to add right-aligned text to some selected ...
3
votes
1answer
45 views
Enumeration marker appears centered to the left of the table
\item
\begin{tabular}{ |l| l| l| }
...
\end{tabular}
\quad
\begin{tabular}{ |l| l| l| }
...
\end{tabular}
The following causes the enumeration marker (ie, "(b)"), to appear in the ...
3
votes
2answers
75 views
vertical alignment in a row
I have a one-row table with a number of columns.
Each cell in this row is another table, which can be either 2x1 or 3x1.
I want to make sure that all these sub-tables are aligned to the top of the ...
2
votes
1answer
100 views
How to vertically center text in a table cell with multiple lines?
I want to vertically center "Apple iPad".
Does someone here knows how to do that?
My code looks like this:
\begin{table}[H]
\noindent
\centering{}
\begin{tabular}{cc}
\hline
...
2
votes
1answer
204 views
Vertically center a table on a landscape page
I have a landscape page with one table on it. My current code horizontally centers the table, but how can I also vertically center it?
\documentclass[10pt,a4paper]{report}
...
3
votes
0answers
95 views
Text in table with images is not aligned on top
I have table with text in the first column and image in second. I want both columns to be top aligned. I use following code:
\begin{tabular}{p{3cm}l}
Internal state after adding 2 elements & ...
3
votes
1answer
83 views
Use \fill (or similar) to extend a table to the end of the page
I am currently trying to make an invoice from a template which requires a table to extend to the end of the page regardless of the content. I tried using \fill as below (in \tabularnewline[\fill]), ...
4
votes
1answer
159 views
Vertical alignment of cells in LyX
How can you set the vertical alignment of table cells in LyX? The right-click menu shows three choices ("Top", "Middle", "Bottom") but none of them is enabled, they are all greyed out.
1
vote
1answer
63 views
Vertical alignment with array package when the line width is fixed
I created a post earlier on the same topic (Vertical alignment in tables). I got an answer but it triggered another question.
Below the solution that has been provided. I would expect vertical ...
1
vote
1answer
106 views
Vertical alignment in tables
I would like to create a table where I control the height of the cells and wish to vertically center all the cells. At first sight, the issue here might look quite similar to Problem with Table ...
0
votes
1answer
119 views
Adding color to table columns with alignment
I am trying to add color to certain columns in a table for highlighting purposes. In said columns, I have positioned the data presented to be aligned by the decimal point. However, when adding color ...
3
votes
1answer
117 views
Tables: Automatic adjustment of columnwidth to its content gives error “Misplaced \noalign” at \toprule
I am trying to put two tables next to each other, vertically aligned top, with some below listed adjustments I unfortunately can't get together.
First, I'd like to know if/how I can avoid the error ...
2
votes
1answer
151 views
Vertical alignment of text spanning multiple rows [duplicate]
Possible Duplicate:
How to vertically-center the text of the cells?
I am using multicolumn to create a table. The code that I have is here:
\documentclass[10pt]{article}
...
4
votes
1answer
156 views
vertical aligning images in table with \adjustbox only works when not every image is in an \adjustbox
I'm trying to center all images vertically and horizontally within a table cell.
Therefore I'm using the adjustbox packet. This is the code I use for my table:
\begin{table}[b]
\begin{center}
...
3
votes
1answer
164 views
How to draw the following table (simplex tableau)
I would like to draw table,
I tried,
\begin{equation}
\begin{array}{c}
z \\
s_1 \\
s_2 \\
s_3
\end{array}
\begin{bmatrix}
\begin{array}{c|ccccc|c}
z & x_1 & x_2 & s_1 & s_2 ...
6
votes
1answer
159 views
Align siunitx columns in numbers table
Here is a table but it has a problem: the column of 1, 20, 50, and 100 aren't perfectly aligned to others. How can I do that?
MWE
\documentclass{article}
\usepackage{siunitx,booktabs,multirow}
...
3
votes
2answers
216 views
latex table layout problem
Hi Im having some trouble aligning the text in the second column of a two column table. The first column the text aligns the way i want but the seconds columns text is not positioning properly.
...
4
votes
2answers
90 views
Why does the vertical alignment not match the expected behaviour at p columns in tabular env?
I have the following code:
\documentclass{scrartcl}
\begin{document}
\begin{tabular}{lp{5cm}}
a &
\begin{itemize}
\item sd
\end{itemize}\\
\end{tabular}
\end{document}
I want to get a table ...
3
votes
2answers
103 views
Vertical align in a table
I have the following code:
\begin{table}[H]
\begin{center}
\caption{Quarks and leptons of the Standard Model.}
\label{TablaQuarks}
\begin{tabu}{|m{2cm}|m{2cm}|m{4cm}|[2pt]} \hline
...
3
votes
3answers
136 views
Vertically align cell table in figure
I have the following figure:
\begin{figure}[ht!]
\centering
\begin{tabular}{|c|c|}
\includegraphics{combo} & \includegraphics{combomenu}
\end{tabular}
\caption{A combo box ...
5
votes
4answers
116 views
Why can I not vertically align the text in the 3rd table column?
I'm trying to make a table which lists some math functions. I've been searching the net on how to center the equations in the cells both vertically and horizontally. And I think I've found an answer ...
7
votes
3answers
119 views
Preventing newline from left column from forcing a newline in the right column
I'm writing a CV in LaTeX, and got started with the sample called Writing a CV in LaTeX.
I'm trying to modify it so that a newline in the left column does not force a newline in the right column. ...
10
votes
2answers
228 views
Sideways text with rule as table label
I've been trying to achieve the following vertical sidebar effect in LaTeX for my resume, but turns out it's far more difficult than I thought (created easily in InDesign):
I've tried everything ...
