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.

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

[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] Offset MP text with font change

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

[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] Defined and not defined and better be done global

2013-04-27 Thread Cecil Westerhof
file that I use. In this I have: \def\Title{\dodoubleempty\doTitle} \def\doTitle[#1][#2]{ \ifsecondargument \testpage[#2] \else \testpage[15] \fi \startalignment[center] { \myblank[2*big] \switchtobodyfont[1.5em] \bf\em#1 } \my

[NTG-context] localfootnotes and bodyfontsize in a placetable

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

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

2013-04-18 Thread Lars Huttar
wn on this page http://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 \setupcolumnsetstar

[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 Tim Li
definefont[Test][name:texgyrepagellaregular] > c) \definefont[Test][spec:texgyrepagella-normal-normal] > > > 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] > >

Re: [NTG-context] Different fonts for titles

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

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

2013-04-11 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] setupinterlinespace in \startquotation\stopquotation

2013-03-24 Thread Wolfgang Schuster
tting left=,right= and explicitly putting a \par would > work. However, if one wants to have quotation marks, this is no good. > And placing an explicit \par is not very elegant, either. > > Nor does it seem that \switchtobodyfont[] does any better. > > Maybe the solution is s

[NTG-context] setupinterlinespace in \startquotation\stopquotation

2013-03-24 Thread Alan BRASLAU
seem that \switchtobodyfont[] does any better. Maybe the solution is simple but I have not found it... Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

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 \stopfor

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

