Re: [NTG-context] howto define MyRule ?

2012-03-20 Thread Wolfgang Schuster
Am 20.03.2012 um 10:10 schrieb Steffen Wolfrum: Hi, how can I define the length of footnote's rule and the distance below it? rulecommand doesn't seem to take these values (see below). You have to enable you own command with “rule=command” but then you have to set rulecolor and rule

Re: [NTG-context] howto define MyRule ?

2012-03-20 Thread Steffen Wolfrum
Am 20.03.2012 um 14:42 schrieb Wolfgang Schuster: You have to enable you own command with “rule=command” but then you have to set rulecolor and rule thickness in your own definition (best us \blackrule for this). rule=command,rulecommand=\MyRule instead of rulecommand=\MyRule hm ...

Re: [NTG-context] howto define MyRule ?

2012-03-20 Thread Wolfgang Schuster
Am 20.03.2012 um 17:35 schrieb Steffen Wolfrum: Am 20.03.2012 um 14:42 schrieb Wolfgang Schuster: You have to enable you own command with “rule=command” but then you have to set rulecolor and rule thickness in your own definition (best us \blackrule for this).

[NTG-context] [***SPAM***] Re: howto define MyRule ?

2012-03-20 Thread Steffen Wolfrum
Am 20.03.2012 um 17:45 schrieb Wolfgang Schuster: Am 20.03.2012 um 17:35 schrieb Steffen Wolfrum: Am 20.03.2012 um 14:42 schrieb Wolfgang Schuster: You have to enable you own command with “rule=command” but then you have to set rulecolor and rule thickness in your own definition

Re: [NTG-context] [***SPAM***] Re: howto define MyRule ?

2012-03-20 Thread Hans Hagen
On 20-3-2012 18:59, Steffen Wolfrum wrote: But nevertheless, isn't that already implied if I use rulecommand=\MyRule? To me this already means exactly this: tell context it should use my rule. Then we need double checking and I'm pretty sure that you would run into expansion mess again and

Re: [NTG-context] [***SPAM***] Re: howto define MyRule ?

2012-03-20 Thread Steffen Wolfrum
Am 20.03.2012 um 19:49 schrieb Hans Hagen: On 20-3-2012 18:59, Steffen Wolfrum wrote: But nevertheless, isn't that already implied if I use rulecommand=\MyRule? To me this already means exactly this: tell context it should use my rule. Then we need double checking and I'm pretty sure

[NTG-context] define macro from xml-attribute

2012-03-16 Thread Meer, H. van der
I would like to accomplish the following in xml processing. node macro=various macro calls and then define the attribute value as a TeX macro. For example, to use this in font switching: node macro=\switchtobodyfont[helvetica] Doing this in the following manner does not work: \startxmlsetups

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

2012-03-16 Thread Hans Hagen
On 16-3-2012 10:25, Meer, H. van der wrote: I would like to accomplish the following in xml processing. node macro=various macro calls and then define the attribute value as a TeX macro. For example, to use this in font switching:node macro=\switchtobodyfont[helvetica] Doing

[NTG-context] How to define a command...

2012-01-05 Thread Otared Kavian
Hi all, I need to define numerical coefficients (essentially at random) and then use them with commands, say like \CoeffAlpha, \CoeffBeta, and so on. More precisely, how can I define the command \RandomCoeff, so that \RandomCoeff{Beta}{1}{10} yields a command named \CoeffBeta, which is a random

Re: [NTG-context] How to define a command...

2012-01-05 Thread Meer, H. van der
Reccently I did something random in ctxlua. I post it in the hope it will be useful. Hans van der Meer \startluacode -- Define our namespace as hvdm hvdm = hvdm or {} -- Return random series of numbers 1..n depending on the number of arguments function

Re: [NTG-context] How to define a command...

