[NTG-context] [doifinset] how it works ?

2014-08-21 Thread Pierre-François Bonnefoi
{\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

Re: [NTG-context] [doifinset] how it works ?

2014-08-21 Thread Otared Kavian
,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

Re: [NTG-context] [doifinset] how it works ?

2014-08-21 Thread Otared Kavian
{\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

Re: [NTG-context] [doifinset] how it works ?

2014-08-21 Thread Wolfgang Schuster
[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

Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-20 Thread Gerben Wierda
] \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

Re: [NTG-context] Alignment, indenting and font inside floats

2014-07-29 Thread Joshua Krämer
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

[NTG-context] Alignment, indenting and font inside floats

2014-07-28 Thread Joshua Krämer
] [serif] [Latin Modern Sans] \setupfloats [align=middle, style={\switchtobodyfont[figurefamily]}, indenting=no] \starttext \input knuth \startplacefigure Word \stopplacefigure \stoptext ___ If your question

Re: [NTG-context] Alignment, indenting and font inside floats

2014-07-28 Thread Rik Kabel
, \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

Re: [NTG-context] Character alignment in math mode

2014-06-26 Thread Brian R. Landy
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

Re: [NTG-context] Character alignment in math mode

2014-06-25 Thread Brian R. Landy
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

Re: [NTG-context] Character alignment in math mode

2014-06-25 Thread Wolfgang Schuster
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

Re: [NTG-context] \pm set too low in MkIV?

2014-05-07 Thread Mikael P. Sundqvist
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

Re: [NTG-context] \pm set too low in MkIV?

2014-05-07 Thread Otared Kavian
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

Re: [NTG-context] \pm set too low in MkIV?

2014-05-06 Thread Hans Hagen
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

Re: [NTG-context] \pm set too low in MkIV?

2014-05-06 Thread Hans Hagen
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

Re: [NTG-context] Calling fonts

2014-05-05 Thread Hans Hagen
.) 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

Re: [NTG-context] Selectfont: extend and slant features

2014-03-01 Thread Wolfgang Schuster
] \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

Re: [NTG-context] Selectfont: extend and slant features

2014-03-01 Thread Hans Hagen
] \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

Re: [NTG-context] \switchtobodyfont fails to load font with some sizes

2014-02-28 Thread Joshua Krämer
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,

Re: [NTG-context] structure Mk II vs IV

2014-02-26 Thread Rudolf Bahr
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

[NTG-context] \switchtobodyfont fails to load font with some sizes

2014-02-26 Thread Joshua Krämer
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

Re: [NTG-context] \switchtobodyfont fails to load font with some sizes

2014-02-26 Thread Wolfgang Schuster
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

Re: [NTG-context] structure Mk II vs IV

2014-02-26 Thread Wolfgang Schuster
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

Re: [NTG-context] New header

2014-01-23 Thread Fabrice Couvreur
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

Re: [NTG-context] New header

2014-01-22 Thread Aditya Mahajan
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

Re: [NTG-context] trouble with the title page using the FramedTitle style of the simpleslides module

2014-01-08 Thread Thomas A. Schmitz
!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

Re: [NTG-context] Index entries - custom font size

2013-11-23 Thread Jan Tosovsky
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

Re: [NTG-context] simplefonts: defining a fallback for a non-main font

2013-11-15 Thread Lars Huttar
} \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

Re: [NTG-context] simplefonts: defining a fallback for a non-main font

2013-11-15 Thread Aditya Mahajan
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

Re: [NTG-context] simplefonts: defining a fallback for a non-main font

2013-11-15 Thread Lars Huttar
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

[NTG-context] how to include sans, bold and size in \setuptab[headstyle=???]

2013-11-11 Thread Lars Huttar
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

Re: [NTG-context] how to include sans, bold and size in \setuptab[headstyle=???]

2013-11-11 Thread Wolfgang Schuster
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

Re: [NTG-context] how to include sans, bold and size in \setuptab[headstyle=???]

2013-11-11 Thread Lars Huttar
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

[NTG-context] Using *fleurons*

