Sidenotes

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Sidenotes

Post by RoryOF »

From time to time the question of using sidenotes rather than footnotes in OpenOffice arises. In case it may be of use, the following URL points to a JavaScript implementation for Adobe Indesign; how this might transfer to OpenOffice I cannot say. I have no time to work on it for the foreseeable future, but here it is for the curious.

The code is contained in sidenotes.zip, at the bottom of the note. The sidenotes.indd file in the archive is a sample file for testing under Indesign, so need not cause any concern; it could be substituted with an .odt file for testing. On the same page there are links to other sidenote discussions also for Adobe Indesign, which may also be of use.

http://www.kahrel.plus.com/indesign/sidenotes.html
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
hanya
Volunteer
Posts: 885
Joined: Fri Nov 23, 2007 9:27 am
Location: Japan

Re: Sidenotes

Post by hanya »

I read discussion about how to make side notes in Writer documents few weeks ago. To write something outside the text area can be done by text frames, we know. But it can be make it follows dynamically the anchored position or not?
It can be prepared by the property of text frames. But it seems to arrange frames dynamically is difficult to write as a macro working on OOo.

I tried to make a simple macro as an example.
Attachments
sidenotes.odt
Simple example including macro
(28.73 KiB) Downloaded 665 times
Please, edit this thread's initial post and add "[Solved]" to the subject line if your problem has been solved.
Apache OpenOffice 4-dev on Xubuntu 14.04
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Sidenotes

Post by RoryOF »

Very nice, Hanya!! I've had a very quick play with your file and it works very nicely. I'm going off the air later today for about ten days as I have to attend a meeting in Wales and am taking my aged mother for a short holiday en route, so have no time to study this in detail until I come back - packing to be done, car to be washed, all that sort of thing. When I'm back I'll try it again and make any comments that occur to me, if other users have not covered them in the time. Thanks for writing this.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
mriosv
Volunteer
Posts: 651
Joined: Mon Mar 09, 2009 1:12 am
Location: Galiza (España)

Re: Sidenotes

Post by mriosv »

It is the same than Insert/comment, that I can see in OOo 3.3?
LibreOffice 3.5.4 AOo-3.4 on Win 7 Ultimate
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Sidenotes

Post by RoryOF »

mriosv wrote:It is the same than Insert/comment, that I can see in OOo 3.3?
No, mrisov, it is not. Insert Comment adds a Post-it type note to the side of the document ; the text of this will print at the bottom of the page if you enable "printing comments". The side note that Hanya has implemented starts as a footnote; if you run his macro it is turned into a "hanging shoulder note" rather than a footnote, aligned beside the paragraph/text it refers to. In some cases, when laying out a book with a wide margin, it is attractive to have hanging shoulder notes rather than footnotes. There is an illustration in the fourth post of
http://www.edwardtufte.com/bboard/q-and ... _id=0000ld
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
User avatar
peterroots
Volunteer
Posts: 299
Joined: Mon Mar 03, 2008 6:33 pm
Location: UK

Re: Sidenotes

Post by peterroots »

Hanya
I have just had a play with your example document, as a result of another thread I was involved in that brought up sidenotes. I have never tried to use them before but this really seems to be a useful macro you have produced. Are you planing to convert it to an extension at any time? I think quite a few people would find this useful.
LibreOffice 4.0.3 OpenSUSE 12.3 : OpenOffice 4 Linux Mint 15
hanya
Volunteer
Posts: 885
Joined: Fri Nov 23, 2007 9:27 am
Location: Japan

Re: Sidenotes

Post by hanya »

This is not good to use with crowded document by sidenotes. You have to set up page styles yourself.
Attachments
sidenote-0.1.0.oxt
Packed into an OXT package. Start from Insert - Sidenote entry in the main menu of Writer documents.
(10.36 KiB) Downloaded 586 times
Please, edit this thread's initial post and add "[Solved]" to the subject line if your problem has been solved.
Apache OpenOffice 4-dev on Xubuntu 14.04
Post Reply