ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Setting the footnote symbol
@ 2017-11-16 17:11 Idris Samawi Hamid ادريس سماوي حامد
  2017-11-16 17:42 ` Pablo Rodriguez
  2017-11-16 17:47 ` Pablo Rodriguez
  0 siblings, 2 replies; 10+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2017-11-16 17:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

Der gang,

For the following \definefont scenario, the footnote symbol in the main  
text is not raised:

=======
\setuppapersize[letter][letter]

% \setupbodyfont[schola,12pt]
\definefont[PagellaRegular]     [texgyrepagella-regular.otf at 14pt]
\definefont[PagellaRegularSmall][texgyrepagella-regular.otf at 12pt]

\setupwhitespace[big]
\setuplayout[width=4.5in,height=5.5in,backspace=2in]

\setupnotation[footnote][style={\PagellaRegularSmall},       % text style  
of the footnote text
                          numbercommand=\PagellaRegularSmall, % symbol-font  
style in the footnote
                          titlestyle={\PagellaRegularSmall}]  % Why is this  
necessary?
\setupnote    [footnote][textcommand={\PagellaRegularSmall}] % symbol-font  
style in the main text

\noheaderandfooterlines

\starttext \PagellaRegular
\startframedtext[width=4.5in,offset=0pt]
\startlocalfootnotes
Hence in Met VII, where Aristotle debates with masterly penetration how to  
meet the claim of substance to be at once universal, intelligible, and  
definable, and at the same time unique and individual, the singular is at  
length superseded on the throne of substance by the infima species.
\startfootnote
Or \quotation{materiate form,} as Aristotle also calls it because it  
attains existence in a material embodiment and cannot be defined without  
reference to matter, though matter is itself indefinable. The discussion  
is interspersed with criticism of the forms. Aristotle attacks the theory  
as a purely arbitrary individualisation of universals, and the detail of  
the polemic, as well as the context, suggest that he is attacking Plato  
not for divorcing infimae species from singulars, but for separating and  
reifying genera taken apart from species. [\textellipsis]
\stopfootnote\
That is to say the genus is taken to be fully actualised in its infimae  
species, and its further differentiation into singulars is treated as  
irrelevant.

\placelocalfootnotes
\stoplocalfootnotes
\stopframedtext
\stoptext
=======

What do we need to do to get a raised footnote symbol in the main text  
(line 6 of the pdf)? Thanks in advance.

Best wishes
Idris
-- 
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

