Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Single space subsubsection in double space document with setspace package

711 views
Skip to first unread message

Mike Broschinsky

unread,
Nov 1, 2001, 9:29:17 AM11/1/01
to
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.

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

Markus Kohm

unread,
Nov 2, 2001, 4:57:45 AM11/2/01
to
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}
\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

unread,
Nov 2, 2001, 9:05:06 AM11/2/01
to
Markus Kohm <marku...@gmx.de> wrote in
<3389308.D...@ID-107054.user.dfncis.de>:

>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

Markus Kohm

unread,
Nov 2, 2001, 10:33:13 AM11/2/01
to
Mike Broschinsky <Michael.B...@m.cc.utah.edu> wrote on Freitag,
2. November 2001 15:05:

> 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.

Mike Broschinsky

unread,
Nov 4, 2001, 5:30:45 PM11/4/01
to
What I have finally decided to do is this. Rather than set \doublespacing
in the prolog, I begin a new double space environment for each subsection,
thus:

\documentclass[12pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{setspace}
\begin{document}
\subsection{This Is the Subsection Title}
\subsubsection{This Is the Subsubsection Title}
\begin{doublespace}
.
.
.
\end{doublespace}
(repeat for each subsubsection)
\end{document}

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]

0 new messages