\def\relationsFontSize{8pt}\starttextHello World!\crlf\switchtobodyfont[\relationsFontSize]Hello, world!\stoptext
Untitled.pdf
Description: Adobe PDF document
dr. Hans van der MeerOn 19 May 2023, at 11:43, Gerben Wierda via ntg-context wrote:I want to use a variable for a font size so I can set
\starttext
\switchtobodyfont[\relationsFontSize]
Hello, world!
\stoptext
%===
How can I use a variable to steer \switchtobodyfont size?
You need \the\, i.e.
\switchtobodyfont[\the\relationsFontSize]
but I would use the measure command, e.g.
\definemeasure[relationsFontSize][8pt
I want to use a variable for a font size so I can set it based on language (as
some translated texts have widely different sizes)
This fails:
%===
\newdimen\relationsFontSize
\relationsFontSize=8pt
\starttext
\switchtobodyfont[\relationsFontSize]
Hello, world!
\stoptext
add the feature to the current font.
I understand I need a font switch.
Usually I use \switchtobodyfont. How is \definedfont different?
it's a 'permanent' one ... so when the font is loaded the dimensions are
adapted so you need a new font definition
Hans
a font switch.
Usually I use \switchtobodyfont. How is \definedfont different?
Massi
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http
On 5/22/21 1:10 PM, Wolfgang Schuster wrote:
> [...]
> You can't use x and a with \switchtobodyfont, only small and big are
> possible.
>
> \starttext
> a
> \switchtobodyfont[small]
> a
> \switchtobodyfont[big]
> a
> \stoptext
Many thanks for your fast
Pablo Rodriguez schrieb am 22.05.2021 um 12:51:
Dear list,
I have the following sample:
\setupbodyfont[11.25pt]
\starttext
a
\switchtobodyfont[x]
a
\switchtobodyfont[a]
a
\stoptext
How can I get both \switchtobodyfont working in both appearances?
You can't use x
Dear list,
I have the following sample:
\setupbodyfont[11.25pt]
\starttext
a
\switchtobodyfont[x]
a
\switchtobodyfont[a]
a
\stoptext
How can I get both \switchtobodyfont working in both appearances?
Many thanks for your help,
Pablo
--
http://www.ousia.tk
relation/difference among
> > \{setup,switchto,use}bodyfont?
> > There seems to be not much documentation on this. Can one conclude, from
> > the wiki <https://wiki.contextgarden.net/Command/switchtobodyfont> and
> > the source code
> > <
> https://source
t
Thank you for the information, Hans!
Could you please also shed some light on the relation/difference among
\{setup,switchto,use}bodyfont?
There seems to be not much documentation on this. Can one conclude, from
the wiki <https://wiki.contextgarden.net/Command/switchtobodyfont> and
please also shed some light on the relation/difference among
\{setup,switchto,use}bodyfont?
There seems to be not much documentation on this. Can one conclude, from the
wiki <https://wiki.contextgarden.net/Command/switchtobodyfont> and the source
code
<https://source.contextgarden.net/tex/c
> difference:
>
> \definefontfamily[face][rm][dejavuserif]
> \starttext\switchtobodyfont[face, 24pt]ɑ\stoptext
>
> this should warn:
>
> fonts > checking > char ɑ (U+00251) in font
> 'LatinModernMath-Regular-
> difference:
>
> \definefontfamily[face][rm][dejavuserif]
> \starttext\switchtobodyfont[face, 24pt]ɑ\stoptext
>
> this should warn:
>
> fonts > checking > char ɑ (U+00251) in font
> 'LatinModer
On Sun, 8 Nov 2020 at 11:37, Pablo Rodriguez wrote:
> On 11/8/20 11:18 AM, Sylvain Hubert wrote:
> > Hi Pablo,
> >
> > thanks for the suggestion. Here's the minimal example which shows the
> > difference:
> >
> > \definefontfamily[face][rm][dejavuser
On 11/8/20 11:18 AM, Sylvain Hubert wrote:
> Hi Pablo,
>
> thanks for the suggestion. Here's the minimal example which shows the
> difference:
>
> \definefontfamily[face][rm][dejavuserif]
> \starttext\switchtobodyfont[face, 24pt]ɑ\stoptext
>
> this
On Sun, 8 Nov 2020 at 11:18, Sylvain Hubert wrote:
> Hi Pablo,
>
> thanks for the suggestion. Here's the minimal example which shows the
> difference:
>
> \definefontfamily[face][rm][dejavuserif]
> \starttext\switchtobodyfont[face, 24pt]ɑ\stoptext
>
> this
Hi Pablo,
thanks for the suggestion. Here's the minimal example which shows the
difference:
\definefontfamily[face][rm][dejavuserif]
\starttext\switchtobodyfont[face, 24pt]ɑ\stoptext
this should warn:
fonts > checking > char ɑ (U+00251) in font
'LatinModernMath-Reg
On 11/8/20 2:35 AM, Sylvain Hubert wrote:
> Dear List,
>
> after hours of debugging, I finally found out that
> \switchtobodyfont[face, 20pt] does NOT behave the same with
> \switchtobodyfont[face]\switchtobodyfont[20pt]. In my case the latter is
> the correct one, while the f
Dear List,
after hours of debugging, I finally found out that \switchtobodyfont[face,
20pt] does NOT behave the same with
\switchtobodyfont[face]\switchtobodyfont[20pt]. In my case the latter is
the correct one, while the former does nothing but falling back to
latinmodern.
Does anyone know when
Am 2017-03-31 um 09:00 schrieb Kostirya <kosti...@gmail.com>:
> Hello.
> I found error at switchtobodyfont with dejavu font.
>
> In the below example, switchtobodyfont not correctly worked.
>
> This is only observed when I switch from 16pt to 14pt.
> Switching must
This works for me, is probably not what you want, but at leat it's
consistent (it uses the interline of the main text).
\definestartstop[passus][
before={\startnarrower},
after={\stopnarrower},
style={\tfxx},
]
\starttext
\subject{It looks OK here:}
\input knuth
\startnarrower
\tfxx \input
On Wed, 22 Mar 2017 20:38:01 +0100
"Mikael P. Sundqvist" wrote:
> What am I doing wrong? Any ideas to solve it
Add a \par:
\input knuth\par
Alan
___
If your question is of interest to others as
t. It is too big. Resulting pdf
> is attached.
>
> What am I doing wrong? Any ideas to solve it (i.e. to be able to
> define an environment with narrower smaller text, including a reduced
> interlinespace)?
>
> /Mikael
>
> \definestartstop[passus][
> before={\startnarro
to
define an environment with narrower smaller text, including a reduced
interlinespace)?
/Mikael
\definestartstop[passus][
before={\startnarrower},
after={\stopnarrower},
style={\switchtobodyfont[9pt]},
]
\starttext
\subject{It looks OK here:}
\input knuth
\startnarrower
\switchtobodyfont[9
On 8/21/2015 11:50 PM, Rik Kabel wrote:
On 2015-08-21 09:10, Hans Hagen wrote:
mostly changed names of the fonts, a missing directive (i'll add a
fallback for that) and such ... patched in the next beta
Hans,
This morning's release fixed the newotf module problem, but not the font
face
][ebgaramond][default]
% \definetypeface[Secondary][rm][serif][palatino][default]
% \definetypeface[Secondary][rm][serif][libertine][default]
\stoptypescript
\setupbodyfont [modern, 10pt]
%\setupbodyfont [palatino, 10pt]
\starttext
% {\switchtobodyfont[Secondary]Oops
On 2015-08-21 09:10, Hans Hagen wrote:
mostly changed names of the fonts, a missing directive (i'll add a
fallback for that) and such ... patched in the next beta
Hans,
This morning's release fixed the newotf module problem, but not the font
face problem. Was that to be expected?
--
Rik
]
% \definetypeface[Secondary][rm][serif][palatino][default]
% \definetypeface[Secondary][rm][serif][libertine][default]
\stoptypescript
\setupbodyfont [modern, 10pt]
%\setupbodyfont [palatino, 10pt]
\starttext
% {\switchtobodyfont[Secondary]Oops!\par}% Oops!
Default tf
Hello,
I am trying to have inter-line space change according to the current
size of the body font, which I modify with \switchtobodyfont, but I
cannot seem to affect the desired change as per the MWE below.
\setupinterlinespace seems to take its lead from the original
\setupbodyfont
Thanks Pablo!
Hi Paavnet,
yes, you need a paragraph to make \setupinterlinespace work.
--
Pavneet Arora m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
If your question is of interest
On 04/30/2015 02:18 PM, Pavneet Arora wrote:
Hello,
I am trying to have inter-line space change according to the current
size of the body font, which I modify with \switchtobodyfont, but I
cannot seem to affect the desired change as per the MWE below.
\setupinterlinespace seems to take
On 2014-02-26, 22:57, Wolfgang Schuster wrote:
Add \definebodyfontenvironment[50pt] before \starttext.
Thanks, that does the trick.
Kind regards, Joshua
___
If your question is of interest to others as well,
Dear list,
with some font sizes, \switchtobodyfont loads Latin Modern Roman
instead of the specified typeface:
\definefontfamily [firstfamily] [serif] [TeX Gyre Bonum]
\definefontfamily [secondfamily] [serif] [TeX Gyre Termes]
\setupbodyfont [firstfamily, 60pt]
\starttext
abc
Am 26.02.2014 um 18:10 schrieb Joshua Krämer joshua.krae...@gmail.com:
Dear list,
with some font sizes, \switchtobodyfont loads Latin Modern Roman
instead of the specified typeface:
\definefontfamily [firstfamily] [serif] [TeX Gyre Bonum]
\definefontfamily [secondfamily] [serif] [TeX
\starttext
Line 1\crlf
\savedendlinechar\endlinechar \endlinechar\minusone
\switchtobodyfont[pagella]
\endlinechar\savedendlinechar
Line 2
\stoptext
in fact, that should happen automatically but maybe i messed up something
are
loaded.
\newcount\savedendlinechar
\starttext
Line 1\crlf
\savedendlinechar\endlinechar \endlinechar\minusone
\switchtobodyfont[pagella]
\endlinechar\savedendlinechar
Line 2
\stoptext
in fact, that should happen automatically but maybe i messed up something
(1) i adapted
On 2013-05-03, at 7:36 PM, Meer, H. van der h.vanderm...@uva.nl wrote:
Seems finally solved (sigh). I cleaned out all files loading typescripts on
the fly.
- typescript macros ending in ] at the end of a line have now ]% at the end
of the line
- empty lines have been removed for clarity
On 4 May 2013, at 9:21 AM, Aditya Mahajan adit...@umich.edu wrote:
On 2013-05-03, at 7:36 PM, Meer, H. van der h.vanderm...@uva.nl wrote:
Seems finally solved (sigh). I cleaned out all files loading typescripts on
the fly.
- typescript macros ending in ] at the end of a line have now ]%
Hi Hans, everybody,
Hans van der Meer wrote:
Would be nice. But doing this is left to other
people than me, I feel not qualified to tinker
with that code. You would like to challenge Hans
Hagen?
Last week's thread about ligatures got unpleasantly close to flaming
at times; so, just in case,
\savedendlinechar\endlinechar \endlinechar\minusone
\switchtobodyfont[pagella]
\endlinechar\savedendlinechar
Line 2
\stoptext
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki
not sit between text and fontswitch
\switchtobodyfont). My guess is that the token register \t_font_typescripts is
the source of the spaces, but I am not further than that. I have already mailed
Hans Hagen about these findings.
[cid:AE3D66B6-9CD5-4377-B68D-AED490D0487E@fritz.box]
Hans van der
what happens. See the screen shot from one of
my tests (br/ results in \crlf but does not sit between text and fontswitch
\switchtobodyfont). My guess is that the token register \t_font_typescripts
is the source of the spaces, but I am not further than that. I have already
mailed Hans Hagen
Am 03.05.2013 um 09:34 schrieb Meer, H. van der h.vanderm...@uva.nl:
There is more to it then a preference for \crlf […]
\setupwhitespace[line]
\starttext
\subject{Regular paragraphs}
Line 1\par
\start \switchtobodyfont[termes]
Line 2\par
\stop
Line 3
\subject{Packed paragraphs
{}{}\switchtobodyfont[euler,10pt]\writestatus{}{}Fontswitch\stoptext
Sample from type-imp-euler.mkiv
%\loadtypescriptfile[texgyre]%
\starttypescriptcollection[pagella-euler]%
\starttypescript[\s!math][euler]%
\definefontsynonym[EulerMath][\s!file:euler.otf]%
\stoptypescript
Am 03.05.2013 um 11:19 schrieb Meer, H. van der h.vanderm...@uva.nl:
I did some more experiments. In the macro below delete ABC and replace D by !
then the output of the test will match.
example1 is made with the type-imp-euler.mkiv as given below. I removed every
space in it, ended every
On 3 May 2013, at 12:28 PM, Wolfgang Schuster schuster.wolfg...@gmail.com
wrote:
Do you mean the missing % after \doifsomething etc.? These lines don’t need a
% because TeX gobbles the spaces between the arguments.
I wasn't aware of that, but will remember.
Any idea how further? More from
This might be interesting. The example I gave before was now typeset with
type-imp-euler.mkiv cannibalized to \endinput in the very first line. Then
there are no spurious spaces and 5 executions of the recursive loop from
\t_font_typescripts.
Thus, even though in type-imp-euler.mkiv all empty
Seems finally solved (sigh). I cleaned out all files loading typescripts on the
fly.
- typescript macros ending in ] at the end of a line have now ]% at the end of
the line
- empty lines have been removed for clarity
- all files now have \endinput at the end.
The files changed fit in a 54KB
A call to \switchtobodyfont introduces extra vertical spacing as can be seen in
the example.
Is this intentional or is it something like a % missing somewhere in a macro?
Hans van der Meer
\setuppapersize[A6][A6]
\setupbodyfont[lucidaot]
\starttext
First line.\crlf
\start
\switchtobodyfont
A call to \switchtobodyfont introduces extra vertical spacing as can be seen in
the example.
Is this intentional or is it something like a % missing somewhere in a macro?
Hans van der Meer
Sorry, flew accidentally to early away. Here the attached output.
\setuppapersize[A6][A6]
\setupbodyfont
On 2013–05–02 Meer, H. van der wrote:
A call to \switchtobodyfont introduces extra vertical spacing as can be seen
in the example.
Is this intentional or is it something like a % missing somewhere in a macro?
Loading the typescript in the setup area should get rid of the
space.
See http
will look into the
matter too.
Hans van der Meer
On 2 May 2013, at 12:48 PM, Marco Patzer home...@lavabit.com
wrote:
On 2013–05–02 Meer, H. van der wrote:
A call to \switchtobodyfont introduces extra vertical spacing as can be seen
in the example.
Is this intentional or is it something
- coding mistakes.
Hans van der Meer
On 2 May 2013, at 12:48 PM, Marco Patzer home...@lavabit.com wrote:
On 2013–05–02 Meer, H. van der wrote:
A call to \switchtobodyfont introduces extra vertical spacing as can be seen
in the example.
Is this intentional or is it something like a % missing
Am 02.05.2013 um 12:40 schrieb Meer, H. van der h.vanderm...@uva.nl:
A call to \switchtobodyfont introduces extra vertical spacing as can be seen
in the example.
Is this intentional or is it something like a % missing somewhere in a macro?
Hans van der Meer
Sorry, flew accidentally
Hi, I decided to give the latest minimals a test (I had been using 2012.01.16,
updated to 2012.06.05 today), and noticed that switchtobodyfont no longer seems
to work properly. Here is a small example:
\starttypescript [cleartype]
\definetypeface [\typescriptone] [rm] [serif] [constantia
]
\usetypescript[palatino]
\switchtobodyfont[palatino,20pt]
\setupcolors[state=start]
\definelayer[myLayer]
[width=\paperwidth, height=\paperheight]
\startsetups layer
\setlayer[myLayer][preset=lefttop,x=0.9\paperwidth,y=0.96\paperheight]
{\switchtobodyfont[10pt
Am 18.02.2011 um 18:59 schrieb Vnpenguin:
\usetypescript[palatino]
\switchtobodyfont[palatino,20pt]
Replace this (both lines) with
\setupbodyfont[palatino,20pt]
Wolfgang
___
If your question is of interest
On Fri, Feb 18, 2011 at 19:03, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
Am 18.02.2011 um 18:59 schrieb Vnpenguin:
\usetypescript[palatino]
\switchtobodyfont[palatino,20pt]
Replace this (both lines) with
\setupbodyfont[palatino,20pt]
Wolfgang
Wow, it works now.
Thank
Am 18.02.2011 um 19:08 schrieb Vnpenguin:
Wow, it works now.
You can also separate the style and content of a layer with \setlayerframed,
e.g.
\setlayerframed
[mylayer]
[x=...,
y=...,
frame=off,
style={\switchtobodyfont[10pt]}]
{text}
Wolfgang
=off,
style={\switchtobodyfont[10pt]}]
{text}
Thank you,
Regards
___
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
Is this the default behaviour, that \switchtobodyfont works
like a \hfill?? | page |
\starttext
Latin Modern
\switchtobodyfont[pagella]Pagella--Palatino
\stoptext
| Latin ModernPag-|
| ella|
Latest minimal mkiv
Herbert
On 9-11-2010 8:49, Herbert Voss wrote:
Is this the default behaviour, that \switchtobodyfont works
like a \hfill?? | page |
\starttext
Latin Modern
\switchtobodyfont[pagella]Pagella--Palatino
\stoptext
| Latin ModernPag-|
| ella
On 9-11-2010 8:49, Herbert Voss wrote:
Is this the default behaviour, that \switchtobodyfont works
like a \hfill?? | page |
\starttext
Latin Modern
\switchtobodyfont[pagella]Pagella--Palatino
\stoptext
| Latin ModernPag-|
| ella
Same question related to setuplayout.
On Wed, Nov 26, 2008 at 12:43 PM, Alan STONE
[EMAIL PROTECTED]wrote:
The main manual mentions (ch 5 Typography, pg 92):
In most cases, the command \setupbodyfont is only used once: in the
styledefinition.
Fontswitching is done with \switchtobodyfont
Am 26.11.2008 um 12:43 schrieb Alan STONE:
The main manual mentions (ch 5 Typography, pg 92):
In most cases, the command \setupbodyfont is only used once: in the
styledefinition.
Fontswitching is done with \switchtobodyfont. Don't mix these two up
because this may
lead to some rather
Mojca Miklavec wrote:
Hello,
there is a misterious linebreak in the second example:
abc\switchtobodyfont[ss]def
abc\switchtobodyfont[,,ss]def
Is this ConTeXt's fault or mine?
lucky you:
\def\dodosetfont#1#2% #1 = set/switch state / test added to make it
mojca proof
Hello,
there is a misterious linebreak in the second example:
abc\switchtobodyfont[ss]def
abc\switchtobodyfont[,,ss]def
Is this ConTeXt's fault or mine?
Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo
67 matches
Mail list logo