Discussion:
Spacing in "List of Tables"
Rich Shepard
2005-01-28 03:37:48 UTC
Permalink
This is one the copyeditor caught. In the list of tables, the table
numbers are left-aligned and there's a small space between the number and
the table caption. This works fine until it gets to Chapter 12, Table 10 and
beyond. With the four digits (and separating period; e.g., 12.10) there is
no longer a space between the digits and the title.

I'm using Springer's svmono book class. What LaTeX do I put where so the
list has better spacing between the left-most numbers and the titles in the
center?

If this is not clear, please let me know. I've been working on the index
and copyedits plus getting out a report and marketing. I may know what I
want to write, but you may not read it that way. :-)

TIA,

Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Stephen Buonopane
2005-01-28 15:13:34 UTC
Permalink
Post by Rich Shepard
This is one the copyeditor caught. In the list of tables, the table
numbers are left-aligned and there's a small space between the number and
the table caption. This works fine until it gets to Chapter 12, Table 10 and
beyond. With the four digits (and separating period; e.g., 12.10) there is
no longer a space between the digits and the title.
Rich,
I think this will take a bit of latex hacking, but there might also be
some package out there that does this?
The command \listoftables uses a predefined List environment, so you
need to change \labelwidth that is defined by \listoftables. My first
try would be to use a \renewcommand. You might also dig around in your
tex tree a bit and look at the Latex code that is invoked by
\listoftables.

Steve
Uwe Stöhr
2005-01-28 23:56:41 UTC
Permalink
Post by Rich Shepard
In the list of tables, the table
numbers are left-aligned and there's a small space between the number and
the table caption. This works fine until it gets to Chapter 12, Table 10
and beyond. With the four digits (and separating period; e.g., 12.10) there is
no longer a space between the digits and the title.
To change this, redefine the \***@section commands. They are described in
detail in the book "The LaTeX Companion 2nd Edition" in sec. 2.3.2 (p.49).

regards Uwe
Rich Shepard
2005-01-29 00:18:06 UTC
Permalink
Post by Uwe Stöhr
detail in the book "The LaTeX Companion 2nd Edition" in sec. 2.3.2 (p.49).
Uwe,

Thank you very much. TLC2 is right here at my desk as I write; it answers
many of my questions, but sometimes I need a pointer.

Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Rich Shepard
2005-01-29 00:22:12 UTC
Permalink
Post by Uwe Stöhr
detail in the book "The LaTeX Companion 2nd Edition" in sec. 2.3.2 (p.49).
Uwe,

On page 50 I read that changes to \***@section should be made in the class
file. Do I change Springer's svmono class or put the redefinition in the
preamble?

Thanks again,

Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Uwe Stöhr
2005-01-29 00:39:09 UTC
Permalink
Post by Rich Shepard
Do I change Springer's svmono class or put the redefinition in the
preamble?
I put them in the preamble, e.g.:

\renewcommand{\***@subsection}{\@dottedtocline{2}{1.5em}{2.8em}}
\renewcommand{\***@subsubsection}{\@dottedtocline{3}{4.3em}{3.6em}}

regards Uwe
Rich Shepard
2005-01-29 00:43:28 UTC
Permalink
Uwe,

Danke!

Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Rich Shepard
2005-01-29 01:10:40 UTC
Permalink
Uwe,

My situation is illustrated at the bottom of page 51 (see example for
10.10). On page 52 the recommeded fix is to use

\makeatletter
\renewcommand\***@subsection{\@dottedtocline}{2}{1.5em}{3em}}
\makeatother

But they also recommend adjusting other commands, too, to keep a balanced
look. Is that the purpose of changing subsubsection, too?

I've tried your examples (at the top) with more room on the last
parameter, but it seems to make no difference when I look at the dvi output
in gv.

Thanks,

Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Uwe Stöhr
2005-01-29 01:30:32 UTC
Permalink
Post by Rich Shepard
\makeatletter
\makeatother
Only for information: You don't need the \makeatxxx commands when you
use them in the preamble, because LyX does this automatically in the
background.
Post by Rich Shepard
But they also recommend adjusting other commands, too, to keep a balanced
look. Is that the purpose of changing subsubsection, too?
Changing the \***@subsubsection command is not always necessary, its your
decision what looks nice and what not.
I changed it because I have subsubsections with long numbers in my
document (something like "12.13.17").
Post by Rich Shepard
I've tried your examples (at the top) with more room on the last
parameter, but it seems to make no difference when I look at the dvi output
in gv.
Play a bit with the parameter values, my examples are optimized for
another book class and a special font width.
(If nothing helps, try to define the commands with "\AtBeginDocument".)

regards Uwe
Rich Shepard
2005-01-29 01:38:23 UTC
Permalink
Post by Uwe Stöhr
I changed it because I have subsubsections with long numbers in my
document (something like "12.13.17").
Uwe,

