View Single Post
Old 02-13-2023, 12:42 PM   #1
retiredbiker
Evangelist
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
Headings Convert as List Items from Writer

Ubuntu 20.04, LibreOffice 7.5, Calibre 6.10
For years, whenever I try the "Last save as docx" in LO Writer, any heading styles come across as table items. I've spent way too many hours and never solved it. So now with Writer 7.5, thought I'd try again. I removed every trace of LO I could find and did a clean install or 7.5 from the .debs. No dice...

I made a tiny doc with two Heading 1 "chapters". As before, The Heading styles have to be in the Chapter Numbering list to act as headings in Writer: see attached pics. (I can't figure out how to get the images between paragraphs of text...)

Now in 7.5, there is a toolbar icon that will tell a style to be "No List", and that works, but only for one header instance at a time. The header style is fixed as "chapter numbering" and can't be changed by editing the style.


So converting my test book with one heading normal and one with the "no list" applied, I get the normal heading as a table and the other as a simple h1, which is what I want. The css that makes it a table item is this:

.calibre1 {
display: table;
margin: 0;
padding: 0;
}
.block_1 {
display: table-row;
font-size: 18pt;
line-height: 1.2;
page-break-after: avoid;
text-align: center;
margin: 28.4pt 0;
padding: 0;
}


If anyone can tell me how to avoid this table thing, it would be great, because the conversion from .odt is not nearly as good as from docx. Is there any way to make ALL the headings act as the "no list" one? It seems to work for everybody else! Also attached are the .docx file and the resulting epub. Many Thanks in advance.
Attached Thumbnails
Click image for larger version

Name:	ChapterNumbering.jpg
Views:	90
Size:	161.4 KB
ID:	199717   Click image for larger version

Name:	H1 Para Style.jpg
Views:	82
Size:	75.0 KB
ID:	199718   Click image for larger version

Name:	NoList widget.jpg
Views:	92
Size:	94.8 KB
ID:	199719   Click image for larger version

Name:	Export from docx.jpg
Views:	89
Size:	93.3 KB
ID:	199720  
Attached Files
File Type: docx A Test of Headings docx - me.docx (7.1 KB, 97 views)
File Type: epub A Test of Headings docx - me.epub (30.0 KB, 74 views)

Last edited by retiredbiker; 02-13-2023 at 05:30 PM.
retiredbiker is offline   Reply With Quote