[comp.text.tex] LaTeX line spacing, revisited by a LaTeX user

bed_gdg@SHSU.BITNET ("George D. Greenwade") (02/15/91)

First, the "simplicity" of a style shouldn't be attacked.  Why did I choose
to reply to this with a style?  Well, the Subject was:
kat> Subject: LaTeX line spacing...
and the question posed was:
kat> I have a question about single spacing Table in a double spacing (set by
kat> \beselinestretch=2.0) document. Is there a easy solution to have
kat> single spacing Tables in a double spacing document? Thanks!
 
The first thing that scare me is that few of us LaTeX-users fully comprehend
the impact of a document-wide parameter, such as \baselinestretch=2.0 (or
for that matter, the nuances of something seemingly innocuous, like
parindent=0pt), which can have devastating effects if an environment uses it
in an interesting manner.  Instead, and I will speak strictly for myself on
this, I appreciate LaTeX precisely because it protects me from these errors
and I don't have to worry about them (usually; just in case ll is listening
in 8-)).  Subsequently, we have seen:
 
xf> The original post asks a ``simple'' solution I don't understand why
xf> people tend to give ``complicated'' solution. I am surprised that it
xf> needs a doublespace.sty to do double spacing. As a Plain TeX user, I
xf> may underestimate the problem you have. The following ``simple'' LaTeX
xf> file I wrote using Plain TeX commands switch back and forth between
xf> double spacing and single spacing [or any kind of spacing with slight
xf> modifications], am I so naive?
 
Again, to not offend anyone's sensitivities, for this LaTeX user, "simple"
means find a style, see if it has what I want, then use it in this instance
for life.  The underestimation of TeX users of LaTeX users knowledge of the
underlying aspects of what makes LaTeX tick is often overlooked.  I use
LaTeX because I don't want to learn TeX comprehensively.  Just as many of
you use an editor and didn't write one for special use because writing an
editor can be a real pain.  I'll use this example because, along with a
knowledgeable and patient friend, I did write a (La)TeX-oriented editor
precisely because I wasn't satisfied with plain old EVE under TPU.  Does
that make EVE a bad product?  Nope, just means I know more about how it
works than the average user.  Do I criticize other editors?  You bet!  Do I
criticize others who don't use my editor in TeX environments?  Nope (but I
should 8-)).  Anyway, enough of that parallel; let's see what doublespace
does to the document suggested as a template (I'll comment in what
doublespace would require):
 
xf> %%% Cut Here %%%
xf> \documentstyle{article}    %\documentstyle[doublespace]{article}
xf> \begin{document}
xf>
xf> \multiply\baselineskip by 2  %not used; this is default in doublespace.sty
xf>
xf> I am not a \LaTeX user so I don't know much about \LaTeX. I think \LaTeX
xf> is designed the way it is, if you ask it to do something it was not designed
,
xf> it is not fair.
xf>
xf> \baselineskip=0.5\baselineskip %\begin{singlespace}
xf> \bigskip                       % nope
xf>
xf> In that case, I think you need to use Plain \TeX\ instead of \LaTeX.
xf> Thanks for eplain, we Plain \TeX users have both the \LaTeX's convenience
xf> and Plain \TeX's flexiblility.
xf>                                                 %okay, this works for
xf> {\halign to 1.0 in{\hfil#\hfil&\hfil#\hfil\cr   %tabular and the TeX
xf>  cattle&herd\cr                                 %equivalent, but does it
xf>  fish&school\cr                                 %LaTeX's table which is
xf>  lion&pride\cr}}                                %a float?  Not without a
xf>                                                 %lot more code?  Haven't
xf> \begin{tabular}{|c|c|} \hline                   %tried it, but what happens
xf> \begin{tabular}{c} Column \\ \#1 \end{tabular} &       %to footnotes here
xf> \begin{tabular}{c} Column \#2 \end{tabular} \\ \hline  %under this code?
xf> 1985 & 43.2 \\ \hline                           %Remember, the question,
xf> 1992 & 51.6 \\ \hline                           %from a LaTeX user, was
xf> \end{tabular}                                   %about table!
xf>
xf> \multiply\baselineskip by 2     %\end{singlespace}
xf>
xf> As I said in the first paragraph, I am not a \LaTeX user. The solution I
xf> provide here used \TeX\ commands. Is this waht the original post asks?
xf>
xf> \end{document}
xf> %%% Cut Here %%%
 
