* footnotes: conversion => numberconversion
@ 2011-06-20 6:38 Thomas Schmitz
2011-06-20 6:42 ` Thomas Schmitz
0 siblings, 1 reply; 9+ messages in thread
From: Thomas Schmitz @ 2011-06-20 6:38 UTC (permalink / raw)
To: ntg-context
Hi Hans,
since it took me a while to figure this out: could you
please change the occurrences of "conversion" in
strc-not.mkiv to "numberconversion"? conversion doesn't do
anything, and it was a bit frustrating to see the very
examples from the source were not working.
Thanks, and best
Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: footnotes: conversion => numberconversion
2011-06-20 6:38 footnotes: conversion => numberconversion Thomas Schmitz
@ 2011-06-20 6:42 ` Thomas Schmitz
2011-06-20 12:30 ` Wolfgang Schuster
0 siblings, 1 reply; 9+ messages in thread
From: Thomas Schmitz @ 2011-06-20 6:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, 20 Jun 2011 08:38:34 +0200
"Thomas Schmitz" <tschmit1@uni-bonn.de> wrote:
> Hi Hans,
>
> since it took me a while to figure this out: could you
>please change the occurrences of "conversion" in
>strc-not.mkiv to "numberconversion"? conversion doesn't
>do anything, and it was a bit frustrating to see the very
>examples from the source were not working.
>
> Thanks, and best
>
> Thomas
Oh, and while I'm at it: this looks like a bug to me:
\starttext
This is just a test!{\setupfootnotes[numberconversion=set
2]\footnote{With a footnote attached.}}
This is just a test!\footnote{With a footnote attached.}
\stoptext
The first note has * as a marker, the second is numbered
"2," but it should be "1."
All best
Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: footnotes: conversion => numberconversion
2011-06-20 6:42 ` Thomas Schmitz
@ 2011-06-20 12:30 ` Wolfgang Schuster
2011-06-20 12:56 ` Thomas Schmitz
0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2011-06-20 12:30 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 20.06.2011 um 08:42 schrieb Thomas Schmitz:
> Oh, and while I'm at it: this looks like a bug to me:
>
> \starttext
>
> This is just a test!{\setupfootnotes[numberconversion=set 2]\footnote{With a footnote attached.}}
>
> This is just a test!\footnote{With a footnote attached.}
>
> \stoptext
>
> The first note has * as a marker, the second is numbered "2," but it should be "1."
When you need a footnote with a different symbol then create a new one.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: footnotes: conversion => numberconversion
2011-06-20 12:30 ` Wolfgang Schuster
@ 2011-06-20 12:56 ` Thomas Schmitz
2011-06-20 13:39 ` Wolfgang Schuster
0 siblings, 1 reply; 9+ messages in thread
From: Thomas Schmitz @ 2011-06-20 12:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, 20 Jun 2011 14:30:13 +0200
Wolfgang Schuster <schuster.wolfgang@googlemail.com>
wrote:
>
> Am 20.06.2011 um 08:42 schrieb Thomas Schmitz:
>
>> Oh, and while I'm at it: this looks like a bug to me:
>>
>> \starttext
>>
>> This is just a
>>test!{\setupfootnotes[numberconversion=set
>>2]\footnote{With a footnote attached.}}
>>
>> This is just a test!\footnote{With a footnote attached.}
>>
>> \stoptext
>>
>> The first note has * as a marker, the second is numbered
>>"2," but it should be "1."
>
> When you need a footnote with a different symbol then
>create a new one.
>
> Wolfgang
How? I can only see the option of creating a whole new set
of footnotes, which is not at all what I want:
\definenote[Ack][numberconversion=set 2,
rule=off]
\setupfootnotes[rule=off]
\starttext
This is just a test!\Ack{With a footnote attached.}
This is just a test!\footnote{With a footnote attached.}
\stoptext
How do I get rid of the vertical space between both sets?
And how do I make sure that the notes are printed in the
right order?
Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: footnotes: conversion => numberconversion
2011-06-20 12:56 ` Thomas Schmitz
@ 2011-06-20 13:39 ` Wolfgang Schuster
2011-06-20 14:01 ` Thomas Schmitz
0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2011-06-20 13:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 20.06.2011 um 14:56 schrieb Thomas Schmitz:
> How? I can only see the option of creating a whole new set of footnotes, which is not at all what I want:
The following is the best i can do (to change the symbol each \MyNote you need a counter for it):
\define[1]\MyNote
{\bgroup
\savenumber [footnote]%
\resetnumber[footnote]%
\setupnote[footnote][numberconversion=set 2]%
\footnote{#1}%
\restorenumber[footnote]%
\egroup}
\starttext
This is just a test!\MyNote{With a footnote attached.}
This is just a test!\footnote{With a footnote attached.}
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: footnotes: conversion => numberconversion
2011-06-20 13:39 ` Wolfgang Schuster
@ 2011-06-20 14:01 ` Thomas Schmitz
2011-06-20 17:28 ` Hans Hagen
0 siblings, 1 reply; 9+ messages in thread
From: Thomas Schmitz @ 2011-06-20 14:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, 20 Jun 2011 15:39:21 +0200
Wolfgang Schuster <schuster.wolfgang@googlemail.com>
wrote:
>
> Am 20.06.2011 um 14:56 schrieb Thomas Schmitz:
>
>> How? I can only see the option of creating a whole new
>>set of footnotes, which is not at all what I want:
>
> The following is the best i can do (to change the symbol
>each \MyNote you need a counter for it):
>
> \define[1]\MyNote
> {\bgroup
> \savenumber [footnote]%
> \resetnumber[footnote]%
> \setupnote[footnote][numberconversion=set 2]%
> \footnote{#1}%
> \restorenumber[footnote]%
> \egroup}
>
> \starttext
>
> This is just a test!\MyNote{With a footnote attached.}
>
> This is just a test!\footnote{With a footnote attached.}
>
> \stoptext
>
> Wolfgang
>
Thanks Wolfgang! This "starred" footnote is often used for
acknowledgments etc. in articles, and it's always the
first note, often appended to the title. So I come back to
my first attempt: this does work, and unless one wants
unusual symbols in the middle of ordinary footnotes, seems
like the easiest solution:
\setupfootnotes[rule=off]
\starttext
This is just a test!{\setupfootnotes[numberconversion=set
2]\footnote{With a footnote
attached.}\resetnumber[footnote]}
This is just a test!\footnote{With a footnote attached.}
\stoptext
Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: footnotes: conversion => numberconversion
2011-06-20 14:01 ` Thomas Schmitz
@ 2011-06-20 17:28 ` Hans Hagen
2011-06-20 21:56 ` Wolfgang Schuster
0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2011-06-20 17:28 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Thomas Schmitz
[-- Attachment #1: Type: text/plain, Size: 2753 bytes --]
On 20-6-2011 4:01, Thomas Schmitz wrote:
> On Mon, 20 Jun 2011 15:39:21 +0200
> Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:
>>
>> Am 20.06.2011 um 14:56 schrieb Thomas Schmitz:
>>
>>> How? I can only see the option of creating a whole new set of
>>> footnotes, which is not at all what I want:
>>
>> The following is the best i can do (to change the symbol each \MyNote
>> you need a counter for it):
>>
>> \define[1]\MyNote
>> {\bgroup
>> \savenumber [footnote]%
>> \resetnumber[footnote]%
>> \setupnote[footnote][numberconversion=set 2]%
>> \footnote{#1}%
>> \restorenumber[footnote]%
>> \egroup}
>>
>> \starttext
>>
>> This is just a test!\MyNote{With a footnote attached.}
>>
>> This is just a test!\footnote{With a footnote attached.}
>>
>> \stoptext
>>
>> Wolfgang
>>
> Thanks Wolfgang! This "starred" footnote is often used for
> acknowledgments etc. in articles, and it's always the first note, often
> appended to the title. So I come back to my first attempt: this does
> work, and unless one wants unusual symbols in the middle of ordinary
> footnotes, seems like the easiest solution:
>
> \setupfootnotes[rule=off]
>
> \starttext
>
> This is just a test!{\setupfootnotes[numberconversion=set
> 2]\footnote{With a footnote attached.}\resetnumber[footnote]}
As we already can disable a number it's no big deal to add the option
for an alternative symbol:
\setupfootnotes[rule=off]
\definenote[starrednote][footnote][numberconversion=set 2]
\setupnote[footnote][symbol={$*$}]
\starttext
This is just a test!\footnote {Just a footnote (a).}
This is just a test!\starrednote{Just a footnote (b).}
This is just a test!\footnote[-]{Just a footnote (-).}
This is just a test!\footnote[+]{Just a footnote (+).}
This is just a test!\footnote {Just a footnote (c).}
This is just a test!\starrednote{Just a footnote (d).}
This is just a test!\footnote {Just a footnote (e).}
\typefile{symbols-001.tex}
\stoptext
I'll put a beta on the ftp (as I needed to adapt some description
related code and as usual I'll have made some typos so you depend on
Wolfgang's checking. Wolfgang: we have a new key 'symbol' for
enumerations and footnotes.)
On the agenda is a merged flush of notes so that you can have a new
instance and flush in the same order (I remember experimenting with it
but probably never finished it).
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
[-- Attachment #2: symbols-001.pdf --]
[-- Type: application/pdf, Size: 19274 bytes --]
[-- Attachment #3: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: footnotes: conversion => numberconversion
2011-06-20 17:28 ` Hans Hagen
@ 2011-06-20 21:56 ` Wolfgang Schuster
2011-06-21 8:08 ` Hans Hagen
0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2011-06-20 21:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 20.06.2011 um 19:28 schrieb Hans Hagen:
> I'll put a beta on the ftp (as I needed to adapt some description related code and as usual I'll have made some typos so you depend on Wolfgang's checking.
You mean like this :)
-\def \enumerationsignalp{-} % 1 == enabled
+\def \enumerationsignalp{+} % 1 == enabled
-\def \enumerationsignalm{+} % 2 == disabled but symbol
+\def \enumerationsignalm{-} % 2 == disabled but symbol
> Wolfgang: we have a new key 'symbol' for enumerations and footnotes.)
Added!
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: footnotes: conversion => numberconversion
2011-06-20 21:56 ` Wolfgang Schuster
@ 2011-06-21 8:08 ` Hans Hagen
0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2011-06-21 8:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 20-6-2011 11:56, Wolfgang Schuster wrote:
>
> Am 20.06.2011 um 19:28 schrieb Hans Hagen:
>
>> I'll put a beta on the ftp (as I needed to adapt some description related code and as usual I'll have made some typos so you depend on Wolfgang's checking.
>
> You mean like this :)
>
> -\def \enumerationsignalp{-} % 1 == enabled
> +\def \enumerationsignalp{+} % 1 == enabled
> -\def \enumerationsignalm{+} % 2 == disabled but symbol
> +\def \enumerationsignalm{-} % 2 == disabled but symbol
I now have this:
\newconstant\enumerationnumberstate % 1 == enabled
\def \enumerationsignalskip {-} % 0 == disabled
\def \enumerationsignalsymbol{+} % 2 == disabled but symbol
But it was worse (probably before you tested) as description was broken
due to 0/1 swapping. (but this functionality is not yet in minmals anyway).
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2011-06-21 8:08 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-20 6:38 footnotes: conversion => numberconversion Thomas Schmitz
2011-06-20 6:42 ` Thomas Schmitz
2011-06-20 12:30 ` Wolfgang Schuster
2011-06-20 12:56 ` Thomas Schmitz
2011-06-20 13:39 ` Wolfgang Schuster
2011-06-20 14:01 ` Thomas Schmitz
2011-06-20 17:28 ` Hans Hagen
2011-06-20 21:56 ` Wolfgang Schuster
2011-06-21 8:08 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).