ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Footnote font size equal to main text font size
@ 2020-09-15  2:38 Jairo A. del Rio
  2020-09-16  7:51 ` Henning Hraban Ramm
  2020-09-16 10:01 ` Wolfgang Schuster
  0 siblings, 2 replies; 3+ messages in thread
From: Jairo A. del Rio @ 2020-09-15  2:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1052 bytes --]

Hi, list. I've adapted the following example from the mailing list. My aim
is to use endnotes for each chapter:

\mainlanguage[es]
\definehead[footnotetitle][title]
\startsetups[chapter:after]
\ifcase\rawcountervalue[footnote]\relax
     \else
         \startfootnotetitle[title={Notas}]
             \placefootnotes
         \stopfootnotetitle
     \fi
\stopsetups

\setupnotes[location=none]
\setupnotation[way=bychapter]
\setupfootnotedefinition[style={\switchtobodyfont[12pt]}]

\setuphead[chapter][aftersection=\setups{chapter:after}]

\starttext

\startchapter[title={Chapter One}]

Here comes \footnote{a footnote}. Aquí \footnote{otra nota a pie de página}.

\stopchapter

\stoptext

However, I'm concerned by \switchtobodyfont. How should I make footnote
size the same as the default font size, even when an arbitrary font size is
used.

E.g.:

\setupbodyfont[24pt] % It could be another number instead of 24
\setupfootnotedefinition[style={\switchtobodyfont[???]}]

Thank you in advance.

Jairo :)

[-- Attachment #1.2: Type: text/html, Size: 1276 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 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] 3+ messages in thread

* Re: Footnote font size equal to main text font size
  2020-09-15  2:38 Footnote font size equal to main text font size Jairo A. del Rio
@ 2020-09-16  7:51 ` Henning Hraban Ramm
  2020-09-16 10:01 ` Wolfgang Schuster
  1 sibling, 0 replies; 3+ messages in thread
From: Henning Hraban Ramm @ 2020-09-16  7:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users



> Am 15.09.2020 um 04:38 schrieb Jairo A. del Rio <jairoadelrio6@gmail.com>:
> 
> Hi, list. I've adapted the following example from the mailing list. My aim is to use endnotes for each chapter:
> 
> \mainlanguage[es]
> \definehead[footnotetitle][title]
> \startsetups[chapter:after]
> \ifcase\rawcountervalue[footnote]\relax
>      \else
>          \startfootnotetitle[title={Notas}]
>              \placefootnotes
>          \stopfootnotetitle
>      \fi
> \stopsetups
> 
> \setupnotes[location=none]
> \setupnotation[way=bychapter]
> \setupfootnotedefinition[style={\switchtobodyfont[12pt]}]
> 
> \setuphead[chapter][aftersection=\setups{chapter:after}]
> 
> \starttext
> 
> \startchapter[title={Chapter One}]
> 
> Here comes \footnote{a footnote}. Aquí \footnote{otra nota a pie de página}.
> 
> \stopchapter
> 
> \stoptext
> 
> However, I'm concerned by \switchtobodyfont. How should I make footnote size the same as the default font size, even when an arbitrary font size is used.
> 
> E.g.:
> 
> \setupbodyfont[24pt] % It could be another number instead of 24
> \setupfootnotedefinition[style={\switchtobodyfont[???]}]
> 
> Thank you in advance.

Try

\newdimen\Mybodyfontsize
\Mybodyfontsize=24pt

\setupbodyfont[\Mybodyfontsize]

etc.


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

* Re: Footnote font size equal to main text font size
  2020-09-15  2:38 Footnote font size equal to main text font size Jairo A. del Rio
  2020-09-16  7:51 ` Henning Hraban Ramm
@ 2020-09-16 10:01 ` Wolfgang Schuster
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2020-09-16 10:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Jairo A. del Rio schrieb am 15.09.2020 um 04:38:
> Hi, list. I've adapted the following example from the mailing list. My 
> aim is to use endnotes for each chapter:
> 
> \mainlanguage[es]
> \definehead[footnotetitle][title]
> \startsetups[chapter:after]
> \ifcase\rawcountervalue[footnote]\relax
>       \else
>           \startfootnotetitle[title={Notas}]
>               \placefootnotes
>           \stopfootnotetitle
>       \fi
> \stopsetups
> 
> \setupnotes[location=none]
> \setupnotation[way=bychapter]
> \setupfootnotedefinition[style={\switchtobodyfont[12pt]}]
> 
> \setuphead[chapter][aftersection=\setups{chapter:after}]
> 
> \starttext
> 
> \startchapter[title={Chapter One}]
> 
> Here comes \footnote{a footnote}. Aquí \footnote{otra nota a pie de página}.
> 
> \stopchapter
> 
> \stoptext
> 
> However, I'm concerned by \switchtobodyfont. How should I make footnote 
> size the same as the default font size, even when an arbitrary font size 
> is used.


\starttext

First paragraph\footnote{Footnote one}

\page

\setupnote[footnote][bodyfont=]
%\setupnotation[footnote][numbercommand=]

Second paragraph\footnote{Footnote two}

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

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

end of thread, other threads:[~2020-09-16 10:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-15  2:38 Footnote font size equal to main text font size Jairo A. del Rio
2020-09-16  7:51 ` Henning Hraban Ramm
2020-09-16 10:01 ` Wolfgang Schuster

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