I am using eqparbox and want to right-justify a number of words (separated by a newline). I tried to use \raggedleft but it complains with the error:
Error: ! LaTeX Error: Something's wrong--perhaps a missing \item.
Here is a code sample to illustrate the problem:
\documentclass{article ...
Search found 4 matches
- Fri Apr 30, 2010 1:49 am
- Forum: General
- Topic: eqparbox with raggedleft
- Replies: 3
- Views: 2734
- Wed Apr 28, 2010 2:49 pm
- Forum: General
- Topic: Problem redefining newline in tabular environment
- Replies: 0
- Views: 1662
Problem redefining newline in tabular environment
Problem redefining newline in tabular environment
I'm new to TeX/LaTeX and I have a problem with the following:
\documentclass{article}
\def\nl{\tabularnewline & x } %\let\\\nl} % uncomment to work
\def\elem#1{\let\\\nl #1}
\def\mgroup#1#2{#1 & x \elem{#2}}
\begin{document}
\begin{tabular}{l|l ...
I'm new to TeX/LaTeX and I have a problem with the following:
\documentclass{article}
\def\nl{\tabularnewline & x } %\let\\\nl} % uncomment to work
\def\elem#1{\let\\\nl #1}
\def\mgroup#1#2{#1 & x \elem{#2}}
\begin{document}
\begin{tabular}{l|l ...
- Tue Apr 27, 2010 8:27 pm
- Forum: Graphics, Figures & Tables
- Topic: problem: tabular with nested environment
- Replies: 2
- Views: 2772
Re: problem: tabular with nested environment
Thank you kindly for your reply. Though I still hope someone can fix my environments {intellectual itch}, I am grateful to have an alternative solution to my problem.
- Tue Apr 27, 2010 7:25 pm
- Forum: Graphics, Figures & Tables
- Topic: problem: tabular with nested environment
- Replies: 2
- Views: 2772
problem: tabular with nested environment
I have a table with two columns inside which I want to use a custom environment called "mgroup". This environment is defined as follows:
\newenvironment{mgroup}[1]{#1 &}{\tabularnewline}
An example of how I use it:
\begin{tabular}{ll}%
\begin{mgroup}{g1}%
one%
\end{mgroup}%
\begin{mgroup}{g2 ...
\newenvironment{mgroup}[1]{#1 &}{\tabularnewline}
An example of how I use it:
\begin{tabular}{ll}%
\begin{mgroup}{g1}%
one%
\end{mgroup}%
\begin{mgroup}{g2 ...