a very useful function in the tables
-
- Posts: 16
- Joined: 2017-05-01 23:38:06
a very useful function in the tables
I am obliged to be used to me as MS Word when I work on tables, with on the left a text, on the right his translation. And that only because Nisus, not that of 2001, that of 2017, does not make it possible to insert footnotes, or endnotes in the text of the tables..
Thus, I cannot make use only of Nisus, like “front”. And this is very irritating: obliged to have a MS Word beside Nisus “the strong”!
When this function will be implemented?
Thus, I cannot make use only of Nisus, like “front”. And this is very irritating: obliged to have a MS Word beside Nisus “the strong”!
When this function will be implemented?
Re: a very useful function in the tables
Hi jdevriendt,
I understand your frustration over not being able to enter footnotes in tables.
Meanwhile, you could enter numbers in superscript. Below the table, enter note references with text color white (so the true note references will be invisible.)
If you use "Note references color" you will be able to see them in the document, but they won't be printed. See Preferences > Appearance > Customizable colors > Automatic Text > Note references.
If you decide to use this method, then a macro can be written to enter the fake superscript note references in the table.
I understand your frustration over not being able to enter footnotes in tables.
Meanwhile, you could enter numbers in superscript. Below the table, enter note references with text color white (so the true note references will be invisible.)
If you use "Note references color" you will be able to see them in the document, but they won't be printed. See Preferences > Appearance > Customizable colors > Automatic Text > Note references.
If you decide to use this method, then a macro can be written to enter the fake superscript note references in the table.
Last edited by Þorvarður on 2017-05-03 12:39:11, edited 1 time in total.
Re: a very useful function in the tables
Philip Spaelti wrote a macro called "Table Footnote." You can find it here.
viewtopic.php?f=18&t=2442&p=25945&hilit ... ote#p25945
There is a long thread about the problem here:
viewtopic.php?f=18&t=2442&hilit=Macro+Table+Footnote
In the year 2012 an official Nisus person wrote here in the forum:
"At this time we don't have any news to announce about this enhancement request, but we know it's important."
viewtopic.php?f=18&t=2442&hilit=footnot ... ant#p22886
Although they know it's of great importance to their customers, it's obviously not very important to them.
viewtopic.php?f=18&t=2442&p=25945&hilit ... ote#p25945
There is a long thread about the problem here:
viewtopic.php?f=18&t=2442&hilit=Macro+Table+Footnote
In the year 2012 an official Nisus person wrote here in the forum:
"At this time we don't have any news to announce about this enhancement request, but we know it's important."
viewtopic.php?f=18&t=2442&hilit=footnot ... ant#p22886
Although they know it's of great importance to their customers, it's obviously not very important to them.
Re: a very useful function in the tables
I don't know if this has been already addressed. The macro "Table Footnote" generates an error if more than 1 footnote is inserted into a cell.
The error message reads:
"There was an error on line 68 in the macro "Table Footnote". The TextSelection object does not have a "location" property.
And when I click on the Open Macro button, I get this error message:
There was an error on line 68 in the macro "Table Footnote". The variable "$txtSel" has not been defined.
The line causing the trouble is highlighted:
if $tblNoteRefs[$i].locaton < $txtSel.location
The error message reads:
"There was an error on line 68 in the macro "Table Footnote". The TextSelection object does not have a "location" property.
And when I click on the Open Macro button, I get this error message:
There was an error on line 68 in the macro "Table Footnote". The variable "$txtSel" has not been defined.
The line causing the trouble is highlighted:
if $tblNoteRefs[$i].locaton < $txtSel.location
Re: a very useful function in the tables
Thanks Þorvarður for reporting this. This bug is something that was supposed to have been fixed 3 years ago. I'm not sure how the macro has survived all these years in the the state it was. Maybe the many who downloaded it over the years simply decided it was worthless and moved onÞorvarður wrote:I don't know if this has been already addressed. The macro "Table Footnote" generates an error if more than 1 footnote is inserted into a cell.
I have replaced the broken one with a fixed version. Hope this works better. If there are still problems, feel free to report it.
philip
Re: a very useful function in the tables
Thank you Philip for looking into this.phspaelti wrote:If there are still problems, feel free to report it.
Unfortunately the numbers (i.e. the cross-references) in the table are not yet in correct order. When a third footnote is inserted, the natural progression begins to spin out of control. The numbers "2" and "3" are swapped, so that we get this: After 7 footnotes, we end up with this:
Re: a very useful function in the tables
Yes, apparently my macro was completely off. Try this new version. Hopefully this should work better. I also changed the "hiding" of the intermediary (true) reference numbers by using a paragraph style.Þorvarður wrote:Unfortunately the numbers (i.e. the cross-references) in the table are not yet in correct order. When a third footnote is inserted, the natural progression begins to spin out of control.
- Attachments
-
- Table Footnote.nwm
- (24.37 KiB) Downloaded 752 times
philip
Re: a very useful function in the tables
Now I can't insert anything at all because I get this error message: The culprit is this line:phspaelti wrote:Try this new version.
if $doc.text.characterAtIndex($fnLoc + $numFound) != 10
Re: a very useful function in the tables
Þorvarður, I know. Sorry about that. Just make sure to add a return after the table. As it is the table can't be the last thing in the document.
This is all due to the 'hiding' thing. Since I switched to using a paragraph style for hiding the note references at the end of the table, the macro has to insert a "protective" return to make sure the paragraph style doesn't hide all the text following the table. I first forgot to test the case where there is nothing after the table before uploading the macro. And then when I noticed it and tried to fix it, I ran into other issues (which have nothing to do with the macro itself). Basically Nisus seems to have some buggy behavior with returns and styles after a table, but I just don't have the time right now to investigate this.
And I figured you would notice that pretty quickly
So just make sure to put a return after the table before you run it. For the time being.
This is all due to the 'hiding' thing. Since I switched to using a paragraph style for hiding the note references at the end of the table, the macro has to insert a "protective" return to make sure the paragraph style doesn't hide all the text following the table. I first forgot to test the case where there is nothing after the table before uploading the macro. And then when I noticed it and tried to fix it, I ran into other issues (which have nothing to do with the macro itself). Basically Nisus seems to have some buggy behavior with returns and styles after a table, but I just don't have the time right now to investigate this.
And I figured you would notice that pretty quickly
So just make sure to put a return after the table before you run it. For the time being.
philip
Re: a very useful function in the tables
On second thought, here is a macro with a simple fix that avoids the error message. But note you will have to adjust the styles yourself after you run the macro. I'm not fixing that right now.
- Attachments
-
- Table Footnote.nwm.zip
- (5.02 KiB) Downloaded 676 times
Last edited by phspaelti on 2018-06-29 23:50:23, edited 1 time in total.
philip
Re: a very useful function in the tables
Philip, it seems you have provided an excellent solution to a long-standing problem that Nisus Software obviously didn't care to solve. Congratulations! Both macros work well, as far as I can tell. In v.2 one has to remember to insert a return after the table, and in v2.1 the user doesn't have to bother about that anymore. Well done!phspaelti wrote:here is a macro with a simple fix
-
- Posts: 16
- Joined: 2017-05-01 23:38:06
Re: a very useful function in the tables
I tried all these macros.
Not one works without error.
The editors want to print, to see, to read the texts first, then leave to the correctors annotating them, before sent back to me, for I validate them or not, but writing why in the document, at the right place, in the table !
Nisus must overcome a dozen of such problems to become a professional tool, for professional use. We dont need a UFO between note app and text editor.
So, I'm in the morning of the day's work: and forced to do it with MS Word ....
Not one works without error.
The editors want to print, to see, to read the texts first, then leave to the correctors annotating them, before sent back to me, for I validate them or not, but writing why in the document, at the right place, in the table !
Nisus must overcome a dozen of such problems to become a professional tool, for professional use. We dont need a UFO between note app and text editor.
So, I'm in the morning of the day's work: and forced to do it with MS Word ....
Re: a very useful function in the tables
Hello jd,
you may want to check your blood pressure. I'm really sorry that this issue is causing you so much distress. I'm also pretty sure that my macro works fine, but it is a kludge, and it obviously will not help if your needs include exchanging files with MSWord users. Sorry!
Also remember that those of us posting here are Nisus users just like you.
you may want to check your blood pressure. I'm really sorry that this issue is causing you so much distress. I'm also pretty sure that my macro works fine, but it is a kludge, and it obviously will not help if your needs include exchanging files with MSWord users. Sorry!
Also remember that those of us posting here are Nisus users just like you.
philip