2012-12-05 Thread Wolfgang Schuster
Huttar wrote: >>> / Hi all, >> /> > > /... > > / >> / >> />/ >> />/ % Abbreviations >> />/ \definestartstop >> />/[abblist] >> />/[before={\setupbackgrounds[text][background=verticalline] >> />/ \starttextbackground[text] >> />/ >> \

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

2012-12-05 Thread Lars Huttar
startstop > />/[abblist] > />/[before={\setupbackgrounds[text][background=verticalline] > />/ \starttextbackground[text] > />/ > \setuptab[headstyle={\switchtobodyfont[SansB,\SansBsize]},width=20mm,location=left] > />/ \startcolumnset[abbcolumn] \startalign

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

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

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

2012-12-05 Thread Lars Huttar
round[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 that th

Re: [NTG-context] Changing the font in quotation

2012-11-16 Thread Marco Patzer
see http://wiki.contextgarden.net/Command/setupdelimitedtext That means, you can use the style key as follows: \setupdelimitedtext [quotation] [style=sans] If you defined sans to be Helvetica, that's all you need, but this depends on you document setup. You can also use \switchtobodyfont. \s

Re: [NTG-context] How to display source in ConTeXt?

2012-11-13 Thread Aditya Mahajan
ut dosen't work.. Search for style: \definevimtyping [ctyping] [style={\switchtobodyfont[small,tt]}] \starttext \startctyping #include \stopctyping \stoptext Or if you want to globally change the style of all typing environments: \setupvimtyping [style=]

Re: [NTG-context] Making math smaller

2012-10-25 Thread Marcin Borkowski
Dnia 2012-10-26, o godz. 00:52:30 Marcin Borkowski napisał(a): > Hi again, > > I promise this is my last question now - it's 1:00 AM here, I'm > starting to sleep;). But how do I make my math smaller? > {\tfx\math{a^2+b^2=c^2}} won't work. OK, one more;). It tur

Re: [NTG-context] math: \text does not scale properly

2012-10-21 Thread Hans Hagen
. In MkIV it does not do anything. How about: \unprotect \ifdefined\font_basics_switchtobodyfont\else \def\font_basics_switchtobodyfont#1{\switchtobodyfont[#1]}% \fi \def\mathstyleface#1% #1 is number (\normalmathstyle) {\ifcase#1\relax \textface \or \textface \or

Re: [NTG-context] math: \text does not scale properly

2012-10-20 Thread Aditya Mahajan
m "\text{ }" to "\normal", which works. There is another bug with \text. {\switchtobodyfont[sans] $\text{sans}$} does not switch to sans font. Both the incorrect scaling and wrong font switch can be corrected by restoring the old definition of \text in math-ini.mkiv. Based on t

Re: [NTG-context] Russian sentence in Czech text in Mark II in ConTeXt Suite installation on Linux in UTF8

2012-09-24 Thread Mojca Miklavec
program pro počítačovou sazbu {\switchtobodyfont[gentium-rus]система компьютерной вёрстки} \stoptext Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / htt

[NTG-context] Luatex crash with x86-64 Linux binary

2012-09-10 Thread Brian R. Landy
setupTABLE[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23][1,4,3,2][style={\switchtobodyfont[modern,rm]\bf}]% \setupTABLE[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23][5][topframe=on]% \setupTABLE[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23][20][align={flus

Re: [NTG-context] Bold math trouble

2012-08-12 Thread Kumar Appaiah
finetypeface [boldmath] [mm] [boldmath] [modern] [modern] > >[encoding=texnansi] > >\switchtobodyfont[palatino,14pt] > > > >\starttext > >Hi > >\startformula > >x = \boldsymbol{\Sigma}\Sigma > >\stopformula > >\stoptext > > > > > >The

Re: [NTG-context] Bold math trouble

2012-08-12 Thread Hans Hagen
] \usetypescript[palatino][texnansi] \definetypeface[mainface][mm][math][modern][modern][encoding=texnansi] \definetypeface [boldmath] [mm] [boldmath] [modern] [modern] [encoding=texnansi] \switchtobodyfont[palatino,14pt] \starttext Hi \startformula x = \boldsymbol{\Sigma}\Sigma \stopformula

Re: [NTG-context] formula in TABLE is not continuous numbered

2012-08-12 Thread Hans Hagen
a+b=c \stopformula \bTABLE[frame=on,align=right,width=fit,style={\switchtobodyfont[9pt]}] \bTR \bTD[width=35mm] \placeformula \startformula c-a=b \stopformula \eTD \eTR \eTABLE \placeformula \startformula c-b=a \stopformula \stoptext It’s a bug in the formula numbering. Natural tables perform three ru

Re: [NTG-context] formula in TABLE is not continuous numbered

2012-08-12 Thread Steffen Wolfrum
>> Hi, >>>> >>>> please have a look at this minimal example below: >>>> you'll find three formulas (1), (4), (5) >>>> >>>> What happen to (2) and (3)? >>>> >>>> Steffen >>>> ... >

Re: [NTG-context] formula in TABLE is not continuous numbered

2012-08-12 Thread Wolfgang Schuster
>> you'll find three formulas (1), (4), (5) >>> >>> What happen to (2) and (3)? >>> >>> Steffen >>> ... >>> >>> \starttext >>> >>> \placeformula \startformula a+b=c \stopformula >>> >&

[NTG-context] Bold math trouble

2012-08-12 Thread Kumar Appaiah
=texnansi] \definetypeface [boldmath] [mm] [boldmath] [modern] [modern] [encoding=texnansi] \switchtobodyfont[palatino,14pt] \starttext Hi \startformula x = \boldsymbol{\Sigma}\Sigma \stopformula \stoptext The issue I have is that this doesn't work, and throws me: ! Math formula deleted: Insuffi

Re: [NTG-context] formula in TABLE is not continuous numbered

2012-08-12 Thread Steffen Wolfrum
d (3)? >> >> Steffen >> ... >> >> \starttext >> >> \placeformula \startformula a+b=c \stopformula >> >> \bTABLE[frame=on,align=right,width=fit,style={\switchtobodyfont[9pt]}] >> \bTR >> \bTD[width=35mm] >> \placeformu

Re: [NTG-context] formula in TABLE is not continuous numbered

2012-08-12 Thread Wolfgang Schuster
ormula a+b=c \stopformula > > \bTABLE[frame=on,align=right,width=fit,style={\switchtobodyfont[9pt]}] > \bTR > \bTD[width=35mm] > \placeformula > \startformula c-a=b > \stopformula > \eTD > \eTR > \eTABLE > > \placeformula \startformula c-b=a \stopformula >

[NTG-context] formula in TABLE is not continuous numbered

2012-08-12 Thread Steffen Wolfrum
Hi, please have a look at this minimal example below: you'll find three formulas (1), (4), (5) What happen to (2) and (3)? Steffen ... \starttext \placeformula \startformula a+b=c \stopformula \bTABLE[frame=on,align=right,width=fit,style={\switchtobodyfont[9pt]}] \bTR \bTD[width

Re: [NTG-context] Luatex error in latest beta (standalone)

2012-08-03 Thread Alan Bowen
{\let\strc_notes_set_bodyfont\relax 1692\restoreglobalbodyfont 1693 \switchtobodyfont[\noteparameter\c!bodyfont]% 1694\setupalign[\noteparameter\c!align]} 1695 1696 %D The footnote mechanism defaults to a traditional one 1697 %D column way of showing them. By default we precede them b

[NTG-context] A strange problem, probably with \startitemize[columns]

2012-07-28 Thread Marcin Borkowski
e {\origstoptikzpicture\egroup} \def\todo#1{{\em \kap{do dopisania}: #1}} %\setupinteraction[state=start] \enablemode[nauczyciel] %\disablemode[nauczyciel] \def\startteacher{\grabbufferdata[teacher][startteacher][stopteacher]} \doifmodeelse{nauczyciel}{\def\stopteacher{\par{\switchtobodyfont[s

Re: [NTG-context] simpleslides help needed

2012-07-21 Thread Aditya Mahajan
ran into my initial difficulties. Use \setupSlideTitle [style={ any font command }] The default value of style is \switchtobodyfont[\SlideTitleSize]. The easiest way to switch fonts is to use \definefont or, if you are using the simplefonts module, \definesimplefont. For example: \usemodule

Re: [NTG-context] math symbol: blacktriangle

2012-07-18 Thread Aditya Mahajan
\NC \type{\bigtriangledown}\NC \bigtriangledown\NC > \meaning\bigtriangledown\NC \NR > \NC \type{\triangleleft } \NC \triangleleft \NC > \meaning\triangleleft \NC \NR > \NC \type{\triangleright} \NC \triangleright \NC > \meaning\triangler

Re: [NTG-context] math symbol: blacktriangle

2012-07-18 Thread Andreas Mang
eright \NC > \meaning\triangleright \NC \NR > \HL > \stoptabulate > \stopbuffer > > \starttext > > \switchtobodyfont[modern-designsize] \subject{modern-designsize} > \getbuffer \blank > \switchtobodyfont[modern]\subject{modern} &g

Re: [NTG-context] math symbol: blacktriangle

2012-07-18 Thread Hans Hagen
\switchtobodyfont[modern-designsize] \subject{modern-designsize} \getbuffer \blank \switchtobodyfont[modern]\subject{modern} \getbuffer \blank \switchtobodyfont[xits] \subject{xits} \getbuffer \blank \switchtobodyfont[pagella] \subject{pagella} \getbuffer \blank

Re: [NTG-context] setupcaptions

2012-07-11 Thread Wolfgang Schuster
} but > style = {bold,small} does not. From the general principles of ConTeXt's > parameter handling I would have expected this to work. > Of course I could have used style={\bf\switchtobodyfont[small]}, but I would > prefer to refrain from low level font commands when poss

[NTG-context] setupcaptions

2012-07-11 Thread Meer, H. van der
k. Of course I could have used style={\bf\switchtobodyfont[small]}, but I would prefer to refrain from low level font commands when possible. I am right the setupcaptions should work with combined fontsettings, or is it my mistake? Hans van der Meer setup.pdf Description: setu

Re: [NTG-context] bodyfont message

2012-07-11 Thread Hans Hagen
better be done global) I am inclined to follow the suggestion, but I cannot think of the most correct way to do this. Someone willing to show it to me? You probably use a large size locally, say \switchtobodyfont[25pt] and in that case you need to define a bodyfontenvironment in order to

Re: [NTG-context] clutter with \start and \stop

2012-07-04 Thread Rogers, Michael K
you considered structuring your example like this?: \starttext \startsection[title=Tufte] \startcolumns[n=2] \input tufte \stopcolumns \stopsection \startsection[title=Tufte and Knuth] \startcolumns[n=2] \switchtobodyfont[big] % Note that the font size is switched back after \stopcolumns \input tufte \s

Re: [NTG-context] Two questions about buffers

2012-06-30 Thread Hans Hagen
just switches a font and does not adapt the baseline use \switchtobodyfont[small] or \tfxx\setupinterlinespace instead - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt |

Re: [NTG-context] \placeregister[index]—preventing page break before

2012-06-27 Thread Alan Bowen
[Kidd] \page[makeup] \stopcomponent The registers are defined in an environment file as follows; %Passages \defineregister[Passage][Passages] \setupregister[Passage][n=3,% balance=yes,% pagestyle={\switchtobodyfont[9.6pt]\em},% textstyle={\switchtobodyfont[9.6pt]},% criterium=all,% intera

Re: [NTG-context] Change font in \startuseMPgraphic

2012-06-10 Thread Aditya Mahajan
On Sun, 10 Jun 2012, Alfredo Catalina wrote: \setupbodyfont[pagella,11pt] %\setupMPinstance[metafun][textstyle=sans] \setupMPinstance[metafun][textstyle={\switchtobodyfont[termes,14pt]}] \starttext \input knuth \startMPcode draw textext("I’m different!") ; \stopMPcode \stopte

Re: [NTG-context] Change font in \startuseMPgraphic

2012-06-10 Thread Alfredo Catalina
> \setupbodyfont[pagella,11pt] > > %\setupMPinstance[metafun][textstyle=sans] > \setupMPinstance[metafun][textstyle={\switchtobodyfont[termes,14pt]}] > > \starttext > > \input knuth > > \startMPcode > draw textext("I’m different!") ; > \sto

Re: [NTG-context] Change font in \startuseMPgraphic

2012-06-10 Thread Wolfgang Schuster
r the metapost labels. \setupbodyfont[pagella,11pt] %\setupMPinstance[metafun][textstyle=sans] \setupMPinstance[metafun][textstyle={\switchtobodyfont[termes,14pt]}] \starttext \input knuth \startMPcode draw textext("I’m different!") ; \

Re: [NTG-context] Change font in \startuseMPgraphic

2012-06-10 Thread Wolfgang Schuster
startMPenvironment [global] > \usetypescript[palatino][ec] > \switchtobodyfont[palatino,7pt] > \stopMPenvironment > > and it changed the font size but the font type is not "palatino". 1. Do you use MkII or MkIV? 2. Do you want Palatino

Re: [NTG-context] Change font in \startuseMPgraphic

2012-06-10 Thread Alfredo Catalina
I'm sorry but I don't know how to use them. I've tried \setupMPinstance [metafun] [textcolor=red] and got an "undefined control sequence" error. I've also tried \startMPenvironment [global] \usetypescript[palatino][ec] \switchtobodyfont[palatino,7pt] \sto

Re: [NTG-context] ntg-style error

2012-06-06 Thread Taco Hoekwater
startitemize[width=1sp,#1] \let\doitem\item \def\item{\doitem[]\hbox{}\kern12pt\rightskip=0pt}% } \def\stopouteritemize{\stopitemize\endgroup} \setupenumerations [indentnext=no] \setupdescriptions [indentnext=no] \unexpanded\def\smalltyping{% \switchtobodyfont[tt]% \parinde

[NTG-context] problem with switchtobodyfont

2012-06-05 Thread Brian Landy
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

Re: [NTG-context] Multiple layers question

2012-06-04 Thread Wolfgang Schuster
page and a > huge "X" centered. I did this: > > \setuppagenumbering[state=stop] > > \setupbackgrounds[page][background=bkg] > > \definelayer[bkg][x=0mm,y=0mm,width=\paperwidth,height=\paperheight] > \setlayer[bkg] > {\framed[frame=off,width=\p

[NTG-context] Multiple layers question

2012-06-04 Thread Marcin Borkowski
state=stop] \setupbackgrounds[page][background=bkg] \definelayer[bkg][x=0mm,y=0mm,width=\paperwidth,height=\paperheight] \setlayer[bkg] {\framed[frame=off,width=\paperwidth,height=50mm] {\switchtobodyfont[10mm]\tt Some text}} \setlayer[bkg] {\framed[frame=off,width=\

Re: [NTG-context] “bodyfont %s is defined (can better be done global)”

2012-06-03 Thread Philipp Gesang
gang, \definebodyfontenvironment[42.0pt] results in the dimension’s decimal place to be stripped before font definition. Which makes me wonder whether \switchtobodyfont should do a \normalizebodyfontsize on the #specification before triggering the switch? So that 42.0pt be interpreted as 42pt?

Re: [NTG-context] “bodyfont %s is defined (can better be done global)”

2012-06-03 Thread Wolfgang Schuster
Am 03.06.2012 um 16:27 schrieb Philipp Gesang: > Hi Wolfgang! > > · >>> >>> \definebodyfontenvironment[42.0pt] %% a dozen times >>> \starttext >>> \switchtob

Re: [NTG-context] “bodyfont %s is defined (can better be done global)”

2012-06-03 Thread Philipp Gesang
Hi Wolfgang! · > > > > \definebodyfontenvironment[42.0pt] %% a dozen times > > \starttext > > \switchtobodyfont[42.0pt] %% hundreds of times > > %\switchtobodyfont[42pt]

Re: [NTG-context] “bodyfont %s is defined (can better be done global)”

2012-06-03 Thread Wolfgang Schuster
Am 03.06.2012 um 12:01 schrieb Philipp Gesang: > Hi Wolfgang! > > · > >> Am 02.06.2012 um 20:13 schrieb Philipp Gesang: >> >>> Dear listmates, >>> >>> with \switchtobodyfont I get the interface message “fonts:14” >>> fr

Re: [NTG-context] “bodyfont %s is defined (can better be done global)”

2012-06-03 Thread Philipp Gesang
Hi Wolfgang! · > Am 02.06.2012 um 20:13 schrieb Philipp Gesang: > > > Dear listmates, > > > > with \switchtobodyfont I get the interface message “fonts:14” > > from mult-mes.lua (“bodyfont %s is defined (can better be done > > global)”) which

Re: [NTG-context] “bodyfont %s is defined (can better be done global)”

2012-06-03 Thread Wolfgang Schuster
Am 02.06.2012 um 20:13 schrieb Philipp Gesang: > Dear listmates, > > with \switchtobodyfont I get the interface message “fonts:14” > from mult-mes.lua (“bodyfont %s is defined (can better be done > global)”) which is kinda hard to grep for :( Example: > > \definebodyf

[NTG-context] “bodyfont %s is defined (can better be done global)”

2012-06-02 Thread Philipp Gesang
Dear listmates, with \switchtobodyfont I get the interface message “fonts:14” from mult-mes.lua (“bodyfont %s is defined (can better be done global)”) which is kinda hard to grep for :( Example: \definebodyfont[42pt][rm][default] \starttext \switchtobodyfont [42pt] \setupbodyfont [42pt

[NTG-context] Adjust the tracking

2012-05-17 Thread Marco
Hi everybody, how does one adjust the tracking of a font? The command \definecharacterkerning does almost what I need. However, it breaks the ligatures. \definecharacterkerning [track] [factor=.01] \starttext \showboxes \switchtobodyfont [72pt] final suffocating flange % all ligatures lost

Re: [NTG-context] switching to a different math font (with alternatives) in the middle of document

2012-05-09 Thread Mojca Miklavec
typescript? How does one > switch between stylistic alternatives for math? > > I have a problem with {\switchtobodyfont[asana] $\mathscript ABC > XYZ\,abc xyz$} and I also need to figure out how to get "math bold > italic sans serif greek alphabet". Any hints welcome.

[NTG-context] switching to a different math font (with alternatives) in the middle of document

2012-05-09 Thread Mojca Miklavec
Set=4]{Lucida Bright Math OT} $\mathcal{ABC XYZ}$~(StylisticSet=4) ... running text ... \setmathfont{Asana Math} $\mathfrak{ABC XYZ\,abc xyz}$ or do I always need to provide a predefined typescript? How does one switch between stylistic alternatives for math? I have a problem with {\switchtobod

Re: [NTG-context] greek items broken:

2012-05-09 Thread Wolfgang Schuster
·· > \unprotect > > \def\cmu_numerals#1#2{% > \bgroup > \setupbodyfont [computer-modern-unicode] > \csname #1reeknumerals\endcsname{#2}% > \egroup% > } Use \switchtobodyfont for local font switches. \def\cmu_numerals#1#2% {\bgroup \switchtobodyfont[co

Re: [NTG-context] Font for MetaPost graphics

2012-05-02 Thread Marco
On 2012-05-02 Aditya Mahajan wrote: > Metapost now runs as a library. All the text is first typeset by ConTeXt > and metapost only knows the bounding box of the labels. > > You can try (untested): > > \starttext > > This is serif > > \switchtobodyfont[sans]

Re: [NTG-context] Font for MetaPost graphics

2012-05-02 Thread Aditya Mahajan
On Thu, 3 May 2012, Marco wrote: The wiki claims setting up an MPenvironment is enough to change the font in MetaPost graphics: \startMPenvironment%[global] \switchtobodyfont [sans] \stopMPenvironment \starttext This should be serif. \startMPcode draw

[NTG-context] Font for MetaPost graphics

2012-05-02 Thread Marco
The wiki claims setting up an MPenvironment is enough to change the font in MetaPost graphics: \startMPenvironment%[global] \switchtobodyfont [sans] \stopMPenvironment \starttext This should be serif. \startMPcode draw textext("This should be in

[NTG-context] Scaling in setuplayout does not work with setuparranging

2012-04-25 Thread Steffen Fritzsche
ze[SPP43][width=25.4cm,height=19.05cm] \setuppapersize[SPP43][SPP43] \switchtobodyfont[20pt] \startmode[handout] \setuppapersize[SPP43][A4] \setuplayout[scale=0.5,location=middle] %\setuparranging[2TOP] \stopmode \starttext \startitemize \item item \item item \item item \item item \item item \item

Re: [NTG-context] placefigure adds break

2012-04-12 Thread Alan BRASLAU
t; > >> > > >> \startpostponing[+1] > > >> \placefigure[top]{}{...} > > >> \stoppostponing > > >> > > >> Rest of the text > > >> > > >> > > >> Aditya > > > \starttext > > > > > &g

Re: [NTG-context] [***NOSPAM***] placefigure adds break

2012-04-05 Thread Alan BRASLAU
e[top]{}{...} > >> \stoppostponing > >> > >> Rest of the text > >> > >> > >> Aditya > > \starttext > > > > \switchtobodyfont[rm,10pt] > > > > \input tufte \input ward \input zapf \input tufte \input ward \input &

Re: [NTG-context] [***NOSPAM***] placefigure adds break

2012-04-05 Thread Steffen Wolfrum
Am 05.04.2012 um 13:25 schrieb luigi scarso: > On Thu, Apr 5, 2012 at 1:10 PM, Aditya Mahajan wrote: >> (Untested) >> >> \startpostponing[+1] >> \placefigure[top]{}{...} >> \stoppostponing >> >> Rest of the text >> >> >> Aditya

Re: [NTG-context] [***SPAM***] placefigure adds break

2012-04-05 Thread luigi scarso
On Thu, Apr 5, 2012 at 1:10 PM, Aditya Mahajan wrote: > (Untested) > > \startpostponing[+1] > \placefigure[top]{}{...} > \stoppostponing > > Rest of the text > > > Aditya \starttext \switchtobodyfont[rm,10pt] \input tufte \input ward \input zapf \input tufte \input

Re: [NTG-context] [***SPAM***] placefigure adds break

2012-04-05 Thread Aditya Mahajan
paragraph break after the respective word (marked "HERE")? Steffen --- \starttext \switchtobodyfont[rm,10pt] \input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte \input ward \input zapf HERE \place

[NTG-context] [***SPAM***] placefigure adds break

2012-04-05 Thread Steffen Wolfrum
(marked "HERE")? Steffen --- \starttext \switchtobodyfont[rm,10pt] \input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte \input ward \input zapf \input tufte \input ward \input zapf HERE \placefigure[top]{}{\vskip3pt{\externalfigure[foo][frame

Re: [NTG-context] Page numbering in latest beta

2012-04-02 Thread Steffen Fritzsche
blesided, partnumber=no, location=, > style={\ss\bold}] > \setupheadertexts [section][pagenumber][pagenumber][chapter] > \setupheader [before={\ss\switchtobodyfont[10pt]}] > > \startsectionblockenvironment[frontpart] >\setupuserpagenumber[numberconv

Re: [NTG-context] Page numbering in latest beta

2012-03-30 Thread Hans Hagen
{\ss\bold}] \setupheadertexts [section][pagenumber][pagenumber][chapter] \setupheader [before={\ss\switchtobodyfont[10pt]}] \startsectionblockenvironment[frontpart] \setupuserpagenumber[numberconversion=romannumerals] \stopsectionblockenvironment \startsectionblockenvironment[bodypart]

Re: [NTG-context] Page numbering in latest beta

2012-03-30 Thread Wolfgang Schuster
frontpart. > Here is how I did set this up long time ago: > > \startsectionblockenvironment[frontpart] > \setupheader [before={\ss\switchtobodyfont[10pt]}] \setupheader[style={\switchtobodyfont[ss,10pt]}] or use \definefont[HeaderFont][Sans at 10pt] in combination with

Re: [NTG-context] Page numbering in latest beta

2012-03-30 Thread Hans Hagen
this up long time ago: What time did you update? I fixed a side effect of some counter code renaming efforts. Hans \startsectionblockenvironment[frontpart] \setupheader [before={\ss\switchtobodyfont[10pt]}] \setupheadertexts [section][pagenumber][pagenumber][chapter] \setuppagenumbering

[NTG-context] Page numbering in latest beta

2012-03-30 Thread Steffen Fritzsche
: \startsectionblockenvironment[frontpart] \setupheader [before={\ss\switchtobodyfont[10pt]}] \setupheadertexts [section][pagenumber][pagenumber][chapter] \setuppagenumbering [alternative=doublesided, partnumber=no, location=, style={\ss\bold}] \setupuserpagenumber[numberconversion=romannumerals

Re: [NTG-context] define macro from xml-attribute

2012-03-16 Thread Hans Hagen
{\xmlattdef{#1}{macro}{\empty}} \stopxmlsetups The contents evaluates not to a working macro. Something with catcodes, I presume, but I do not how to do it properly. Preferably I would like to see \meaning\macro evaluate to: \switchtobodyfont[helvetica]. Can someone enlighten me? \edef

[NTG-context] define macro from xml-attribute

2012-03-16 Thread Meer, H. van der
The contents evaluates not to a working macro. Something with catcodes, I presume, but I do not how to do it properly. Preferably I would like to see \meaning\macro evaluate to: \switchtobodyfont[helvetica]. Can someone enlighten me? Hans van der Meer

[NTG-context] placefloat in long parapgraph

2012-03-15 Thread Steffen Wolfrum
triggering a paragraph break? Steffen --- \starttext \switchtobodyfont[rm,48pt] \dorecurse{1}{\input tufte}{\placefigure[here]{something meaningful}{\vskip3pt{\externalfigure[foo][frame=off,width=\dimexpr(\textwidth-10mm)]}}}\input tufte\par \input ward \stoptext

Re: [NTG-context] footnotes rewritten

2012-02-21 Thread Steffen Wolfrum
width18mm > height0.4pt\vskip2mm\stopcolor} > > % footnote's interlineskip etc. > \startsetups footnotesetup > \setupinterlinespace[line=9.8pt, height=.79,depth=.21] > \lineskiplimit-\maxdimen > \setupwhitespace[2pt] > \stopsetups > > % footnotes bottom page > \def\ne

[NTG-context] footnotes rewritten

2012-02-21 Thread Steffen Wolfrum
tnotes bottom page \def\newFNnumber#1{\kern0.05em\raise.385em\hbox{\switchtobodyfont[16pt]#1}}% size of number in front of FN-text <- ??? \def\MyNote#1{\kern0.05em\raise.385em\hbox{\switchtobodyfont[8pt]#1}}% size of number in front of FN-text <- ??? %% \setupnote[footnote][before=\vskip3.

Re: [NTG-context] texgyre termes: no ligatures

2012-02-15 Thread Hans Hagen
ligature is really ugly in this one), and they do not appear in the current beta. Don't know if this is a luatex or ConTeXt issue. Example: \setupbodyfont[termes,12pt] \starttext office fine flat {\ss office fine flat} {\switchtobodyfont[pagella] office fine flat} \stoptext weird ... if you

Re: [NTG-context] texgyre termes: no ligatures

2012-02-15 Thread Steffen Wolfrum
eeded in termes (fi > without ligature is really ugly in this one), and they do not appear in the > current beta. Don't know if this is a luatex or ConTeXt issue. Example: > > \setupbodyfont[termes,12pt] > > \starttext > > office fine flat > > {\ss office

[NTG-context] texgyre termes: no ligatures

2012-02-15 Thread Thomas A. Schmitz
do not appear in the current beta. Don't know if this is a luatex or ConTeXt issue. Example: \setupbodyfont[termes,12pt] \starttext office fine flat {\ss office fine flat} {\switchtobodyfont[pagella] office fine flat} \stoptext All best T

[NTG-context] Two columns type problem

2012-02-13 Thread Martin Bruchanov
frame=off] {~}%\vbox{\bf\rm\switchtobodyfont[48pt] \color[ChapterNumber]{#1}}} } \setuppagenumbering[% alternative=doublesided, location={footer, center}, % header, middle, inleft, inmargin command=\Page, ] \setupinteraction[state=start,color=bl

[NTG-context] xtable formatting issues

2012-01-18 Thread Brian Landy
something like the aligncharacter mechanism in natural tables? Thanks, Brian \starttext \setupxtable[wd1][background=color,backgroundcolor=yellow,width=1.0in] \setupxtable[wd2][background=color,backgroundcolor=green,width=2.0in] \setupxtable[fnit][foregroundstyle={\switchtobodyfont[modern,ss

Re: [NTG-context] another surprising change (line break in TOC)

2012-01-18 Thread luigi scarso
On Tue, Jan 17, 2012 at 1:14 PM, Steffen Wolfrum wrote: > > And this interlineskip is ignored in your solution, test the following > please: > > > \def\TOCstyleBF{\switchtobodyfont[9pt]\bf\setupinterlinespace[line={40pt}]} > > \definelistplacement[MyListItemIT][none]#1#2

Re: [NTG-context] another surprising change (line break in TOC)

2012-01-17 Thread Wolfgang Schuster
ut in the original file it is used as a > bold style with a certain size and a certain interlineskip: \TOCstyleBF > > And this interlineskip is ignored in your solution, test the following please: > > > \def\TOCstyleBF{\switchtobodyfont[9pt]\bf\setupinterlinespace[line={40pt}]} >

Re: [NTG-context] another surprising change (line break in TOC)

2012-01-17 Thread Steffen Wolfrum
eskip is ignored in your solution, test the following please: \def\TOCstyleBF{\switchtobodyfont[9pt]\bf\setupinterlinespace[line={40pt}]} \definelistplacement[MyListItemIT][none]#1#2#3% {\hfill\kern-1em\it#1\hfill\strut\crlf\strut\hfill\hphantom{\tf#3}\framedtext[frame=off,offset=overlay,alig

Re: [NTG-context] footnote mechanism broken (2)

2012-01-13 Thread luigi scarso
On Fri, Jan 13, 2012 at 10:55 AM, Steffen Wolfrum wrote: > Hi, > > an other strange thing related to footnotes can be seen here: > > > > \def\MyNote#1{\switchtobodyfont[12pt]\high{#1}} % <- gives small number > %\def\MyNote#1{\switchtobodyfont[13pt]\high

[NTG-context] footnote mechanism broken (2)

2012-01-13 Thread Steffen Wolfrum
Hi, an other strange thing related to footnotes can be seen here: \def\MyNote#1{\switchtobodyfont[12pt]\high{#1}} % <- gives small number %\def\MyNote#1{\switchtobodyfont[13pt]\high{#1}} % <- gives big number \setupnote [footnote] [textcommand=\MyNote] \starttext Hi there!\footnote

Re: [NTG-context] Undefined controle sequence with usemodule[simpleslides]

2012-01-04 Thread Aditya Mahajan
ues later. \setupTitle [\c!title=, \c!author=, \c!date=\currentdate, \c!style=, \c!color=red, \c!align=\v!middle, \c!before=\vfill, \c!after=\vfill, \c!title\c!style={\switchtobodyfont[\TitleSize]}, \c!title\c!color=, \c!title\c!align=,%\v!middle, \c!autho

[NTG-context] setupheader is ignored

2011-12-16 Thread Steffen Fritzsche
Thanks Hans for fixing the other issue! I've just discovered another problem. So far I switched the font in for my headers with the following command \setupheader [style={\ss\switchtobodyfont[10pt]}] this does not work anymore. Is this on purpose or also a bug? St

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