Re: APA with a Table of Contents: Losing the subparagaph in the ToC

2014-06-27 Thread John Kane
Hi Jacob
Many thanks.   It now is working and it even let's me insert a couple of
new page commands that seem to allow me a separate TOC page.  Fantastic!.

My apologies for the knitr and shortnames modules.  They are part of my
regular template and I tend to forget I even load them until I actually use
them.


On 24 June 2014 17:33, Jacob Bishop  wrote:

> Hi John,
>
> A couple of things. First, you have included the knitr and
> short-inset-names modules in the document, which as far as I can tell are
> not used for this minimal example. I removed them since I'm not yet set up
> to work with those. This shouldn't cause any problems, but I thought I'd
> mention it in case.
>
> As a disclaimer, I am not exactly sure what I'm doing, but when I opened
> up the apa.cls file and searched for paragraph and subparagraph, I found:
> \renewcommand{\paragraph}{\@startsection{paragraph}{4}{\parindent}%
> {0\baselineskip \@plus 0.2ex \@minus 0.2ex}%
> {-1em}%
> {\normalfont\normalsize\bfseries\itshape\addperi}}
>
> \renewcommand{\subparagraph}[1]{\@startsection{subparagraph}{5}{1em}%
> {0\baselineskip \@plus 0.2ex \@minus 0.2ex}%
> {-\z@\relax}%
>
> {\normalfont\normalsize\itshape\hspace{\parindent}{#1}\textit{.}}{\relax}}
>
> The thing is, with the document you sent, the paragraph part is working,
> but the subparagraph part is not. So, if we use a little trial-and-error to
> put them together, I end up with the following, which seems to work if you
> paste it into your preamble (under Document->Settings->LaTeX Preamble).
>
>
> \renewcommand{\subparagraph}{\@startsection{subparagraph}{5}{\parindent}%
>
> {0\baselineskip \@plus 0.2ex \@minus 0.2ex}%
>
> {-1em}%
>
> {\normalfont\normalsize\itshape\addperi}}
>
>
> As a disclaimer, I'm not actually sure what I've done there, and it could
> break something else, but it seems to work for me...maybe somebody who
> understands things better can provide more insight. I hope this helps.
>
> Jacob
>



-- 
John Kane
Kingston ON Canada


Re: APA with a Table of Contents: Losing the subparagaph in the ToC

2014-06-24 Thread Jacob Bishop
Hi John,

A couple of things. First, you have included the knitr and
short-inset-names modules in the document, which as far as I can tell are
not used for this minimal example. I removed them since I'm not yet set up
to work with those. This shouldn't cause any problems, but I thought I'd
mention it in case.

As a disclaimer, I am not exactly sure what I'm doing, but when I opened up
the apa.cls file and searched for paragraph and subparagraph, I found:
\renewcommand{\paragraph}{\@startsection{paragraph}{4}{\parindent}%
{0\baselineskip \@plus 0.2ex \@minus 0.2ex}%
{-1em}%
{\normalfont\normalsize\bfseries\itshape\addperi}}

\renewcommand{\subparagraph}[1]{\@startsection{subparagraph}{5}{1em}%
{0\baselineskip \@plus 0.2ex \@minus 0.2ex}%
{-\z@\relax}%

{\normalfont\normalsize\itshape\hspace{\parindent}{#1}\textit{.}}{\relax}}

The thing is, with the document you sent, the paragraph part is working,
but the subparagraph part is not. So, if we use a little trial-and-error to
put them together, I end up with the following, which seems to work if you
paste it into your preamble (under Document->Settings->LaTeX Preamble).


\renewcommand{\subparagraph}{\@startsection{subparagraph}{5}{\parindent}%

{0\baselineskip \@plus 0.2ex \@minus 0.2ex}%

{-1em}%

{\normalfont\normalsize\itshape\addperi}}


As a disclaimer, I'm not actually sure what I've done there, and it could
break something else, but it seems to work for me...maybe somebody who
understands things better can provide more insight. I hope this helps.

Jacob