Ask Your Question

Batch/Macro conversion of footnotes to frames for sidenotes

asked 2019-03-31 16:00:54 +0200

arquitextonica gravatar image

Could there be a way to batch/macro convert all the footnotes in a document into frames? I know I'll have to fine tune them later, but it's a dissertation and I'd like to compose it "a la Tufte" style and selecting hundreds of footnotes manually will be too painful...

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2019-03-31 17:09:59 +0200

Lupp gravatar image

I didn't understand your term "frames for sidenotes". I know what a Textframe is, but there isn't anything like a Sidenote, and nothing not actually being a footnote can support the full functionality. . You will have to explain.

If this mainly is about how to access footnots to be able to apply ujser code to them, youi should find a suggestion in my anwer to this recent thread.

edit flag offensive delete link more


@Lupp, I think the OP needs to take already existing footnotes and transfer them into frames than hang in the margins, each one anchored near to the anchor point of the original footnote. There is already a "marginalia" frame style defined by default in Writer. A macro for this task should search for text formatted with the footnote paragraph style, copy it, insert a properly formatted frame anchored to the point in which the original footnote was anchored, paste the copied text inside the frame and, possibly, delete the original footnote.

RGB-es gravatar imageRGB-es ( 2019-03-31 18:57:00 +0200 )edit

Well, I think I guessed correctly concerning the term 'Sidenote'. I just didn't find it explained for LibO, in the help e.g.
If you had a look into the macro contained in the related example from the other thread I mentioned, you will know, that I didn't scan the text for paragraph styles to find the footnotes, but accessed them directly from the respective document property. I would still prefer this way. You can get every information you need from the FootNote object. You may create a frame including it, and you may create a series for caption numbering dedicated to sidenotes. The OQ may proably find the time to work it out.

By the way: RoryOF from the pointed me to this old thread offereing a solution for FootNotes <===> SideNotes implemented as a Python macro, and even an .oxt entension containing ...(more)

Lupp gravatar imageLupp ( 2019-03-31 21:56:02 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-03-31 16:00:54 +0200

Seen: 73 times

Last updated: Mar 31 '19