|  01-23-2021, 10:08 PM | #1 | 
| Evangelist            Posts: 454 Karma: 3886916 Join Date: May 2013 Location: Ontario, Canada Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma | 
				
				Chapter Titles as <ol> Styles in docx-->epub Conversion
			 
			
			System: Calibre 5.10.1, Ubuntu 20.04, LibreOffice 7.0.4.2 I've seen many suggestions to the effect that, if using Writer, a save as docx instead of odt before conversion to epub will give better results, so I have begun trying it. Yes, in general, there are no weird <span>s and so on. But I find chapter titles, which were all plain "Heading 1" in Writer, come through as list styles. Example: Code: <ol class="list_">
    <li value="3" class="block_4" id="toc_id_3"><b class="calibre1">Chapter 3</b></li>
  </ol>Is there some way to avoid this behaviour? Thanks... | 
|   |   | 
|  01-23-2021, 10:33 PM | #2 | 
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | 
			
			It is not normal for me.   Using Word: for Chapter One¶ styled as Heading 1, I get: Code: <h1 class="block_6" id="toc_id_1">Chapter One</h1> | 
|   |   | 
| Advert | |
|  | 
|  01-23-2021, 11:05 PM | #3 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			If you use auto-numbering for headings then they become lists.
		 | 
|   |   | 
|  01-24-2021, 12:06 AM | #4 | |
| Evangelist            Posts: 454 Karma: 3886916 Join Date: May 2013 Location: Ontario, Canada Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma | Quote: 
 Neither the odt nor the saved docx H1 styles seem to have any numbering turned on, but there is a message in outline level that it is turned off if I use a paragraph style for chapter numbering; same in both versions. (How does it know that? the word "Chapter"? With every update, Writer gets more "helpful", like Word. Darn!) So this is something Writer is doing, not Calibre. I'll hunt it up there. Thank you! | |
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| MS Word Header Styles Conversion to EPUB | FDPuthuff | Conversion | 4 | 11-27-2020 05:45 PM | 
| Converting from EPUB to DOCX - styles | tage fredheim | Conversion | 2 | 10-16-2019 11:21 AM | 
| .docx --> epub - Heading styles not translating to <h1> <h2> | Gary Friedman | Conversion | 6 | 06-20-2018 07:27 PM | 
| HTML to EPUB conversion breaks styles | iliakan | Conversion | 1 | 01-15-2015 02:36 PM | 
| Strip specific styles from EPUB conversion? | kurokaze | Conversion | 1 | 04-06-2011 07:04 AM |