Final point.  The argument is moot.  LaTeX people handle things a little
differently, using the same base product as TeX people, due to the work
Lamport put into LaTeX and the work of others who, over the years, have
designed outstanding and innovative style files for the product.  A TeX
die-hard can talk until (s)he is blue in the face, and I will probably never
change (but I might have to learn a little here and there); similarly, I
don't expect a LaTeXie can talk a TeXie into switching.  Fortunately,
between both groups, we have a few things in common so we can at least
communicate, compare, and work to get the best output possible.
 
In best wishes and not intending to ruffle any feathers (but sure I will).
 
George
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
George D. Greenwade, Ph.D.                            Bitnet:  BED_GDG@SHSU
Department of Economics and Business Analysis         THEnet: SHSU::BED_GDG
P. O. Box 2118                                        Voice: (409) 294-1266
Sam Houston State University                          FAX:   (409) 294-3612
Huntsville, TX 77341            Internet: bed_gdg%shsu.decnet@relay.the.net
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

bed_gdg@SHSU.BITNET ("George D. Greenwade") (02/15/91)

First, the "simplicity" of a style shouldn't be attacked.  Why did I choose
to reply to this with a style?  Well, the Subject was:
kat> Subject: LaTeX line spacing...
and the question posed was:
kat> I have a question about single spacing Table in a double spacing (set by
kat> \beselinestretch=2.0) document. Is there a easy solution to have
kat> single spacing Tables in a double spacing document? Thanks!
 
The first thing that scares me is that few of us LaTeX-users fully
comprehend the impact of a document-wide parameter, such as
\baselinestretch=2.0 (or for that matter, the nuances of something seemingly
innocuous, like \parindent=0pt), which can have devastating effects if an
environment uses it in an interesting manner.  I will speak strictly for
myself on this: I appreciate LaTeX precisely because it protects me from
these errors and I don't have to worry about them (usually; just in case ll
is listening in 8-)).  Subsequently, we have seen:
 
xf> The original post asks a ``simple'' solution I don't understand why
xf> people tend to give ``complicated'' solution. I am surprised that it
xf> needs a doublespace.sty to do double spacing. As a Plain TeX user, I
xf> may underestimate the problem you have. The following ``simple'' LaTeX
xf> file I wrote using Plain TeX commands switch back and forth between
xf> double spacing and single spacing [or any kind of spacing with slight
xf> modifications], am I so naive?
 
Not to offend anyone's sensitivities, but for this LaTeX user, "simple"
means find a style, see if it has what I want, then use it in this instance
for life.  The underestimation of TeX users of LaTeX users knowledge of the
underlying aspects of what makes LaTeX tick is often overlooked.  I use
LaTeX because I don't want to learn TeX comprehensively.  Just as many of
you use an editor and didn't write one for special use because writing an
editor can be a real pain.  I'll use this example because, along with a
knowledgeable and patient friend, I did write a (La)TeX-oriented editor
precisely due to the fact that I wasn't satisfied with plain old EVE under
TPU.  Does that make EVE a bad product?  Nope, just means I know more about
how it works than the average user.  Do I criticize other editors?  You bet!
Do I criticize others who don't use my editor in TeX environments?  Nope
(but I should 8-)).  Anyway, enough of that parallel; let's see what
doublespace does to the document suggested as a template (I'll comment in
what doublespace would require):
 