[-- Attachment #2: test-note.pdf --]
[-- Type: application/pdf, Size: 11464 bytes --]

[-- Attachment #3: test-note.tex --]
[-- Type: application/x-tex, Size: 1917 bytes --]

[-- Attachment #4: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Setting the footnote symbol
  2017-11-16 17:11 Setting the footnote symbol Idris Samawi Hamid ادريس سماوي حامد
@ 2017-11-16 17:42 ` Pablo Rodriguez
  2017-11-16 17:47 ` Pablo Rodriguez
  1 sibling, 0 replies; 10+ messages in thread
From: Pablo Rodriguez @ 2017-11-16 17:42 UTC (permalink / raw)
  To: ntg-context

On 11/16/2017 06:11 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> Der gang,
> 
> For the following \definefont scenario, the footnote symbol in the main  
> text is not raised:
> 
> =======
> \setuppapersize[letter][letter]

Dear Idris,

which is the difference between your command above and the next one?

  \setuppapersize[letter]

> \setupnotation[footnote][style={\PagellaRegularSmall},
> titlestyle={\PagellaRegularSmall}]  % Why is this necessary?

For what is this required? Or what do you want to achieve with the
titlestyle option?

> What do we need to do to get a raised footnote symbol in the main text  
> (line 6 of the pdf)?

The default value for the numbercommand option in \setupnotation is \high.

If you redefine it, it should read:

   numbercommand={\PagellaRegularSmall\high},

Otherwise you are removing the raising command.

I hope 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Setting the footnote symbol
  2017-11-16 17:11 Setting the footnote symbol Idris Samawi Hamid ادريس سماوي حامد
  2017-11-16 17:42 ` Pablo Rodriguez
@ 2017-11-16 17:47 ` Pablo Rodriguez
  2017-11-16 17:57   ` Idris Samawi Hamid ادريس سماوي حامد
  1 sibling, 1 reply; 10+ messages in thread
From: Pablo Rodriguez @ 2017-11-16 17:47 UTC (permalink / raw)
  To: ntg-context

On 11/16/2017 06:11 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> What do we need to do to get a raised footnote symbol in the main text  
> (line 6 of the pdf)? Thanks in advance.

BTW, I mixed the number which had to be raised.

By default, the textcommand option has a value of \high in \setupnote.

You should rewrite your \setupnote command in the following way:

  \setupnote[footnote][textcommand={\PagellaRegularSmall\high}]

I hope it is clear now.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Setting the footnote symbol
  2017-11-16 17:47 ` Pablo Rodriguez
@ 2017-11-16 17:57   ` Idris Samawi Hamid ادريس سماوي حامد
  2017-11-16 18:11     ` Pablo Rodriguez
  0 siblings, 1 reply; 10+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2017-11-16 17:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

Dear Pablo,

On Thu, 16 Nov 2017 10:47:13 -0700, Pablo Rodriguez <oinos@gmx.es> wrote:

> On 11/16/2017 06:11 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
>> What do we need to do to get a raised footnote symbol in the main text
>> (line 6 of the pdf)? Thanks in advance.
>
> BTW, I mixed the number which had to be raised.
>
> By default, the textcommand option has a value of \high in \setupnote.
>
> You should rewrite your \setupnote command in the following way:
>
>   \setupnote[footnote][textcommand={\PagellaRegularSmall\high}]

Many thanks. This fixes the height, but we lose the styling of the  
reference symbol in the main text - see attached.

Best wishes
Idris
-- 
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

[-- Attachment #2: test-note.pdf --]
[-- Type: application/pdf, Size: 12757 bytes --]

[-- Attachment #3: test-note.tex --]
[-- Type: application/x-tex, Size: 1908 bytes --]

[-- Attachment #4: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Setting the footnote symbol
  2017-11-16 17:57   ` Idris Samawi Hamid ادريس سماوي حامد
@ 2017-11-16 18:11     ` Pablo Rodriguez
  2017-11-16 18:18       ` Idris Samawi Hamid ادريس سماوي حامد
  0 siblings, 1 reply; 10+ messages in thread
From: Pablo Rodriguez @ 2017-11-16 18:11 UTC (permalink / raw)
  To: ntg-context

On 11/16/2017 06:57 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> On Thu, 16 Nov 2017 10:47:13 -0700, Pablo Rodriguez <oinos@gmx.es> wrote:
>> [...]
>> You should rewrite your \setupnote command in the following way:
>>
>>   \setupnote[footnote][textcommand={\PagellaRegularSmall\high}]
> 
> Many thanks. This fixes the height, but we lose the styling of the  
> reference symbol in the main text - see attached.

I see. One of these commands should work:

\setupnote[footnote][textcommand={\switchtobodyfont[pagella, 12pt]\high}

\setupnote[footnote][textcommand={\setupbodyfont[pagella, 12pt]\high}

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Setting the footnote symbol
  2017-11-16 18:11     ` Pablo Rodriguez
@ 2017-11-16 18:18       ` Idris Samawi Hamid ادريس سماوي حامد
  2017-11-16 18:40         ` Pablo Rodriguez
  0 siblings, 1 reply; 10+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2017-11-16 18:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 16 Nov 2017 11:11:50 -0700, Pablo Rodriguez <oinos@gmx.es> wrote:

> On 11/16/2017 06:57 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
>> On Thu, 16 Nov 2017 10:47:13 -0700, Pablo Rodriguez <oinos@gmx.es>  
>> wrote:
>>> [...]
>>> You should rewrite your \setupnote command in the following way:
>>>
>>>   \setupnote[footnote][textcommand={\PagellaRegularSmall\high}]
>>
>> Many thanks. This fixes the height, but we lose the styling of the
>> reference symbol in the main text - see attached.
>
> I see. One of these commands should work:
>
> \setupnote[footnote][textcommand={\switchtobodyfont[pagella, 12pt]\high}
>
> \setupnote[footnote][textcommand={\setupbodyfont[pagella, 12pt]\high}

Yes, but the point of this scenario is to do everything with \definefont.  
pagella is just for purposes of a MWE: otherwise the scenario calls for  
using a font that has no associated typescript.

Put another way: We want to set up full control over font-style of each  
element of a footnote using only \definefont. If that's impossible, it  
would be good to know that as well as why.

Idris
-- 
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Setting the footnote symbol
  2017-11-16 18:18       ` Idris Samawi Hamid ادريس سماوي حامد
@ 2017-11-16 18:40         ` Pablo Rodriguez
  2017-11-16 21:14           ` Idris Samawi Hamid ادريس سماوي حامد
  0 siblings, 1 reply; 10+ messages in thread
From: Pablo Rodriguez @ 2017-11-16 18:40 UTC (permalink / raw)
  To: ntg-context

On 11/16/2017 07:18 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> Yes, but the point of this scenario is to do everything with \definefont.  
> pagella is just for purposes of a MWE: otherwise the scenario calls for  
> using a font that has no associated typescript.
> 
> Put another way: We want to set up full control over font-style of each  
> element of a footnote using only \definefont. If that's impossible, it  
> would be good to know that as well as why.

I must confess that this is far beyond my knowledge. I never used
\definefont.

If you don’t mind using \definefontfamily, this works fine:

  \definefontfamily[lareba][rm][Larabiefont]

  \setupnote[footnote][textstyle={\setupbodyfont[lareba, 12pt]\high}

No previous typescript is required (Larabiefont doesn’t have one).

But for explanations, I’m afraid I’m only an average user :-(.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Setting the footnote symbol
  2017-11-16 18:40         ` Pablo Rodriguez
@ 2017-11-16 21:14           ` Idris Samawi Hamid ادريس سماوي حامد
  2017-11-17 20:06             ` Pablo Rodriguez
  0 siblings, 1 reply; 10+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2017-11-16 21:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 16 Nov 2017 11:40:40 -0700, Pablo Rodriguez <oinos@gmx.es> wrote:

> On 11/16/2017 07:18 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
>> Yes, but the point of this scenario is to do everything with  
>> \definefont.
>> pagella is just for purposes of a MWE: otherwise the scenario calls for
>> using a font that has no associated typescript.
>>
>> Put another way: We want to set up full control over font-style of each
>> element of a footnote using only \definefont. If that's impossible, it
>> would be good to know that as well as why.
>
> I must confess that this is far beyond my knowledge. I never used
> \definefont.

Mainly useful for testing for bugs in other macros etc..

> If you don’t mind using \definefontfamily, this works fine:
>
>   \definefontfamily[lareba][rm][Larabiefont]
>
>   \setupnote[footnote][textstyle={\setupbodyfont[lareba, 12pt]\high}
>
> No previous typescript is required (Larabiefont doesn’t have one).

Yes, SimpleFonts work, but then might as well set the whole document that  
way -)

> But for explanations, I’m afraid I’m only an average user :-(.

Pablo, you are anything but an average user :-) Many thanks for your time  
and help.

Best wishes
Idris
-- 
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Setting the footnote symbol
  2017-11-16 21:14           ` Idris Samawi Hamid ادريس سماوي حامد
@ 2017-11-17 20:06             ` Pablo Rodriguez
  2017-11-17 20:11               ` Idris Samawi Hamid ادريس سماوي حامد
  0 siblings, 1 reply; 10+ messages in thread
From: Pablo Rodriguez @ 2017-11-17 20:06 UTC (permalink / raw)
  To: ntg-context

On 11/16/2017 10:14 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> On Thu, 16 Nov 2017 11:40:40 -0700, Pablo Rodriguez wrote:
>> [...]
>> I must confess that this is far beyond my knowledge. I never used
>> \definefont.
> 
> Mainly useful for testing for bugs in other macros etc..

Dear Idris,

I may be wrong, but I see it \definefont as remains from MkII in MkIV.
(I know that my previous statement comes from my lack of ConTeXt knowledge.)

I tend to use a single typeface (maybe with a fallback for Greek glyphs)
in my documents. This is much easier to maintain.

>> No previous typescript is required (Larabiefont doesn’t have one).
> 
> Yes, SimpleFonts work, but then might as well set the whole document that  
> way -)

This is already ConTeXt core code. BTW, contrary to your fears, it
doesn’t set the whole document that way:

    \definefont[PagellaRegular]     [texgyrepagella-regular.otf at 14pt]
    \definefont[PagellaRegularSmall][texgyrepagella-regular.otf at 12pt]

    \definefontfamily[nonexisting][rm][TeX Gyre Cursor]
    \setupbodyfont[helvetica]

    \setupwhitespace[big]
    \setuplayout[width=4.5in,height=5.5in,backspace=2in]

    \setupnotation[footnote][style={\PagellaRegularSmall},
                              numbercommand=\PagellaRegularSmall]
    \setupnote [footnote]
        [textcommand={\setupbodyfont[nonexisting]\high}]

    \noheaderandfooterlines

    \starttext
    \startframedtext[width=4.5in,offset=0pt] \PagellaRegular
    \startlocalfootnotes
    Text
    \startfootnote
    Note
    \stopfootnote\
    More text
    \placelocalfootnotes
    \stoplocalfootnotes
    \stopframedtext

    \dorecurse{5}{\input zapf}
    \stoptext

Or use \switchtobodyfont[nonexisting] (if you feel more confortable with
it). In any case, both commands work as you’d expect on my computer.

>> But for explanations, I’m afraid I’m only an average user :-(.
> 
> Pablo, you are anything but an average user :-) Many thanks for your time  
> and help.

With average user, I mean I don’t fully understand the code that I read
(and I cannot write code for ConTeXt [either TeX or Lua]). Otherwise, I
would be contributing code to ConTeXt.

I hope 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Setting the footnote symbol
  2017-11-17 20:06             ` Pablo Rodriguez
@ 2017-11-17 20:11               ` Idris Samawi Hamid ادريس سماوي حامد
  0 siblings, 0 replies; 10+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2017-11-17 20:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, 17 Nov 2017 13:06:02 -0700, Pablo Rodriguez <oinos@gmx.es> wrote:

> With average user, I mean I don’t fully understand the code that I read
> (and I cannot write code for ConTeXt [either TeX or Lua]). Otherwise, I
> would be contributing code to ConTeXt.

But what you contribute by answering and helping is as important as  
understanding or writing code -) So definitely above average :-)

Many thanks, Pablo, for your time and help; it is much appreciated and not  
taken for granted.

Best wishes
Idris
-- 
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-11-17 20:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-16 17:11 Setting the footnote symbol Idris Samawi Hamid ادريس سماوي حامد
2017-11-16 17:42 ` Pablo Rodriguez
2017-11-16 17:47 ` Pablo Rodriguez
2017-11-16 17:57   ` Idris Samawi Hamid ادريس سماوي حامد
2017-11-16 18:11     ` Pablo Rodriguez
2017-11-16 18:18       ` Idris Samawi Hamid ادريس سماوي حامد
2017-11-16 18:40         ` Pablo Rodriguez
2017-11-16 21:14           ` Idris Samawi Hamid ادريس سماوي حامد
2017-11-17 20:06             ` Pablo Rodriguez
2017-11-17 20:11               ` Idris Samawi Hamid ادريس سماوي حامد

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