Hi everybody, I have to typset several footnotes. I setup a bodyfont (sanserif, Helvetica like). Why are the footnotes typset in cmr? Consider the following minimal testfile \starttext \startitemize \head Rug rugggenbord dikte 0.5\Milli\Meter \startlocalfootnotes[0] \starttabulate[|lm|lm|] \NC L_R \EQ L_P \NC\NR \NC B_R \EQ D_{boekblok} \footnote{Rugdikte gemeten langs de ronding van het boekblok met een strook papier} \NC\NR \stoptabulate {\placelocalfootnotes} \stoplocalfootnotes \stopitemize \stoptext In the logfile I find the following statement: check : missing or ungrouped '=' after '0' in line 9 (@@vn) I used this mechanism earlier. But can't understand this behaviour in this case. Any hints?/ Willi
Hi everybody,
I have to typset several footnotes.
I setup a bodyfont (sanserif, Helvetica like). Why are the footnotes typset in cmr?
I'm not sure but I've just solved similar problem. Footnotes have their 'own' bodyfontsize so if it isn't defined, ConTeXt uses default font. For example I defined \definebodyfont [13pt,12pt], while footnotes are 'small' by default, which means that they are 10pt. Footnotes were in cmr10 because I didn't defined 10pt body font. Is that your problem? Pawe/l
Hi Pawel Sorry for the misspelling of your name. Thanks, I see that my question is almost the same as yours was. However, when I use \setupfootnotes[bodyfont={\switchtobodyfont[8pt]},offset=-1cm] I get an error. check : missing or ungrouped '=' after '0' in line 9 (@@vn) ! Missing \endcsname inserted. <to be read again> \edef \doifsomething #1->\edef \!!stringa {#1}\ifx \!!stringa \empty \expandafter ... \switchtobodyfont [#1]->\doifsomething {#1} {\doifdefinedelse {\??ft \normal... \interfaced #1->\ifcsname \k!prefix! #1 \endcsname \csname \k!prefix! #1\endc... \doifdefinedelse #1->\edef \p!defined {#1 }\ifcsname \detokenize \@EA {\p!def... <argument> ...yfontsize \interfaced {\@@vnkorps }} {\setbodyfontstep {\@@vnk... ... l.14 \stoptabulate If I am using \setupfootnotes[bodyfont=5pt,offset=-1cm] then I get the footnote typeset in 5pt but still cmr and the error in the log-file is still check : missing or ungrouped '=' after '0' in line 9 (@@vn) Defining bodyfontsizes by \definebodyfont does not cure the problem. Cheers Willi
Hi!
However, when I use \setupfootnotes[bodyfont={\switchtobodyfont[8pt]},offset=-1cm] I get an error. [...] If I am using \setupfootnotes[bodyfont=5pt,offset=-1cm] then I get the footnote typeset in 5pt but still cmr and the error in the log-file is still
Try \definefontsynonym[myFont][your_font] \definebodyfont[10pt,9pt,8pt,7pt][ss] [tf=myFont sa 1] \setupbodyfontenvironment [10pt] [xx=9pt] % footnote reference number \setupbodyfontenvironment [8pt] [x=7pt] % footnote number % ALL 10, 9, 8, 7pt fonts MUST be defined in \definebodyfont \setupbodyfont[10pt,ss] \setupfootnotes[bodyfont=8pt] There is somt text\footnote{and there is a footnote} \end Doesn't it work?
Hi Pawel
Thanks for your suggestions. In my case this does not seem to be the
solution.
I fiddled with the different options. The conclusion is, that the footnotes
do not readily follow the
bodyfont settings. Still it is possible to switch from rm to ss by means of
\setupfootnotes[bodyfont={small,ss}] but the texts are typeset in CMSS
then...
I provided Hans a test file and he will look into it.
Cheers Willi
----- Original Message -----
From: "Pawel Jackowski na Onet"
Hi!
However, when I use \setupfootnotes[bodyfont={\switchtobodyfont[8pt]},offset=-1cm] I get an error. [...] If I am using \setupfootnotes[bodyfont=5pt,offset=-1cm] then I get the footnote typeset in 5pt but still cmr and the error in the log-file is still
Try
\definefontsynonym[myFont][your_font] \definebodyfont[10pt,9pt,8pt,7pt][ss] [tf=myFont sa 1]
\setupbodyfontenvironment [10pt] [xx=9pt] % footnote reference number
\setupbodyfontenvironment [8pt] [x=7pt] % footnote number
% ALL 10, 9, 8, 7pt fonts MUST be defined in \definebodyfont
\setupbodyfont[10pt,ss] \setupfootnotes[bodyfont=8pt]
There is somt text\footnote{and there is a footnote} \end
Doesn't it work?
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Hi Willi
Thanks for your suggestions. In my case this does not seem to be the solution. I fiddled with the different options. The conclusion is, that the footnotes do not readily follow the bodyfont settings. I provided Hans a test file and he will look into it.
Let me know when You solve the problem. Regards, Pawe/l
Hi Pawel, After all the solution is simpel ... By coincidence i detected that there is a distinct difference in the following two commands which I used independently in two "mode" sections in my environment file. This is then also the reason why I started to understand ... :-] \switchtobodyfont[palatino,rm,10pt] This command switches the bodytext-font to the indicated font. It leaves the footnotes font untouched. i.e. it remains either CMR or CMSS depending on the setup of \setupfootnotes[bodyfont={small, rm}] or \setupfootnotes[bodyfont={small, ss}] \setupbodyfont[Myfont,rm,10pt] This command will force the bodyfont and the footnotes font to be the same. If e.g. Myfont is setup as a typeface of Palatino for rm and Helvetica for ss, then the footnotes will be in Palatino when saying \setupfootnotes[bodyfont={small, rm}] and will be typeset in Helvetica when saying \setupfootnotes[bodyfont={small, ss}] Cheers Willi
Hi Willi
Thanks for your suggestions. In my case this does not seem to be the solution. I fiddled with the different options. The conclusion is, that the footnotes do not readily follow the bodyfont settings. I provided Hans a test file and he will look into it.
Let me know when You solve the problem.
Regards, Pawe/l
Hi Pawel,
Hi Willi!
After all the solution is simpel ... [...] This command will force the bodyfont and the footnotes font to be the same. If e.g. Myfont is setup as a typeface of Palatino for rm and Helvetica for ss, then the footnotes will be in Palatino when saying \setupfootnotes[bodyfont={small, rm}] and will be typeset in Helvetica when saying \setupfootnotes[bodyfont={small, ss}]
Isn't that logical? But look carrefully on the footnote numbers. Are they also from wanted font? That was my problem. It is not obvious that footnote reference numbers are set with xx size of the bodyfontsize and footnote number with x size of bodyfontsize used in footnote. So the way to set this numbers is to set bodyfontenvironment for both bodyfintsize and 'footnotebodyfontsize'. The puzzle is also that one has no problems since bodyfontsize is default (i.e 12pt). So try to change bodfontsize to i.e.13pt and than look at footnote numbers. If they are correct you are the winner! Thanks for report, Pawe/l
Dear Pawel,
In order to be able to show the effects I used the Dolly-font.
For your reference I include the probe.tex file and the resulting pdf.
As far as I can see, the footnotes get the numbers from Dolly or Helvetica
according to the setup of the footnotes.
Cheers Willi
----- Original Message -----
From: "Pawel Jackowski na Onet"
Hi Pawel,
Hi Willi!
After all the solution is simpel ... [...] This command will force the bodyfont and the footnotes font to be the same. If e.g. Myfont is setup as a typeface of Palatino for rm and Helvetica
for
ss, then the footnotes will be in Palatino when saying \setupfootnotes[bodyfont={small, rm}] and will be typeset in Helvetica when saying \setupfootnotes[bodyfont={small, ss}]
Isn't that logical?
But look carrefully on the footnote numbers. Are they also from wanted font? That was my problem. It is not obvious that footnote reference numbers are set with xx size of the bodyfontsize and footnote number with x size of bodyfontsize used in footnote. So the way to set this numbers is to set bodyfontenvironment for both bodyfintsize and 'footnotebodyfontsize'. The puzzle is also that one has no problems since bodyfontsize is default (i.e 12pt). So try to change bodfontsize to i.e.13pt and than look at footnote numbers. If they are correct you are the winner!
Thanks for report, Pawe/l
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
"Willi Egger"
Dear Pawel,
In order to be able to show the effects I used the Dolly-font. For your reference I include the probe.tex file and the resulting pdf.
As far as I can see, the footnotes get the numbers from Dolly or Helvetica according to the setup of the footnotes.
Cheers Willi
Thanks for report and examples. We've got the same conclusions. Regards, Pawe/l
At 20:00 15/09/2003 +0200, you wrote:
Hi Pawel
Sorry for the misspelling of your name. Thanks, I see that my question is almost the same as yours was.
However, when I use \setupfootnotes[bodyfont={\switchtobodyfont[8pt]},offset=-1cm]
should be
\setupfootnotes[bodyfont=8pt,offset=-1cm]
\setupbodyfont as argument to \setupbodyfont is not that good an idea -) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Pawel Jackowski na Onet
-
Willi Egger