Search found 16 matches

by mgmillani
Tue Dec 23, 2014 9:38 pm
Forum: Page Layout
Topic: Spacing in a table of contents with many sections
Replies: 12
Views: 9533

Spacing in a table of contents with many sections


Additionally, how would I customize \l@figure and \l@table with that? They appear to share the same features as the first depth of the TOC.

Answering my own question: it is possible to use \settocfeature[toc][1]{entryhook}{\bfseries} instead of \settocstylefeature[1]{entryhook}{\bfseries} to ...
by mgmillani
Tue Dec 23, 2014 8:00 pm
Forum: Page Layout
Topic: Spacing in a table of contents with many sections
Replies: 12
Views: 9533

Spacing in a table of contents with many sections

Indeed, it is better just to add:

\renewcommand*{\tocstyle@l@define}[2]{}

to my .cls file than to change the tocstyle.sty. Since this command is the one causing the overwrites, changing it to nothing has the same effect as not calling it.

Thanks for the tip!

EDIT:
@Johannes_B
I didn't see your ...
by mgmillani
Tue Dec 23, 2014 1:45 pm
Forum: Page Layout
Topic: Spacing in a table of contents with many sections
Replies: 12
Views: 9533

Spacing in a table of contents with many sections

I changed the tocstyle.sty file so that it wouldn't overwirte any \l@something at the beginning of the document. Now everything works like a charm!

Thanks for the help!
by mgmillani
Mon Dec 22, 2014 4:54 pm
Forum: Page Layout
Topic: Spacing in a table of contents with many sections
Replies: 12
Views: 9533

Spacing in a table of contents with many sections

You just forgot to use \makeatletter ... \makeatother.
Indeed, there are no more errors. But it was also useless (nothing changes).

Sure, but if necessary it could be put into a separate file such as body_settings.tex and the user should place \input{body_settings.tex} after \begin{document ...
by mgmillani
Mon Dec 22, 2014 3:23 pm
Forum: Page Layout
Topic: Spacing in a table of contents with many sections
Replies: 12
Views: 9533

Spacing in a table of contents with many sections

Adding

\renewcommand*{\l@section}[2]{
\begingroup\bfseries
\@dottedtocline{1}{0em}{\seclen}{\textbf{#1}}{\textbf{#2}}
\endgroup%
}

after \begin{document} yields the following error:

Illegal parameter number in definition of \reserved@a.
<to be read again>
1
l.168 \@dottedtocline{1}{0em ...
by mgmillani
Sun Dec 21, 2014 9:31 pm
Forum: Page Layout
Topic: Spacing in a table of contents with many sections
Replies: 12
Views: 9533

Spacing in a table of contents with many sections

Well, I tried to use tocstyle early, but I was getting "Undefined control sequence" when including the package for some reason. But I guess it was related with something on the .aux files, since it works now.

The only problem that I now have is that I can no longer redefine \l@section , since ...
by mgmillani
Sun Dec 21, 2014 2:58 pm
Forum: Page Layout
Topic: Spacing in a table of contents with many sections
Replies: 12
Views: 9533

Spacing in a table of contents with many sections

In a document with more than 9 chapters or sections, the section number in the table of contents overlaps its title (see attached file).

Since I'm writing a .cls file to implement a given standard, I have to rewrite commands like \l@section and \@dottedtocline . This makes using packages like ...
by mgmillani
Sun Jun 01, 2014 10:44 pm
Forum: Page Layout
Topic: Place environment at the bottom in a Beamer
Replies: 3
Views: 11985

Place environment at the bottom in a Beamer

Using \begin{frame}[b] looks really ugly, so I decided to use textpos.
My current solution is:

\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage[absolute, overlay]{textpos}

\setlength{\TPHorizModule}{\paperwidth}\setlength{\TPVertModule}{\paperheight}
\begin{document}

\newcommand ...
by mgmillani
Sat May 31, 2014 9:10 pm
Forum: Page Layout
Topic: Place environment at the bottom in a Beamer
Replies: 3
Views: 11985

Place environment at the bottom in a Beamer

I'm trying to place a block inside a frame in such a way that it remains exactly on the same position, regardless of what comes before, so that when I change slides, it doesn't move around. I also want it to be at the bottom. I tried using a \vfill before, but this doesn't work at all. Attempting to ...
by mgmillani
Tue Feb 11, 2014 12:07 am
Forum: LyX
Topic: position floating listings and figures where I want them
Replies: 2
Views: 15402

position floating listings and figures where I want them

A minimal example would be nice.

If you want a float to be precisely where you tell it to be, you should use the package float and use a 'H' instead of 'h'. Like this:

Code: Select all

...
\usepackage{float}
...
\begin{figure][H]
...
\end{figure}