xf> %%% Cut Here %%%
xf> \documentstyle{article}    %\documentstyle[doublespace]{article}
xf> \begin{document}
xf>
xf> \multiply\baselineskip by 2  %not used; this is default in doublespace.sty
xf>
xf> I am not a \LaTeX user so I don't know much about \LaTeX. I think \LaTeX
xf> is designed the way it is, if you ask it to do something it was not designed
,
xf> it is not fair.
xf>
xf> \baselineskip=0.5\baselineskip %\begin{singlespace}
xf> \bigskip                       % nope
xf>
xf> In that case, I think you need to use Plain \TeX\ instead of \LaTeX.
xf> Thanks for eplain, we Plain \TeX users have both the \LaTeX's convenience
xf> and Plain \TeX's flexiblility.
xf>                                                 %okay, this works for
xf> {\halign to 1.0 in{\hfil#\hfil&\hfil#\hfil\cr   %tabular and the TeX
xf>  cattle&herd\cr                                 %equivalent, but does it
xf>  fish&school\cr                                 %LaTeX's table which is
xf>  lion&pride\cr}}                                %a float?  Not without a
xf>                                                 %lot more code?  Haven't
xf> \begin{tabular}{|c|c|} \hline                   %tried it, but what happens
xf> \begin{tabular}{c} Column \\ \#1 \end{tabular} &       %to footnotes here
xf> \begin{tabular}{c} Column \#2 \end{tabular} \\ \hline  %under this code?
xf> 1985 & 43.2 \\ \hline                           %Remember, the question,
xf> 1992 & 51.6 \\ \hline                           %from a LaTeX user, was
xf> \end{tabular}                                   %about table!
xf>
xf> \multiply\baselineskip by 2     %\end{singlespace}
xf>
xf> As I said in the first paragraph, I am not a \LaTeX user. The solution I
xf> provide here used \TeX\ commands. Is this waht the original post asks?
xf>
xf> \end{document}
xf> %%% Cut Here %%%
 
Final point.  The argument is moot.  LaTeX people handle things a little
differently, using the same base product as TeX people, due to the work
Lamport put into LaTeX and the work of others who, over the years, have
designed outstanding and innovative style files for the product.  A TeX
die-hard can talk until (s)he is blue in the face, and I will probably never
change (but I might have to learn a little here and there); similarly, I
don't expect a LaTeXie can talk a TeXie into switching.  Fortunately,
between both groups, we have a quite few things in common so we can at least
communicate, compare, and work to get the best output possible.
 
In best wishes and not intending to ruffle any feathers (but sure I will).
 
George
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
George D. Greenwade, Ph.D.                            Bitnet:  BED_GDG@SHSU
Department of Economics and Business Analysis         THEnet: SHSU::BED_GDG
P. O. Box 2118                                        Voice: (409) 294-1266
Sam Houston State University                          FAX:   (409) 294-3612
Huntsville, TX 77341            Internet: bed_gdg%shsu.decnet@relay.the.net
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
BTW: If anyone does come across Max's style file, I would appreciate a copy
for the style collection here.  Please send it to STY-Mgr@SHSU.BITNET.

xiaofei@acsu.buffalo.edu (Xiaofei Wang) (02/15/91)

In article <00944397.b47eab20.27440@SHSU.BITNET> bed_gdg@SHSU.BITNET ("George D. Greenwade") writes:
* xf> {\halign to 1.0 in{\hfil#\hfil&\hfil#\hfil\cr  %tabular and the TeX
* xf>  cattle&herd\cr                                %equivalent, but does it
* xf>  fish&school\cr                                %LaTeX's table which is
* xf>  lion&pride\cr}}                               %a float?  Not without a
* xf>                                                %lot more code?  Haven't
* xf> \begin{tabular}{|c|c|} \hline                  %tried it, but what happens
* xf> \begin{tabular}{c} Column \\ \#1 \end{tabular} &      %to footnotes here
* xf> \begin{tabular}{c} Column \#2 \end{tabular} \\ \hline %under this code?
* xf> 1985 & 43.2 \\ \hline                          %Remember, the question,
* xf> 1992 & 51.6 \\ \hline                          %from a LaTeX user, was
* xf> \end{tabular}                                  %about table!

