GeneralPartial ToC for Chapters with fancy Headings

LaTeX specific issues not fitting into one of the other forums of this category.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Partial ToC for Chapters with fancy Headings

Post by localghost »

gioboske wrote:[…] Yes, I used this commands following the suggestion of Lapo Mori tutorial "Writing a thesis with LaTeX". […]
Although this article is quite good, it is five years old and needs an update especially regarding useful packages.
gioboske wrote:[…] I made some minor changes to your code to better mimic (I hope) the original fncychap Conny style […] What do you think about it?[…]
Do not use commands like \rm. They are old LaTeX2.09 syntax and thus deprecated. Since we are sing LaTeX2ε, a command like \rmfamily should be used to alter font styles. In this case you can drop it completely because the Roman font family is already selected by \normalfont.
gioboske wrote:[…] what are your suggestions if I have to deal with a numbered chapter, but I don't want a partial toc? Just for my curiosity, I don't think it will be necessary for my thesis. […]
I don't have suggestions. In my opinion this would be inconsistent. And if there would be a chapter without headings of a lower level (section, subsection, …) that go into the partial ToC, there is something wrong with the document structure.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gioboske
Posts: 8
Joined: Wed Sep 11, 2013 5:06 pm

Partial ToC for Chapters with fancy Headings

Post by gioboske »

localghost wrote:Although this article is quite good, it is five years old and needs an update especially regarding useful packages. [...]
Did you refer to some packages in particular? In my old thesis' preamble I load many packages, the most important ones (for me) are reported below:
  • ucs
  • inputenc (utf8x option)
  • fontenc with T1 option
  • algpseudocode for non-floating objects for pseudo code
  • the AMS family packages (amsmath, amsfonts, amssymb)
  • mathpazo (with sc and osf options) for fonts to typeset mathematics to match Palatino
  • geometry to control margins
  • babel and babelbib
  • indentfirst for first paragraph indentation (useful for Italian language)
  • graphicx
  • microtype
  • fancyvrb
  • caption with font=footnotesize and hang options
  • hypcap for adjusting the anchors of captions
  • hyperref
  • frontespizio for frontispiece for Italian theses
  • epigraph
localghost wrote:[...] Do not use commands like \rm. They are old LaTeX2.09 syntax and thus deprecated. Since we are sing LaTeX2ε, a command like \rmfamily should be used to alter font styles. [...]
Ok, got it.
localghost wrote: [...] I don't have suggestions. In my opinion this would be inconsistent. And if there would be a chapter without headings of a lower level (section, subsection, …) that go into the partial ToC, there is something wrong with the document structure.
I agree.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Partial ToC for Chapters with fancy Headings

Post by localghost »

gioboske wrote:[…] Did you refer to some packages in particular? […]
The article mentions e.g. enumerate for lists and SIunits for units. Both are obsolete.
gioboske wrote:[…] In my old thesis' preamble I load many packages, the most important ones (for me) are reported below […]
I only comment on packages where I have concerns.
gioboske wrote:
  • ucs
  • inputenc (utf8x option)
Not necessary for documents in Italian. The utf8 option for inputenc is enough. A possible replacement for inputenc could be selinput.

Code: Select all

\usepackage{selinput}     % Replacement for »inputenc«
\SelectInputMappings{     % Semi-automatic input selection
  agrave={à},             % by a list of selected glyphs
  egrave={è},             % see: http://partners.adobe.com/public/developer/en/opentype/glyphlist.txt
  Euro={€}
}
gioboske wrote:
  • hypcap for adjusting the anchors of captions
Not necessary because a modern caption or hyperref package should do the job quite good. Check that for good measure.

By the way, we are getting off topic.
gioboske
Posts: 8
Joined: Wed Sep 11, 2013 5:06 pm

Partial ToC for Chapters with fancy Headings

Post by gioboske »

localghost wrote:By the way, we are getting off topic.
Sorry for that, it's my fault. :)

Thanks again for your suggestions!
Giorgio
Post Reply