Re: [NTG-context] font switching commands

2019-07-19 Thread Wolfgang Schuster
vi etc. change the global size and one could replace them with \switchtobodyfont[6pt]. The other switches are local changes of the font size which produce smaller or larger which depends on the global size. Wolfgang ___ I

Re: [NTG-context] issue with italic correction (again)

2019-06-27 Thread Taco Hoekwater
t;>> the font for the buffer used after it. >> >> Using \switchtobodyfont instead of \setupbodyfont for all except the >> first call should help. You may need to add a >> \usebodyfont[mainface_corrected] as well (in the setup block). I >> cannot actually test right

Re: [NTG-context] issue with italic correction (again)

2019-06-26 Thread Pablo Rodriguez
On 6/25/19 10:08 PM, Taco Hoekwater wrote: >> Op 25 jun. 2019 om 21:42 heeft Pablo Rodriguez het volgende geschreven: >> >> BTW, I wonder why the second definition of \DesiredFont doesn’t change >> the font for the buffer used after it. > > Using \switchtobodyfont ins

Re: [NTG-context] issue with italic correction (again)

2019-06-25 Thread Taco Hoekwater
> Op 25 jun. 2019 om 21:42 heeft Pablo Rodriguez het volgende > geschreven: > > BTW, I wonder why the second definition of \DesiredFont doesn’t change > the font for the buffer used after it. Using \switchtobodyfont instead of \setupbodyfont for all except the first call s

Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Martin Althoff
gt; \setupTABLE[r][each][align={lohi,middle},height= 50mm] > > > > \bTABLE > > \bTR > > \bTD \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD > > \bTD \dontleavehmode\rotate[...]{...} \eTD > > Wolfgang >

Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Wolfgang Schuster
-context | current version: 2019.05.18 10:42 PDF of my output is attached. MWE: \starttext \setupTABLE[c][1][width=7mm] \setupTABLE[c][2][width=30mm] \setupTABLE[r][each][align={lohi,middle},height= 50mm] \bTABLE \bTR \bTD \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD \bTD

Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Martin Althoff
Hi Willi, thanks for the quick reply. I have the [align=lohi] as part of the setupTABLE statement. Now I tried adding it into the particular cell -- again no effect even if I add "middle". \bTD[align=lohi] \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD I suspect the rotate

Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Willi Egger
gt; \setupTABLE[r][each][align={lohi,middle},height= 50mm] > > \bTABLE > \bTR > \bTD \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD > \bTD blah \eTD > \eTR > > \eTABLE > \stoptext > _

[NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Martin Althoff
of my output is attached. MWE: \starttext \setupTABLE[c][1][width=7mm] \setupTABLE[c][2][width=30mm] \setupTABLE[r][each][align={lohi,middle},height= 50mm] \bTABLE \bTR \bTD \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD \bTD blah \eTD \eTR \eTABLE \stoptext rotate-test.pdf

Re: [NTG-context] several blocks of text in the margin

2019-05-01 Thread Henning Hraban Ramm
:margintext] > > \startsetups [userdata:margintext] > \margindata > [inright] > [%style=\smallbodyfont, > style={\switchtobodyfont[9pt]}, > width=\rightmarginwidth, > align={flushleft,broad}] > {{\bf Exemple — }\getinlineuserdata} > \stop

[NTG-context] several blocks of text in the margin

2019-04-27 Thread Fabrice Couvreur
=margintext] \defineuserdataalternative [margintext] [renderingsetup=userdata:margintext] \startsetups [userdata:margintext] \margindata [inright] [%style=\smallbodyfont, style={\switchtobodyfont[9pt]}, width=\rightmarginwidth, align={flushleft,broad}] {{\bf Exemple

Re: [NTG-context] Text in the margin

2019-04-10 Thread Wolfgang Schuster
] [renderingsetup=userdata:margintext] \startsetups [userdata:margintext]   \margindata     [inright] [%style=\smallbodyfont, style={\switchtobodyfont[9pt]}, width=\rightmarginwidth, align={flushleft,broad}]     {{\bf Exemple — }\getinlineuserdata} \stopsetups \starttext \startuserdata

[NTG-context] Text in the margin

2019-04-10 Thread Fabrice Couvreur
] \startsetups [userdata:margintext] \margindata [inright] [%style=\smallbodyfont, style={\switchtobodyfont[9pt]}, width=\rightmarginwidth, align={flushleft,broad}] {{\bf Exemple — }\getinlineuserdata} \stopsetups \starttext \startuserdata[margintext] \input ward \stopuserdata

Re: [NTG-context] LMTX deeptextcommand issue

