Ask Your Question

attila.lendvai's profile - activity

2016-04-21 01:36:57 +0200 received badge  Famous Question (source)
2016-04-21 01:36:57 +0200 received badge  Notable Question (source)
2016-04-21 01:36:57 +0200 received badge  Popular Question (source)
2015-03-06 16:15:32 +0200 received badge  Famous Question (source)
2015-02-08 00:35:53 +0200 asked a question How to do "Continue previous numbering" in a macro?

LibreOffice Writer Version: 4.3.3.2

I wrote a macro that turns manually numbered paragraphs into a numbering. The only problem left is that when it applies my custom paragraph style, then the numbering restarts (selecting the "Continue previous numbering" from the context menu fixes the issue).

I'm looking for a way to either tell the system to continue numbering by default, or somehow issue the same command from my macro.

This is the interesting part of my macro:

     text = oFound.Text
     cursor = text.createTextCursorByRange(oFound)
     cursor.string = ""
     cursor.collapseToEnd()
     cursor.gotoNextParagraph(true)
     cursor.string = ""
     cursor.paraStyleName = "Quote"
     rem these attempts don't do what i want:
     rem cursor.ParaIsNumberingRestart = false
     rem cursor.NumberingLevel = 0
     cursor.gotoNextParagraph(true)
     cursor.collapseToEnd()
     cursor.paraStyleName = "Quote Author"
2014-05-10 13:44:06 +0200 commented question One document, two translations, paragraphs crosslinked

i gave up on this. i van render what i want by turning it into an ordered-list and change the rendering styles (which works pretty well these days in LO, bravo!).

but adding actual clickable links is too cumbersome, and when turning the book into an epub the ordered-list interferes...

2014-05-10 10:13:15 +0200 received badge  Notable Question (source)
2014-05-08 16:46:47 +0200 received badge  Popular Question (source)
2014-05-08 08:46:04 +0200 commented answer One document, two translations, paragraphs crosslinked

it's a book, the primary goal is not that the paragraphs are synced up, but a nice ebook to read, so i don't want a table.

but regarding "add links below headings", could you expand on what you mean by that? using frames, or how? i assume by "headings" you mean the list numbering labels? i'm rather new to libreoffice, pardon my slowness...

2014-05-07 18:27:21 +0200 asked a question One document, two translations, paragraphs crosslinked

What i want to achieve is one document (with a toplevel outline structure) that contains two translations of the same text, and some way the paragraphs should be cross-linked so that the reader can click to jump between the two translations.

I'd like this information either not to show up in print, or to have a global style that can be set to invisible before printing.

Possible options are:

  • numbered paragraphs (lists) but formatting is clumsy and i'll need to restart numbering by hand at every crossing of the toplevel outline structure.

  • frames with Label or Marginalia style, but i'm also not too happy with them, although they seem to be the best option.

And i'm also trying to avoid the need for excessive macro voodoo to set this all up, but i'm ready to do that, too. Ideal would be something style based, although i guess the cross-links themselves are not something that can be set up using styles...

Any good ideas?

Anything that scales to three translations?

2014-05-07 15:27:18 +0200 commented question Cross reference numbered paragraphs between documents

i'm also looking for the best way to number paragraphs in a document. i have a text in two languages and i want to annotate each paragraph with a link to the corresponding paragraph in the other language... did you get anywhere with this?

anybody else with some good ideas?

currently my best bet seems to be inserting frames with a macro, setting them not to print, etc... quite some headache, so still looking for a better/easier solution.

i'd like it to be our of the way, yet clickable.