Re: [NTG-context] Change font for footnote-symbols

2016-06-19 Thread Alias 1
Thanks Thomas and Pablo, your solutions are working fine.



Greetings

Jannik Voges

signature.asc
Description: Message signed with OpenPGP using AMPGpg
___
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
___

Re: [NTG-context] Change font for footnote-symbols

2016-06-19 Thread Pablo Rodriguez
On 06/19/2016 10:10 PM, Alias 1 wrote:
> Hello ConTeXt-Users,
>  
> I want to change the font for the footnote-symbols. I want to change
> the font for the footnote-symbols (the numbers 1, 2, 3 etc.) to
> latinmodern. How do I do this? I tried to add the commands
> \setupnote[footnote][textstyle={\switchtobodyfont[latinmodern]}] and
> \setupnotation[footnote][headstyle={\switchtobodyfont[latinmodern]}].
> If I only add one of these, the symbols in the text/notes at the
> bottom of the page, get changed, but if I add both, only the font of
> the symbols in the text get changed (In front of the first
> footnote-symbol (the 1) there is also some whitespace added, which
> looks like a bug or something; or I used the commands in a wrong
> way). So I assume, this is not the intended way. But what is the
> right way to do it?>

Hi Jannik,

this is another approach:

\definefontfamily[dejava][rm][DejaVu Serif]
\definefontfamily[dejava][hw][Latin Modern Roman]
\setupbodyfont[dejava]

\setupnote[footnote][textstyle={\hw}]

\setupnotation[footnote][headstyle={\hw}]

\starttext

\dorecurse{10}{foo\footnote{bar} }

\stoptext

Just in case it helps,


Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] Change font for footnote-symbols

2016-06-19 Thread Thomas A. Schmitz

On 06/19/2016 08:10 PM, Alias 1 wrote:

I want to change the font for the footnote-symbols (the numbers 1, 2, 3 etc.) 
to latinmodern. How do I do this? I tried to add the commands 
\setupnote[footnote][textstyle={\switchtobodyfont[latinmodern]}] and 
\setupnotation[footnote][headstyle={\switchtobodyfont[latinmodern]}]. If I only 
add one of these, the symbols in the text/notes at the bottom of the page, get 
changed, but if I add both, only the font of the symbols in the text get 
changed (In front of the first footnote-symbol (the 1) there is also some 
whitespace added, which looks like a bug or something; or I used the commands 
in a wrong way). So I assume, this is not the intended way. But what is the 
right way to do it?



Thanks for your help

Jannik Voges


Here is your example, somewhat simplified. I use bold italic to make the 
font change more visible; you will modify as necessary.


Best wishes

Thomas

\definefont[NoteFont][file:lmsans10-boldoblique sa 0.9]

\def\NoteRef#1%
  {\high{\NoteFont #1}}

\setupfootnotes[textcommand=\NoteRef]

\setupnotation[footnote][numbercommand=\NoteRef]

\setupbodyfont[dejavu]

\starttext

\dorecurse{10}{foo\footnote{bar} }

\stoptext
___
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
___

[NTG-context] Change font for footnote-symbols

2016-06-19 Thread Alias 1
Hello ConTeXt-Users,


I want to change the font for the footnote-symbols. I give a minimal example:

\starttypescript [serif] [dejavu] [name]
\definefontsynonym [Serif] [name:dejavuserif] [features=default]
\definefontsynonym [SerifBold] [name:dejavuserifbold] [features=default]
\definefontsynonym [SerifItalic] [name:dejavuserifitalic] [features=default]
\definefontsynonym [SerifBoldItalic] [name:dejavuserifbolditalic] 
[features=default]
\stoptypescript

\starttypescript[dejavu]
\definetypeface [dejavu] [rm] [serif] [dejavu] [default]
\stoptypescript

\starttypescript [serif] [latinmodern] [name]
\definefontsynonym [Serif] [name:latinmodernromanregular] [features=default]
\stoptypescript

\starttypescript[latinmodern]
\definetypeface [latinmodern] [rm] [serif] [latinmodern] [default]
\stoptypescript

\setupbodyfont[dejavu]



\starttext

\dorecurse{10}{foo\footnote{bar} }

\stoptext

I want to change the font for the footnote-symbols (the numbers 1, 2, 3 etc.) 
to latinmodern. How do I do this? I tried to add the commands 
\setupnote[footnote][textstyle={\switchtobodyfont[latinmodern]}] and 
\setupnotation[footnote][headstyle={\switchtobodyfont[latinmodern]}]. If I only 
add one of these, the symbols in the text/notes at the bottom of the page, get 
changed, but if I add both, only the font of the symbols in the text get 
changed (In front of the first footnote-symbol (the 1) there is also some 
whitespace added, which looks like a bug or something; or I used the commands 
in a wrong way). So I assume, this is not the intended way. But what is the 
right way to do it?



Thanks for your help

Jannik Voges

signature.asc
Description: Message signed with OpenPGP using AMPGpg
___
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
___