{tabularx} is a package that defines an environment tabularx, an extension of tabular which has an additional column designator, X, which creates a paragraph-like column whose width automatically expands so that the declared width of the environment is filled.
1
vote
2answers
204 views
I need a List environment with other indent and hang
I would like to make for formulas a listing, in which I can explain the meaning of the letters.
The following code shows how should it look like:
{\renewcommand{\arraystretch}{1.3}\tabcolsep0pt
...
3
votes
1answer
466 views
Create environment inside another environment?
Why can't I define an environment, that encloses another tabularx environment inside it?
For example, why can't I do this:
\newenvironment{customTabular}{
% This is the begin code
...
9
votes
3answers
984 views
How to use siunitx and tabularx together?
I'm using the tabular features of siunitx (for what it is worth: v1.3 since I'm on TexLive 2009) to align numbers in tables, eg.
\begin{tabular}{ p{1.5cm} S S S }
bla & 1.23 & 4.5 & 67.89 ...
3
votes
1answer
609 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}
...
1
vote
2answers
997 views
Listing inside tabularx?
I have a tabularx environment where I want to put an lstlisting into. But Latex fails to compile it. Testcase:
\documentclass[a4paper,12pt]{scrreprt}
\usepackage[utf8x]{inputenc}
...
2
votes
1answer
2k views
Right-aligned columns using the tabularx environment
I'm trying to typeset a matrix which has entries of differing widths. However, for aesthetic reasons, I would like each of the columns of the matrix to be the same width, and I'd furthermore like ...
1
vote
1answer
525 views
ltablex + \caption[]{…} = error or bug?
I'm writing my thesis with the document class scrbook from koma-script and want to use the package ltablex (= longtable + tabularx) for setting long tables with automatic page break calculation.
Now, ...
4
votes
2answers
310 views
Insert tokens where TeX would put a linebreak?
Given a TeX paragraph, is there any way to insert tokens at places where TeX would automatically insert line breaks (similar to \everypar?)
To give some context, I am writing a LaTeX package for ...
1
vote
1answer
897 views
bottomrule not working in a self-made environment
I have this environment for consistent tables in my LaTeX documents:
\newenvironment{defaultTable}[2] {
\@float{table}[h]
\noindent
\tabularx{\textwidth}{#1}
\specialrule{0.5pt}{10pt}{0pt}
...
11
votes
1answer
2k views
Preventing itemize environment to insert initial vertical space
I'm using itemize and tables like the following
\begin{tabularx}{\textwidth}{>{\ttfamily}llX}
\toprule
\textbf{\rmfamily Operator} & \textbf{Typen} & \textbf{Regel} \\
\midrule
= & ...
4
votes
3answers
570 views
Always a space before embedded figures in table - how do I get rid of it?
I am placing figures in a tabularx and I am having trouble getting them to embed properly. I keep getting an annoying spacer before the figure... Now if only this space could be split evenly before ...
5
votes
2answers
1k views
tabularx inside a \newenvironment
There's something wrong with this code:
\newenvironment{Tbl}
{\begin{tabularx}{\textwidth}{|l|X|} \hline}
{\end{tabularx}}
but this is fine:
\newenvironment{Tbl}
{\begin{tabular}{|l|l|} \hline}
...