🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #12183

Re: texinfo tables with borders

#12183
From: Mark Wooding
Date: Tue, 11 Jul 2000 00:00
55 lines
2731 bytes
Lorenzo Bettini <bettini@gdn.dsi.unifi.it> wrote:

> 	I'm still learning texinfo, but as I understand it is possible to
> specify some parts of the document to be used (compiled) if dvi
> documentation (i.e. latex) is produced, so you can actually put some
> latex commands in your document. The same thing applies to html as well.

No, you can't use LaTeX commands (e.g., the `tabular' environment) in
Texinfo source.  However, you can use raw TeX:

  @tex
    ...
  @end tex

Creating ruled tables in TeX is, err... `interesting'.  You probably
want to look at the \halign command.  Make sure you have a copy of the
TeXbook handy.

Just to get the ball rolling, here's the table from (texinfo)Multitable
Rows, done in TeX, with rules and everything.

\vbox{
  \def\tabkern{\kern8pt\relax}
  \baselineskip=0pt
  \lineskip=0pt
  \halign{
    \vrule#&\tabkern\strut#\hfil\tabkern&\vrule#&\tabkern#\hfil\tabkern&%
    \vrule#&\tabkern\vtop{\hsize=3in\relax\noindent\strut#\strut}\tabkern&%
    \vrule#\cr
    \noalign{\hrule}
    height2pt&\omit&&\omit&&\omit&\cr
    &\bf Key&&\bf Command&&\bf Description&\cr
    height2pt&\omit&&\omit&&\omit&\cr
    \noalign{\hrule}
    height2pt&\omit&&\omit&&\omit&\cr
    &C-x 2&&\tt split-window-vertically&&%
      Split the selected window into two windows, with one above the
      other.&\cr
    height2pt&\omit&&\omit&&\omit&\cr
    \noalign{\hrule}
    height2pt&\omit&&\omit&&\omit&\cr
    &C-x 3&&\tt split-window-horizontally&&%
      Split the selected window into two windows positioned side by
      side.&\cr
    height2pt&\omit&&\omit&&\omit&\cr
    \noalign{\hrule}
    height2pt&\omit&&\omit&&\omit&\cr
    &C-Mouse-2&&&&%
      In the mode line or scroll bar of a window, split that window.&\cr
    height2pt&\omit&&\omit&&\omit&\cr
    \noalign{\hrule}
  }
}

-- [mdw]
Technical Details
Message-ID: <slrn8mmfq5.6qb.mdw@mull.ncipher.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <FxAAsI.D5p@world.std.com> <3969BF3B.C18583B0@gdn.dsi.unifi.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f9e16,4b3cd7e7e2dd6889
X-Google-Attributes: gidf9e16,public
X-Google-Thread: 109f73,4b3cd7e7e2dd6889
X-Google-Attributes: gid109f73,public
X-Google-Thread: 1025b4,4b3cd7e7e2dd6889
X-Google-Attributes: gid1025b4,public
From: mdw@nsict.org (Mark Wooding)
Subject: Re: texinfo tables with borders
Date: 2000/07/11
Message-ID: <slrn8mmfq5.6qb.mdw@mull.ncipher.com>
X-Deja-AN: 645075512
References: <FxAAsI.D5p@world.std.com> <3969BF3B.C18583B0@gdn.dsi.unifi.it>
X-Complaints-To: usenet@nsict.org
X-Trace: daryl.nsict.org 963329862 28703 195.224.55.2 (11 Jul 2000 15:37:42 GMT)
Organization: National Society for the Inversion of Cuddly Tigers
User-Agent: slrn/0.9.5.3 (UNIX)
NNTP-Posting-Date: 11 Jul 2000 15:37:42 GMT
Newsgroups: comp.text.tex,gnu.utils.help,gnu.misc.discuss