2013-11-10 Thread Francisco Gracia
{{\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

Re: [NTG-context] Using *fleurons*

2013-11-10 Thread Wolfgang Schuster
{***} \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

[NTG-context] setting size for mainfont or sansfont in stable simplefonts

2013-11-06 Thread Lars Huttar
/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

Re: [NTG-context] installing a true-type font: can't find ttf2afm

2013-11-05 Thread Lars Huttar
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

Re: [NTG-context] installing a true-type font: can't find ttf2afm

2013-11-05 Thread Mojca Miklavec
{\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

Re: [NTG-context] installing a true-type font: can't find ttf2afm

2013-11-05 Thread Lars Huttar
] \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

Re: [NTG-context] installing a true-type font: can't find ttf2afm

2013-11-04 Thread Wolfgang Schuster
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

Re: [NTG-context] question about linespace adjustment

2013-09-30 Thread Lars Huttar
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

Re: [NTG-context] question about linespace adjustment

2013-09-27 Thread Lars Huttar
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

Re: [NTG-context] question about linespace adjustment

2013-09-26 Thread Wolfgang Schuster
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

Re: [NTG-context] question about linespace adjustment

2013-09-25 Thread Lars Huttar
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

Re: [NTG-context] question about linespace adjustment

2013-09-25 Thread luigi scarso
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

Re: [NTG-context] question about linespace adjustment

2013-09-25 Thread Wolfgang Schuster
). (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

Re: [NTG-context] question about linespace adjustment

2013-09-25 Thread Lars Huttar
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

Re: [NTG-context] question about linespace adjustment

2013-09-24 Thread Aditya Mahajan
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

Re: [NTG-context] question about linespace adjustment

2013-09-24 Thread Lars Huttar
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

Re: [NTG-context] question about linespace adjustment

2013-09-24 Thread Lars Huttar
(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

Re: [NTG-context] question about linespace adjustment

2013-09-24 Thread luigi scarso
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

Re: [NTG-context] question about linespace adjustment

2013-09-24 Thread Aditya Mahajan
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

[NTG-context] Bug in maths prime (derivative)

2013-09-16 Thread Otared Kavian
{\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

[NTG-context] section headings on a grid: less space above?

2013-08-23 Thread Lars Huttar
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

[NTG-context] Undefined \continueifinputfile on presentation

2013-08-13 Thread Pau
=0.25cm, % leftoffset=0.25cm,rightoffset=0.25cm,before={\blank[big]}] % \startbackground\switchtobodyfont[18pt]}, % after=\stopbackground] % % \definestartstop

[NTG-context] Setup font size by dimension variable

2013-08-04 Thread 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}] AAA % don't work \switchtobodyfont[\the\BBB] BBB % ok

Re: [NTG-context] Setup font size by dimension variable

2013-08-04 Thread Philipp Gesang
···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

Re: [NTG-context] Setup font size by dimension variable

2013-08-04 Thread Philipp Gesang
\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

[NTG-context] [***SPAM***] Re: Setup font size by dimension variable

2013-08-04 Thread Dmitriy Tokarev
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

Re: [NTG-context] Different font variants (normal condensed, light regular bold, etc.)

2013-07-11 Thread Zenlima
: 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

Re: [NTG-context] Different font variants (normal condensed, light regular bold, etc.)

2013-07-11 Thread Wolfgang Schuster
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

Re: [NTG-context] compilation problem (TeXLive 2013)

2013-07-03 Thread Wolfgang Schuster
}{'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

Re: [NTG-context] compilation problem (TeXLive 2013)

2013-07-03 Thread Manuel González Suárez
: 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

Re: [NTG-context] Auto selecting optical sizes for a font

2013-06-22 Thread Hans Hagen
] \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

Re: [NTG-context] extra line after switchtobodyfont

2013-05-07 Thread Hans Hagen
\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

Re: [NTG-context] extra line after switchtobodyfont

2013-05-07 Thread Hans Hagen
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

Re: [NTG-context] fontsize drawing in metapost

2013-05-06 Thread Meer, H. van der
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

Re: [NTG-context] fontsize drawing in metapost

