Thread View: comp.text
6 messages
6 total messages
Started by Clare Chu
Mon, 24 Nov 1986 17:16
Double-spacing in TeX
Author: Clare Chu
Date: Mon, 24 Nov 1986 17:16
Date: Mon, 24 Nov 1986 17:16
5 lines
652 bytes
652 bytes
Hi, does anyone know how to get TeX to double-space instead of single-space? I haven't figured out how. Thanks, Clare
Re: Double-spacing in TeX
Author: myers
Date: Wed, 03 Dec 1986 00:48
Date: Wed, 03 Dec 1986 00:48
40 lines
2467 bytes
2467 bytes
In article <1577@batcomputer.tn.cornell.edu> chu@batcomputer.UUCP (Clare Chu) writes:
>
>Hi, does anyone know how to get TeX to double-space instead
>of single-space? I haven't figured out how.
One of the nice things about TeX is that you can put characters anywhere
you want on the page by playing with the spacing parameters. One of the
not so nice things is that "Plain" TeX does not include some sort of
default definition of what doublespacing is. I use the following macros:
% Single and double spacing, etc...
\def\doublespaced{\baselineskip=\normalbaselineskip % reset to normal
\multiply\baselineskip by 150 % doublespacing is
\divide\baselineskip by 100} % really 1.5 of normal
\def\doublespace{\doublespaced} % synonym
\def\singlespaced{\baselineskip=\normalbaselineskip} % reset interline space
\def\singlespace{\singlespaced} % synonym
\triplespaced{\baselineskip=\normalbaselineskip % reset interline space
\multiply\baselineskip by 3} % increase X 3
\def\widenspacing{\multiply\baselineskip by 125 % increase interline
\divide\baselineskip by 100} % by X 1.25
\def\whitespace{\widenspacing} % synonym
Comments: What I've called "doublespacing" actually only increases the
interline spacing by 1.5, but on a printed page it looks about like you
would want it to. Actually doubling the spacing makes it too wide.
The \triplespaced macro, on the other hand, really does increase the
interline spacing by a factor of 3. The only reason I can think of for
using this is if you print a draft and want to mark it up, so I leave
lots of space. In the middle, you can say \widenspacing and it will
increase the current spacing by a factor of 1.25. Unlike \doublespaced
or \triplespaced it does not reset the interline spacing to normal first.
So if you find my \doublespaced is a little too narrow for your tastes,
try \doublespaced\widenspacing.
Re: Double-spacing in TeX
Author: Chris Torek
Date: Wed, 03 Dec 1986 21:13
Date: Wed, 03 Dec 1986 21:13
17 lines
1254 bytes
1254 bytes
In article <2084@dalcs.UUCP> myers@dalcs.UUCP writes:
>\def\doublespaced{\baselineskip=\normalbaselineskip % reset to normal
> \multiply\baselineskip by 150 % doublespacing is
> \divide\baselineskip by 100} % really 1.5 of normal
>\def\doublespace{\doublespaced} % synonym
Note that you can simplify this (and the other examples) by using
\def\doublespaced{\baselineskip=1.5\normalbaselineskip}
\let\doublespace=\doublespaced
Doing this sort of thing is not terribly important unless you are
building a big macro package; but if you are, this saves precious
memory space.
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690)
UUCP: seismo!mimsy!chris ARPA/CSNet: chris@mimsy.umd.edu
Re: Double-spacing in TeX
Author: Bruce Langdon
Date: Fri, 05 Dec 1986 04:01
Date: Fri, 05 Dec 1986 04:01
9 lines
1018 bytes
1018 bytes
In article <2084@dalcs.UUCP>, myers@dalcs.UUCP writes: > One of the > not so nice things is that "Plain" TeX does not include some sort of > default definition of what doublespacing is. I use the following macros: > Suppose you have two footnotes on a page. What I got was double-spacing within each footnote --but a single space between the footnotes. Yuk. Maybe one has to redefine \strut too. I haven't sorted this out. Has someone else out there?
Re: Double-spacing in TeX
Author: Bruce Langdon
Date: Sun, 07 Dec 1986 05:40
Date: Sun, 07 Dec 1986 05:40
24 lines
1897 bytes
1897 bytes
In article <486@lll-lcc.aRpA>, langdon@lll-lcc.aRpA (Bruce Langdon) writes:
> In article <2084@dalcs.UUCP>, myers@dalcs.UUCP writes:
> > One of the
> > not so nice things is that "Plain" TeX does not include some sort of
> > default definition of what doublespacing is. I use the following macros:
> >
> Suppose you have two footnotes on a page. What I got was double-spacing
> within each footnote --but a single space between the footnotes. Yuk.
> Maybe one has to redefine \strut too. I haven't sorted this out.
I just tried this: Redefining the dimensions in \strutbox in proportion to
\baselineskip does fix this problem in a few tests. Define it (see
p. 353) to, e.g.
\setbox\strutbox=\hbox{\vrule height17pt depth7pt width0pt}
when using \baselineskip=24pt. Just include this line after setting
\baselineskip.
Anyone know if this causes any other problems?
----------------------------------------------------------------------
Bruce Langdon L-472 langdon@lll-lcc.ARPA
Physics Department "langdon#bruce%d@lll-mfe.ARPA"
Lawrence Livermore National Laboratory
Livermore, CA 94550 (415) 422-5444
UUCP: ..{ihnp4,qantel,ucdavis,pyramid,styx,topaz}!lll-lcc!langdon
..{gymble,ll-xn,seismo}!lll-crg!lll-lcc!langdon
Re: Double-spacing in TeX
Author: myers
Date: Thu, 11 Dec 1986 15:12
Date: Thu, 11 Dec 1986 15:12
26 lines
1610 bytes
1610 bytes
>Suppose you have two footnotes on a page. What I got was double-spacing
>within each footnote --but a single space between the footnotes. Yuk.
>Maybe one has to redefine \strut too. I haven't sorted this out.
>Has someone else out there?
I've had that problem too, but I found I prefered to have the footnotes
singlespaced at the bottom. Then you say, for example,
\footnote*{\singlespaced blah blah blah...}
Otherwise you have to muck with the space between footnotes (is that
a \strut?). I've done that too, but don't remember the easy solution off
hand.
Eric Myers Dept. of Mathematics, Statistics and Computing Science
Dalhousie University, Halifax, Nova Scotia, Canada
BITNET: myers@cs.dal.cdn (or dube184@dal.bitnet)
UUCP: ...! { utai, seismo, watmath } !dalcs!myers
ARPA: myers%cs.dal.cdn%ubc.csnet@CSNET-RELAY.ARPA
CSNET: myers%cs.dal.cdn@ubc.csnet
CDN: myers@cs.dal.cdn
Cubans, slush fund, cover-up <-- food for the spooks.
Contras, Iran, Swiss bank account, deja vu... (Hi Guys!)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads