tufte book style in lyx: when increasing or decreasing a heading it changes to unnumbered

147 views
Skip to first unread message

andrew

unread,
Nov 2, 2012, 5:06:17 PM11/2/12
to tufte-latex, fr...@geoinfo.tuwien.ac.at
when increasing or decreasing a heading the heading changes to
unnumbered (with the properly increased or decreased level). the
problem occurs only in the book (tufte) document class, not in article
or so.

what is wrong?
where is the code which defines this? my lyx layout file for tufte has
the date 2009/11/15.

thank you for help! andrew

Kevin Godby

unread,
Nov 3, 2012, 4:47:48 AM11/3/12
to tufte-latex, fr...@geoinfo.tuwien.ac.at
Hello, Andrew.
This sounds like something that LyX is doing, but I'm afraid I don't
know enough about LyX to be of any help there.

When you change the heading type, be sure that you're not using the
starred version of the heading (e.g., \section* instead of \section).
The starred versions suppress the numbering of the heading and also
prevent it from appearing in the table of contents.

If you provide a simple document that demonstrates the problem, I'd be
happy to take a look at it and see if I can figure out what's
happened.

--Kevin

andrew

unread,
Nov 3, 2012, 7:42:04 AM11/3/12
to tufte-latex
thank you for the offer to help.
the problem occurs in the most simple case:
-----
#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass tufte-book
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry true
\use_amsmath 1
\use_esint 1
\use_mhchem 1
\use_mathdots 1
\cite_engine natbib_authoryear
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Section
a section head
\end_layout

\begin_layout Section
and another one
\end_layout

\begin_layout Subsection
a subsection
\end_layout

\begin_layout Section*
a subsection which was increased
\end_layout

\begin_layout Standard
is now *section, should be section!
\end_layout

\end_body
\end_document

Kevin Godby

unread,
Nov 3, 2012, 11:24:17 AM11/3/12
to tufte-latex
Hello, Andrew.

On Sat, Nov 3, 2012 at 6:42 AM, andrew <andrew...@gmail.com> wrote:
> thank you for the offer to help.
> the problem occurs in the most simple case:
> -----
...
> \begin_layout Subsection
> a subsection
> \end_layout
>
> \begin_layout Section*
> a subsection which was increased
> \end_layout
>
> \begin_layout Standard
> is now *section, should be section!
> \end_layout
...

The lack of section numbering is because LyX switched the heading to
section* instead of section. I'm not sure why it's done this. You'll
have to contact the LyX folks to see if they have an idea.

--Kevin
Reply all
Reply to author
Forward
0 new messages