Spacing in footnote is separately controled by ``\baselineskip'' also
just like the text. You can have single spaced, double spaced, etc.
footnote.  For example: 

\footnote{\multiply\baselineskip by 2 
I don't mean that \LaTeX\ is not good. All I am saying is one should
not ask \LaTeX\ to do things it does not do.}

produces a double spaced footnote.
-- 
xiaofei@acsu.buffalo.edu / rutgers!ub!xiaofei / v118raqa@ubvms.bitnet

xiaofei@acsu.buffalo.edu (Xiaofei Wang) (02/17/91)

In article <1991Feb15.204223.1@freke.claremont.edu> dhosek@freke.claremont.edu (Don Hosek) writes:
* Yes, but getting a singlespaced footnote in doublespaced text is
* not so easy. Trust me, I've worked on the problem. There are some
* nasty timing issues related to changing \baselineskip and
* besides, who wants to tell TeX to singlespace everytime they
* start a footnote? I'm sorry, but that's just plain stupid.

It depends how you start double spaced text. If you start with
``\baselineskip'' then ``\footnote'' is single spaced by default even
though the text is double spaced.  You have to tell \footnote
specifically if you don't want a single spaced footnote.

The following file will demonstrate what I said: The text is double
spaced and the footnote is single spaced.

\documentstyle{article}
\begin{document}

\multiply\baselineskip by 2

I am not a \LaTeX user so I don't know much about \LaTeX. I think \LaTeX
is designed the way it is, if you ask it to do something it was not designed,
it is not fair.
\footnote{
This is my opinion but I am just a student so my opinion does not
matter. I don't mean that \LaTeX\ is not good. All I am saying is one should
not ask \LaTeX\ to do things it does not do.}
\end{document}
-- 
xiaofei@acsu.buffalo.edu / rutgers!ub!xiaofei / v118raqa@ubvms.bitnet

dhosek@freke.claremont.edu (Don Hosek) (02/17/91)

In article <60238@eerie.acsu.Buffalo.EDU>, xiaofei@acsu.buffalo.edu (Xiaofei Wang) writes:
> In article <1991Feb15.204223.1@freke.claremont.edu> dhosek@freke.claremont.edu (Don Hosek) writes:
> * Yes, but getting a singlespaced footnote in doublespaced text is
> * not so easy. Trust me, I've worked on the problem. There are some
> * nasty timing issues related to changing \baselineskip and
> * besides, who wants to tell TeX to singlespace everytime they
> * start a footnote? I'm sorry, but that's just plain stupid.
 
> It depends how you start double spaced text. If you start with
> ``\baselineskip'' then ``\footnote'' is single spaced by default even
> though the text is double spaced.  You have to tell \footnote
> specifically if you don't want a single spaced footnote.
 
> The following file will demonstrate what I said: The text is double
> spaced and the footnote is single spaced.
 
[LaTeX example deleted]

I should've been more explicit. Yes, in fact, in LaTeX, the
single spacing is automatic because LaTeX resets the baselineskip
with every font size change. However, I was referring to plain
TeX in which getting single-spaced footnotes in doublespaced text
is a little bit more of a challenge.

---
Don Hosek   To retrieve files from ymir via the    | dhosek@ymir.claremont.edu
            mailserver, send a message to          | Quixote TeX Consulting
            mailserv@ymir.claremont.edu with a     | 714-625-0147
            line saying send [DIRECTORY]FILENAME 
            where DIRECTORY is the FTP directory (sans "anonymous") and 
            FILENAME is the filename, e.g. "send [tex]00readme.txt". There is
            a list of files in each directory under the name 00files.txt
            Binary files are not available by this technique.

Coming soon: TeX 3.1 [PD VMS 3.5].