2019-04-02 Thread Jan Tosovsky
On 2019-04-02 Hans Hagen wrote: > On 4/2/2019 8:41 PM, Jan Tosovsky wrote: > > > > my document ends with the index > > > > \startbackmatter > > \chapter{Rejstřík jmenný} > > \start > > \switchtobodyfont[8pt] > > \placeindexname > > \s

Re: [NTG-context] LMTX deeptextcommand issue

2019-04-02 Thread Hans Hagen
On 4/2/2019 8:41 PM, Jan Tosovsky wrote: Dear All, my document ends with the index \startbackmatter \chapter{Rejstřík jmenný} \start \switchtobodyfont[8pt] \placeindexname \stop \stopbackmatter \startbackmatter \chapter{Rejstřík věcný} \start \switchtobodyfont[8pt] \placeindexsubject \stop

[NTG-context] LMTX deeptextcommand issue

2019-04-02 Thread Jan Tosovsky
Dear All, my document ends with the index \startbackmatter \chapter{Rejstřík jmenný} \start \switchtobodyfont[8pt] \placeindexname \stop \stopbackmatter \startbackmatter \chapter{Rejstřík věcný} \start \switchtobodyfont[8pt] \placeindexsubject \stop \stopbackmatter At the beginning

Re: [NTG-context] problem with \sym?