2012-01-05 Thread Peter Münster
On Thu, Jan 05 2012, Otared Kavian wrote: \define[3]\RandomCoeff{% \ctxlua{a = math.random(#2,#3)} % \csname{Coeff#1}\endcsname{\ctxlua{tex.print(a)}} %% this line does not work as expected... \setuprandomize[2012] \define[3]\RandomCoeff{% \expandafter\def\csname Coeff#1

Re: [NTG-context] How to define a command...

2012-01-05 Thread Wolfgang Schuster
Am 05.01.2012 um 21:17 schrieb Peter Münster: On Thu, Jan 05 2012, Otared Kavian wrote: \define[3]\RandomCoeff{% \ctxlua{a = math.random(#2,#3)} %\csname{Coeff#1}\endcsname{\ctxlua{tex.print(a)}} %% this line does not work as expected... \setuprandomize[2012] \define[3

Re: [NTG-context] How to define a command...

2012-01-05 Thread Wolfgang Schuster
Am 05.01.2012 um 21:11 schrieb Meer, H. van der: Reccently I did something random in ctxlua. I post it in the hope it will be useful. Hans van der Meer \startluacode -- Define our namespace as hvdm hvdm = hvdm or {} Don’t use a global namespace, you can use “userdata

Re: [NTG-context] How to define a command...

2012-01-05 Thread Otared Kavian
: Reccently I did something random in ctxlua. I post it in the hope it will be useful. Hans van der Meer \startluacode -- Define our namespace as hvdm hvdm = hvdm or {} -- Return random series of numbers 1..n depending on the number of arguments function

Re: [NTG-context] How to define a command...

2012-01-05 Thread Otared Kavian
Thanks Peter, I had tried \expandafter\xdef, \edef, \gdef, but not \expandafter\def… Thanks for your quick answer: that's exactly what I was looking for. Best regards: OK On 5 janv. 2012, at 21:17, Peter Münster wrote: On Thu, Jan 05 2012, Otared Kavian wrote: \define[3]\RandomCoeff

Re: [NTG-context] How to define a command...

2012-01-05 Thread Otared Kavian
Thanks for Wolfgang: your solution, that is \setuprandomize[2012] \define[3]\RandomCoeff{% \setvalue{Coeff#1}{\ctxlua{tex.print(math.random(#2,#3))}}} works indeed and it is somehow simpler than using \expandafter\csname, and as a matter of fact, after reading your message I searched

Re: [NTG-context] How to define a command...

2012-01-05 Thread Otared Kavian
Hi again Wolfgang and Peter, The solution you provided to my problem is great but has a small issue… Considering the definition \define[3]\RandomCoeff{% \setvalue{Coeff#1}{\ctxlua{tex.print(math.random(#2,#3))}} } after saying \RandomCoeff{Alpha}{1}{10} one gets

Re: [NTG-context] How to define a command...

2012-01-05 Thread Otared Kavian
Sorry for the noise… I found the answer to my last question in module-01.pdf, pages 92 and 93: the right definition is \define[3]\RandomCoeff{% \setevalue{Coeff#1}{\ctxlua{tex.print(math.random(#2,#3))}} } that is one has to use \setevalue instead of \setvalue

Re: [NTG-context] [solved] Parse error when using `\define`

2011-12-04 Thread Paul Menzel
Am Samstag, den 03.12.2011, 20:09 +0100 schrieb Wolfgang Schuster: Am 03.12.2011 um 20:06 schrieb Paul Menzel: could some please try to parse the following minimal example and report back if a parse problem occurs. Please find the protocols attached. \define[1]\abs{\lvert #1

[NTG-context] Define `\luatexversion` similar to `\contextversion`

2011-12-03 Thread Paul Menzel
Dear ConTeXt folks, thanks to Robin’s example documents I found out about the following last two commands \Context\ \contextmark\ \contextversion allowing to put the used components and versions into the document. Then I found `\luaversion` to display the version of Lua. But I could

Re: [NTG-context] Define `\luatexversion` similar to `\contextversion`

2011-12-03 Thread Wolfgang Schuster
Am 03.12.2011 um 19:23 schrieb Paul Menzel: Dear ConTeXt folks, thanks to Robin’s example documents I found out about the following last two commands \Context\ \contextmark\ \contextversion allowing to put the used components and versions into the document. Then I found

Re: [NTG-context] [solved – `\texengineversion`] Define `\luatexversion` similar to `\contextversion`

2011-12-03 Thread Paul Menzel
Am Samstag, den 03.12.2011, 19:28 +0100 schrieb Wolfgang Schuster: Am 03.12.2011 um 19:23 schrieb Paul Menzel: thanks to Robin’s example documents I found out about the following last two commands \Context\ \contextmark\ \contextversion allowing to put the used components

[NTG-context] Parse error when using `\define`

2011-12-03 Thread Paul Menzel
Dear ConTeXt folks, could some please try to parse the following minimal example and report back if a parse problem occurs. Please find the protocols attached. \define[1]\abs{\lvert #1 \rvert} \define\Ew{{\mathbf E}} \define[1]\ew{\Ew \left[ #1 \right

Re: [NTG-context] Parse error when using `\define`

2011-12-03 Thread Wolfgang Schuster
Am 03.12.2011 um 20:06 schrieb Paul Menzel: Dear ConTeXt folks, could some please try to parse the following minimal example and report back if a parse problem occurs. Please find the protocols attached. \define[1]\abs{\lvert #1 \rvert} \define\Ew{{\mathbf E

Re: [NTG-context] Natural Tables---Including a bit of cell style in a \define

2011-11-23 Thread Hans Hagen
On 22-11-2011 13:08, Pavneet Arora wrote: I am creating documentation labeling the circuits of electrical and network panels for a project of mine. Enclosed is a minimal example. What I would like is to define two macros: \unused and \spare (\unused referring to a circuit with no breaker

[NTG-context] Natural Tables---Including a bit of cell style in a \define

2011-11-22 Thread Pavneet Arora
I am creating documentation labeling the circuits of electrical and network panels for a project of mine. Enclosed is a minimal example. What I would like is to define two macros: \unused and \spare (\unused referring to a circuit with no breaker installed, while \spare referring

[NTG-context] \def vs \define

2011-07-21 Thread Steffen Wolfrum
Hi, in this example the question mark nicely becomes part of the command name: \def\OverFull?{\overfullrule30\points} \OverFull? here it does not work at all: \define\OverFull?{\overfullrule30\points} \OverFull? (... but gives ?? instead) As \define seems to be more canonical: Does

Re: [NTG-context] \def vs \define

2011-07-21 Thread Aditya Mahajan
On Thu, 21 Jul 2011, Steffen Wolfrum wrote: Hi, in this example the question mark nicely becomes part of the command name: \def\OverFull?{\overfullrule30\points} \OverFull? here it does not work at all: \define\OverFull?{\overfullrule30\points} \OverFull? (... but gives ?? instead

Re: [NTG-context] \def vs \define

2011-07-21 Thread Hans Hagen
On 21-7-2011 3:15, Steffen Wolfrum wrote: Hi, in this example the question mark nicely becomes part of the command name: \def\OverFull?{\overfullrule30\points} \OverFull? here the ? is not part of the command but a delimiter \OverFull ? \def\OverFull#1?{\overfullrule30\points} \OverFull

[NTG-context] How to define fallback font for symbols

2011-06-17 Thread Vianney le Clément
Hi all, Is it possible to set a fallback font from which glyphs will be taken if the current font doesn't have it? For example, I'd want to use fancy miscellaneous symbols from the Symbola font using their unicode codepoint without any extra font-changing command (and obviously, I don't want to

Re: [NTG-context] How to define fallback font for symbols

2011-06-17 Thread Hans Hagen
On 17-6-2011 9:43, Vianney le Clément wrote: Hi all, Is it possible to set a fallback font from which glyphs will be taken if the current font doesn't have it? For example, I'd want to use fancy miscellaneous symbols from the Symbola font using their unicode codepoint without any extra

Re: [NTG-context] How to define fallback font for symbols

2011-06-17 Thread luigi scarso
2011/6/17 Vianney le Clément vleclem...@gmail.com: Hi all, Is it possible to set a fallback font from which glyphs will be taken if the current font doesn't have it? For example, I'd want to use fancy miscellaneous symbols from the Symbola font using their unicode codepoint without any extra

Re: [NTG-context] How to define fallback font for symbols

2011-06-17 Thread Vianney le Clément
2011/6/17 Hans Hagen pra...@wxs.nl: % \definefontfeature[zh][mode=node,script=hang,lang=zhs] % \definefontfallback[serifwhatever]          [lmroman10-regular] [0x-0x0400][force=yes] % \definefontfallback[serifboldwhatever]      [lmroman10-bold] [0x-0x0400][force=yes] %

Re: [NTG-context] How to define fallback font for symbols

2011-06-17 Thread Wolfgang Schuster
Am 17.06.2011 um 09:43 schrieb Vianney le Clément: Hi all, Is it possible to set a fallback font from which glyphs will be taken if the current font doesn't have it? For example, I'd want to use fancy miscellaneous symbols from the Symbola font using their unicode codepoint without any

[NTG-context] \define[1]\command or \define\command[1]? (was: math: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert -\Udelimiter`.)

2011-06-05 Thread Paul Menzel
Dear Otared, Am Samstag, den 04.06.2011, 23:59 +0200 schrieb Otared Kavian: I think the error comes from your way of using \define: you use \define\abs[1]{\lvert #1 \rvert} instead of \define[1]\abs{\lvert#1\rvert} the following works fine for me: \starttext %\define

Re: [NTG-context] [solved] \define[1]\command or \define\command[1]? (was: math: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert -\Udelimiter`.)

2011-06-05 Thread Paul Menzel
Dear ConTeXt folks, Am Sonntag, den 05.06.2011, 12:11 +0200 schrieb Paul Menzel: Am Samstag, den 04.06.2011, 23:59 +0200 schrieb Otared Kavian: I think the error comes from your way of using \define: you use \define\abs[1]{\lvert #1 \rvert} instead of \define[1]\abs{\lvert#1

Re: [NTG-context] \define[1]\command or \define\command[1]? (was: math: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert -\Udelimiter`.)

2011-06-05 Thread Wolfgang Schuster
Am 05.06.2011 um 12:11 schrieb Paul Menzel: thank you very much for the solution. I took my definition from the Wiki [1]. Could the developers please clarify the correct syntax so that it can be updated in the source or the Wiki. The wiki entry is correct, the syntax is \define[number

[NTG-context] math: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert -\Udelimiter`.

2011-06-04 Thread Paul Menzel
Dear ConTeXt folks, I want to define `\abs` as the command for the absolute value. The following minimal example is also attached. \define\abs[1]{\lvert #1 \rvert} \starttext $\lvert 2 \rvert$ $\abs{2}$ \stoptext This does not work though

Re: [NTG-context] math: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert -\Udelimiter`.

2011-06-04 Thread Peter Münster
On Sat, Jun 04 2011, Paul Menzel wrote: I want to define `\abs` as the command for the absolute value. The following minimal example is also attached. \define\abs[1]{\lvert #1 \rvert} Don't ask me why \define doesn't work (certainly related to expansion), but \def does the job: \def

Re: [NTG-context] math: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert -\Udelimiter`.

2011-06-04 Thread Otared Kavian
Hi I think the error comes from your way of using \define: you use \define\abs[1]{\lvert #1 \rvert} instead of \define[1]\abs{\lvert#1\rvert} the following works fine for me: \starttext %\define[1]\abs{|#1|} % this works \define[1]\abs{\lvert#1\rvert} % this works too

Re: [NTG-context] \par in end of define fails

2010-12-16 Thread Mojca Miklavec
On Thu, Dec 16, 2010 at 05:58, Aditya Mahajan wrote: On Thu, 16 Dec 2010, Jonas Stein wrote: \define[1]\myoneliner{#1 \par } raises an error. (Untested) \define[1]\myoneliner{#1 \endgraf} This is also nicely covered in TeXBook. Alternatively \long\def might work. Mojca

Re: [NTG-context] \par in end of define fails

2010-12-16 Thread Jonas Stein
\define[1]\myoneliner{#1 \par } raises an error. \define[1]\myoneliner{#1 \endgraf} works fine. Thank you! This is also nicely covered in TeXBook. Alternatively \long\def might work. \long\define[1]\myoneliner{#1 \par } fails too kind regards, -- Jonas Stein n...@jonasstein.de

Re: [NTG-context] \par in end of define fails

2010-12-16 Thread Vedran Miletić
2010/12/16 Jonas Stein n...@jonasstein.de \define[1]\myoneliner{#1 \par } raises an error. \define[1]\myoneliner{#1 \endgraf} works fine. Thank you! This is also nicely covered in TeXBook. Alternatively \long\def might work. \long\define[1]\myoneliner{#1 \par } fails too \long

Re: [NTG-context] \par in end of define fails

2010-12-16 Thread Wolfgang Schuster
Am 16.12.2010 um 18:28 schrieb Vedran Miletić: 2010/12/16 Jonas Stein n...@jonasstein.de \define[1]\myoneliner{#1 \par } raises an error. \define[1]\myoneliner{#1 \endgraf} works fine. Thank you! This is also nicely covered in TeXBook. Alternatively \long\def might work

[NTG-context] \par in end of define fails

2010-12-15 Thread Jonas Stein
\define[1]\myoneliner{#1 \par } raises an error. Why, and how should i repair it? Kind regards, -- Jonas Stein n...@jonasstein.de ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] \par in end of define fails

2010-12-15 Thread Aditya Mahajan
On Thu, 16 Dec 2010, Jonas Stein wrote: \define[1]\myoneliner{#1 \par } raises an error. (Untested) \define[1]\myoneliner{#1 \endgraf} Aditya ___ If your question is of interest to others as well, please add

[NTG-context] error: unable to define unbatangRegular as \*Myface12ptrmtfa*

2010-05-27 Thread Jeong Dalyoung
at line 4 (/Users/graph/ConTeXtMini/tex/texmf-local/tex/context/type-kor.tex) !define font: font with name unbatangRegular is not found !define font: unknown font unbatangRegular, loading aborted !define font: unable to define unbatangRegular as \*Myface12ptrmtf* systems : begin

Re: [NTG-context] error: unable to define unbatangRegular as \*Myface12ptrmtfa*

2010-05-27 Thread Taco Hoekwater
Hi, Jeong Dalyoung wrote: Both current version and ConTeXt ver: 2010.05.24 13:05 MKIV fmt: 2010.5.27 int: english/english version work same. Why isn't it able to define unbatangRegular while it can use the unbatangBold? Drop the [uc] and '[encoding=uc]' from your typescript

Re: [NTG-context] error: unable to define unbatangRegular as \*Myface12ptrmtfa*

2010-05-27 Thread dalyoung
Dear Taco, Thank you advice. After deleting [uc] and [encoding=uc], it worked fine. Every sentences was appeared correctly. Best regards, Dalyoung ___ If your question is of interest to others as well, please add

Re: [NTG-context] \define...

2010-04-20 Thread Vyatcheslav Yatskovsky
Curiouser and curiouser! cried Alice. :) context has two different versions of \define, there is one in syst-ext.mkii/syst-aux.mkiv which has no parameters but prevents you from overwriting a existing command (there \redefine with allows this) and another one in core-sys.mkii/mkiv which

[NTG-context] \define... (was: Re: Structuring topics)

2010-04-19 Thread Peter Münster
On Mon, Apr 19 2010, Wolfgang Schuster wrote: \starttext \define\hans{hans} \define\hans{taco} \stoptext the output now is 'hans' because \define checks whether a command with the name \hans is already defined Hello Wolfgang, Did you test it? The output is taco here on my system: MTXrun

Re: [NTG-context] \define...

2010-04-19 Thread Wolfgang Schuster
Am 19.04.10 21:15, schrieb Peter Münster: On Mon, Apr 19 2010, Wolfgang Schuster wrote: \starttext \define\hans{hans} \define\hans{taco} \stoptext the output now is 'hans' because \define checks whether a command with the name \hans is already defined Hello Wolfgang, Did you test

[NTG-context] A question about \define vs. \def

2010-04-18 Thread Vyatcheslav Yatskovsky
Hello, Patrick posed a good question on wiki at http://wiki.contextgarden.net/Reference/en/define is there any bonus when I use \define instead of \def? Regards, Vyatcheslav ___ If your question is of interest

Re: [NTG-context] A question about \define vs. \def

2010-04-18 Thread Wolfgang Schuster
Am 18.04.10 21:12, schrieb Vyatcheslav Yatskovsky: Hello, Patrick posed a good question on wiki at http://wiki.contextgarden.net/Reference/en/define is there any bonus when I use \define instead of \def? 1. \define checks if the command you try to create already exists

Re: [NTG-context] How to define your own math character (MK-IV)

2010-04-12 Thread gummybears
Hi Hans Aditya Please be patient as I am not a developer just someone who writes documents. I discovered the integral symbols starting at the double integral are now composed by repeating the normal integral symbol n-times. However in an earlier email I commented that they didn't look right

[NTG-context] How to define your own math character (MK-IV)

2010-04-11 Thread gummybears
Hi, How to use definemathcommand to setup some of the missing math symbols ? Some of these symbols are defined in char-def.lua but missing in math-vfu.lua. Thanks ___ If your question is of interest to others as

Re: [NTG-context] How to define your own math character (MK-IV)

2010-04-11 Thread Hans Hagen
On 11-4-2010 2:45, gummybears wrote: Hi, How to use definemathcommand to setup some of the missing math symbols ? Some of these symbols are defined in char-def.lua but missing in math-vfu.lua. if they are in the regular tex fonts, then we need to extend the vfu ... keep in mind that the vfu

Re: [NTG-context] Define tex macro on the context command line

2009-11-12 Thread Hans Hagen
Aditya Mahajan wrote: On Wed, 11 Nov 2009, John Devereux wrote: Hi, Is it possible to define a tex macro on the context command line (MkII)? For example: texexec manual.tex --define Title X99 Operators Manual so that \Title would expand to the appropriate text? You can do

[NTG-context] Define tex macro on the context command line

2009-11-11 Thread John Devereux
Hi, Is it possible to define a tex macro on the context command line (MkII)? For example: texexec manual.tex --define Title X99 Operators Manual so that \Title would expand to the appropriate text? (I know about modes I think) -- John Devereux

Re: [NTG-context] Define exercise captions

2009-11-04 Thread Vyatcheslav Yatskovsky
Thank you, Aditya, for help! My further questions: Why after={}or after= does not remove the space between enumeration caption and next paragraph? For example: \defineenumeration[exercise][title=yes, text=Вправа, prefix=yes, prefixset=section, titleleft=, titleright=, after=]

Re: [NTG-context] Define exercise captions

2009-11-04 Thread Aditya Mahajan
On Thu, 5 Nov 2009, Vyatcheslav Yatskovsky wrote: Thank you, Aditya, for help! My further questions: Why after={}or after= does not remove the space between enumeration caption and next paragraph? For example: \defineenumeration[exercise][title=yes, text=Вправа, prefix=yes,

Re: [NTG-context] Define exercise captions

2009-11-04 Thread Vyatcheslav Yatskovsky
Please, disregard my last question about enumeration setup. Now I know more and created definition that works fine for me: \defineenumeration[exercise][title=yes, text=Вправа, prefix=yes, prefixset=section, titleleft=, titleright=, after=, inbetween={\blank[medium]}] The trick is that

Re: [NTG-context] Define exercise captions

2009-11-02 Thread Vyatcheslav Yatskovsky
Hello Aditya, Thanks for help again. However, the result is far from OK. [title=yes, text=Вправа, way=bysection, prefix=yes, width=broad] I use enumeration within subsubsection, namely 1.3.1. If I put prefix=yes, the first exercise is 1.3.1.1. That is, it is numbered within subsubsection,

Re: [NTG-context] Define exercise captions

2009-11-02 Thread Longmin Wang
On Mon, Nov 02, 2009 at 01:31:02PM +0200, Vyatcheslav Yatskovsky wrote: Hello Aditya, Thanks for help again. However, the result is far from OK. [title=yes, text=Вправа, way=bysection, prefix=yes, width=broad] I use enumeration within subsubsection, namely 1.3.1. If I put prefix=yes, the first

Re: [NTG-context] Define exercise captions

2009-11-02 Thread Vyatcheslav Yatskovsky
Hello, I want to be only ExerciseSectionNumber.ExerciseNumber, like 1.1, 1.2, etc. You may try prefixset=section. Thank you, Longmin, for your suggestion, it works! But other problems persist. Hans (or someone else who can fix it), please, look into my minimal example:

Re: [NTG-context] Define exercise captions

2009-11-02 Thread Aditya Mahajan
On Tue, 3 Nov 2009, Vyatcheslav Yatskovsky wrote: Hello, I want to be only ExerciseSectionNumber.ExerciseNumber, like 1.1, 1.2, etc. You may try prefixset=section. Thank you, Longmin, for your suggestion, it works! But other problems persist. Hans (or someone else who can fix it),

Re: [NTG-context] Define exercise captions

2009-11-01 Thread Vyatcheslav Yatskovsky
Hello, I need to define a Exercise command that will enumerate exercises and provide captions. For example, \exercise{Conversion from hex to dec} should produce Exercise 1.1. Conversion from hex to dec. What is the best way to achieve that? Use \definehead or another command

Re: [NTG-context] Define exercise captions

2009-11-01 Thread Aditya Mahajan
On Sun, 1 Nov 2009, Vyatcheslav Yatskovsky wrote: Hello, I need to define a Exercise command that will enumerate exercises and provide captions. For example, \exercise{Conversion from hex to dec} should produce Exercise 1.1. Conversion from hex to dec. What is the best way

[NTG-context] Define exercise captions

2009-10-31 Thread Vyatcheslav Yatskovsky
Hello, I need to define a Exercise command that will enumerate exercises and provide captions. For example, \exercise{Conversion from hex to dec} should produce Exercise 1.1. Conversion from hex to dec. What is the best way to achieve that? Use \definehead or another command? Best

[NTG-context] define font | font with name Delicious-Roman is not found

2009-05-28 Thread Nicolas Girard
is okay: \starttext \font\Myfont=/usr/local/share/fonts/d/delicious_roman.otf at 24pt \Myfont Hello, world \stoptext but running \starttext \font\Myfont=Delicious-Roman at 24pt \Myfont Hello, world \stoptext leads to define font | font with name Delicious-Roman

Re: [NTG-context] define font | font with name Delicious-Roman is not found

2009-05-28 Thread Wolfgang Schuster
Am 28.05.2009 um 17:59 schrieb Nicolas Girard: Hi all, I'm using the latest beta of context minimals, rsynced over a TeXlive 2008 on ubuntu. [...] Running the following file is okay: \starttext \font\Myfont=/usr/local/share/fonts/d/delicious_roman.otf at 24pt \Myfont Hello, world

Re: [NTG-context] No em/en dashes (was: define font | font with name Delicious-Roman is not found)

2009-05-28 Thread Nicolas Girard
2009/5/28 Wolfgang Schuster schuster.wolfg...@googlemail.com: Hi Wolfgang, thanks for such a fast answer ! Am 28.05.2009 um 17:59 schrieb Nicolas Girard:   \starttext   \font\Myfont=Delicious-Roman at 24pt   \Myfont Hello, world   \stoptext Please don't use \font, use ConTeXt's

Re: [NTG-context] No em/en dashes (was: define font | font with name Delicious-Roman is not found)

2009-05-28 Thread Wolfgang Schuster
Am 28.05.2009 um 18:47 schrieb Nicolas Girard: Please don't use \font, use ConTeXt's \definefont instead: OK, but why ? Reading the list, I see that you were still using it six months ago ; is is deprecated now ? It's not ConTeXt style.

Re: [NTG-context] No em/en dashes (was: define font | font with name Delicious-Roman is not found)

2009-05-28 Thread Nicolas Girard
2009/5/28 Wolfgang Schuster schuster.wolfg...@googlemail.com: Am 28.05.2009 um 18:47 schrieb Nicolas Girard: Please don't use \font, use ConTeXt's \definefont instead: OK, but why ? Reading the list, I see that you were still using it six months ago ; is is deprecated now ? It's not

[NTG-context] MarkIV, typescripts, Delicious (was: define font | font with name Delicious-Roman is not found)

2009-05-28 Thread Nicolas Girard
2009/5/28 Nicolas Girard nicolas.gir...@nerim.net: 2009/5/28 Wolfgang Schuster schuster.wolfg...@googlemail.com:   \starttext   \font\Myfont=Delicious-Roman at 24pt   \Myfont Hello, world   \stoptext Now, I'm trying to make the typescript code from the wiki [1] work [1]

Re: [NTG-context] MarkIV, typescripts, Delicious (was: define font | font with name Delicious-Roman is not found)

2009-05-28 Thread Wolfgang Schuster
Am 28.05.2009 um 19:35 schrieb Nicolas Girard: Now, I'm trying to make the typescript code from the wiki [1] work [1] http://wiki.contextgarden.net/exljbris_typescript My test file is as follows: [...] \starttypescript [delicious] \definetypeface [delicious] [ss] [sans] [delicious]

Re: [NTG-context] MarkIV, typescripts, Delicious (was: define font | font with name Delicious-Roman is not found)

2009-05-28 Thread Nicolas Girard
2009/5/28 Wolfgang Schuster schuster.wolfg...@googlemail.com: Am 28.05.2009 um 19:35 schrieb Nicolas Girard: Now, I'm trying to make the typescript code from the wiki [1] work [1] http://wiki.contextgarden.net/exljbris_typescript My test file is as follows: [...] \starttypescript

Re: [NTG-context] define an incremental personal bullet of item

2009-05-27 Thread dalyoung
Dear Hans, Thank you for your code. I tested it using ConTeXt and LuaTeX, but I got following error. (/Users/graph/ConTeXtBeta/tex/texmf-context/tex/context/base/pdfr- def.tex) (./test-lua.tuo) systems : begin file test-lua at line 2 ! Argument of \MyCircledNumber has an

Re: [NTG-context] define an incremental personal bullet of item

2009-05-27 Thread Willi Egger
Hi, It works here with: This is LuaTeX, Version beta-0.40.1-2009050813 (Web2C 7.5.7) ConTeXt ver: 2009.05.26 17:57 MKIV fmt: 2009.5.26 int: english/ english KR Willi On May 27, 2009, at 3:22 PM, dalyoung wrote: Dear Hans, Thank you for your code. I tested it using ConTeXt and LuaTeX,

Re: [NTG-context] define an incremental personal bullet of item

2009-05-27 Thread Peter Rolf
dalyoung schrieb: Dear Hans, Thank you for your code. I tested it using ConTeXt and LuaTeX, but I got following error. (/Users/graph/ConTeXtBeta/tex/texmf-context/tex/context/base/pdfr-def.tex) (./test-lua.tuo) systems : begin file test-lua at line 2 ! Argument of

Re: [NTG-context] define an incremental personal bullet of item

2009-05-27 Thread Dalyoung
Thank you for the checking. I typed the text and run it. At this time, it worked. There may be a garbage attached during the process of copy and paste. By the way, is it possible to modify this code to use circled character a, b, c, ...? By using the command \sym{symbol}, I may use them,

[NTG-context] define an incremental personal bullet of item

2009-05-26 Thread polytope
Dear all, I'd like to use circled number 1, circled number 2, ... as bullets of itemized block. There is an explanation how to define a personal bullet in the manual. For each \item the same bullet is used. But I want bullets automatically changed to the next character in unicode table

Re: [NTG-context] define an incremental personal bullet of item

2009-05-26 Thread Hans Hagen
polytope wrote: Dear all, I'd like to use circled number 1, circled number 2, ... as bullets of itemized block. There is an explanation how to define a personal bullet in the manual. For each \item the same bullet is used. But I want bullets automatically changed to the next character

[NTG-context] \define was: Section format using /def

2009-02-05 Thread Wolfgang Schuster
Am 05.02.2009 um 19:45 schrieb Michael Bynum: Ah, I think I see. So \define[1]\mysectionhead{\bfa \WORD{\underbar{#1}}} would also be valid. Is \define a context equivalent to the \def command for tex? I couldn't find much documentation on it. \define is ConTeXt's equivalent to \newcommand

Re: [NTG-context] How to define such a function in lua? Sorry I don't have a name on it.

2008-12-06 Thread Zhichu Chen
On Fri, Dec 5, 2008 at 8:05 AM, Arthur Reutenauer [EMAIL PROTECTED] wrote: but it might make more sense to look into metatables (i assume that you own the programming in lua book which explains that) I don't have one :(, I'll take a good at it later. You really should look into the book, it

Re: [NTG-context] How to define such a function in lua? Sorry I don't have a name on it.

2008-12-06 Thread Yue Wang
variables are only symbols in lua. they are reference to values (a place in the memory). On 12/5/08, Zhichu Chen [EMAIL PROTECTED] wrote: On Fri, Dec 5, 2008 at 8:05 AM, Arthur Reutenauer [EMAIL PROTECTED] wrote: but it might make more sense to look into metatables (i assume that you own

Re: [NTG-context] How to define such a function in lua? Sorry I don't have a name on it.

2008-12-04 Thread Hans Hagen
Zhichu Chen wrote: Hi, I'm learning to use luatex these days, one day actually. It's very interesting. Although reference manuals are available, I still don't know how to implement my designation. The thing is, I know there's a self variable for object-oriented programming, like

Re: [NTG-context] How to define such a function in lua? Sorry I don't have a name on it.

2008-12-04 Thread Zhichu Chen
On Thu, Dec 4, 2008 at 5:28 PM, Hans Hagen [EMAIL PROTECTED] wrote: Zhichu Chen wrote: Hi, I'm learning to use luatex these days, one day actually. It's very interesting. Although reference manuals are available, I still don't know how to implement my designation. The thing is, I know

Re: [NTG-context] How to define such a function in lua? Sorry I don't have a name on it.

2008-12-04 Thread Arthur Reutenauer
but it might make more sense to look into metatables (i assume that you own the programming in lua book which explains that) I don't have one :(, I'll take a good at it later. You really should look into the book, it has a whole chapter about object-oriented programming in Lua, and explains

[NTG-context] How to define such a function in lua? Sorry I don't have a name on it.

2008-12-03 Thread Zhichu Chen
Hi, I'm learning to use luatex these days, one day actually. It's very interesting. Although reference manuals are available, I still don't know how to implement my designation. The thing is, I know there's a self variable for object-oriented programming, like

Re: [NTG-context] What is the command to define the behavior of \goto?

2008-11-23 Thread Aditya Mahajan
On Sun, 23 Nov 2008, Yue Wang wrote: Hi: \setupinteraction[style=] % default is style=bold Thank you, Aditya! Previously I was searching command like setupgoto or some stuffs like that:( btw, how to link to the specific position instead of go to that page? if i point to Equation 12, my

Re: [NTG-context] What is the command to define the behavior of \goto?

2008-11-23 Thread Yue Wang
The mailing list blocked my mail because the attachment is too big:( Ummm... I think we should increase the capacity ... Here is the original message: I remove the test.pdf, but one can always compile it using the tex file in the attachment. On Sun, Nov 23, 2008 at 3:59 PM, Aditya Mahajan [EMAIL

Re: [NTG-context] Fwd: What is the command to define the behavior of \goto?

2008-11-23 Thread Aditya Mahajan
On Sun, 23 Nov 2008, Yue Wang wrote: This is called referencing in ConTeXt. You can search the excursion and the main manual for some more details. still go to the page, not go to the specific place. see the attachment. what I want is the feature that can go to certain area in the pdf

Re: [NTG-context] Fwd: What is the command to define the behavior of \goto?

2008-11-23 Thread Hans Hagen
Aditya Mahajan wrote: ConTeXt behaviour is not perfect in this regard. Sometimes the link jumps higher or lower than the actual section title. But I could never determine if it was the fault of the pdf viewer or ConTeXt. annotation areas in pdf are not part of the stream but take place on

Re: [NTG-context] What is the command to define the behavior of \goto?

2008-11-22 Thread Yue Wang
Hi: \setupinteraction[style=] % default is style=bold Thank you, Aditya! Previously I was searching command like setupgoto or some stuffs like that:( btw, how to link to the specific position instead of go to that page? if i point to Equation 12, my context document will only flow to the page

[NTG-context] What is the command to define the behavior of \goto?

2008-11-17 Thread Yue Wang
Hi: I don't want bold font for \goto, Where can I change it? BTW, some users here suggest that maybe we can define a hypperref-like linkcolor, citecolor, urlcolor in \setupinteraction, I think it will be a good idea. Yue Wang

Re: [NTG-context] What is the command to define the behavior of \goto?

2008-11-17 Thread Aditya Mahajan
On Mon, 17 Nov 2008, Yue Wang wrote: Hi: I don't want bold font for \goto, Where can I change it? \setupinteraction[style=] % default is style=bold Aditya ___ If your question is of interest to others as well,

[NTG-context] define command

2008-11-14 Thread Alan STONE
Hi, For example \define\somemacro[3]{...} gets invoked with \somemacro{#1}{#2}{#3} How do you get rid of those repeating pesky curly brackets and invoke a user defined macro with \somemacro{#1,#2,#3} instead ? :O) -- Best, Alan * TeX engine = LuaTeX * ConTeXt minimals ver: 2008.56.06

Re: [NTG-context] define command

2008-11-14 Thread Wolfgang Schuster
Am 14.11.2008 um 12:58 schrieb Alan STONE: Hi, For example \define\somemacro[3]{...} gets invoked with \somemacro{#1}{#2}{#3} How do you get rid of those repeating pesky curly brackets and invoke a user defined macro with \somemacro{#1,#2,#3} \starttext \def\somemacro#1

Re: [NTG-context] define command

2008-11-14 Thread luigi scarso
On Fri, Nov 14, 2008 at 12:58 PM, Alan STONE [EMAIL PROTECTED]wrote: Hi, For example \define\somemacro[3]{...} gets invoked with \somemacro{#1}{#2}{#3} How do you get rid of those repeating pesky curly brackets and invoke a user defined macro with \somemacro{#1,#2,#3} Not what

<    1   2   3   4   >