[comp.text.tex] Indenting references correctly

glenn@rigel.econ.uga.edu (Glenn F. Leavell) (05/08/91)

What is the easiest way to format references in TeX so that the 2nd and
all subsequent lines of each entry are indented?

For example, how do I get this:

Buchanan, James M. and Dwight R. Lee, "Cartels, Coalitions, and Constitutional
     Politics," Constitutional Political Economy , Vol.  2, No. 2 (Spring/Summer
     1991), forthcoming.


Thanks for any help.

--  
Glenn Leavell
University of Georgia Economics Department
glenn@rigel.econ.uga.edu

eijkhout@s41.csrd.uiuc.edu (Victor Eijkhout) (05/08/91)

glenn@rigel.econ.uga.edu (Glenn F. Leavell) writes:

>What is the easiest way to format references in TeX so that the 2nd and
>all subsequent lines of each entry are indented?

>For example, how do I get this:

>Buchanan, James M. and Dwight R. Lee, "Cartels, Coalitions, and Constitutional
>     Politics," Constitutional Political Economy , Vol.  2, No. 2 (Spring/Summer
>     1991), forthcoming.

\hangafter=1 \hangindent=\parindent

Victor.

anita@brahms.udel.edu (Anita Marie Hoover) (05/08/91)

In article <1991May8.152815.23824@csrd.uiuc.edu> eijkhout@s41.csrd.uiuc.edu (Victor Eijkhout) writes:
=>glenn@rigel.econ.uga.edu (Glenn F. Leavell) writes:
=>
=>>What is the easiest way to format references in TeX so that the 2nd and
=>>all subsequent lines of each entry are indented?
=>
=>>For example, how do I get this:
=>
=>>Buchanan, James M. and Dwight R. Lee, "Cartels, Coalitions, and Constitutional
=>>     Politics," Constitutional Political Economy , Vol.  2, No. 2 (Spring/Summer
=>>     1991), forthcoming.
=>
=>\hangafter=1 \hangindent=\parindent
=>

or

% Define heading to be whatever you want or totally get rid of it
% if you don't need it. 
\def\heading#1{\centerline{\bf #1}\par}
\def\beginref#1{\heading{#1}\begingroup
                \clubpenalty=10000
                \widowpenalty=10000
                \normalbaselines\parindent 0pt 
                \parskip.5\baselineskip
                \everypar{\hangindent3em}}
\def\endref{\par\endgroup}

Produces single spaced references with 1 1/2 spacing between
references.

To use,

\beginref{References}
Buchanan, James M. and Dwight R. Lee, ``Cartels, Coalitions, and Constitutional
Politics,'' Constitutional Political Economy , Vol.  2, No. 2 (Spring/Summer
1991), forthcoming.

Hoover, Anita Z., ``Little testing reference,'' blah, blah, blah.
\endref

glenn@rigel.econ.uga.edu (Glenn F. Leavell) (05/09/91)

I recently wrote:

>What is the easiest way to format references in TeX so that the 2nd and
>all subsequent lines of each entry are indented?

Thanks to the following for responding with suggestions:

	Victor Eijkhout <eijkhout@s41.csrd.uiuc.edu>
	Thomas Ridgeway <haccme@milton.u.washington.edu>
	Patrick Palmer <ppalmer@oskar.uchicago.edu>
	Ian Turton <ian@castle.edinburgh.ac.uk>
	Julian Cowley  <julian@uhunix.uhcc.hawaii.edu>

Based on the responses that I received, there seem to be two basic ways
to do this.  Thanks to Patrick Palmer and Julian Cowley for the suggestion 
of creating a definition like this:

	\def\ref{\medskip\noindent\hang}

Then, one can type something like this:

	\ref First reference entry
	\ref Next reference entry
	\ref
	Another reference entry

In the definition above, \hang will make the lines indent by the amount
of \parindent.  If you want to use a different amount, you could use
something like this:

	\def\ref{\medskip\noindent\hangindent=5tp}

The next method does not involve using definitions.  This method involves
changing the left margin, and then making the first line indent by
a negative amount accross the margin.  Thanks to Tom Ridgeway for this one:

	{\advance\leftskip by \parindent
	\parindent=-\parindent
	First reference entry
	\medskip
	Next reference entry
	\medskip
	Another reference entry\medskip}

I also received a couple of suggestions that I could not get to work.  This
is probably due to something that I don't understand about TeX, so I'll 
include them for the rest of you.

Thanks to Ian Turton:
Use \item before each reference entry like this:
	\item First reference entry
	\item Next reference entry
	\item Another reference entry

Thanks to Victor Eijkhout.  Use the following:
	\hangafter=1 \hangindent=\parindent


Again, thanks to everyone who replied.

--Glenn Leavell
  glenn@rigel.econ.uga.edu

dahosek@biivax.dp.beckman.com (05/10/91)

In article <1991May8.135711.1753@rigel.econ.uga.edu>, glenn@rigel.econ.uga.edu (Glenn F. Leavell) writes:
> What is the easiest way to format references in TeX so that the 2nd and
> all subsequent lines of each entry are indented?
 
> For example, how do I get this:
 
> Buchanan, James M. and Dwight R. Lee, "Cartels, Coalitions, and Constitutional
>      Politics," Constitutional Political Economy , Vol.  2, No. 2 (Spring/Summer
>      1991), forthcoming.

In plain TeX, begin the para with 
       \hangindent\parindent\noindent

It's got a nice ring to it, doesn't it?

-dh

-- 
Don Hosek // Quixote Digital Typography   714-625-0147

On contract to Beckman Instruments        714-961-4562

ian@castle.ed.ac.uk (Ian Turton) (05/10/91)

glenn@rigel.econ.uga.edu (Glenn F. Leavell) writes:

#>What is the easiest way to format references in TeX so that the 2nd and
#>all subsequent lines of each entry are indented?

#Thanks to Ian Turton:
two small corrections 

#Use \item before each reference entry like this:
  \begin{description}
#	\item First reference entry
#	\item Next reference entry
#	\item Another reference entry
  \end{description}


#--Glenn Leavell
#  glenn@rigel.econ.uga.edu
-- 
Ian Turton                                Dept of Geophysics and geology
ian@uk.ac.edinburgh                       JCMB, Kings Buildings
                                          Mayfield Rd, Edinburgh,UK
     ***If you don't like my views sue my boss, he'll love it.***