I have a problem with only two tables in the List of Tables: 12.10 and
12.11. There's no problem in the Table of Contents or List of Figures.
Post by Uwe Stöhr
Play a bit with the parameter values, my examples are optimized for
another book class and a special font width. (If nothing helps, try to
define the commands with "\AtBeginDocument".)
I've made the {numwidth} field 5.8em! The space is clearly visible in the
Table of Contents but no effect on the List of Tables. ARRRGGGHH-H-H-H!

Thanks,

Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Uwe Stöhr
2005-01-29 13:18:54 UTC
Permalink
Post by Rich Shepard
I've made the {numwidth} field 5.8em! The space is clearly visible in the
Table of Contents but no effect on the List of Tables. ARRRGGGHH-H-H-H!
In this case you have to redefine the comand \***@table, e.g.:

\renewcommand{\***@table}{\@dottedtocline{1}{1.5em}{2.8em}}

(\@figure is for the LOF, found on page 50 in TLC2.)

regards Uwe
Rich Shepard
2005-01-29 15:02:14 UTC
Permalink
Uwe,

Eureka! So that's how it's done. It worked, thank you very much.

So, rather than using the tocloft package (because it genereated errors),
or using the 19-line code on the Web page to which Herbert pointed me, the
simple redefinition of ***@table's label field is all I needed. I just did not
see this from reading the TLC2.

This has been a valuable lesson, Uwe and Herbert, and I thank you for
teaching me something new and for your patience.

Back to the copyeditor's corrections ...

Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Rich Shepard
2005-01-29 01:52:16 UTC
Permalink
Post by Uwe Stöhr
Play a bit with the parameter values, my examples are optimized for
another book class and a special font width. (If nothing helps, try to
define the commands with "\AtBeginDocument".)
Uwe,

Please excuse my frustration. Here's what I've learned from my
experimentation:

1.) With the \renewcommand\***@section{...} in the preamble, the spacing is
drastically altered, but the List of Tables still has 10.10 and 10.11
smashed against the text.

2.) With the \renewcommand\***@section{...} in an ERT box between the gray
placeholder boxes for List of Figures and List of Tables, the literal
command prints at the end of the List of Figures and the two problem table
numbers have no more spacing.

Searching through Chapter 2 of TLC2 (and checking the index) I don't see a
way to increase number spacing for only the .lot entries. Is there such a
way? Perhaps I did not have the LaTeX commands properly formatted in the ERT
box and that's why it was read as literal text rather than a command.

Thanks,

Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Herbert Voss
2005-01-29 06:44:37 UTC
Permalink
Post by Rich Shepard
drastically altered, but the List of Tables still has 10.10 and 10.11
smashed against the text.
http://TeXnik.de/tocloft/TOC.phtml#label

using tocloft.sty for this is easier
Post by Rich Shepard
placeholder boxes for List of Figures and List of Tables, the literal
command prints at the end of the List of Figures and the two problem table
numbers have no more spacing.
all should go into the preamble

Hebrert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
Herbert Voss
2005-01-29 06:55:35 UTC
Permalink
Post by Herbert Voss
Post by Rich Shepard
drastically altered, but the List of Tables still has 10.10 and 10.11
smashed against the text.
http://TeXnik.de/tocloft/TOC.phtml#label
using tocloft.sty for this is easier
\usepackage{tocloft}
\addtolength{\cftfignumwidth}{1em}

sorry, forgot about this

Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
Rich Shepard
2005-01-29 14:54:57 UTC
Permalink
Post by Herbert Voss
http://TeXnik.de/tocloft/TOC.phtml#label
using tocloft.sty for this is easier
Hebrert,

I tried the tocloft package. However, when I try this I get two
compilation errors because the figure and table depths are being redefined
by tocloft and TeX doesn't like that. I think I need the manual approach.

I'm using Spriger-Verlag's 'svmono.cls'. Grepping for
\let\***@table\***@figure returns nothing. Paging through the file I cannot find
a reference to ***@table.

The 19-line example on the referenced Web page is for Koma-script. I need
some hand-holding here to learn what I need to do with the svmono.cls to get
that same spacing result only for the List of Tables. Do I change the
reference from ***@chapter to ***@table, then copy verbatim all the example to
the preamble of my document?

Many thanks,

Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Rich Shepard
2005-01-29 15:05:30 UTC
Permalink
Post by Rich Shepard
I tried the tocloft package. However, when I try this I get two
compilation errors because the figure and table depths are being redefined
by tocloft and TeX doesn't like that. I think I need the manual approach.
Herbert, et al.:

Redefining the ***@table's format with a larger label width solved the
problem.

Bit-by-bit (pun intended) I'm learning more about LaTeX with each problem
I encounter.

Thanks,

Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Loading...