Sidenotes

Keyboard macros or custom scripts

Sidenotes

Postby RoryOF » Wed Sep 14, 2011 12:16 pm

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.7 on Xubuntu 18.04.3 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 29866
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Sidenotes

Postby hanya » Sat Sep 17, 2011 9:10 am

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 495 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
hanya
Volunteer
 
Posts: 885
Joined: Fri Nov 23, 2007 9:27 am
Location: Japan

Re: Sidenotes

Postby RoryOF » Sat Sep 17, 2011 9:30 am

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.7 on Xubuntu 18.04.3 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 29866
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Sidenotes

Postby mriosv » Sat Sep 17, 2011 6:24 pm

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
mriosv
Volunteer
 
Posts: 651
Joined: Mon Mar 09, 2009 1:12 am
Location: Galiza (España)

Re: Sidenotes

Postby RoryOF » Sat Sep 17, 2011 6:37 pm

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-a-fetch-msg?msg_id=0000ld
Apache OpenOffice 4.1.7 on Xubuntu 18.04.3 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 29866
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Sidenotes

Postby peterroots » Sat Nov 26, 2011 7:44 pm

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
User avatar
peterroots
Volunteer
 
Posts: 299
Joined: Mon Mar 03, 2008 6:33 pm
Location: UK

Re: Sidenotes

Postby hanya » Sun Nov 27, 2011 2:10 pm

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 318 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
hanya
Volunteer
 
Posts: 885
Joined: Fri Nov 23, 2007 9:27 am
Location: Japan


Return to OpenOffice Basic, Python, BeanShell, JavaScript

Who is online

Users browsing this forum: No registered users and 2 guests