{\setupbackgrounds[page][background={fond,Auteur,backgraphics,foreground,foregraphics}]
\directsetup{slide:start}}
\def\stopSlide{\directsetup{slide:stop}}
\startsetups slide:start
\page
\incrementnumber[slide]
\switchtobodyfont[14pt]
\setupinteractionbar[state=start]
\startnarrower[left]
\stopsetups
,foreground,foregraphics}]
\directsetup{slide:start}}
\def\stopSlide{\directsetup{slide:stop}}
\startsetups slide:start
\page
\incrementnumber[slide]
\switchtobodyfont[14pt]
\setupinteractionbar[state=start]
\startnarrower[left]
\stopsetups
\startsetups slide:stop
\stopnarrower
{\setupbackgrounds[page][background={fond,Auteur,backgraphics,foreground,foregraphics}]
\directsetup{slide:start}}
\def\stopSlide{\directsetup{slide:stop}}
\startsetups slide:start
\page
\incrementnumber[slide]
\switchtobodyfont[14pt]
\setupinteractionbar[state=start]
\startnarrower[left]
\stopsetups
[slide]
\switchtobodyfont[14pt]
\setupinteractionbar[state=start]
\startnarrower[left]
\stopsetups
\startsetups slide:stop
\stopnarrower
\page
\stopsetups
\starttext
\doifinset{\getnumber[slide]}{\slidelist}
{
\startSlide
\SlideTitleSub{Hello there}
What is my number
]
\setupindenting[small]
\indenting[yes]
\setupitemize[each][margin=standard]
\start
\switchtobodyfont[8pt]
Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo
foo bar.
(PSA) becomes the Project Architecture (PA). As of that moment:
\startitemize[joinedup,packed]
\item Foo
according to the type of contents.
Thanks for your explanations. I'm now using a macro, which I insert
manually at the beginning of every float, with the following definition:
\define \Figurestyle
{
\setupindenting [no]
\setupalign [center]
\switchtobodyfont [figurefamily]
}
Kind regards
] [serif] [Latin Modern Sans]
\setupfloats [align=middle, style={\switchtobodyfont[figurefamily]},
indenting=no]
\starttext
\input knuth
\startplacefigure
Word
\stopplacefigure
\stoptext
___
If your question
, \the\baselineskip]
\definefontfamily [figurefamily] [serif] [Latin Modern Sans]
\setupfloats [align=middle, style={\switchtobodyfont[figurefamily]},
indenting=no]
\starttext
\input knuth
\startplacefigure
Word
\stopplacefigure
\stoptext
\setupexternalfigures[location={local,default
the font with
\switchtobodyfont or something similar?
The \os command enables oldstyle figures in your font and the setting
isn’t reset when you switch to a different font alternative.
\definefontfeature[f:lnum][lnum=yes]
\definefontfeature[f:onum][onum=yes]
\definefontfeature[f:tnum][tnum=yes
is bold but the second is not. But if I do the same with
\os:
\starttext
\os 12345\par
\tf 12345\par
\stoptext
both lines use old style numbers. Is there a way to switch the current
font back to lining figures without reloading the font with
\switchtobodyfont or something
to lining figures without reloading the font with \switchtobodyfont or
something similar?
The \os command enables oldstyle figures in your font and the setting isn’t
reset when you switch to a different font alternative.
\definefontfeature[f:lnum][lnum=yes]
\definefontfeature[f:onum][onum=yes
Pagella Math]
\starttext
\switchtobodyfont[pagella] Hello $\int x \pm 2 + a $\par
\switchtobodyfont[asana] Hello $\int x \pm 2 + a $\par
\switchtobodyfont[mainface] Hello $\int x \pm 2 + a $\par
\stoptext
% Stop example
I guess one could do this for the other signs one don't like in TeX
example
\definefallbackfamily[mainface][math][Asana Math]
[range={00B1-00B1}]
\definefontfamily[mainface][serif][Tex Gyre Pagella]
\definefontfamily[mainface][math][Tex Gyre Pagella Math]
\starttext
\switchtobodyfont[pagella] Hello $ x \pm 2 = a \mp 2 $\par
\switchtobodyfont[asana] Hello $ x
the same font (LM math).
In MkIV, the font is (from pdffonts):
NSOXNN+LatinModernMath-Regular CID Type 0C Identity-H
Can anyone confirm the problem?
\starttext
$x \pm 2 + a $\par
\switchtobodyfont[pagella] $x \pm 2 + a $\par
\switchtobodyfont
then ...
\starttext
$x \pm 2 + \mp x + a $\par
\switchtobodyfont[pagella] $x \pm 2 + \mp x + a $\par
\switchtobodyfont[termes] $x \pm 2 + \mp x + a $\par
\switchtobodyfont[cambria] $x \pm 2 + \mp x + a $\par
\switchtobodyfont[bonum] $x \pm 2 + \mp x
.)
context always had (has) the 'rscale' option
btw, scaling to the x height or ascender is quite unpredictable:
\starttext
\definedfont[Serif*default at 10pt] xxXX\par
\definedfont[Serif*default sc 10pt] xxXX\par
\definedfont[Serif*default ht 10pt] xxXX\par
\switchtobodyfont[dejavu]
\definedfont
]
\starttext
\switchtobodyfont[one,50pt]Stretched
\switchtobodyfont[two,50pt]Stretched
\switchtobodyfont[three,50pt]Stretched
\stoptext
Wolfgang
___
If your question is of interest to others as well, please add
]
\definefontfamily [one] [serif] [Latin Modern Roman]
\definefontfamily [two] [serif] [Latin Modern Roman] [features={default,wide}]
\definefontfamily [three] [serif] [Latin Modern Roman]
[features={default,narrow}]
\definebodyfontenvironment[50pt]
\starttext
\switchtobodyfont[one,50pt]Stretched
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,
to other styles
(5pt,11pt,17.3pt or bold etc.) performed with \definefontfamily?
I.e. \switchtobodyfont[17.3pt] as in following example works, but is it
in the official context line? And a, b, c, x, xx no more?
\switchtobodyfont[17.3pt] and others will give me such messages:
fontsdefining
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
or bold etc.) performed with \definefontfamily?
I.e. \switchtobodyfont[17.3pt] as in following example works, but is it
in the official context line? And a, b, c, x, xx no more?
\switchtobodyfont[17.3pt] and others will give me such messages:
fontsdefining unable to define 'unknown
header, I use the commands \footnotesize\itshape
and \Large\scshape.
Is there an equivalent with ConTeXt ?
\setupheader[style={\switchtobodyfont[small]\italic}]
\setupfooter[style={\switchtobodyfont[big]\smallcaps}]
You can also try
style=\itx\setupinterlinespace (or \itxx)
or
style=\scb
On Wed, 22 Jan 2014, Fabrice Couvreur wrote:
Thank you Wolfgang.
With LuaLaTeX, for my header, I use the commands \footnotesize\itshape
and \Large\scshape.
Is there an equivalent with ConTeXt ?
\setupheader[style={\switchtobodyfont[small]\italic}]
\setupfooter[style={\switchtobodyfont[big
!style={\switchtobodyfont[\TitleSize]},
- \c!title\c!color=,
- \c!title\c!align=,%\v!middle,
+ \c!title\c!color=simpleslides:backgroundcolor,
+ \c!title\c!align=\v!middle,
\c!author\c!style=,
- \c!author\c!color=,
- \c!author\c!align=,%\v!middle,
+ \c!author\c!color
for group titles (letters), but it is beneficial here. The index title is
split to keep the original size.
\startbackmatter
\chapter{Index}
\start
\switchtobodyfont[8pt]
\placeindex
\stop
\stopbackmatter
Jan
}
\starttext
% Temporarily change the main font, while keeping the main font fallback:
{ \setmainfont[\titlefont] \switchtobodyfont[40pt] Title with a fancy
ɠlyph }
% Back to our previously defined main font:
Body text ...
\stoptext
Lars
Just a minor improvement:
On Fri, 15 Nov 2013, Lars Huttar wrote:
% Temporarily change the main font, while keeping the main font fallback:
{ \setmainfont[\titlefont] \switchtobodyfont[40pt] Title with a fancy
ɠlyph }
Make that {\setmainfont[...] ... \endgraf}
Otherwise, the interline space
On 11/15/2013 11:50 AM, Aditya Mahajan wrote:
Just a minor improvement:
On Fri, 15 Nov 2013, Lars Huttar wrote:
% Temporarily change the main font, while keeping the main font
fallback:
{ \setmainfont[\titlefont] \switchtobodyfont[40pt] Title with a fancy
ɠlyph }
Make that {\setmainfont
of
a relative size.
I tried variations like
\setuptab[headstyle=18pt]
but that has no effect: the size remains 12pt, or whatever the default is.
If I use
\setuptab[headstyle={\switchtobodyfont[18pt]}]
then the size takes effect (for the key only, which is what I want).
I can combine that with sans
bodyfont size.However, I want to be able to
specify an absolute point size, instead ofa relative size.I
tried variations like \setuptab[headstyle=18pt]but that
has no effect: the size remains 12pt, or whatever the default is.If
I use \setuptab[headstyle={\switchtobodyfont[18pt]}]then
the size
On 11/11/2013 12:27 PM, Wolfgang Schuster wrote:
Lars Huttar mailto:lars_hut...@sil.org
11. November 2013 18:00
I finally tried
\setuptab[headstyle={\ssbf \switchtobodyfont[18pt]}]
and that works! But it seems clunky: it looks like it requires two font
switches, which I'm told makes things
{{\midaligned{___}}}
\def\MotFive{{\bf \midaligned{\hl[1]} \Inter \midaligned{\hl[5]} \Inter
\midaligned{\hl[1]}}}
%
%
% THINGS THAT DO NOT WORK
%
%\setbox0=\vbox{\midaligned{\switchtobodyfont[20pt]*}}% executing these
corrupt the whole script
%\setbox0=\vbox
{***}
\Inter \midaligned{*}}}
\def\MotFour{{\midaligned{___}}}\def\MotFive{{\bf
\midaligned{\hl[1]} \Inter \midaligned{\hl[5]} \Inter
\midaligned{\hl[1]}}}%%% THINGS
THAT DO NOT WORK%%\setbox0=\vbox{\midaligned{\switchtobodyfont[20pt]*}}
% executing these corrupt
/simplefonts. I tried this:
\setsansfont[Tex Gyre Heros][size=8pt]
but it didn't seem to have any effect.
Is there a way to do what I'm trying to do? I could use
\switchtobodyfont[8pt] every time I go to sans, but I don't think that's
the intention of simplefonts.
Thanks,
Lars
in that, other users should tell you how exactly
that can be done).
Make your choice:
\definefontfamily [gentium-basic] [serif] [Gentium Basic]
\definefontfamily [gentium-book] [serif] [Gentium Book Basic]
\definefontfamily [gentium-plus] [serif] [Gentium Plus]
\starttext
{\switchtobodyfont
{\switchtobodyfont[gentium-basic]Upright \it Italic \bf Bold \bi BoldItalic}
{\switchtobodyfont[gentium-book]Upright \it Italic \bf Bold \bi BoldItalic}
{\switchtobodyfont[gentium-plus]Upright \it Italic \bf Bold \bi BoldItalic}
\stoptext
Thanks for the suggestion.
I don't know if I'm doing
]
\definefontfamily [gentium-plus] [serif] [Gentium Plus]
\starttext
{\switchtobodyfont[gentium-basic]Upright \it Italic \bf Bold \bi BoldItalic}
{\switchtobodyfont[gentium-book]Upright \it Italic \bf Bold \bi BoldItalic}
{\switchtobodyfont[gentium-plus]Upright \it Italic \bf Bold \bi BoldItalic
you how exactly
that can be done).
Make your choice:
\definefontfamily [gentium-basic] [serif] [Gentium Basic]
\definefontfamily [gentium-book] [serif] [Gentium Book Basic]
\definefontfamily [gentium-plus] [serif] [Gentium Plus]
\starttext
{\switchtobodyfont[gentium-basic]Upright \it Italic
On 9/26/2013 3:47 PM, Wolfgang Schuster wrote:
You can use \switchtobodyfont to change the size for certain parts of a text
but it’s best to keep this to a minimum because \tfa etc. are a lot faster.
The reason why you don’t need \setupinterlinespace when you use
\switchtobodyfont
in your paragraphs to change the size of certain
words only and in this case you don’t want a forced change of the
interlinespace.
Well... \switchtobodyfont[20pt] can also be used in paragraphs to change
the size of just a few words.
But the above suggests that \switchtobodyfont shouldn't
of certain
words only and in this case you don’t want a forced change of the
interlinespace.
Well... \switchtobodyfont[20pt] can also be used in paragraphs to change
the size of just a few words.
But the above suggests that \switchtobodyfont shouldn't be used for that
purpose, and commands like \tfc
On 9/24/2013 5:25 PM, Aditya Mahajan wrote:
On Tue, 24 Sep 2013, Lars Huttar wrote:
environment), and the second category only affects the font (and I'm
still not clear on how the body font differs from the current font).
(Sorry for the terse replies...)
{\switchtobodyfont[14pt] Text $math
On Wed, Sep 25, 2013 at 9:54 PM, Lars Huttar lars_hut...@sil.org wrote:
And is the answer that the bodyfont is a conglomerate
of more properties than just the font, including interlinespace?
You can read font-ini.mkvi :
%D \macros
%D {setupbodyfont,switchtobodyfont}
%D
%D The next two
).
(Sorry for the terse replies...)
{\switchtobodyfont[14pt] Text $math$ \sans{Sans} \endgraf}
{\tfc Text $math$ \sans{Sans} \endgraf}
Aditya
I don't know how this answers the above question. Can anybody explain?
Clearly you're drawing a comparison between \switchtobodyfont[14pt
of the
interlinespace.
Well... \switchtobodyfont[20pt] can also be used in paragraphs to change
the size of just a few words.
But the above suggests that \switchtobodyfont shouldn't be used for that
purpose, and commands like \tfc should?
To adapt the interlinespace when you now use \tfa etc. you have
for what is intended to mean the same thing?
Contrast
{\switchtobodyfont[14pt] \input ward \endgraf}
with
{\tfc \input ward \endgraf}
Aditya___
If your question is of interest to others as well, please add an entry
Aditya wrote,
Contrast
{\switchtobodyfont[14pt] \input ward \endgraf}
with
{\tfc \input ward \endgraf}
Thanks for your help. You've left me to draw my own conclusions from
this example, so I'll say what I think this implies, and please correct
me if I'm wrong.
(Note to other non
(5.3.2). It seems to me
that both \tfc and \switchtobodyfont[20pt] simply attempt to switch to a
different size of whatever bodyfont is currently in effect. But there
must be something I'm missing. (Or else it's just an arbitrary
distinction, but that seems unlikely
and interlinespace but still don't get it.)
\tfc is described as a font selector command (5.3.2). It seems to me
that both \tfc and \switchtobodyfont[20pt] simply attempt to switch to a
different size of whatever bodyfont is currently in effect. But there
must be something I'm missing. (Or else it's just
On Tue, 24 Sep 2013, Lars Huttar wrote:
environment), and the second category only affects the font (and I'm
still not clear on how the body font differs from the current font).
(Sorry for the terse replies...)
{\switchtobodyfont[14pt] Text $math$ \sans{Sans} \endgraf}
{\tfc Text $math
{\Bbb Z}$ then we
denote
\startformula
f'_{n}(x) := \lim_{h\to 0}{f_{n}(x + h) - f_{n}(x) \over
h}\qquad\mbox{and}\quad u^k_{n} := u_{n}(k)
\stopformula
\stopbuffer
\getbuffer[math]
\switchtobodyfont[times]
\getbuffer[math]
\switchtobodyfont[palatino]
\getbuffer[math]
\stoptext
end
Hello,
I'm using mkii to typeset a document with grid layout. I'm trying to
configure the formatting of the subsection headings.
I have the following setuphead:
\setuphead[subsection][number=no,style={\switchtobodyfont[SansB,\subheadersize]},grid=top]
This works successfully in that the lines
=0.25cm, %
leftoffset=0.25cm,rightoffset=0.25cm,before={\blank[big]}] %
\startbackground\switchtobodyfont[18pt]}, %
after=\stopbackground] %
%
\definestartstop
Hi all,
I want to set the font size by using the dimension variable, but it doesn't
work. What am I doing wrong?
\definemeasure[AAA][20pt]
\newdimen\BBB \BBB=20pt
\starttext
TEXT
% don't work
\switchtobodyfont[\measure{AAA}]
AAA
% don't work
\switchtobodyfont[\the\BBB]
BBB
% ok
···date: 2013-08-04, Sunday···from: Dmitriy Tokarev···
Hi all,
I want to set the font size by using the dimension variable, but it doesn't
work. What am I doing wrong?
\definemeasure[AAA][20pt]
\newdimen\BBB \BBB=20pt
\starttext
TEXT
% don't work
\switchtobodyfont[\measure{AAA
\starttext
TEXT
% don't work
\switchtobodyfont[\measure{AAA}]
AAA
% don't work
\switchtobodyfont[\the\BBB]
BBB
% ok
\switchtobodyfont[20pt]
TEXT 20pt
\stoptext
Hi Dmitriy,
the size-related arguments to \switchtobodyfont and
\setupbodyfont aren’t real TeX
04.08.2013, 16:49, Philipp Gesang philipp.ges...@alumni.uni-heidelberg.de:
the size-related arguments to \switchtobodyfont and
\setupbodyfont aren’t real TeX dimensions but identifiers for
predefined bodyfont sets. Example:
\def\mainfontsize{20pt}
\definebodyfontenvironment
:
http://meeting.contextgarden.net/2010/talks/2010-09-15-mojca-fonts/some-thoughts-about-typescripts.pdf
Is there any progress in that direction with context/mkiv?
H.
\starttext
%\usetypescriptcollection[roboto]
\switchtobodyfont[400-700--normal]
\rm\input ward\par
\ss\input ward
\blank
you add
\usetypescriptfile[roboto]
your example should example. This line wasn’t necessary in my example
because “roboto” was part of the typeface names (which is used with
\switchtobodyfont) and context was able to load the file itself because
the file has also the name roboto but in your case
}{'aeide} \dos{diosa}{je`a} \dos{del ...
?
Replace \ix with \switchtobodyfont[9pt] or better use a relative size like \tx
or \txx.
Wolfgang
___
If your question is of interest to others as well, please add an entry
:
There is the example:
[…]
That’s not a *minimal* example.
And there is the error:
\dos ...de \begingroup \setbox 0\struttedbox {\ix
\em #1}\setbox 2\struttedb...
l.78 \dos{La cólera}{M~hnin}
\dos{canta}{'aeide} \dos{diosa}{je`a} \dos{del ...
?
Replace \ix with \switchtobodyfont[9pt
]
\setupbodyfont[ebgaramond,12pt]
\setupcapitals[sc=yes]
\setupbodyfontenvironment[default][em=italic]
\setupinterlinespace[line=3.2ex]
\setupalign[lesshyphenation,hz,hanging]
\showframe
\starttext
\dostepwiserecurse {8} {12} {1} {
\switchtobodyfont[#1pt]
\input tufte
\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
in
MetaPost?
Probably a font switch directly in the label:
label(\small foobar, origin);
\switchtobodyfont[size] can be done in \startMPenvironment and inside each
label.
Better use setupMPinstance:
\setupMPinstance
[metafun]
[textstyle=\small]
Marco
in it, the dimexpr does evaluates to 30 pt.
Where am I at fault?
Hans van der Meer
\setuppapersize[A6][A6]
\setupbodyfont[10pt]
\starttext
10pt\ \begingroup\switchtobodyfont[20pt]20pt\endgroup\ 10pt\par
\writestatus{==}{}
10pt\ \begingroup\switchtobodyfont[\the\dimexpr(3\bodyfontsize)] times
3
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,
why is the second line right-aligned in the following example?
\definetextext
[foo]
[#1]#2{\switchtobodyfont[#1]#2}
\starttext
\dorecurse{5}{
\startMPcode
draw \sometxt[foo][sans]{FooBar};
\stopMPcode
\startMPcode
draw \sometxt[foo][iwona]{FooBar
always prevent spaces creeping in (like those before comments)
\definetextext
[foo]
[#1]#2{\switchtobodyfont[#1]\removeunwantedspaces#2}
and moving all to lua is no option now (although ... in
antykwapoltawskiego.lfg one can see how such a thing can be done)
Hans
\startalignment[center]
{
\myblank[2*big]
\switchtobodyfont[1.5em]
\bf\em#1
}
\myblank
\stopalignment
}
In this case I have in my mane document:
\input /home/cecil/ConTeXt-inc/standard-init.inc
\setupbodyfont[palatino,10pt]
What would
(there is a break between a and cell).
Probably there is a better way of achieving this correctly.
Alan\setupbodyfont[10pt]
\starttext
10pt
\startplacetable [title=A title]
\switchtobodyfont [6pt]
\startlocalfootnotes
\bTABLE
\bTR
\bTD a cell\startfootnote A footnote
://wiki.contextgarden.net/Command/setupcolumnsetlines
which seems very similar to mine, it works fine; no errors.
Based on the latter working example, I tried adding the following to my
minimal example that fails:
\switchtobodyfont[small]
or
\setupcolumnsetstart[abbcolumn][1][1][1
I would like to have the same font and especially the same size for inmargin
texts. Why is the following program not honouring the size setting?
% Font in margin text
\def\MarkMaster{\inmargin[location=left]{{\switchtobodyfont[sans,8pt]\red
MASTER SECTION}}}
\starttext
\startchapter[title
{\switchtobodyfont[36pt]\bf Life in These Days}
\vfill
\midaligned{\switchtobodyfont[20pt]\bf Tim Li}
\blank[medium]
\midaligned{\switchtobodyfont[20pt]\bf January 11, 2013}
\stopmakeup
% its verso
\startmakeup[standard]
%[page=no]
This document was typeset by using \CONTEXT.
\vfill
size which
depends on the bodyfont.
\definefont[Test][texgyrepagellaregular sa 1]
\starttext
\Test VA ffl \switchtobodyfont[20pt]\Test VA ffl
\stoptext
When you use “sa XX” as argument for the size your font scales also when you
change the bodyfont
in the middle of the document.
One
]
Instead of a fixed size for the font you can also use a relative size which
depends on the bodyfont.
\definefont[Test][texgyrepagellaregular sa 1]
\starttext
\Test VA ffl \switchtobodyfont[20pt]\Test VA ffl
\stoptext
When you use “sa XX” as argument for the size your font scales also
\setupcolors[state=start,rgb=yes]
\startsetups[MyTable]
\switchtobodyfont[8pt]
\setupTABLE[frame=off,background=color,backgroundcolor=red]
\setupTABLE[column][1][width=44.25mm,align=right]%,style=bf
\setupTABLE[column][2][width=broad,align=right]
\stopsetups
\defineseparatedlist
[MyTable
it an empty `[]` of its own to chew on.
...
I can't quite find at the moment what sort of options the [...] can
contain, sorry.
It takes the same options as \switchtobodyfont
\starttext
\startformula[]
[x,x]_t = x
\stopformula
\startformula[small]
[x,x]_t = x
\stopformula
\startformula[24pt
]
\starttextbackground[text]
\setuptab[headstyle={\switchtobodyfont[SansB,\SansBsize]},width=20mm,location=left]
\startcolumnset[abbcolumn] \startalignment[flushleft,nothyphenated]},
after={\stopalignment \stopcolumnset \stoptextbackground
\setupbackgrounds[text][background=off]}]
From that, one might guess
={\setupbackgrounds[text][background=verticalline]
\starttextbackground[text]
\setuptab[headstyle={\switchtobodyfont[SansB,\SansBsize]},width=20mm,location=left]
\startcolumnset[abbcolumn] \startalignment[flushleft,nothyphenated]},
after={\stopalignment \stopcolumnset \stoptextbackground
\setupbackgrounds
[text][background=verticalline]
// \starttextbackground[text]
//
\setuptab[headstyle={\switchtobodyfont[SansB,\SansBsize]},width=20mm,location=left]
// \startcolumnset[abbcolumn] \startalignment[flushleft,nothyphenated]},
// after={\stopalignment \stopcolumnset \stoptextbackground
601 - 700 of 1630 matches
Mail list logo