Hello,
how could I cancel the textstyle=cap for just one synonym? Here an example to show what I want:
\definesynonyms[Test][Tests][\Full] \setupsynonyms[Test][textstyle=cap] \Test{BLA}{This is B.L.A.} %\Test[CONTEXT]{{\nocap{\ConTeXt}}}{This is \ConTeXt}% does not work %\Test[CONTEXT]{{\tf\ConTeXt}}{This is \ConTeXt}% does not work \starttext \BLA\ and \CONTEXT. \stoptext
Greetings, Peter
On Sun, 29 Apr 2007, Peter Münster wrote:
Hello,
how could I cancel the textstyle=cap for just one synonym? Here an example to show what I want:
\definesynonyms[Test][Tests][\Full] \setupsynonyms[Test][textstyle=cap] \Test{BLA}{This is B.L.A.} %\Test[CONTEXT]{{\nocap{\ConTeXt}}}{This is \ConTeXt}% does not work %\Test[CONTEXT]{{\tf\ConTeXt}}{This is \ConTeXt}% does not work \starttext \BLA\ and \CONTEXT. \stoptext
Did you try (untested)
\Test[CONTEXT] {\nocap{context}} {This is \ConTeXt}
Aditya
On Sun, 29 Apr 2007, Aditya Mahajan wrote:
Did you try (untested)
\Test[CONTEXT] {\nocap{context}} {This is \ConTeXt}
Yes, now I've tried it and it does not work, but why should this work??
Here another try, that gives me an error: \Test[CONTEXT]{{\setupsynonyms[Test][textstyle=]\ConTeXt}}{% This is \ConTeXt}% does not work
Cheers, Peter
On Sun, 29 Apr 2007, Peter Münster wrote:
On Sun, 29 Apr 2007, Aditya Mahajan wrote:
Did you try (untested)
\Test[CONTEXT] {\nocap{context}} {This is \ConTeXt}
Yes, now I've tried it and it does not work, but why should this work??
I think I completely misunderstood what you want. This works for me, that is, "context" is not capitalized.
\definesynonyms[Test][Tests][\Full] \setupsynonyms[Test][textstyle=cap]
\Test{BLA}{This is B.L.A.} \Test[CONTEXT]{\nocap{context}}{This is \ConTeXt}
\starttext
\BLA\ and \CONTEXT.
\Full{BLA} and \Full{CONTEXT}
\stoptext
Aditya
On Sun, 29 Apr 2007, Aditya Mahajan wrote:
I think I completely misunderstood what you want. This works for me, that is, "context" is not capitalized.
All right. So here in other words, what I'm looking for: How can I disable the textstyle=cap setting for just one synonym?
Of course I could hack a big workaround, but first I would like to know, if there is an easy and clean way to achieve this.
Cheers, Peter
2007/4/29, Peter Münster pmlists@free.fr:
Hello,
how could I cancel the textstyle=cap for just one synonym? Here an example to show what I want:
\definesynonyms[Test][Tests][\Full] \setupsynonyms[Test][textstyle=cap] \Test{BLA}{This is B.L.A.}
\Test[Foo]{FOO}{Say foo to me.} \def\FOO{FOO\setbox\scratchbox\hbox{\Foo}}
%\Test[CONTEXT]{{\nocap{\ConTeXt}}}{This is \ConTeXt}% does not work %\Test[CONTEXT]{{\tf\ConTeXt}}{This is \ConTeXt}% does not work \starttext \BLA\ and \CONTEXT.
\BLA\ and \FOO. \completelistofTests
\stoptext
Greetings, Peter
Wolfgang
On Thu, 3 May 2007, Wolfgang Schuster wrote:
\Test[Foo]{FOO}{Say foo to me.} \def\FOO{FOO\setbox\scratchbox\hbox{\Foo}}
Nice, thanks!
Nevertheless, here a little feature request: \cap{this is cap \unsetcap{this is normal} this is cap again}
just as: {\bf this is bold {\tf this is normal} again bold}
Cheers, Peter
On Thu, 3 May 2007, Peter Münster wrote:
On Thu, 3 May 2007, Wolfgang Schuster wrote:
\Test[Foo]{FOO}{Say foo to me.} \def\FOO{FOO\setbox\scratchbox\hbox{\Foo}}
Nice, thanks!
Nevertheless, here a little feature request: \cap{this is cap \unsetcap{this is normal} this is cap again}
\nocap ... for example
\def\test {\cap{This is cap \nocap{this is no cap} this is cap}} \starttext
{\bf \test}
{\ss \test}
\stoptext
Aditya
On Thu, 3 May 2007, Aditya Mahajan wrote:
\nocap ... for example
\def\test {\cap{This is cap \nocap{this is no cap} this is cap}} \starttext
{\bf \test}
{\ss \test}
\stoptext
Try this:
\def\test {\cap{This is cap \nocap{THIS is no cap} this is cap}}
"THIS" gets lower cased...
Peter
Peter Münster wrote:
Hello,
how could I cancel the textstyle=cap for just one synonym? Here an example to show what I want:
\definesynonyms[Test][Tests][\Full] \setupsynonyms[Test][textstyle=cap] \Test{BLA}{This is B.L.A.} %\Test[CONTEXT]{{\nocap{\ConTeXt}}}{This is \ConTeXt}% does not work %\Test[CONTEXT]{{\tf\ConTeXt}}{This is \ConTeXt}% does not work \starttext \BLA\ and \CONTEXT. \stoptext
Greetings, Peter
\definealternativestyle[xxx][\cap][\bf]
\setupsorting[logo][style=xxx]
\logo[TEST]{Test}
\starttext
\title{Test \TEST}
test \TEST
test {\dontconvertfont \TEST}
\stoptext