Line spacing in epigram

384 views
Skip to first unread message

AndyF

unread,
Sep 30, 2008, 6:11:43 AM9/30/08
to LaTeX Users Group
Dear all,

Any ideas for how to coerce the epigraph command in the epigraph
package to use single line spacing, when the default for the document
is one-and-a-half spacing? I've tried inserting the "\singlespace"
command in various places, but it has no effect.

Many thanks,

Andy

Bruno Lopes

unread,
Sep 30, 2008, 6:26:25 AM9/30/08
to latexus...@googlegroups.com
Try like this:

{\protect\singlespace Here cames your text}

Bruno.

2008/9/30 AndyF <alm...@gmail.com>



--
Bruno Lopes Vieira

Linux User #324250
Curriculum Vitae: http://lattes.cnpq.br/7793315334001237
--
"Never express yourself more clearly than you are able to think."
(Niels Bohr)

AndyF

unread,
Sep 30, 2008, 7:15:30 AM9/30/08
to LaTeX Users Group
On 30 Sep, 11:26, "Bruno Lopes" <blopesvie...@gmail.com> wrote:
> Try like this:
>
> {\protect\singlespace Here cames your text}

Dear Bruno,

Thanks for your reply.

Nearly, very nearly! The first three lines in the following are
single spaced, after which 1.5 returns:

\epigraph{{\protect\singlespace This could be a poem,\\
Spanning multiple lines.\\
Protect singlespace works up 'til here---\\
Not here, alas, which makes me sigh.}}{Mildly Frustrated.}

The following doesn't work at all: 1.5 space the whole way (3 lines).

\epigraph{{\protect\singlespace This is a longer flowing piece of
text,
line breaks in which need not be manually coerced or
manipulated.
Protect singlespace does not work at all for this.}}{}

I FINALLY remembered that footnotes are single spaced in the style I
use. The code for that turned out to be comprehensible:

\let\tmp@footnotetext=\@footnotetext
\renewcommand{\@footnotetext}[1]%
{{\singlespace\tmp@footnotetext{#1}}}

Quick copy+paste+edit to:

\let\tmpepigraph=\epigraph
\renewcommand{\epigraph}[2]%
{{\singlespace\tmpepigraph{#1}{#2}}}

This appears to do the trick.

Andy
Reply all
Reply to author
Forward
0 new messages