We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

How can I keep italicized words in headings from changing to regular text in table-of-contents? [closed]

asked 2012-02-22 00:03:10 +0200

pcroque gravatar image

updated 2020-07-27 19:57:46 +0200

Alex Kemp gravatar image

I have headings that contain certain words that are italicized (scientific names). This works fine in the section headings, but in the table of contents, the entire entry is in regular text (without italics). If I change the TOC contents style to italics, then the entire entry is in italics.

Is there a way to keep the same words italicized in the TOC as in the section headings?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-10-15 16:37:30.936709

2 Answers

Sort by » oldest newest most voted

answered 2012-02-28 19:10:30 +0200

Table of contents have specific styles that apply to the entire line (ie. paragraph). If you change a single word, that is a character-level change that will not be reflected into the automatic generation of the ToC.

The only workaround I found for this was to enable manual editing of the ToC and italicize each word manually. Of course such changes are not practical if you have a large ToC, as they will be overwritten as soon as you update it again.

edit flag offensive delete link more

answered 2012-04-03 23:57:48 +0200

manj_k gravatar image
edit flag offensive delete link more


fdo#30732 · Status: ASSIGNED

manj_k gravatar imagemanj_k ( 2014-07-30 16:19:47 +0200 )edit

Question Tools


Asked: 2012-02-22 00:03:10 +0200

Seen: 3,282 times

Last updated: Apr 03 '12