I have used the setspace package to set up the double-spacing by using this
prolog:
\documentclass[12pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{setspace}
\doublespacing
I get a lovely double-spaced document, including the subsubsection headers
(I'm going straight to the subsubsection level in the document). I would
like the subsection headers that go to more than one line--all of them, as
they are all author book titles in an annotated bibliography--to be single-
spaced. I have tried three approaches.
1)
\begin{singlespace}
\subsubsection*{Title goes here}
\end{singlespace}
This sets the subsubsection heading in singlespace, but makes for
inconsistent spacing between text and subsubsection headings.
2)
\subsubsection*{\begin{singlespace}Title goes here\end{singlespace}}
This sets the subsubsection heading in singlespace, but indents the heading
one tab stop.
3)
\subsubsection*{\protect\begin{singlespace}Title goes
here\protect\end{singlespace}}
This gives the same result as 2) above.
Options 2) and 3) seem to address the inconsistent spacing between text and
headings, though.
Can I have a flush-left, single-spaced subsubsection heading in a double-
spaced document created with the setspace package? Is the \protect
necessary in option 3)?
Thanks for your help,
Mike
> Can I have a flush-left, single-spaced subsubsection heading in a
> double- spaced document created with the setspace package?
Try this:
\documentclass[letterpaper,12pt]{scrartcl}
\usepackage{setspace}
\doublespacing
\typearea[current]{current}
\renewcommand*{\sectfont}{\singlespacing\normalfont\bfseries}
\begin{document}
\section{This is a section with very long text at the section header
to demonstrate the result}
This is a test. This is a test. This is a test. This is a test. This
is a test. This is a test. This is a test. This is a test. This is a
test. This is a test. This is a test. This is a test. This is a
test. This is a test.
\end{document}
> Class papers must be
> single-spaced to allow for professor's handwritten comments.
If someone needs double spacing for handwritten comments he should
learn proof-reader's marks. So he only should need wide margins.
Markus
--
KOMA-Script documentation project at http://www.socha.net/scrguide
>Mike Broschinsky <Michael.B...@m.cc.utah.edu> wrote on
>Donnerstag, 1. November 2001 15:29:
>
>> Can I have a flush-left, single-spaced subsubsection heading in a
>> double- spaced document created with the setspace package?
>
>Try this:
>
>\documentclass[letterpaper,12pt]{scrartcl}
>\usepackage{setspace}
>\doublespacing
>\typearea[current]{current}
>\renewcommand*{\sectfont}{\singlespacing\normalfont\bfseries}
>\begin{document}
[snip]
I changed the document class to article, since my LaTeX didn't seem to
recognize {scrartcl}.
I LaTeX'd the article, and LaTeX returned this error:
-----------------------------------------------------------
! Undefined control sequence.
--- TeX said ---
l.4 \typearea
[current]{current}
?
------------------------------------------------------------
I quit LaTeX, and comment out the \typearea command, the LaTeX the
document again:
------------------------------------------------------------
! LaTeX Error: \sectfont undefined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.5 \renewcommand*{\sectfont}
{\singlespacing\normalfont\bfseries}
?
------------------------------------------------------------
These errors have me very confused. Perhaps my version of LaTeX is at
fault. LaTeX reports a date of 2000/06/01, and is the one packaged with
MikTeX 2.1 (yes, I'm running Windows).
>> Class papers must be
>> single-spaced to allow for professor's handwritten comments.
>
>If someone needs double spacing for handwritten comments he should
>learn proof-reader's marks. So he only should need wide margins.
Of course, I should have said "double-spaced" above. There is a reason
for this. Proof-reader's marks do not allow for extensive comments
regarding the content of the paper, which can be usefully written in
between the lines of typeset text. In any event, I can see a reason for
the double-spacing, and am loathe to tell my committee members (I'm a
doctoral student in political science) that they ought to restrict
themselves to proof-reader's marks :)
Thanks for your help, Markus.
Mike
> I changed the document class to article, since my LaTeX didn't seem to
> recognize {scrartcl}.
That's the reason for the errors. This works only with KOMA-Script.
You'll find it at CTAN.
> Proof-reader's marks do not allow for extensive comments
Proof-reader's marks allow as extensive comments as writing them
between the lines. But reading the comments at a wide margin is much
easier.
This works adequately for my needs.
Mike
Michael.B...@m.cc.utah.edu (Mike Broschinsky) wrote in
<Xns914C4C191866AMi...@155.99.1.12>:
>I'm using LaTeX to type up a paper for a class. Class papers must be
>single-spaced to allow for professor's handwritten comments.
>
>I have used the setspace package to set up the double-spacing by using
>this prolog:
>
>\documentclass[12pt]{article}
>\usepackage[margin=1in]{geometry}
>\usepackage{setspace}
>\doublespacing
>
>I get a lovely double-spaced document, including the subsubsection
>headers (I'm going straight to the subsubsection level in the document).
>I would like the subsection headers that go to more than one line--all
>of them, as they are all author book titles in an annotated
>bibliography--to be single- spaced. I have tried three approaches.
[snip]