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

ayuda con titlesec

63 views
Skip to first unread message

Oscar Alejandro Tudela

unread,
Oct 6, 2002, 10:27:43 AM10/6/02
to
Alguien puede ayudarme con esto por favor ?

La numeración de mis capítulos aparece con un punto decimal. Para el
primer capítulo tengo por ejemplo:

1.0

Texto del capítulo 1...

Quisiera que este y los demás capítulos aparecieran con numeración
normal, o sea con enteros. Este es mi main.tex:

\documentclass[12pt,letterpaper,openright]{book}

\usepackage[T1]{fontenc}
\usepackage{latexsym}
\usepackage[latin1]{inputenc}
\usepackage [dvips]{graphicx}
\usepackage{titlesec}
\usepackage{titletoc}
\usepackage{times}

\pagestyle{plain}

\titleformat{\chapter}[hang]{\normalfont\large\filcenter}{\thesection}{}{}

\title{TITLE}
\author{Author}
\date{}

\begin{document}
\frontmatter
\maketitle
\tableofcontents
\mainmatter
\include{capitulo1}
\include{capitulo2}
\end{document}

Tengo el comando
\chapter{}
al inicio de cada capítulo.

En el main.log tengo el siguiente aviso de error para cada inicio de
capítulo:

] [2]
Chapter 1.
! Missing number, treated as zero.
<to be read again>
\relax
l.2 \chapter{}

A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Illegal unit of measure (pt inserted).
<to be read again>
\relax
l.2 \chapter{}

Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)

Gracias por su atención y posible ayuda.

Javier Bezos

unread,
Oct 6, 2002, 12:21:53 PM10/6/02
to
Hola Oscar:

>
> \titleformat{\chapter}[hang]{\normalfont\large\filcenter}
> {\thesection}{}{}
^^^^^

Del manual de titlesec:

\item |<sep>| is the horizontal separation between label and title
body and must be a length (it cannot be left empty). This space is
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Chao
Javier

_____________________________________________________________________
Javier Bezos | TeX y tipografia
jbezos arroba wanadoo punto es | http://perso.wanadoo.es/jbezos/
.....................................................................
Composición de textos técnico-científicos y con escrituras no latinas
Consultoría y desarrollo de soluciones para TeX, LaTeX y Omega

0 new messages