2013-05-06 Thread Meer, H. van der
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

Re: [NTG-context] extra line after switchtobodyfont

2013-05-04 Thread Aditya Mahajan
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

Re: [NTG-context] extra line after switchtobodyfont

2013-05-04 Thread Meer, H. van der
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 ]%

Re: [NTG-context] extra line after switchtobodyfont

2013-05-04 Thread Sietse Brouwer
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,

Re: [NTG-context] extra line after switchtobodyfont

2013-05-04 Thread Wolfgang Schuster
\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

Re: [NTG-context] extra line after switchtobodyfont

2013-05-03 Thread Meer, H. van der
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

Re: [NTG-context] extra line after switchtobodyfont

2013-05-03 Thread Wolfgang Schuster
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

Re: [NTG-context] extra line after switchtobodyfont

2013-05-03 Thread Wolfgang Schuster
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

Re: [NTG-context] extra line after switchtobodyfont

2013-05-03 Thread Meer, H. van der
{}{}\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

Re: [NTG-context] extra line after switchtobodyfont

2013-05-03 Thread Wolfgang Schuster
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

Re: [NTG-context] extra line after switchtobodyfont

2013-05-03 Thread Meer, H. van der
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

Re: [NTG-context] extra line after switchtobodyfont

2013-05-03 Thread Meer, H. van der
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

Re: [NTG-context] extra line after switchtobodyfont

2013-05-03 Thread Meer, H. van der
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

[NTG-context] extra line after switchtobodyfont

2013-05-02 Thread Meer, H. van der
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

Re: [NTG-context] extra line after switchtobodyfont

2013-05-02 Thread Meer, H. van der
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

Re: [NTG-context] extra line after switchtobodyfont

2013-05-02 Thread Marco Patzer
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

Re: [NTG-context] extra line after switchtobodyfont

2013-05-02 Thread Meer, H. van der
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

Re: [NTG-context] extra line after switchtobodyfont

2013-05-02 Thread Meer, H. van der
- 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

Re: [NTG-context] extra line after switchtobodyfont

2013-05-02 Thread Wolfgang Schuster
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

[NTG-context] Offset MP text with font change

2013-04-28 Thread Marco Patzer
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

Re: [NTG-context] Offset MP text with font change

2013-04-28 Thread Hans Hagen
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

Re: [NTG-context] Defined and not defined and better be done global

2013-04-27 Thread Cecil Westerhof
\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

[NTG-context] localfootnotes and bodyfontsize in a placetable

2013-04-23 Thread Alan BRASLAU
(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

[NTG-context] Missing number error, related to setupcolumnsetlines

2013-04-18 Thread Lars Huttar
://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

[NTG-context] bodyfont size in margin?

2013-04-17 Thread Meer, H. van der
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

[NTG-context] How to typeset the titlepage and its verso in ConTeXt?

2013-04-16 Thread Tim Li
{\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

Re: [NTG-context] Different fonts for titles

2013-04-14 Thread Wolfgang Schuster
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

Re: [NTG-context] Different fonts for titles

2013-04-14 Thread Tim Li
] 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

[NTG-context] strange index behaviour with entries inside separatedlist

2013-04-12 Thread WolfgangZ
\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

Re: [NTG-context] Math typesetting problems

2013-01-27 Thread Rogers, Michael K
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

[NTG-context] (XeTeX) trouble debugging a Missing number error

2012-12-05 Thread Lars Huttar
] \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

Re: [NTG-context] (XeTeX) trouble debugging a Missing number error

2012-12-05 Thread Hans Hagen
={\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

Re: [NTG-context] (XeTeX) trouble debugging a Missing number error

2012-12-05 Thread Lars Huttar
[text][background=verticalline] // \starttextbackground[text] // \setuptab[headstyle={\switchtobodyfont[SansB,\SansBsize]},width=20mm,location=left] // \startcolumnset[abbcolumn] \startalignment[flushleft,nothyphenated]}, // after={\stopalignment \stopcolumnset \stoptextbackground

<    2   3   4   5   6   7   8   9   10   11   >