ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bug in footnote conversion?
@ 2012-10-31 15:16 Procházka Lukáš Ing. - Pontex s. r. o.
  2012-10-31 15:19 ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2012-10-31 15:16 UTC (permalink / raw)
  To: ConTeXt

[-- Attachment #1: Type: text/plain, Size: 1005 bytes --]

Hello,

the following example is copied from http://wiki.contextgarden.net/Command/setupfootnotes:

----
\defineconversion[starred][\starredconv]
\def\starredconv#1{\ifcase#1\or*\or**\or***\fi}

\setupfootnotes[conversion=starred,color=blue,frame=on]

\starttext
   Charles IV\footnote{Best Czech king (14th cent.) and the winner of a \quote{best Czech person} poll.}

   \it
   Charles IV\footnote{Best Czech king (14th cent.) and the winner of a \quote{best Czech person} poll.}

   \tt
   Charles IV\footnote{Best Czech king (14th cent.) and the winner of a \quote{best Czech person} poll.}
\stoptext
----

The problem is that - contrary to wiki - no conversion from numbers to stars is performed.

Any fix needed? Or a new calling convention?

TIA.

Best regards,

Lukas


-- 
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

[-- Attachment #2: t-FN2.mkiv --]
[-- Type: application/octet-stream, Size: 508 bytes --]

\defineconversion[starred][\starredconv]
\def\starredconv#1{\ifcase#1\or*\or**\or***\fi}

\setupfootnotes[conversion=starred,color=blue,frame=on]

\starttext
  Charles IV\footnote{Best Czech king (14th cent.) and the winner of a \quote{best Czech person} poll.}

  \it
  Charles IV\footnote{Best Czech king (14th cent.) and the winner of a \quote{best Czech person} poll.}

  \tt
  Charles IV\footnote{Best Czech king (14th cent.) and the winner of a \quote{best Czech person} poll.}
\stoptext

[-- Attachment #3: t-FN2.pdf --]
[-- Type: application/pdf, Size: 18250 bytes --]

[-- Attachment #4: 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] 6+ messages in thread

* Re: Bug in footnote conversion?
  2012-10-31 15:16 Bug in footnote conversion? Procházka Lukáš Ing. - Pontex s. r. o.
@ 2012-10-31 15:19 ` Wolfgang Schuster
  2012-10-31 15:43   ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2012-10-31 15:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 31.10.2012 um 16:16 schrieb Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>:

> Hello,
> 
> the following example is copied from http://wiki.contextgarden.net/Command/setupfootnotes:
> 
> ----
> \defineconversion[starred][\starredconv]
> \def\starredconv#1{\ifcase#1\or*\or**\or***\fi}
> 
> \setupfootnotes[conversion=starred,color=blue,frame=on]
> 
> \starttext
>  Charles IV\footnote{Best Czech king (14th cent.) and the winner of a \quote{best Czech person} poll.}
> 
>  \it
>  Charles IV\footnote{Best Czech king (14th cent.) and the winner of a \quote{best Czech person} poll.}
> 
>  \tt
>  Charles IV\footnote{Best Czech king (14th cent.) and the winner of a \quote{best Czech person} poll.}
> \stoptext
> ----
> 
> The problem is that - contrary to wiki - no conversion from numbers to stars is performed.
> 
> Any fix needed? Or a new calling convention?

\setupnotation[footnote][numberconversion=set 1]

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] 6+ messages in thread

* Re: Bug in footnote conversion?
  2012-10-31 15:19 ` Wolfgang Schuster
@ 2012-10-31 15:43   ` Procházka Lukáš Ing. - Pontex s. r. o.
  2012-10-31 16:08     ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2012-10-31 15:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, 31 Oct 2012 16:19:53 +0100, Wolfgang Schuster <wolfgang.schuster@gmail.com> wrote:

> \setupnotation[footnote][numberconversion=set 1]
>
> Wolfgang

Thanks, it works.

Question: "set 1" is a built-in number conversion?

- If so, what are other built-in [number] conversion sets?

- - Are they documented anywhere?

Lukas


-- 
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___________________________________________________________________________________
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] 6+ messages in thread

* Re: Bug in footnote conversion?
  2012-10-31 15:43   ` Procházka Lukáš Ing. - Pontex s. r. o.
@ 2012-10-31 16:08     ` Wolfgang Schuster
  2012-10-31 16:17       ` Aditya Mahajan
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2012-10-31 16:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 31.10.2012 um 16:43 schrieb Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>:

> On Wed, 31 Oct 2012 16:19:53 +0100, Wolfgang Schuster <wolfgang.schuster@gmail.com> wrote:
> 
>> \setupnotation[footnote][numberconversion=set 1]
>> 
>> Wolfgang
> 
> Thanks, it works.
> 
> Question: "set 1" is a built-in number conversion?
> 
> - If so, what are other built-in [number] conversion sets?

Predefined are “set 0” till “set 3”.

\starttext
\dorecurse {8}{\convertnumber{set 0}{#1}\quad}\par
\dorecurse {9}{\convertnumber{set 1}{#1}\quad}\par
\dorecurse{12}{\convertnumber{set 2}{#1}\quad}\par
\dorecurse{15}{\convertnumber{set 3}{#1}\quad}\par
\stoptext

You can write your own symbol lists with (I use math mode because the spacing between the asterisks is better):

\defineconversion[starred][\m{*},\m{**},\m{***}]

> - - Are they documented anywhere?

You can look if you find something in the manuals or the wiki.

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] 6+ messages in thread

* Re: Bug in footnote conversion?
  2012-10-31 16:08     ` Wolfgang Schuster
@ 2012-10-31 16:17       ` Aditya Mahajan
  2012-11-01  7:30         ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 1 reply; 6+ messages in thread
From: Aditya Mahajan @ 2012-10-31 16:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, 31 Oct 2012, Wolfgang Schuster wrote:
> You can look if you find something in the manuals or the wiki.

If not, then add the information to the wiki.

Aditya
___________________________________________________________________________________
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] 6+ messages in thread

* Re: Bug in footnote conversion?
  2012-10-31 16:17       ` Aditya Mahajan
@ 2012-11-01  7:30         ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 0 replies; 6+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2012-11-01  7:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, 31 Oct 2012 17:17:06 +0100, Aditya Mahajan <adityam@umich.edu> wrote:

> On Wed, 31 Oct 2012, Wolfgang Schuster wrote:
>> You can look if you find something in the manuals or the wiki.
>
> If not, then add the information to the wiki.
>
> Aditya

I added some snippets to existing wiki-pages:

http://wiki.contextgarden.net/Command/convertnumber
http://wiki.contextgarden.net/Command/defineconversion

Best regards,

Lukas


-- 
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___________________________________________________________________________________
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] 6+ messages in thread

end of thread, other threads:[~2012-11-01  7:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-31 15:16 Bug in footnote conversion? Procházka Lukáš Ing. - Pontex s. r. o.
2012-10-31 15:19 ` Wolfgang Schuster
2012-10-31 15:43   ` Procházka Lukáš Ing. - Pontex s. r. o.
2012-10-31 16:08     ` Wolfgang Schuster
2012-10-31 16:17       ` Aditya Mahajan
2012-11-01  7:30         ` Procházka Lukáš Ing. - Pontex s. r. o.

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).