🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #421

Re: alignment

#421
From: David Carlisle
Date: Fri, 24 Jul 1992 15:23
59 lines
2530 bytes
>>>>> On 22 Jul 92 11:12:38 GMT, ajtd@st-andrews.ac.uk (Antony J. T. Davie) said:

Antony> Here's a little challenge from one who seldom uses TeX because of the
Antony> frustration of not having a local guru to ask how to do
Antony> moderately complicated things. The answer may be easy. If it
Antony> is I apologise.

Antony> I wish to typeset something like the following

Antony> 1. Item 1                                 Explanation 1
Antony> 2. Item 2                                 Explanation 2
Antony> 3. Item 3 \
Antony> 4. Item 4 |                               Explanation to 3,4 and 5
Antony> 5. Item 5 /
Antony> 6. Item 6                                 Explanation 6

Antony> where some of the items are bracketted as shown.

Antony> The trouble is that I want the lefthand ends of all the items to be
Antony> aligned and similarly with the explanations. To get the bracket I have to
Antony> go into math mode. How do I align items 1, 2 and 6 (outside math mode)
Antony> with 3,4 and 5 (in math mode)? LaTeX preferred but TeX would do.

Antony> Tony Davie

Try this:

\documentstyle{article}

\begin{document}
\begin{tabular}{llp{3in}}
1.& item1& Explanation 1\\
2.& item2& Explanation 2\\
\multicolumn{2}{@{}c}{%
  $\nulldelimiterspace=0pt
  \left.\begin{tabular}{ll}
  3.& item3\\
  4.& item4\\
  5.& item5
  \end{tabular}\right\}$}&Explanation to 3, 4 and 5\\
6.& item6& Explanation 6
\end{tabular}
\end{document}

If you also want LaTeX style automatic numbering and cross
referencing, you would have to work a little bit harder. (only a
little bit harder !)

David
--
                           David Carlisle
                                    JANET: carlisle@uk.ac.man.cs

                                    Computer Science Department
                                    Manchester University
                                    Oxford Road
                                    Manchester
                                    England
                                    M13 9PL
Technical Details
Message-ID: <CARLISLE.92Jul24162355@r8d.cs.man.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!mucs!m1!carlisle
References: <1992Jul22.111238.16318@st-andrews.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!mucs!m1!carlisle
From: carlisle@cs.man.ac.uk (David Carlisle)
Newsgroups: comp.text.tex
Subject: Re: alignment
Message-ID: <CARLISLE.92Jul24162355@r8d.cs.man.ac.uk>
Date: 24 Jul 92 15:23:55 GMT
References: <1992Jul22.111238.16318@st-andrews.ac.uk>
Sender: news@cs.man.ac.uk
Organization: Department of Computer Science, University of Manchester
Lines: 59
In-reply-to: ajtd@st-andrews.ac.uk's message of 22 Jul 92 11:12:38 GMT