Re: [NTG-context] \setuptyping and \type{}

2010-12-04 Thread Khaled Hosny
> \setuptyping[before=\framed] > > You can try to convince Hans to add a command key to \setuptype, untill > then you can use this: > > \unexpanded\def\mytype{\groupedcommand{\setgroupedtype\inframed}{\relax}} > > \starttext > one \mytype{\two} three > \stoptext T

Re: [NTG-context] \setuptyping and \type{}

2010-12-03 Thread Wolfgang Schuster
then you can use this: \unexpanded\def\mytype{\groupedcommand{\setgroupedtype\inframed}{\relax}} \starttext one \mytype{\two} three \stoptext „before“ and „after“ keys are used only for environments to change the spacing (e.g. before=\blank) at the begin and end of a environment or to frame it

Re: [NTG-context] Caption textcommand option

2010-10-19 Thread Wolfgang Schuster
meter\c!spaceafter}{\blank[\floatcaptionparameter\c!spaceafter]}} \starttext This is some text with a reference to a table named \about[tab:table]. \placetable[here][tab:table]{My caption.}{...} \setupcaptions[textcommand=\groupedcommand{}{.}] This is some text with a reference to a table named \a

Re: [NTG-context] \setfontfeature-problem

2010-10-13 Thread Michael Murphy
On 13/10/10 12:48, Andreas Harder wrote: Hi all, please have a look at my example: \definefontfeature[default][default][mode=node,onum=yes] \definefontfeature[sc][default][smcp=yes] \def\sc{\groupedcommand{\setfontfeature{sc}}{}} \setupbodyfont[palatino] \starttext \startTEXpage[offset=1ex

[NTG-context] \setfontfeature-problem

2010-10-13 Thread Andreas Harder
Hi all, please have a look at my example: \definefontfeature[default][default][mode=node,onum=yes] \definefontfeature[sc][default][smcp=yes] \def\sc{\groupedcommand{\setfontfeature{sc}}{}} \setupbodyfont[palatino] \starttext \startTEXpage[offset=1ex] {\sc Abc} 0369 \crlf \sc{Abc} 0369

Re: [NTG-context] \bf disturbs flowing of text around image

2010-08-29 Thread Wolfgang Schuster
.html You can redefine \bold (it’s just a alternative command for \bf) to \define\bold{\dontleavehmode\groupedcommand\bf\donothing} Wolfgang ___ If your question is of interest to others as well, please add an entry to

Re: [NTG-context] Trouble with customising section heads

2010-08-15 Thread Elias Oltmanns
shouldn't be; >> MkIV \currentheadnumber seems to be 0 all the time. [...] >> >> %% >> \setuphead[section][textcommand=\Myhead,numbercommand=\Mynum] > > \setuphead[section][textcommand=\gobbleoneargument,numbercommand=\groupedcommand{Sect > }{}] S

Re: [NTG-context] Trouble with customising section heads

2010-08-10 Thread Elias Oltmanns
e, that something is wrong with my setup >> of ConTeXt. But I just did another >> % ./first-setup.sh --context=current >> >> Thanks in advance for any hint, >> >> Elias >> >> >> %% >> \setuphead[section][textcommand=\Myhead,numbercommand=\Myn

Re: [NTG-context] Trouble with customising section heads

2010-08-10 Thread Wolfgang Schuster
extcommand=\Myhead,numbercommand=\Mynum] \setuphead[section][textcommand=\gobbleoneargument,numbercommand=\groupedcommand{Sect }{}] Wolfgang ___ If your question is of interest to others as well, please add an entry to

Re: [NTG-context] \nocap does not work

2010-04-12 Thread Hans Hagen
On 12-4-2010 7:26, Wolfgang Schuster wrote: Am 12.04.10 15:47, schrieb Marco: \unexpanded\def\notsmallcapped{\groupedcommand{\setcharactercasing[\plustwo]\char\zerocount}{}} added

Re: [NTG-context] \nocap does not work

2010-04-12 Thread Wolfgang Schuster
smallcapitals so here is the MkIV defintion for \nocap. \unexpanded\def\notsmallcapped{\groupedcommand{\setcharactercasing[\plustwo]\char\zerocount}{}} \starttext \cap {People that have gathered their \cap {capital} at the cost of other people are not seldom \nocap {decapitated} in revolutionary

Re: [NTG-context] color problem with columns

2010-03-28 Thread Wolfgang Werners-Lucchini
#1} > > but i think this is better > > \setupcolors[state=start] > > \definelabel >[Vers] >[headstyle=bolditalic, > headcolor=darkgreen, > command=\groupedcommand\dontleavehmode\space] > > \starttext > \startcolumns > text\par\dorecurse{50}

Re: [NTG-context] color problem with columns

2010-03-28 Thread Wolfgang Schuster
{\increment\V \dontleavehmode{\color[darkgreen]\rm\bi \V} #1} but i think this is better \setupcolors[state=start] \definelabel [Vers] [headstyle=bolditalic, headcolor=darkgreen, command=\groupedcommand\dontleavehmode\space] \starttext \startcolumns text\par\dorecurse{50}{\Vers Dies ist

Re: [NTG-context] Microtype in ConTeXt

2010-03-25 Thread Wolfgang Schuster
Am 25.03.10 16:21, schrieb Hans Hagen: Who about something like (pseudocode) \definecharacterkerning[letterspace] \def\letterspace {\bgroup \dosingleempty\doletterspace} \def\doletterspace[#1]#2% use \groupedcommand? {\iffirstargument \setupcharacterkerning[letterspace][factor=\ctxlua

Re: [NTG-context] Microtype in ConTeXt

2010-03-25 Thread Hans Hagen
u can just define a command that switches the font and enables intercharacter spacing, something \definecharacterkerning[mykerning] \setupcharacterkerning[mykerning][\c!factor=.125] \def\MySc {\groupedcommand {\sc\setcharacterkerning[mykerning]} {}} Who about something like (pseud

Re: [NTG-context] Microtype in ConTeXt

2010-03-25 Thread Wolfgang Schuster
that switches the font and enables intercharacter spacing, something \definecharacterkerning[mykerning] \setupcharacterkerning[mykerning][\c!factor=.125] \def\MySc {\groupedcommand {\sc\setcharacterkerning[mykerning]} {}} Who about something like (pseudocode) \definecharacterke

Re: [NTG-context] Microtype in ConTeXt

2010-03-25 Thread Hans Hagen
microtype does (nor time to look into it) but you can just define a command that switches the font and enables intercharacter spacing, something \definecharacterkerning[mykerning] \setupcharacterkerning[mykerning][\c!factor=.125] \def\MySc {\groupedcommand {\sc\setcharacterkerning[mykerning

Re: [NTG-context] groupedcommand italic and upright (MkIV)

2010-02-24 Thread Steffen Wolfrum
Am 24.02.2010 um 18:10 schrieb Wolfgang Schuster: > Am 24.02.10 18:02, schrieb Steffen Wolfrum: >> Hi, >> >> in MkII the slash became set upright, in MkIV it stays italic: >> >> \def\Textit{\groupedcommand\it\/} >> \def\Textmr{\groupedcommand\mr\/} >

Re: [NTG-context] groupedcommand italic and upright (MkIV)

2010-02-24 Thread Wolfgang Schuster
Am 24.02.10 18:02, schrieb Steffen Wolfrum: Hi, in MkII the slash became set upright, in MkIV it stays italic: \def\Textit{\groupedcommand\it\/} \def\Textmr{\groupedcommand\mr\/} \mr is for math, you want \tf Wolfgang

[NTG-context] groupedcommand italic and upright (MkIV)

2010-02-24 Thread Steffen Wolfrum
Hi, in MkII the slash became set upright, in MkIV it stays italic: \def\Textit{\groupedcommand\it\/} \def\Textmr{\groupedcommand\mr\/} \definetextmodediscretionary : {\prewordbreak\discretionary{\kern.05em\Textmr/}{}{\kern.05em\Textmr/}\kern.05em\prewordbreak}% ist schon Textmr = aufrecht

Re: [NTG-context] \groupedcommand missing bracket

2010-02-19 Thread Aditya Mahajan
On Fri, 19 Feb 2010, Steffen Wolfrum wrote: Hi, does someone know what's going wrong here? \definestartstop[Literature] [before={\startcolumns[n=1]},after={\stopcolumns}] \define\Colorit% {\groupedcommand{\color[blue]\em}\/} \starttext This works: test \Colorit{color} text. This d

[NTG-context] \groupedcommand missing bracket

2010-02-19 Thread Steffen Wolfrum
Hi, does someone know what's going wrong here? \definestartstop[Literature] [before={\startcolumns[n=1]},after={\stopcolumns}] \define\Colorit% {\groupedcommand{\color[blue]\em}\/} \starttext This works: test \Colorit{color} text. This dont't: \startLiterature test \Colorit{c

Re: [NTG-context] Example markup

2010-02-12 Thread Bernhard Rosensteiner
gt; > \define[1]\example{{\tfx#1}} > > a better solution is > > \define\example{\groupedcommand{\tfx}{}} > > because you can now write > > \example{...} and {\example ...} > > > The best way is to use \definealternativestyle, e.g. > > \definealternatives

Re: [NTG-context] Example markup

2010-02-12 Thread Wolfgang Schuster
Am 12.02.10 18:59, schrieb Bernhard Rosensteiner: maybe you mean something like that: \define[1]\example{\tfx#1\tfa} brr, when you want to define it in this way you should use grouping, e.g. \define[1]\example{{\tfx#1}} a better solution is \define\example{\groupedcommand{\tfx

Re: [NTG-context] colors without \definecolor

2010-02-08 Thread Hans Hagen
On 8-2-2010 9:55, Wolfgang Schuster wrote: Am 08.02.10 09:40, schrieb Hans Hagen: D’oh. I looked in the source and missed this but I wonder if this had been always the case because the manuals {and the wiki) mention only \color[name]{...}. all commands that use \groupedcommand have that

Re: [NTG-context] colors without \definecolor

2010-02-08 Thread Wolfgang Schuster
Am 08.02.10 09:40, schrieb Hans Hagen: D’oh. I looked in the source and missed this but I wonder if this had been always the case because the manuals {and the wiki) mention only \color[name]{...}. all commands that use \groupedcommand have that property But used \color always

Re: [NTG-context] colors without \definecolor

2010-02-08 Thread Hans Hagen
because the manuals {and the wiki) mention only \color[name]{...}. all commands that use \groupedcommand have that property - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH

Re: [NTG-context] Calligraphic letters in Mark IV

2010-01-24 Thread Aditya Mahajan
On Sun, 24 Jan 2010, Hans Hagen wrote: On 22-1-2010 19:20, Wolfgang Schuster wrote: \unexpanded\def\calligraphic{\ifmmode\expandafter\mathscript \fi} to math-ini.mkiv? probably something \unexpanded\def\calligraphic{\groupedcommand{... then but lets see what aditya thinks of it ... I

Re: [NTG-context] Calligraphic letters in Mark IV

2010-01-24 Thread Hans Hagen
On 22-1-2010 19:20, Wolfgang Schuster wrote: \unexpanded\def\calligraphic{\ifmmode\expandafter\mathscript \fi} to math-ini.mkiv? probably something \unexpanded\def\calligraphic{\groupedcommand{... then but lets see what aditya thinks of it ... Hans

[NTG-context] \wordright{…} and hyphens

2009-12-20 Thread Andreas Harder
Hi, \wordright{something} don’t like it if the preceding line have a hyphenated word. It seems to work if one changes \allowbreak to hskip\zeropoint in the macro-definition. Here an example: \mainlanguage[de] % \unprotect % \def\dowordright[#1]% % {% don't change %\groupedco

Re: [NTG-context] Heros condensed and Font switching

2009-11-23 Thread Wolfgang Schuster
x Gyre Heros] \definesimplefonttypeface[excelfont][TeX Gyre Heros][weight=condensed] % will be width=condensed in the next release \definesimplefont[excelformat][TeX Gyre Heros][weight=condensed,alternative=bold] \define[1]\XLF{\groupedcommand{\excelformat}{}} \setuptables[bodyfont=excelfont] \startte

[NTG-context] \setuptype[style=...] and a feature request

2009-07-20 Thread Peter Münster
Hello, The style command of \setuptype is executed 2 times: \setuptype[style=X] \starttext \type{bla} \stoptext Feature request: \setuptype[before=..., after=...] (today I use this workaround: \setuptype[style=\groupedcommand{...}{...}] ) Cheers, Peter -- Contact information: http

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Wolfgang Schuster
] [ZhMonoItalic] \definefontsynonym [ZhMonoBoldItalic] [name:AdobeHeitiStd-Regular] \definefont [ZhMonoBoldItalic] [ZhMonoBoldItalic] \def\domyzhfont{\getvalue{Zh\fontstringA\fontstylesuffix}} %\def\myzhfont{\groupedcommand{\pushcurrentfont\domyzhfont} {\popcurrentfont}} \def

Re: [NTG-context] Let's Polish the math!

2009-03-17 Thread Hans Hagen
gs are possible with start/stoplanguagespecifics but it's broken :-( \startlanguagespecifics[sl] \setuphead [chapter,section,subsection] [numbercommand=\groupedcommand{}{.}] \stoplanguagespecifics Hello Wolfgang, I was often tempted to do that (in some less fancy way than with grou

Re: [NTG-context] Let's Polish the math!

2009-03-17 Thread Mojca Miklavec
t; will start appearing in my old documents :) >> :) :) :) > > > Let's hope the stopper key for \setuphead will work in MkIV. > > Language depends settings are possible with start/stoplanguagespecifics > but it's broken :-( > > \startlanguagespecifics[sl

Re: [NTG-context] Let's Polish the math!

2009-03-17 Thread Wolfgang Schuster
roken :-( \startlanguagespecifics[sl] \setuphead [chapter,section,subsection] [numbercommand=\groupedcommand{}{.}] \stoplanguagespecifics \starttext \section{Knuth} \input knuth \page \mainlanguage[sl] \section{Tufte} \input tufte \stoptext Wolfgang _

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread luigi scarso
would define a new quote command > with > >  \definedelimitedtext[quotesmall][quote] > > but you above code can't be achieved with this because the results are > either > small text or text with quotes at both sides but not a combination of them. > > How about: \define\quotesm

Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-05 Thread Wolfgang Schuster
with this because the results are either small text or text with quotes at both sides but not a combination of them. How about: \define\quotesmall{\groupedcommand{\quote\small}{}} Wolfgang ___ If your question

Re: [NTG-context] 1/2 symbol

2009-03-04 Thread Wolfgang Schuster
? Another way is to use the 'frac' feature. \definefontfeature[frac][default][script=latn,frac=yes] \definefont[minion][name:minionproregular*default] \def\utffrac{\groupedcommand{\setfontfeature{frac}}{}} \starttext \minion 1/2 \utffrac{1/2} 1/2 \utffrac{12345/6789} 12345/6789

Re: [NTG-context] Content head

2009-01-28 Thread Wolfgang Schuster
d=\Vortrag ] \definehead[contenthead][title] \starttext \contenthead{Inhaltsverzeichnis} \placecontent \chapter{Bla} blub \stoptext But the content head is still prefixed with 'Vortrag:'. What is the solution for this? \setuphead [chapter] [numbercom

[NTG-context] replacing words by underlines

2009-01-24 Thread Alan Stone
}}} \definetextbackground[underline][% location=text, alternative=1, background=, frame=off] \def\UnderlineC{% \groupedcommand {\starttextbackground[underline]} {\stoptextbackground}} \starttext Thus, I came to \UnderlineA{the conclusion} that the designer of a new

Re: [NTG-context] font style, font case question

2008-11-23 Thread luigi scarso
On Sun, Nov 23, 2008 at 7:12 AM, Yue Wang <[EMAIL PROTECTED]> wrote: > Hi, > >> 3. In a many OpenType fonts you could get small caps with >>the smcp feature, to use it redefine the \sc command to >>\def\sc{\groupedcommand{\setfontfeature{smallcaps}}{}}. > &

Re: [NTG-context] font style, font case question

2008-11-22 Thread Yue Wang
Hi, > 3. In a many OpenType fonts you could get small caps with >the smcp feature, to use it redefine the \sc command to >\def\sc{\groupedcommand{\setfontfeature{smallcaps}}{}}. I can enable a feature using the \setfontfeature, how can I disable a feature? like \setfontfeat

Re: [NTG-context] font style, font case question

2008-11-22 Thread Wolfgang Schuster
tch, 3. In a many OpenType fonts you could get small caps with the smcp feature, to use it redefine the \sc command to \def\sc{\groupedcommand{\setfontfeature{smallcaps}}{}}. Wolfgang ___ If your question is o

[NTG-context] subsección demasiado larga

2008-11-21 Thread mpg-yahoo
pheadtext[en][pubs=Referencias] \def\Dot#1{#1.} \setuphead[title][part, style={\bfa}, before={\begingroup\setupbodyfont[20pt]}, after={\centerline{\tfa} \bigskip\bigskip\endgroup}] \setuphead[chapter][style={\bfd}, ,numbercommand=\Dot%,numbercommand={\groupedcommand{}{.}}

Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-23 Thread Hans Hagen
ecently >>> trying to >>> make TeX Gyre fonts work with as few definitions as possible. Here is >>> the list >>> of problems I've encountered: >>> >>> 1. No small-caps in any font (gyre fonts doesn't have that yet?) >> >>

Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-23 Thread Wolfgang Schuster
gt; I've started to experiment with MkIV in ConTeXt minimals recently trying >>> to >>> make TeX Gyre fonts work with as few definitions as possible. Here is the >>> list >>> of problems I've encountered: >>> >>> 1. No small-caps in any font

Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-23 Thread Aditya Mahajan
the list of problems I've encountered: 1. No small-caps in any font (gyre fonts doesn't have that yet?) \usetypescript[palatino] \setupbodyfont[palatino] \def\os{\groupedcommand{\setfontfeature{oldstyle}}{}} Shouldn't that be just \def\os{\setufontfeature{oldstyle}} Aditya \

Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-22 Thread Wolfgang Schuster
've encountered: > > 1. No small-caps in any font (gyre fonts doesn't have that yet?) \usetypescript[palatino] \setupbodyfont[palatino] \def\os{\groupedcommand{\setfontfeature{oldstyle}}{}} \starttext 0123456789 {\os 0123456789} \stoptext Test the other fonts by yourself. > 2.

Re: [NTG-context] Equivalent of LaTeX \cancel? and Thanks!

2008-10-14 Thread Wolfgang Schuster
is anyway since I wanted to say thanks. > > > \startuseMPgraphic{mpos:par:cancel} > for i=1 upto nofmultipars : > draw > .2[llcorner multipars[i],ulcorner multipars[i]] -- > .2[urcorner multipars[i],lrcorner multipars[i]] ; > endfor ;

Re: [NTG-context] Equivalent of LaTeX \cancel? and Thanks!

2008-10-12 Thread Hans Hagen
ars[i],lrcorner multipars[i]] ; endfor ; \stopuseMPgraphic \definetextbackground[cancel][location=text,mp=mpos:par:cancel] \def\startcancel{\starttextbackground[cancel]} \def\stopcancel {\stoptextbackground} \def\cancel {\groupedcommand\startcancel\stopcancel} however, this is kind of fuzzy when y

Re: [NTG-context] XeTeX old style numerals

2008-10-11 Thread Mohamed Bana
elated to the fact that good old > tex and the cm fonts have oldstyles in some math font and therefore some > effort is needed to use it in text > > we might consider mapping \os to something > > \def\os{\groupedcommand{\setfontfeature{oldstyle}}{}} > > which in mki

Re: [NTG-context] Formatting TOC

2008-10-10 Thread Wolfgang Schuster
On Sun, Sep 28, 2008 at 11:54 PM, Diego Depaoli <[EMAIL PROTECTED]> wrote: > 2008/9/27 Wolfgang Schuster <[EMAIL PROTECTED]>: >> >> \setuplabeltext[en][chapter=Chapter~] >> >> \setuplist[chapter][numbercommand=\groupedcommand{\labeltext{chapter}} >> {

Re: [NTG-context] Formatting TOC

2008-09-28 Thread Diego Depaoli
2008/9/27 Wolfgang Schuster <[EMAIL PROTECTED]>: > > \setuplabeltext[en][chapter=Chapter~] > > \setuplist[chapter][numbercommand=\groupedcommand{\labeltext{chapter}} > {},width=2.5cm] Simply perfect!!! A lot of than

Re: [NTG-context] Formatting TOC

2008-09-27 Thread Wolfgang Schuster
Am 26.09.2008 um 13:21 schrieb Mikael Persson: > Dear Diego, > > Try > > \def\chaplistcom#1{Chapter~#1} > \setuplist[chapter][ > numbercommand=\chaplistcom, > ] \setuplabeltext[en][chapter=Chapter~] \setuplist[chapter][numbercommand=\groupedcommand{\labeltext{c

Re: [NTG-context] hyphenation blues

2008-09-24 Thread Hans Hagen
Steffen Wolfrum wrote: > > Am 24.09.2008 um 17:28 schrieb Taco Hoekwater: > >> Steffen Wolfrum wrote: >>> >>> ! You can't use `\end' in internal vertical mode. >>> \normalend >> >> Jikes. Looks like that is because \color is

Re: [NTG-context] hyphenation blues

2008-09-24 Thread Steffen Wolfrum
Am 24.09.2008 um 17:28 schrieb Taco Hoekwater: > Steffen Wolfrum wrote: >> >> ! You can't use `\end' in internal vertical mode. >> \normalend > > Jikes. Looks like that is because \color is a \groupedcommand itself. > This works for this test file (and h

Re: [NTG-context] hyphenation blues

2008-09-24 Thread Hans Hagen
Steffen Wolfrum wrote: > Am 24.09.2008 um 12:57 schrieb Taco Hoekwater: > >> Steffen Wolfrum wrote: >>> Am 24.09.2008 um 10:39 schrieb Taco Hoekwater: >>> >>>> Steffen Wolfrum wrote: >>>>> \def\Textit% >>>>> {\groupedcomma

Re: [NTG-context] hyphenation blues

2008-09-24 Thread Taco Hoekwater
Steffen Wolfrum wrote: > > ! You can't use `\end' in internal vertical mode. > \normalend Jikes. Looks like that is because \color is a \groupedcommand itself. This works for this test file (and hopefully for everything else): \def\Colorit% {\groupedcommand {

Re: [NTG-context] hyphenation blues

2008-09-24 Thread Steffen Wolfrum
Am 24.09.2008 um 12:57 schrieb Taco Hoekwater: > Steffen Wolfrum wrote: >> Am 24.09.2008 um 10:39 schrieb Taco Hoekwater: >> >>> >>> Steffen Wolfrum wrote: >>>> \def\Textit% >>>> {\groupedcommand\em\/} >>> Try this: >>> &

Re: [NTG-context] hyphenation blues

2008-09-24 Thread Taco Hoekwater
Steffen Wolfrum wrote: > Am 24.09.2008 um 10:39 schrieb Taco Hoekwater: > >> >> Steffen Wolfrum wrote: >>> \def\Textit% >>> {\groupedcommand\em\/} >> Try this: >> >> \define\Colorit% >> {\groupedcommand{\color[blue]\em}\/} > >

Re: [NTG-context] hyphenation blues

2008-09-24 Thread Taco Hoekwater
Steffen Wolfrum wrote: > > \def\Textit% > {\groupedcommand\em\/} > Try this: \define\Colorit% {\groupedcommand{\color[blue]\em}\/} Best wishes, Taco ___ If your question is of interest to ot

Re: [NTG-context] hyphenation blues

2008-09-24 Thread Steffen Wolfrum
Am 24.09.2008 um 10:39 schrieb Taco Hoekwater: > > > Steffen Wolfrum wrote: >> \def\Textit% >> {\groupedcommand\em\/} > > Try this: > > \define\Colorit% > {\groupedcommand{\color[blue]\em}\/} tried it ..

[NTG-context] hyphenation blues

2008-09-24 Thread Steffen Wolfrum
Hi, please have a look at the following unfairness: \mainlanguage[en] \enableregime[utf] \showframe \setupcolors[state=start] \def\Textit% {\groupedcommand\em\/} \define[1]\Colorit% {\color[blue]{\groupedcommand\em\/ #1}} \starttext text text text text text text text text text text text

Re: [NTG-context] how to color italics?

2008-09-22 Thread Steffen Wolfrum
italics, while ... >> >> \def\Colorit{\strut\groupedcommand\it\color[magenta]\/} >> >> ... gives an error. >> >> >> Someone can help? >> >> >> St. > > You want your command to take an argument, so you have to mention that > argument i

Re: [NTG-context] how to color italics?

2008-09-22 Thread Aditya Mahajan
On Mon, 22 Sep 2008, Taco Hoekwater wrote: > Aditya Mahajan wrote: >> On Mon, 22 Sep 2008, Taco Hoekwater wrote: >> >>> Steffen Wolfrum wrote: >>>> But this above never closes the italics, while ... >>>> >>>> \def\Colorit{\strut\grou

Re: [NTG-context] how to color italics?

2008-09-22 Thread Taco Hoekwater
Aditya Mahajan wrote: > On Mon, 22 Sep 2008, Taco Hoekwater wrote: > >> Steffen Wolfrum wrote: >>> But this above never closes the italics, while ... >>> >>> \def\Colorit{\strut\groupedcommand\it\color[magenta]\/} >>> >>> ... gives an er

Re: [NTG-context] how to color italics?

2008-09-22 Thread Steffen Wolfrum
italics, while ... >> >> \def\Colorit{\strut\groupedcommand\it\color[magenta]\/} >> >> ... gives an error. >> >> >> Someone can help? >> >> >> St. > > You want your command to take an argument, so you have to mention that > argument in

Re: [NTG-context] how to color italics?

2008-09-22 Thread Steffen Wolfrum
Am 22.09.2008 um 13:48 schrieb Taco Hoekwater: > Steffen Wolfrum wrote: >> >> But this above never closes the italics, while ... >> >> \def\Colorit{\strut\groupedcommand\it\color[magenta]\/} >> >> ... gives an error. >> >> >> Someone can

Re: [NTG-context] how to color italics?

2008-09-22 Thread Aditya Mahajan
On Mon, 22 Sep 2008, Taco Hoekwater wrote: > Steffen Wolfrum wrote: >> >> But this above never closes the italics, while ... >> >> \def\Colorit{\strut\groupedcommand\it\color[magenta]\/} >> >> ... gives an error. >> >> >> Someone can help

Re: [NTG-context] how to color italics?

2008-09-22 Thread Thomas A. Schmitz
On Sep 22, 2008, at 1:24 PM, Steffen Wolfrum wrote: > It should be something like \Colorit{this} example: > > \def\Colorit{\it\color[magenta]} > > > But this above never closes the italics, while ... > > \def\Colorit{\strut\groupedcommand\it\color[magenta]\/

Re: [NTG-context] how to color italics?

2008-09-22 Thread Taco Hoekwater
Steffen Wolfrum wrote: > > But this above never closes the italics, while ... > > \def\Colorit{\strut\groupedcommand\it\color[magenta]\/} > > ... gives an error. > > > Someone can help? Worryingly lowlevel: \def\emphasistypeface{\it\color[m

Re: [NTG-context] how to color italics?

2008-09-22 Thread Steffen Wolfrum
It should be something like \Colorit{this} example: \def\Colorit{\it\color[magenta]} But this above never closes the italics, while ... \def\Colorit{\strut\groupedcommand\it\color[magenta]\/} ... gives an error. Someone can help? St. Am 22.09.2008 um 11:09 schrieb Steffen Wolfrum: >

Re: [NTG-context] XeTeX old style numerals

2008-09-20 Thread Hans Hagen
the latin modern font when I try to use \os. Small caps >>> are >>> working fine. \os is kind of special because it's related to the fact that good old tex and the cm fonts have oldstyles in some math font and therefore some effort is needed to use it in text we m

[NTG-context] \Word broken

2008-07-29 Thread Matthias Wächter
problem: \Word does the same as \Words (checked on live.contextgarden). > Any hints? This is the respective code from core-spa.mkiv, and it is obviously broken as it defines \Words to be the same as \Word (and it defines \Word wrongly in the first place). […] \def\WORD{\groupedcommand{\setchara

Re: [NTG-context] Bug in \underbar ?

2008-07-23 Thread Wolfgang Schuster
[location=text,alternative=1,background=,frame=off] \definestartstop [underline] [before={\starttextbackground[underline]}, after=\stoptextbackground] \def\underline{\groupedcommand{\starttextbackground[underline]}{\stoptextbackground}} \setuphead[section][textcommand

Re: [NTG-context] \setupitemize[afterhead=...] not working

2008-06-24 Thread Wolfgang Schuster
On Tue, Jun 24, 2008 at 1:34 PM, Peter Münster <[EMAIL PROTECTED]> wrote: > On Tue, Jun 24 2008, Wolfgang Schuster wrote: > >> > \setupitemize[headstyle=\bf\groupedcommand{}{:}, width=5em, distance=1em] >> > \starttext >> > \startitemize >> > \txt{S

Re: [NTG-context] \setupitemize[afterhead=...] not working

2008-06-24 Thread Peter Münster
On Tue, Jun 24 2008, Wolfgang Schuster wrote: > > \setupitemize[headstyle=\bf\groupedcommand{}{:}, width=5em, distance=1em] > > \starttext > > \startitemize > > \txt{Short} > > \input tufte > > \txt{Very very very long} > > \input tufte > > \stopi

Re: [NTG-context] \setupitemize[afterhead=...] not working

2008-06-24 Thread Wolfgang Schuster
; > Ok, so afterhead applies only to the \head command. I've chosen \txt{}, > because I need something like this: > > \setupitemize[headstyle=\bf\groupedcommand{}{:}, width=5em, distance=1em] > \starttext > \startitemize > \txt{Short} > \input tufte > \txt{Very ver

Re: [NTG-context] \setupitemize[afterhead=...] not working

2008-06-24 Thread Peter Münster
hing like this: \setupitemize[headstyle=\bf\groupedcommand{}{:}, width=5em, distance=1em] \starttext \startitemize \txt{Short} \input tufte \txt{Very very very long} \input tufte \stopitemize \stoptext Should \head better be used for this purpose? And if yes, how? Cheers, Peter -- http://pmrb.f

Re: [NTG-context] \setupitemize[afterhead=...] not working

2008-06-23 Thread Peter Münster
On Mon, Jun 23 2008, Wolfgang Schuster wrote: > > The parameter "afterhead" seems to be ignored (MKII and MKIV): > > There is no \head in your numeration. Indeed, but "headstyle" applies nevertheless. > > \setupitemize[afterhead=:] > &g

Re: [NTG-context] \setupitemize[afterhead=...] not working

2008-06-23 Thread Wolfgang Schuster
On Mon, Jun 23, 2008 at 2:43 PM, Peter Münster <[EMAIL PROTECTED]> wrote: > Hello, > > The parameter "afterhead" seems to be ignored (MKII and MKIV): There is no \head in your numeration. > \setupitemize[afterhead=:] Try: \def\aftercolon{\groupedcommand{}

Re: [NTG-context] quotation/blockquote bug

2007-12-27 Thread Wolfgang Schuster
imitedtextparameter\c!location}{\v!paragraph, > > \v!margin}% \dodelimitedtextpar\dodelimitedtexttxt}} > > > > \unexpanded\def\dodelimitedtextpar > > {\dohandleleftdelimitedtext\c!left\relax > >\groupedcommand > > \donothing &

Re: [NTG-context] quotation/blockquote bug

2007-12-27 Thread Idris Samawi Hamid
!font > {\dofontdrivendelimited} > {\doifinsetelse{\delimitedtextparameter\c!location}{\v!paragraph, > \v!margin}% \dodelimitedtextpar\dodelimitedtexttxt}} > > \unexpanded\def\dodelimitedtextpar > {\dohandleleftdelimitedtext\c!left\relax >\groupedcommand > \

Re: [NTG-context] quotation/blockquote bug

2007-12-27 Thread Wolfgang Schuster
rameter\c!method}\s!font {\dofontdrivendelimited} {\doifinsetelse{\delimitedtextparameter\c!location}{\v!paragraph, \v!margin}% \dodelimitedtextpar\dodelimitedtexttxt}} \unexpanded\def\dodelimitedtextpar {\dohandleleftdelimitedtext\c!left\relax \groupedcommand \donothing {\dohandlerightde

Re: [NTG-context] Problem with nested \quotation and \quote

2007-11-02 Thread Wolfgang Schuster
gt; > Thomas > > \definepapersize[test][width=7cm,height=3cm] > > \setuppapersize[test][test] > > \mainlanguage[en] \unprotect \unexpanded\def\dodelimitedtextpar {\dohandleleftdelimitedtext\c!left\relax \groupedcommand \donothing %{\dohandleri

Re: [NTG-context] anaemic spacing around in-line typed text

2007-04-01 Thread Wolfgang Schuster
2007/4/1, Vyatcheslav Yatskovsky <[EMAIL PROTECTED]>: Hello Wolfgang, Thanks. \def\comm{\thinspace\groupedcommand\tt\thinspace} works quite well. From a newbie standpoint, I wonder why replacing \thinspace with \hspace[medium] fails? It did not fail, you forget only the

Re: [NTG-context] anaemic spacing around in-line typed text

2007-04-01 Thread Vyatcheslav Yatskovsky
Hello Wolfgang, Thanks. \def\comm{\thinspace\groupedcommand\tt\thinspace} works quite well. From a newbie standpoint, I wonder why replacing \thinspace with \hspace[medium] fails? (I had another version \def\comm#1{\hspace[medium]{\tt#1}\hspace[medium]} it worked.) Vystcheslav > On

Re: [NTG-context] anaemic spacing around in-line typed text

2007-04-01 Thread Wolfgang Schuster
t; I quite satisfied with it, but maybe there is better way to typeset > programming keywords? > > Best regards, > Vyatcheslav Yatskovsky > There is a better way to define such a command in ConTeXt. \def\comm {\groupedcommand\tt\thinspace} \starttext The \comm{rand} func

Re: [NTG-context] Header number separator

2006-11-15 Thread Aditya Mahajan
to a section, use Section I SubsectionI-A subsubsection I-A.1 paragraph I-A.1.a The first part is easy \setupsection[section-3][bodypartconversion=Romannumerals] \setupsection[section-4][bodypartconversion=Character, previousnumber=no] \setupsection[section-

[NTG-context] Problems mapping Xml into ConTeXt

2006-10-10 Thread Michael Wigston
.  This def of does nothing ... \defineXMLgrouped [u] \underbar 2.  This def of also does nothing ... \defineXMLgrouped [u] {\groupedcommand{\underbar}{}} 3. This def of underlines the 1st character only ... \defineXMLenvironment [u] {\bgroup\underbar} {\egroup} 4. In the mailing list, there

Re: [NTG-context] the closing bracket (structuring syntax)

2006-08-15 Thread Aditya Mahajan
uote#1{\startquote#1\stopquote} > > \MyQuote{something to be quoted} > > > ... should work OK, right? Yes, there is also \def\MyQuote{\groupedcommand{\startquote}{\stopquote}} which does not read the argument and is better in some cases. Aditya ___

Re: [NTG-context] some questions

2006-08-15 Thread wwl
ist of typos, please?) The definition of \arg is in 'core-ver.tex' and copying this in a separate file works as expected: \starttext \unprotect \def\setgroupedtype {\let\currenttypingclass\??ty \initializetype \catcode`\{=\@@begingroup \catcode`\}=\@@endgroup} \unexpanded\def\

Re: [NTG-context] times bolditalic in chapter

2006-08-06 Thread Taco Hoekwater
Steffen Wolfrum wrote: > Hi, > > probably very basic question. > I need the chapter set in bold (and if necessary - see below - in > bolditalic). > > How can this be done when using Times via \usetypescript[postscript] > [\defaultencoding] ? \def\T

[NTG-context] times bolditalic in chapter

2006-08-06 Thread Steffen Wolfrum
] \def\Textit{\groupedcommand\it\/} \def\ChapterStyle{% \switchtobodyfont[rm,20pt] \setupinterlinespace[line=30pt] } \setuphead[chapter] [alternative=paragraph,style=\ChapterStyle] text \chapter{bold heading \Textit{bold italic} bold heading} text \stoptext

Re: [NTG-context] setupitemize confusion

2006-07-27 Thread Steffen Wolfrum
Very nice! Thank you Taco. Steffen Am 27.07.2006 um 10:36 schrieb Taco Hoekwater: > > > Steffen Wolfrum wrote: >> Hi Renaud, >> >> sure, here it is: >> >> >> \starttext >> >> \def\Textit{\groupedcommand\it\/} >> \def\hang

Re: [NTG-context] setupitemize confusion

2006-07-27 Thread Taco Hoekwater
Steffen Wolfrum wrote: > Hi Renaud, > > sure, here it is: > > > \starttext > > \def\Textit{\groupedcommand\it\/} > \def\hangover{\hangafter=1\hangindent=16pt } Try this: \def\dashauthor {\leavevmode\hbox to 16pt{\endash\hss}\ignorespaces}

Re: [NTG-context] setupitemize confusion

2006-07-27 Thread Steffen Wolfrum
Hi Renaud, sure, here it is: \starttext \def\Textit{\groupedcommand\it\/} \def\hangover{\hangafter=1\hangindent=16pt } \hangover\Textit{Badura, Peter:} Parlamentarismus und parteienstaatliche Demokratie, in: Pawlowski, Hans{|-|}Martin{|/|} Wieacker, Franz (Hrsg.), Festschrift für Karl

[NTG-context] Unicode and simplifiedcommands in bookmarks

2006-05-30 Thread Daniel Wallin
How do I get both unicode characters and simplifiedcommands in PDF bookmarks? The code below produces an error: ! Improper alphabetic constant. \groupedcommand \ifnum `\groupedcommand =255 32\else `\groupedcommand \fi \utfdiv #1->\

Re: [NTG-context] Text style in bookmarks

2006-05-22 Thread nico
upinteraction[state=start] > > \appendtoks > \let\groupedcommand\thirdofthreearguments > \to \simplifiedcommands > > % no command for monospaced yet > > \unprotected \definealternativestyle [\v!mono] [\tt] [] > > \placebookmarks > \starttext > \chapter{test \mono{te

<    1   2   3   4   >