2019-02-04 Thread Wolfgang Schuster
\leaderfill{\leaders\hbox to 1em{\hss. \hss}\hfill} \define[1]\pg{{\switchtobodyfont[10pt]\hfill\at[#1]\crlf}} \startcomponent%\starttext \startCList \sym{} Illustrations and Tables\pg{Illustrations} \sym{} Preface\pg{Preface} \sym{} Acknowledgments\pg{Acknowledgments} \blank[big, fixed] \sym{0

[NTG-context] How to pass a parameter with \definedescription[]

2019-01-27 Thread Fabrice Couvreur
background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[12pt]}, align={right, broad}, frame=off, corner=round, radius=1em, width=10cm] \definedescription [Info] [before=, after=, text=Note, title=no, width=fit, distance=

Re: [NTG-context] definefontfamily use

2019-01-23 Thread Wolfgang Schuster
was simply {\switchtobodyfont[myfont]My Font!} Maybe you loaded the used the font before with \definefont which put a entry in the database but normally \definefontfamily doesn’t use fonts from a local directory. Wolfgang

Re: [NTG-context] definefont

2019-01-23 Thread Wolfgang Schuster
[TitleFont][SansBold*default sa 3] \setuphead[chapter][style=\TitleFont,page=no] \setuphead [chapter] [style={\switchtobodyfont[ss,36pt]}] Wolfgang ___ If your question is of interest to others as well, please add

Re: [NTG-context] definefontfamily use

2019-01-22 Thread Hans Hagen
was simply {\switchtobodyfont[myfont]My Font!} Using the present context, this yields the error selectfont > The requested font 'myfont' has no files for the 'tf' alternative, Latin Modern is used instead. What has changed and what should be the proper use? (I have tried setting explici

[NTG-context] definefontfamily use

2019-01-22 Thread Alan Braslau
Hello, Previously, in order to make punctual use of a true-type font in a title for example, I did the following: \definefontfamily [myfont] [serif] [myfont] where myfont.ttf is located in the current project directory, and selecting the font was simply {\switchtobodyfont[myfont]My Font

Re: [NTG-context] Scaling down symbols and emojis

2019-01-19 Thread User 19087
ze would be compounded: 'tfxx' remaining in effect after % 'switchtobodyfont'. I've also tried stop...starthiding, but that prevents % all processing of contents. \setbox\scratchbox\hbox{% #1% % Use a global lua variable rather than globally setting a scratch % reg

Re: [NTG-context] Scaling down symbols and emojis

2019-01-18 Thread User 19087
On Wed, Jan 16, 2019 at 6:29 PM User 19087 wrote: >> Or I use {\switchtobodyfont[...]\symbol[ShortForty]} in the document. >> At that point the body font may have been switched to a size whose >> environment defines different values for 'x' and 'xx'. Or perhaps the >> curr

Re: [NTG-context] Scaling down symbols and emojis

2019-01-16 Thread User 19087
bodyfontenvironment{x}, n=\getcurrentbodyfontenvironment{xx}] > > % This also works but is less than ideal when matching surrounding > > font sizes. > > % Which factor should I use to match \tfxx? > > \symbol[ShortForty] > > \scale[factor=4]{\symbol[ShortForty]} > x = 0.8

Re: [NTG-context] Scaling down symbols and emojis

2019-01-16 Thread Wolfgang Schuster
[ShortForty]} {\tfxx\symbol[ShortForty]} % This works, but why? Isn't \small just a synonym for \tfx via % \definealternativestyle? Anyway there is no synonym for \tfxx. \symbol[ShortForty] {\switchtobodyfont[small]\symbol[ShortForty]} {\small\symbol[ShortForty]} No, \small us the same

[NTG-context] Scaling down symbols and emojis

2019-01-16 Thread User 19087
, but why? Isn't \small just a synonym for \tfx via % \definealternativestyle? Anyway there is no synonym for \tfxx. \symbol[ShortForty] {\switchtobodyfont[small]\symbol[ShortForty]} {\small\symbol[ShortForty]} % This also works but is less than ideal when matching surrounding font sizes. % Which

Re: [NTG-context] Spurious missing character reports

2018-12-10 Thread Hans Hagen
trates the problem. I do not understand now all the features interact to cause this, but the reports disappear upon removing any (such as the seemingly-redundant \definebodyfontenvironment or the \switchtobodyfont[small]). \enabletrackers [fonts.missing] \definebodyfontenviron

[NTG-context] Spurious missing character reports

2018-12-09 Thread Rik Kabel
interact to cause this, but the reports disappear upon removing any (such as the seemingly-redundant \definebodyfontenvironment or the \switchtobodyfont[small]). \enabletrackers [fonts.missing] \definebodyfontenvironment [11pt] [a=1] \definefontfallback [fb:eb

[NTG-context] align is reversed inside a table

2018-09-29 Thread David Walther
, header=0.5in, footer=0.5in, headerdistance=0in, footerdistance=0in] \switchtobodyfont[12pt] \starttext \setupTABLE[split=repeat] \setupTABLE[r][each][toffset=3pt, boffset=3pt, loffset=3pt, roffset=3pt] \setupTABLE[c][each][leftframe=off,rightframe=off,align=right] \setupTABLE[c][first][frame

[NTG-context] table making ugly column sizes, how to fix?

2018-09-29 Thread David Walther
[topspace=0.5in, backspace=1in, height=10in, width=7in, header=0.5in, footer=0.5in, headerdistance=0in, footerdistance=0in] \switchtobodyfont[12pt] \starttext \setupTABLE[split=repeat] \setupTABLE[r][each][toffset=3pt, boffset=3pt, loffset=3pt, roffset=3pt] \setupTABLE[c][each][leftframe

Re: [NTG-context] font in \setuplanguage

2018-09-17 Thread Wolfgang Schuster
With the font key you can apply certain font features for a different language but you can’t use it to switch to a different font. To switch to a different font for your greek texts use this method: \startsetups [greekfont]   \switchtobodyfont [grcface] \stopsetups \setuplanguage[agr][setups

Re: [NTG-context] Some questions about an extreme table

2018-08-26 Thread Wolfgang Schuster
f a strut. \useMPlibrary[dum] \switchtobodyfont[pagella,12pt] \setuplayout [topspace=10mm, header=10mm, footer=10mm, height=middle, backspace=20mm, width=middle] \definedescription [Item] [width=1.5em, distance=none] \

Re: [NTG-context] Some questions about an extreme table

2018-08-26 Thread Wolfgang Schuster
Number them by hand (or replace the descriptions I used with enumerations). The alignment of the graphics can be improved with the \tbox command, which raises the argument by the height of a strut. \useMPlibrary[dum] \switchtobodyfont[pagella,12pt] \setuplayout [topspace=10mm, header

Re: [NTG-context] Some questions about an extreme table

2018-08-25 Thread Mikael P. Sundqvist
ce > > \useMPlibrary[dum] > > \switchtobodyfont[pagella,12pt] > > \unexpanded\def\Item#1{\framed[frame=off,location=hanging]{#1}} > > \setuplayout >[topspace=10mm, > header=10mm, > footer=10mm, > height=middle, > backspace=20mm, > w

[NTG-context] Some questions about an extreme table

2018-08-25 Thread Fabrice Couvreur
Hello, In the table, how to have a. b. c. in each line instead of a. a. a ? Is the macro to place the figures on the baseline of the labels to be improved ? Thanks. Fabrice \useMPlibrary[dum] \switchtobodyfont[pagella,12pt] \unexpanded\def\Item#1{\framed[frame=off,location=hanging]{#1

Re: [NTG-context] Text wrapped with an ornement

2018-08-19 Thread Fabrice Couvreur
h] > > \defineframedtext >[FramedText] >[offset=0.6em, > style=\ss, > toffset=.25\lineheight, > background=color, > backgroundcolor=MyColorA, > oregroundstyle={\switchtobodyfont[10pt]}, > align={right, broad}, > frame=off, >

Re: [NTG-context] Text wrapped with an ornement

2018-08-19 Thread Hans Hagen
=0.6em, style=\ss, toffset=.25\lineheight, background=color, backgroundcolor=MyColorA, oregroundstyle={\switchtobodyfont[10pt]}, align={right, broad}, frame=off, corner=round, radius=1.5em, width=10cm] \definedescription [Info] [before=, after=, text=Info

Re: [NTG-context] Text wrapped with an ornement

2018-08-18 Thread Fabrice Couvreur
background=color, > backgroundcolor=MyColorB, > ] > > \defineframedtext > [FramedText] > [ > offset=0.6em, > style=\ss, > toffset=\lineheight, > background=color, > backgroundcolo

Re: [NTG-context] Text wrapped with an ornement

2018-08-18 Thread Pablo Rodriguez
=MyColorB, ] \defineframedtext [FramedText] [ offset=0.6em, style=\ss, toffset=\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[10pt]}, align={rig

Re: [NTG-context] Text wrapped with an ornement

2018-08-17 Thread Wolfgang Schuster
, background=color, backgroundcolor=MyColorB, ] \defineframedtext [FramedText] [ offset=0.6em, toffset=\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[10pt]}, align=verytolerant, alternative=serried, % text

[NTG-context] Text wrapped with an ornement

2018-08-17 Thread Fabrice Couvreur
, toffset=\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[10pt]}, align=verytolerant, alternative=serried, % text wrapped frame=off, corner=round, ] \showframe \starttext

Re: [NTG-context] Placement of a figure made with TiKz

2018-07-29 Thread Hans Hagen
}{   \hbox{     \starttikzpicture[thick] \switchtobodyfont[9pt] \startaxis[ x=3cm,y=3cm, axis line style = thick, major tick style=black, xtick={0,0.25,...,1},ytick={0,0.25,...,1}, ymin=-0.25,ymax=1.25,xmin=-0.25,xmax=1.5, axis on top=true, axis lines=middle, tickwidth=0.15cm, minor tick num=3, major

[NTG-context] Placement of a figure made with TiKz

2018-07-29 Thread Fabrice Couvreur
, backspace=2cm, topspace=10mm, bottomspace=10mm, header=10mm, footer=10mm, footerdistance=10mm, headerdistance=10mm] \showframe \starttext \placefigure[right]{first}{\externalfigure[dummy]} \placefigure[right]{second}{ \hbox{ \starttikzpicture[thick] \switchtobodyfont[9pt

Re: [NTG-context] btex ... etex within MP with 1 letter ignored?

2018-07-17 Thread Hans Hagen
t;, "22")   context.setMPtext("Pare3", "333") \stopluacode % \startuseMPgraphic{Pare}   draw thelabel(btex \switchtobodyfont[20mm]\sans\bold TTT etex, (0, 150))     withcolor red     ;   draw thelabel(btex \switchtobodyfont[20mm]\sans\bold U etex, (0, 100))     with

[NTG-context] btex ... etex within MP with 1 letter ignored?

2018-07-17 Thread Procházka Lukáš Ing .
;, "333") \stopluacode % \startuseMPgraphic{Pare} draw thelabel(btex \switchtobodyfont[20mm]\sans\bold TTT etex, (0, 150)) withcolor red ; draw thelabel(btex \switchtobodyfont[20mm]\sans\bold U etex, (0, 100)) withcolor magenta ; draw thelabel(btex \switchtobodyfont

[NTG-context] Compile problem after update

2018-07-15 Thread Fabrice Couvreur
Hello, I just updated context standalone and this file does not compile anymore, but I do not see why. Thank you Fabrice \switchtobodyfont[11pt] \definelayout [noheader] [header=26pt, headerdistance=25pt, backspace=2cm, width=middle, topspace=\dimexpr

Re: [NTG-context] How to scale math with text?

2018-06-05 Thread Alan Braslau
wikified at > http://wiki.contextgarden.net/Font_Switching) > > "These quick font switches are meant for changing the font style, > alternative, or size of a few words: they do not change the bodyfont, > so they don't affect interline spacing or math font sizes. So, if you >

Re: [NTG-context] How to scale math with text?

2018-06-05 Thread Aditya Mahajan
ze of an entire paragraph, use \switchtobodyfont described below in Complete Font Change. However, it is fine to use them as style directives in setup commands, that is, using them as an option for style=... in any setup command that accepts style option. " Please feel free to

Re: [NTG-context] Strange behavior with cambria font

2018-04-21 Thread Wolfgang Schuster
ia cambria cambria.ttc1 fab@debian:~$ ## \switchtobodyfont[cambria] \starttext \input knuth \stoptext ___ If your question is of interest to others as

[NTG-context] Strange behavior with cambria font

2018-04-21 Thread Fabrice Couvreur
riaregular cambria cambria cambria.ttc1 fab@debian:~$ ## \switchtobodyfont[cambria] \starttext \input knuth \stoptext ___ If your question is o

Re: [NTG-context] Text overflowing on a figure included in a float

2018-04-09 Thread Fabrice Couvreur
> \mainlanguage[fr] > > or increasing the tolerance: > > % \setuptolerance[stretch,verytolerant] > > > Thank you >> Fabrice >> >> >> \usemodule[pgfplots] >> >> \pgfplotsset{compat=newest} >> >> \starttext >> \placefigure[right,none]{}{ &

Re: [NTG-context] Text overflowing on a figure included in a float

2018-04-08 Thread Hans Hagen
the tolerance: % \setuptolerance[stretch,verytolerant] Thank you Fabrice \usemodule[pgfplots] \pgfplotsset{compat=newest} \starttext \placefigure[right,none]{}{ \hbox{\framed{\switchtobodyfont[8pt] \starttikzpicture[/pgf/declare function={g(\x)=3*\x +7;},/pgf/declare function={f(\x)=-4*\x +1

[NTG-context] Text overflowing on a figure included in a float

2018-04-08 Thread Fabrice Couvreur
{\switchtobodyfont[8pt] \starttikzpicture[/pgf/declare function={g(\x)=3*\x +7;},/pgf/declare function={f(\x)=-4*\x +1;},/pgf/declare function={h(\x)=2*\x -5;}] \startaxis[ restrict x to domain=-20:20, xmax=20, xmin=-20, restrict y to domain=-25:30, ymax=30, ymin=-25, x=0.1cm, y=0.1cm, axis x

[NTG-context] Space between lines with mathematical writings

2018-03-17 Thread Fabrice Couvreur
Hello, When I write text with mathematics, I find that the space between two lines is not enough because the formulas overflow one over the other. How to correct this ? Thank you Fabrice \switchtobodyfont[asana,12pt] \definemixedcolumns [Mycolumns] [ n=2, separator=rule

[NTG-context] ! Argument of \chaptercmd has an extra }".

2018-03-06 Thread ????????
Dear list, There were a page setting of ConText as below, It seems be error. How can I fix it? Thanks very much! \def\chaptercmd#1#2{\hbox to \hsize{#2\hfill\switchtobodyfont[48pt]{% \color[darkgray]{#1}}\HeadOffset}} \setuphead[chapter][command=\chaptercmd

[NTG-context] tex error Argument of \titlecmd has an extra }

2018-03-06 Thread ????????
\setupfootertexts[text][][][][] \stopsetups % \setupheads[indentnext=yes] \definepagebreak[headpagebreak][yes, header, footer, odd] \setuphead[chapter,title][header=empty, style=\ssc, page=headpagebreak,] \def\HeadOffset{\hbox to -10mm{}} \def\chaptercmd#1#2{\hbox to \hsize{#2\hfil

Re: [NTG-context] Change of font size affects header text size, too

2018-02-08 Thread Procházka Lukáš Ing .
"Sec" - thus the text "\input knuth" is surrounded by \start ... \stop. How to change the bodyfont size of the running text only (ad-hoc in the middle of the document), without changing header text size? Use \switchtobodyfont[6pt]. Wolfgang -- Ing. Lukáš Procházka | mail

Re: [NTG-context] Change of font size affects header text size, too

2018-02-08 Thread Hans Hagen
e document), without changing header text size? \switchtobodyfont - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma

Re: [NTG-context] Change of font size affects header text size, too

2018-02-08 Thread Wolfgang Schuster
the middle of the document), without changing header text size? Use \switchtobodyfont[6pt]. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@

Re: [NTG-context] chapter setup with subtitle in margin

2018-01-24 Thread Mikael P. Sundqvist
has this indent. :-( > > > > Untested, but you have two spurious spaces in your code > > > > \define[2]\ChapterCmd{% > > \inouter{\framed[frame=off,align=flushleft]{% > >%\startlinecorrection > >\switchtobodyfont[rm,12pt] % <-- Here. Remove space before % >

Re: [NTG-context] chapter setup with subtitle in margin

2018-01-24 Thread Henning Hraban Ramm
ing. >> >> I could solve the subtitle placement with layers. >> >> But the chapter title still has this indent. :-( > > Untested, but you have two spurious spaces in your code > > \define[2]\ChapterCmd{% > \inouter{\framed[frame=off,align=flushleft]{% >

Re: [NTG-context] chapter setup with subtitle in margin

2018-01-24 Thread Aditya Mahajan
terCmd{% \inouter{\framed[frame=off,align=flushleft]{% %\startlinecorrection \switchtobodyfont[rm,12pt] % <-- Here. Remove space before % \structureuservariable{subtitle}}% %\stoplinecorrection }% << HERE: % was missing \framed[width=\textwidth,frame=off,

Re: [NTG-context] \vec{} arrow length?

2017-12-27 Thread Henri
d boring as we then need to > > patch specific elements of (each) hvariant and it falls in the > > category "hard to motivate myself for"). > > > > \showglyphs > > > > \starttext > >  \start > >  \dorecurse{50}{$\vec{\blackrule[width

Re: [NTG-context] \vec{} arrow length?

2017-12-27 Thread Alan Braslau
gt; \starttext > \start > \dorecurse{50}{$\vec{\blackrule[width=#1pt]}$\space}\unskip\par > \stop > \blank > \start > \switchtobodyfont [pagella] > \dorecurse{50}{$\vec{\blackrule[width=#1pt]}$\space}\unskip\par > \stop > \b

Re: [NTG-context] \vec{} arrow length?

2017-12-27 Thread Hans Hagen
yself for"). \showglyphs \starttext \start \dorecurse{50}{$\vec{\blackrule[width=#1pt]}$\space}\unskip\par \stop \blank \start \switchtobodyfont [pagella] \dorecurse{50}{$\vec{\blackrule[width=#1pt]}$\space}\unskip\par \stop \blank

Re: [NTG-context] definefallbackfamily and uppercasedoublestruck not working?

2017-11-25 Thread Hans Hagen
    Test: $\blackboard C$ or $\mathbb P$     \switchtobodyfont[pagella]     Test: $\blackboard C$ or $\mathbb P$     \stopTEXpage     \stoptext Just in case it helps, Pablo --

Re: [NTG-context] definefallbackfamily and uppercasedoublestruck not working?

2017-11-25 Thread Mikael P. Sundqvist
[mainface] [mm] [TeX Gyre Pagella Math] > [range={uppercasedoublestruck, 0x02102-0x02124}] > \definefontfamily [mainface] [mm] [Neo Euler] > \setupbodyfont[mainface,12pt] > \starttext > \startTEXpage[offset=3pt] > Test: $\blackboard C$ or $\mathbb P$ > > \switch

Re: [NTG-context] definefallbackfamily and uppercasedoublestruck not working?

2017-11-25 Thread Pablo Rodriguez
etupbodyfont[mainface,12pt] \starttext \startTEXpage[offset=3pt] Test: $\blackboard C$ or $\mathbb P$ \switchtobodyfont[pagella] Test: $\blackboard C$ or $\mathbb P$ \stopTEXpage \stoptext Just in case it helps, Pablo -- http://

Re: [NTG-context] definefallbackfamily and uppercasedoublestruck not working?

2017-11-25 Thread Mikael P. Sundqvist
m] [TeX Gyre Pagella Math] >> [range=uppercasedoublestruck] >> \definefontfamily [mainface] [mm] [Neo Euler] >> \setupbodyfont[mainface,12pt] >> \starttext >> \startTEXpage[offset=3pt] >> Test: $픺$ or $\utfchar{"1D53A}$ or $\blackboard C$ or $\mathbb C$ >> >> \sw

Re: [NTG-context] definefallbackfamily and uppercasedoublestruck not working?

2017-11-25 Thread Hans Hagen
] \starttext \startTEXpage[offset=3pt] Test: $픺$ or $\utfchar{"1D53A}$ or $\blackboard C$ or $\mathbb C$ \switchtobodyfont[pagella] Test: $픺$ or $\utfchar{"1D53A}$ or $\blackboard C$ or $\mathbb C$ \stopTEXpage \stoptext welcome to unicode ... what you're looking for is DOUBLE-STRUCK

Re: [NTG-context] definefallbackfamily and uppercasedoublestruck not working?

2017-11-24 Thread Henri
] Test: $픺$ or $\utfchar{"1D53A}$ or $\blackboard C$ or $\mathbb C$ \switchtobodyfont[pagella] Test: $픺$ or $\utfchar{"1D53A}$ or $\blackboard C$ or $\mathbb C$ \stopTEXpage \stoptext On Fri, 2017-11-24 at 13:07 +0100, Mikael P. Sundqvist wrote: > Hi! > > I use the Neo Euler which

[NTG-context] definefallbackfamily and uppercasedoublestruck not working?

2017-11-24 Thread Mikael P. Sundqvist
] \definefontfamily [mainface] [mm] [Neo Euler] \setupbodyfont[mainface,12pt] \starttext \startTEXpage[offset=3pt] Test: $\blackboard C$ or $\mathbb C$ \switchtobodyfont[pagella] Test: $\blackboard C$ or $\mathbb C$ \stopTEXpage \stoptex %%% I would expect doublestruck letters in the output on the first

Re: [NTG-context] Setting the footnote symbol

2017-11-17 Thread Pablo Rodriguez
] \PagellaRegular \startlocalfootnotes Text \startfootnote Note \stopfootnote\ More text \placelocalfootnotes \stoplocalfootnotes \stopframedtext \dorecurse{5}{\input zapf} \stoptext Or use \switchtobodyfont[nonexisting] (if you feel more confortable

Re: [NTG-context] Setting the footnote symbol

2017-11-16 Thread Idris Samawi Hamid ادريس سماوي حامد
ollowing way: \setupnote[footnote][textcommand={\PagellaRegularSmall\high}] Many thanks. This fixes the height, but we lose the styling of the reference symbol in the main text - see attached. I see. One of these commands should work: \setupnote[footnote][textcommand={\switchtobodyfont[pagella

Re: [NTG-context] Setting the footnote symbol

2017-11-16 Thread Pablo Rodriguez
ommand={\PagellaRegularSmall\high}] > > Many thanks. This fixes the height, but we lose the styling of the > reference symbol in the main text - see attached. I see. One of these commands should work: \setupnote[footnote][textcommand={\switchtobodyfont[pagella, 12pt]\high} \setupnote[footnote]

[NTG-context] Problems with setfirstline

2017-10-18 Thread Rik Kabel
]  \Setupbodyfont{\setupbodyfont[#1,11pt]} \define[1] \DisplayExample{\switchtobodyfont[#1]\getbuffer} \setupfirstline [alternative=line, style=\setfontfeature{smallcaps}] \setupinitial   [location=text,n=2,color=darkred] \setuphead  [chapter

Re: [NTG-context] Strange behavior with TikZ

2017-10-07 Thread Fabrice Couvreur
Hi Hans Sorry to insist, but I need to correct this anomaly for my documents that I give to students. If I compile with Context Standalone, it does not work, but maybe I do not do what you are suggesting : \placefigure[none,right]{}{% \hbox{\switchtobodyfont[8pt] Thanks Fabrice 2017-10-05 22

Re: [NTG-context] Strange behavior with TikZ

2017-10-05 Thread Fabrice Couvreur
HI Hans, like this ? \placefigure[none,right]{}{ \hbox{\switchtobodyfont[8pt]% Fabrice 2017-10-05 22:35 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > On 10/5/2017 7:26 PM, Fabrice Couvreur wrote: > > If I put any image, there is no problem : the title of the section is in >&g

Re: [NTG-context] Strange behavior with TikZ

2017-10-05 Thread Hans Hagen
On 10/5/2017 7:26 PM, Fabrice Couvreur wrote: If I put any image, there is no problem : the title of the section is in color and the text in black. With a graphic made with TikZ, the title and the text are in color. looks ok here \placefigure[none,right]{}{ \hbox{\switchtobodyfont[8pt

[NTG-context] Strange behavior with TikZ

2017-10-05 Thread Fabrice Couvreur
=magenta] \placefigure[none,right]{}{ \hbox{\switchtobodyfont[8pt] \starttikzpicture[/pgf/declare function={f(\x)=\x^2-3;},/pgf/declare function={g(\x)=-\x^2+2*\x+1;}] \startaxis[ restrict x to domain=-3:3, xmax=3, xmin=-3, restrict y to domain=-5:4, ymax=4, ymin=-5, x=1cm, y=0.5cm, axis x line

Re: [NTG-context] size of footnote numbers

2017-09-30 Thread Otared Kavian
typeset in a smaller type (via > \switchtobodyfont in a defined startstop). > > Now the author insists that their footnote numbers should have the same size > as in the body text. > Since the footnotes are mostly source annotations at the end, it makes some > sense. >

Re: [NTG-context] size of footnote numbers

2017-09-30 Thread Pablo Rodriguez
On 09/29/2017 01:34 PM, Henning Hraban Ramm wrote: > Ahoi, > > in my current book there are some quotations typeset in a smaller > type (via \switchtobodyfont in a defined startstop). > > Now the author insists that their footnote numbers should have the > same size as in t

[NTG-context] size of footnote numbers

2017-09-29 Thread Henning Hraban Ramm
Ahoi, in my current book there are some quotations typeset in a smaller type (via \switchtobodyfont in a defined startstop). Now the author insists that their footnote numbers should have the same size as in the body text. Since the footnotes are mostly source annotations at the end, it makes

Re: [NTG-context] line correction

2017-09-29 Thread Hans Hagen
On 9/29/2017 12:35 AM, mf wrote: Thank you Henri, a slightly modified version of your solution works! This is what I wanted to achieve: \setuplayout[grid=both] \setupquotation[before={\switchtobodyfont[9pt]}] \starttext \showgrid \input knuth \startlinecorrection[halfline] \startquotation

Re: [NTG-context] line correction

2017-09-29 Thread Hans Hagen
On 9/28/2017 11:47 PM, luigi scarso wrote: On Thu, Sep 28, 2017 at 11:30 PM, mf <mass...@fastwebnet.it> wrote: Thank you Henri. Now consider this: --- \setuplayout[grid=both] \setupquotation[before={\switchtobodyfont[9pt]}] \starttext \showgrid \input

Re: [NTG-context] line correction

2017-09-28 Thread Rik Kabel
! This is what I wanted to achieve: \setuplayout[grid=both] \setupquotation[before={\switchtobodyfont[9pt]}] \starttext \showgrid \input knuth \startlinecorrection[halfline] \startquotation   \input sapolsky \stopquotation \stoplinecorrection \input knuth %\vadjust pre{\blank[line]}% not line, but halfline

Re: [NTG-context] line correction

2017-09-28 Thread mf
Thank you Henri, a slightly modified version of your solution works! This is what I wanted to achieve: \setuplayout[grid=both] \setupquotation[before={\switchtobodyfont[9pt]}] \starttext \showgrid \input knuth \startlinecorrection[halfline] \startquotation   \input sapolsky \stopquotation

Re: [NTG-context] line correction

2017-09-28 Thread Henri
On Thu, 2017-09-28 at 23:30 +0200, mf wrote: > Thank you Henri. > > Now consider this: > --- > \setuplayout[grid=both] > \setupquotation[before={\switchtobodyfont[9pt]}] > > \starttext > \showgrid > > \input knuth > > \startlin

Re: [NTG-context] line correction

2017-09-28 Thread Henri
On Thu, 2017-09-28 at 23:30 +0200, mf wrote: > Thank you Henri. > > Now consider this: > --- > \setuplayout[grid=both] > \setupquotation[before={\switchtobodyfont[9pt]}] > > \starttext > \showgrid > > \input knuth > > \startlin

Re: [NTG-context] line correction

2017-09-28 Thread luigi scarso
On Thu, Sep 28, 2017 at 11:30 PM, mf <mass...@fastwebnet.it> wrote: > Thank you Henri. > > Now consider this: > --- > \setuplayout[grid=both] > \setupquotation[before={\switchtobodyfont[9pt]}] > > \starttext > \showgrid > > \input

Re: [NTG-context] line correction

2017-09-28 Thread mf
Thank you Henri. Now consider this: --- \setuplayout[grid=both] \setupquotation[before={\switchtobodyfont[9pt]}] \starttext \showgrid \input knuth \startlinecorrection[halfline] \startquotation   \input sapolsky \stopquotation \stoplinecorrection \input knuth

Re: [NTG-context] line correction

2017-09-28 Thread Henri
On Thu, 2017-09-28 at 16:21 +0200, MF wrote: > Hello list,  > I would like ConTeXt to snap normal text to grid after a quotation. > This example does not work: > > -- > \setupquotation[before={\switchtobodyfont[9pt]}] > > \starttext >

[NTG-context] line correction

2017-09-28 Thread MF
Hello list, I would like ConTeXt to snap normal text to grid after a quotation. This example does not work: -- \setupquotation[before={\switchtobodyfont[9pt]}] \starttext \showgrid \input knuth \startlinecorrection[halfline] \startquotation \input sapolsky \stopquotation

Re: [NTG-context] Background with rounded corners (Metafun)

2017-09-08 Thread Meer, Hans van der
> \defineframedtext > [FramedText] > [ > offset=0.6em, >toffset=\lineheight, >background=color, >backgroundcolor=MyColorA, >foregroundstyle={\switchtobodyfont[10pt]}, >align=verytolerant, >frame=off, >corner=01, > ] > > > \showframe &g

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
regroundcolor=white, > background=color, > backgroundcolor=MyColorB, > ] > > > \defineframedtext > [FramedText] > [ > offset=0.6em, > toffset=\lineheight, > background=color, > backgroundcolor=MyColorA, >

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Pablo Rodriguez
ackground=color, backgroundcolor=MyColorB, ] \defineframedtext [FramedText] [ offset=0.6em, toffset=\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[10pt]}, align=verytolerant, alte

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
Hi Aditya, I tried : \defineframedtext [FramedText] [ offset=0.6em, toffset=\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[10pt]}, align=verytolerant, alternative=serried, % text wrapped frame=off, corner=00

Re: [NTG-context] MS Office Chinese fonts in ConTeXt

2017-08-27 Thread Hans Hagen
\eTD\bTD \ss 我能吞下玻璃而不伤身体 \eTD \eTR \bTR\bTD 华文仿宋 \eTD\bTD \tt STFANGSO.TTF \eTD\bTD STFangsong \eTD\bTD \switchtobodyfont[mschinese-light]我能吞下玻璃而不伤身体 \eTD \eTR \eTABLEbody There is no need for grouping. You switch to sans with \ss as it's part of the typeface specification. For other

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
le=\bfx, >> foregroundcolor=white, >> background=color, >> backgroundcolor=MyColorB, >> ] >> >> \defineframedtext >> [FramedText] >> [ >> offset=0.6em, >> toffset=\lineheight, >> background

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