Linked Questions

0
votes
0answers
131 views

tabularx in newenvironment: Illegal pream-token [duplicate]

The following example gives: ! Package array Error: Illegal pream-token (\AtEndOfPackage): `c' used. What is wrong? \documentclass{article} \usepackage{tabularx} \newenvironment{mytab}{ \...
2
votes
0answers
46 views

How can I create a wrapper environment for a complicated usage of tabularx? [duplicate]

Possible Duplicate: tabularx inside a \newenvironment I know (at least basically) how to create my own environments using \newenvironment, but I recently encountered a problem trying to create an ...
1
vote
0answers
32 views

Different outputs with/ without \newenvironment [duplicate]

I'm trying to setup my own CV without Curve. To do so, I intend to separate sections the same way with a \newenvironment. %[...] \newlength{\margin} \setlength{\margin}{.3\textwidth} \newcommand{\...
4
votes
2answers
5k views

Custom environment with parameter: You can't use `macro parameter character #' in vertical mode

I want to define a new environment to display blocks of plain text in a titled box, with whitespace reproduced exactly. Something like this \begin{PlainText}{My Title} Foo Bar \end{PlainText} I'm ...
8
votes
1answer
4k views

Using tabularx in a custom environment - “misplaced \noalign”

Question Currently, I'm trying to shorten the creation of small tabularx-tables with pre-defined headers, but somehow, trying to use the tabularx-environment, even though I used the \tabularx and \...
18
votes
1answer
244 views

Is it bad style to have spaces in environment names?

I've recently realized that, due to how \newenvironment, \begin, and \end work, there is no reason you can't have environment names with spaces in them. As long as you stick with \begin and \end, this ...
2
votes
1answer
631 views

How to create a new environment including a table environment and tabularx environment?

How do I create my own new environment of a selfscaling tabularx table, as well as a caption added to it and maybe colored rows? The caption should not be added using the odd flowing captionof command,...
2
votes
2answers
181 views

Error with own environment using ltablex

I am trying to get ltablex to work using the following code based on this answer: \documentclass{article} \usepackage{ltablex} \usepackage{blindtext} \keepXColumns \newenvironment{test} {% \...
1
vote
1answer
586 views

singlespacing in table with no indent

I'm trying to make a table that is as wide as the textwidth singlespaced with etoolbox's \AtBeginEnvironment but that somehow gets rid of the \noindent that I issued before. \documentclass{report} ...
0
votes
1answer
30 views

How to correctly wrap a tabularx inside a threeparttable?

My question is basically in the title. I tried, but cannot get it to work, despite the threeparttable documentation explicitly claiming compatibility with tabularx. Here is what I tried so far: main....
0
votes
1answer
45 views

\newenvironment or \newcommand for \xltabular

I'd like to have a shorthand to trigger a table like tabularx, with multipage option like longtable. Neither \newenvironment nor \newcommand I can coax to work The weird @.. construction at the ...