Scott Kostyshak
2014-06-24 23:35:06 UTC
This has come up twice (in the context of LyX) in the past week on
Stack Exchange:
http://tex.stackexchange.com/questions/185367/add-an-unnmbered-section-to-the-table-of-contents-in-lyx
http://tex.stackexchange.com/questions/186398/how-to-remove-enumerated-chapter-latex-in-lyx
Is this something that would be useful to add support for in LyX?
Thoughts on interface:
One way that would not clutter the GUI too much would be a checkbox
that says something like "add unnumbered divisions to TOC if numbered
counterparts are added".
I think there is more demand for a categorical solution than a
solution that allows the user to decided whether each individual
unnumbered division should be in the TOC.
Thoughts on implementation:
(a) We could export \addcontentsline where appropriate depending on
document settings.
(b) Werner posted a preamble solution (see the answer to the first
link above) that causes all unnumbered chapters to be put in the table
of contents. We could add this to the preamble for each of
section/chapter/etc that exists as unnumbered that should be in the
TOC (as determined by document settings).
Thoughts?
Scott
Stack Exchange:
http://tex.stackexchange.com/questions/185367/add-an-unnmbered-section-to-the-table-of-contents-in-lyx
http://tex.stackexchange.com/questions/186398/how-to-remove-enumerated-chapter-latex-in-lyx
Is this something that would be useful to add support for in LyX?
Thoughts on interface:
One way that would not clutter the GUI too much would be a checkbox
that says something like "add unnumbered divisions to TOC if numbered
counterparts are added".
I think there is more demand for a categorical solution than a
solution that allows the user to decided whether each individual
unnumbered division should be in the TOC.
Thoughts on implementation:
(a) We could export \addcontentsline where appropriate depending on
document settings.
(b) Werner posted a preamble solution (see the answer to the first
link above) that causes all unnumbered chapters to be put in the table
of contents. We could add this to the preamble for each of
section/chapter/etc that exists as unnumbered that should be in the
TOC (as determined by document settings).
Thoughts?
Scott