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{\alinea}{\hspace{0.1cm}}
\newcommand{\tn}{\tabularnewline}
\newcolumntype{M}[1]{>{\raggedright}m{#1}}
\newenvironment{rubrique}{
\begin{tabularx}{\textwidth}{M{\margin}|X}
} %
{\end{tabularx}}
But then in my document, the two blocks below give a different output :
% OKAY
\begin{tabularx}{\textwidth}{m{\margin}|X}
Aout 2006 & Lorem Ipsum...
\end{tabularx}
--
% ERROR : File ended while scanning use of \TX@get@body
\begin{rubrique}
Aout 2006 & Lorem Ipsum...
\end{rubrique}
I am certain to miss a point about \newenvironment, but which one ?
tabularxpoints out that you have to use\tabularxand\endtabularxinstead of\begin{tabularx}and\end{tabularx}when defining environments based on thetabularxenvironment. – egreg Nov 17 '13 at 23:57\tabularxat first :S) – moutonjr Nov 19 '13 at 21:24