The company I work for uses LibreOffice to convert Word docs to pdf before putting them online. I have a Word doc that has section numbers with the style “corner”. In the header, the left corner pulls in the first section number, and the right corner the last corner on the page. So, e.g., on the page where § 8 ends and § 9 begins, the left corner is § 8 and the right is § 9. When I open the doc in LO, the corners stay at § 1 for both corners throughout the document. Thus, the same thing happens when our process uploads the doc and converts to pdf. Is there a way to fix this in LO, or otherwise make it obey the Word page corners?
https://wiki.documentfoundation.org/Faq/General/118#Edit_different_file_formats_in_LibreOffice
Please report the behavior also as an error in Bugzilla .
See also:
How to Report Bugs in LibreOffice .
Please post the link to the bug here.
format: tdf#nnnnnn (use only the number, not the link)
To do this, edit your original question. Thank you very much.
Could you be more descriptive please? What I understand:
- you have pages with a header (“top banner”)
- near the left margin, you display the chapter number for text at beginning of page
- near the right margin, you have the chapter number for text at end of page
If my understanding is correct, you must use Writer fields to insert this information. However be aware that displaying the ending chapter number requires a contorted trick because it is not known when the page is started.
I am not familiar on how M$ Word manages this information, but I am 200% sure that the conversion can’t be automatic and requires manual intervention because of the dirty trick needed. The operation could probably be simplified by basing all converted (from .doc to .odt) docs on a specific template (to be created). But Word has no notion of styles beyond paragraph styles and the best workflow I’m thinking of uses page styles (totally alien to Word).
Be also aware that converting from .doc(x) usually results in a such messy document (structure-wise) that this prevents any smart formatting job.
I’m attaching screenshots, not sure that works here.
Also, I doubt this will work either, without manually editing the Writer file, but I’d just like to confirm that instead of banging my head against my keyboard trying to figure it out.
Word does have text styles. It works almost like a field. Can you say more about Writer fields? In my Word doc, highlight § 1 and click Styles, and it’s “corner”. The rest of the line, “Boundaries” is “normal”.
Then in the header, it pulls in that corner field, left corner pulls the first section on the page, right corner pulls the last.
corner.tiff (9.9 KB)
Fieldtoggle.tiff (12.8 KB)
Styles in Word and Writer are responsible for text visual appearance. Corner is probably a user paragraph style for your header. This is not the problem. In principle, paragraph styles are correctly translated.
The chore of your concern is the kind of field used to capture the chapter number references.
In Writer, the corresponding field(s) capture the state in the first paragraph of the page, i.e. you can easily access chapter number and chapter title. The chapter number for the last paragraph is known only at end of page (when this paragraph is met by the formatting engine). You then have two ways of handling your specification:
- put the ending chapter number in the footer (then you have the starting one at left in the header and the ending one at right in the footer)
This is easily done by a newbie but it might not be acceptable by your company. - put the ending chapter number in a text frame anchored in the footer but positioned in the header
This trick fools Writer but requires a good knowledge about frames.
Thanks for that info. Yeah, this particular document is client-driven and must be verbatim so my options were already limited. Thanks again.