[NTG-context] t-bib: URL and '%'; spacing between number

2008-04-01 Thread Michael Green
I hit a problem in the same area. Taco's solution then worked for me,  
though I can't tell if it's the same as your problem.

Here's the address of his answer to my question.

http://archive.contextgarden.net/message/ 
20070705.071416.5171d178.en.html
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Sections, cross-references and separators

2008-04-01 Thread Taco Hoekwater
Duncan Hothersall wrote:
 What I am aiming for is a style where:
 Parts are labelled A, B, C [done],
 Chapters are labelled A1, A2, A3 [done, but...],
 Cross-references to Chapters call them A1, A2, A3 [not done: I'm 
 getting A.1]
 Figures are labelled A1.1, A1.2 [not done; I'm getting A.11 (eek!)]
 Cross-references to Figures call them A1.1, A1.2 [not done: I'm 
 getting A.11]

In this case it is easier to make the actual chapter number include
the 'A'. That way, you won't have to worry about separator at all
(which is good, because its use is confusing).

Try this:

@@ -1,4 +1,4 @@
-\setupheads[separator=] %-- this can't be right
  \setupreferencing[state=start,chapternumber=yes,global=yes]
-\setupsection[section-1][conversion=Characters]
-\setupsection[section-2][previousnumber=yes]
+\def\Mychapter#1{\convertnumber{Characters}{\getvalue{@@sesection-1}}#1}
+\defineconversion[MyChapter][\Mychapter]
+\setupsection[section-2][conversion=MyChapter]


Question for Hans: is there a nicer way to get at the part number?
The explicit @@se is a bit too low-level for my taste ...

Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Software manual template request

2008-04-01 Thread Taco Hoekwater
Aditya Mahajan wrote:
 On Mon, 31 Mar 2008, Vyatcheslav Yatskovsky wrote:
 
 Hello,

 Does anyone has a template for software manual? I have vague notion
 about how it should look like, but, well,  I'll know when I see it.
 ;o) Most modern manuals have common design elements; I wish I had
 an environment which captures the spirit.

 Needless to say, untouched LuaTex envinroment gives too much academic look.

 Can anyone kindly suggest something?
 
 Most of the manuals of GNU software are written using texinfo. The 
 advantage is that it is easy to get HTML and info output. There is also 
 docbook, which offers some features for documenting code.
 
 Both of them have fairly simple look, so it should be easy to create a 
 ConTeXt module for them.

If anybody knows of a API documentation style that can handle functions
that both take variable arguments as well as return variable arguments,
I am very interested in that. For example, there is a the luatex lua
function tex.print, and it accepts the following types of calls:

   tex.print(string, ... )  -- multiple string args are possilbe
   tex.print(number, string, ... ) -- number is catcode table

And this is not a complex function at all. Here is kpse.find_file:

   f = kpse.find_file(filename)
   f = kpse.find_file(filename, 'ftype')
   f = kpse.find_file(filename, mustexist)
   f = kpse.find_file(filename, 'ftype', mustexist)
   f = kpse.find_file(filename, 'ftype', dpi)

* filename must be a string, otherwise an error is generated
* 'ftype'must be one specific value from an enumeration list,
  default tex
* mustexist  must be a boolean, default false
* dpimust be a number, and only applies if 'ftype' is
  'pk', 'gf', or 'bitmap font'. It is the bitmap size.

* f  can either become a string, or nil

It is quite hard to find a suitable documentation style for such
functions.

Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Converting counters?

2008-04-01 Thread Zhichu Chen
Hi,

I'm trying to convert the counter to Chinese character one on one, like
0-a, 1-b, etc., so 10 will be ba (I use a, b, c, . . . to denote the
Chinese
glyphs which makes more sense for you). I used some codes like:
==
\def\ChineseZero {o}
\def\ChineseOne  {a}
\def\ChineseTwo  {b}
\def\ChineseThree{c}
\def\ChineseFour {d}
\def\ChineseFive {e}
\def\ChineseSix  {f}
\def\ChineseSeven{g}
\def\ChineseEight{h}
\def\ChineseNine {i}

\unexpanded\def\zhnumber
  {\bgroup
   \catcode`\0=\active \uccode`\~=`\0 \uppercase{\let~\ChineseZero}%
   \catcode`\1=\active \uccode`\~=`\1 \uppercase{\let~\ChineseOne}%
   \catcode`\2=\active \uccode`\~=`\2 \uppercase{\let~\ChineseTwo}%
   \catcode`\3=\active \uccode`\~=`\3 \uppercase{\let~\ChineseThree}%
   \catcode`\4=\active \uccode`\~=`\4 \uppercase{\let~\ChineseFour}%
   \catcode`\5=\active \uccode`\~=`\5 \uppercase{\let~\ChineseFive}%
   \catcode`\6=\active \uccode`\~=`\6 \uppercase{\let~\ChineseSix}%
   \catcode`\7=\active \uccode`\~=`\7 \uppercase{\let~\ChineseSeven}%
   \catcode`\8=\active \uccode`\~=`\8 \uppercase{\let~\ChineseEight}%
   \catcode`\9=\active \uccode`\~=`\9 \uppercase{\let~\ChineseNine}%
   \loggingall
   \dozhnumber }

\def\stripunwantedspaces{}

\def\dozhnumber#1%
  {\expandafter\scantokens\expandafter
{\detokenize{#1\stripunwantedspaces}}\egroup}
==
It works fine with \zhnumber{15}, it gives ae which is exactly what I
want.
But it won't work in the following situation:
++
\newcount\tcpageno
\advance\tcpageno15
\zhnumber{\number\tcpageno}
++
I know it's not weird, I just don't know how to expand the counter to
number.


Thank you in advance.

-- 
Best Regards
Chen


Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
| www.sinap.ac.cn

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Converting counters?

2008-04-01 Thread Wolfgang Schuster
Hi Chen,

You could use \chinesenumber from font-chi.tex

Wolfgang

On Tue, Apr 1, 2008 at 9:18 AM, Zhichu Chen [EMAIL PROTECTED] wrote:
 Hi,

 I'm trying to convert the counter to Chinese character one on one, like
 0-a, 1-b, etc., so 10 will be ba (I use a, b, c, . . . to denote the
 Chinese
 glyphs which makes more sense for you). I used some codes like:
 ==
 \def\ChineseZero {o}
 \def\ChineseOne  {a}
 \def\ChineseTwo  {b}
 \def\ChineseThree{c}
 \def\ChineseFour {d}
 \def\ChineseFive {e}
 \def\ChineseSix  {f}
 \def\ChineseSeven{g}
 \def\ChineseEight{h}
 \def\ChineseNine {i}

 \unexpanded\def\zhnumber
   {\bgroup
\catcode`\0=\active \uccode`\~=`\0 \uppercase{\let~\ChineseZero}%
\catcode`\1=\active \uccode`\~=`\1 \uppercase{\let~\ChineseOne}%
\catcode`\2=\active \uccode`\~=`\2 \uppercase{\let~\ChineseTwo}%
\catcode`\3=\active \uccode`\~=`\3 \uppercase{\let~\ChineseThree}%
\catcode`\4=\active \uccode`\~=`\4 \uppercase{\let~\ChineseFour}%
\catcode`\5=\active \uccode`\~=`\5 \uppercase{\let~\ChineseFive}%
\catcode`\6=\active \uccode`\~=`\6 \uppercase{\let~\ChineseSix}%
\catcode`\7=\active \uccode`\~=`\7 \uppercase{\let~\ChineseSeven}%
\catcode`\8=\active \uccode`\~=`\8 \uppercase{\let~\ChineseEight}%
\catcode`\9=\active \uccode`\~=`\9 \uppercase{\let~\ChineseNine}%
\loggingall
\dozhnumber }

 \def\stripunwantedspaces{}

 \def\dozhnumber#1%
   {\expandafter\scantokens\expandafter
 {\detokenize{#1\stripunwantedspaces}}\egroup}
 ==
 It works fine with \zhnumber{15}, it gives ae which is exactly what I
 want.
 But it won't work in the following situation:
 ++
 \newcount\tcpageno
 \advance\tcpageno15
 \zhnumber{\number\tcpageno}
 ++
 I know it's not weird, I just don't know how to expand the counter to
 number.


 Thank you in advance.

 --
 Best Regards
 Chen
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Sections, cross-references and separators

2008-04-01 Thread Duncan Hothersall
Taco wrote:
 In this case it is easier to make the actual chapter number include
 the 'A'. That way, you won't have to worry about separator at all
 (which is good, because its use is confusing).

 Try this:

 @@ -1,4 +1,4 @@
 -\setupheads[separator=] %-- this can't be right
   \setupreferencing[state=start,chapternumber=yes,global=yes]
 -\setupsection[section-1][conversion=Characters]
 -\setupsection[section-2][previousnumber=yes]
 +\def\Mychapter#1{\convertnumber{Characters}{\getvalue{@@sesection-1}}#1}
 +\defineconversion[MyChapter][\Mychapter]
 +\setupsection[section-2][conversion=MyChapter]
   
Ah, thanks so much Taco, never thought of that approach - works like a 
charm. (I also thought that macros with @ in their names could only be 
used in protected mode, so that's two things I have learned for the 
price of one.)

Do you think this is general interest enough to warrant wikifying?

Thanks very much.

Duncan

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Software manual template request

2008-04-01 Thread luigi scarso
Until now we have two way to document sources:
for *tex file
texmfstart texexec --luatex --modules somefile.tex

for lua
texmfstart texexec --luatex --ctx=x-ldx somefile.lua

(both may need some setup  to work)
Actually this is  the quickest way to have the more accurate dev. documentation,
and I don't think we need something else .

-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Converting counters?

2008-04-01 Thread Zhichu Chen
Yes, only I don't need that complex. I mean \chinesenumber{123} will give
one hundred and twenty-three but all I want is one two three. Besides,
I don't like to copy such long codes since I really don't want to load
font-chi.tex
which gives weird spacing problems while typesetting Chinese along with
English. Anyway, I'd love to learn something rather than to use something.

Thanks.

On Tue, Apr 1, 2008 at 3:41 PM, Wolfgang Schuster 
[EMAIL PROTECTED] wrote:

 Hi Chen,

 You could use \chinesenumber from font-chi.tex

 Wolfgang

 On Tue, Apr 1, 2008 at 9:18 AM, Zhichu Chen [EMAIL PROTECTED] wrote:
  Hi,
 
  I'm trying to convert the counter to Chinese character one on one, like
  0-a, 1-b, etc., so 10 will be ba (I use a, b, c, . . . to denote the
  Chinese
  glyphs which makes more sense for you). I used some codes like:
  ==
  \def\ChineseZero {o}
  \def\ChineseOne  {a}
  \def\ChineseTwo  {b}
  \def\ChineseThree{c}
  \def\ChineseFour {d}
  \def\ChineseFive {e}
  \def\ChineseSix  {f}
  \def\ChineseSeven{g}
  \def\ChineseEight{h}
  \def\ChineseNine {i}
 
  \unexpanded\def\zhnumber
{\bgroup
 \catcode`\0=\active \uccode`\~=`\0 \uppercase{\let~\ChineseZero}%
 \catcode`\1=\active \uccode`\~=`\1 \uppercase{\let~\ChineseOne}%
 \catcode`\2=\active \uccode`\~=`\2 \uppercase{\let~\ChineseTwo}%
 \catcode`\3=\active \uccode`\~=`\3 \uppercase{\let~\ChineseThree}%
 \catcode`\4=\active \uccode`\~=`\4 \uppercase{\let~\ChineseFour}%
 \catcode`\5=\active \uccode`\~=`\5 \uppercase{\let~\ChineseFive}%
 \catcode`\6=\active \uccode`\~=`\6 \uppercase{\let~\ChineseSix}%
 \catcode`\7=\active \uccode`\~=`\7 \uppercase{\let~\ChineseSeven}%
 \catcode`\8=\active \uccode`\~=`\8 \uppercase{\let~\ChineseEight}%
 \catcode`\9=\active \uccode`\~=`\9 \uppercase{\let~\ChineseNine}%
 \loggingall
 \dozhnumber }
 
  \def\stripunwantedspaces{}
 
  \def\dozhnumber#1%
{\expandafter\scantokens\expandafter
  {\detokenize{#1\stripunwantedspaces}}\egroup}
  ==
  It works fine with \zhnumber{15}, it gives ae which is exactly what I
  want.
  But it won't work in the following situation:
  ++
  \newcount\tcpageno
  \advance\tcpageno15
  \zhnumber{\number\tcpageno}
  ++
  I know it's not weird, I just don't know how to expand the counter to
  number.
 
 
  Thank you in advance.
 
  --
  Best Regards
  Chen

 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___




-- 
Best Regards
Chen


Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
| www.sinap.ac.cn

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Converting counters?

2008-04-01 Thread Wolfgang Schuster
On Tue, Apr 1, 2008 at 9:56 AM, Zhichu Chen [EMAIL PROTECTED] wrote:
 Yes, only I don't need that complex. I mean \chinesenumber{123} will give
 one hundred and twenty-three but all I want is one two three. Besides,
 I don't like to copy such long codes since I really don't want to load
 font-chi.tex
 which gives weird spacing problems while typesetting Chinese along with
 English. Anyway, I'd love to learn something rather than to use something.

 Thanks.

\def\dododozhnumber#1%
  {\ifcase#1
   a\or
   b\or
   c\or
   d\or
   e\or
   f\or
   g\or
   i\or
   h\or
   i\fi
   \dozhnumber}

\def\zhnumber#1%
  {\dozhnumber#1\endzhnumber}

\def\endzhnumber{\endzhnumber}

\def\dozhnumber
  {\futurelet\next\dodozhnumber}

\def\dodozhnumber
  {\ifx\next\endzhnumber
 \expandafter\gobbleoneargument
   \else
 \expandafter\dododozhnumber
   \fi}

\starttext
\zhnumber{123}
\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Sections, cross-references and separators

2008-04-01 Thread Taco Hoekwater


Duncan Hothersall wrote:
 Taco wrote:
 In this case it is easier to make the actual chapter number include
 the 'A'. That way, you won't have to worry about separator at all
 (which is good, because its use is confusing).

 Try this:

 @@ -1,4 +1,4 @@
 -\setupheads[separator=] %-- this can't be right
   \setupreferencing[state=start,chapternumber=yes,global=yes]
 -\setupsection[section-1][conversion=Characters]
 -\setupsection[section-2][previousnumber=yes]
 +\def\Mychapter#1{\convertnumber{Characters}{\getvalue{@@sesection-1}}#1}
 +\defineconversion[MyChapter][\Mychapter]
 +\setupsection[section-2][conversion=MyChapter]
   
 Ah, thanks so much Taco, never thought of that approach - works like a 
 charm. (I also thought that macros with @ in their names could only be 
 used in protected mode, so that's two things I have learned for the 
 price of one.)

As far as TeX is concerned, I am not actually using the macro myself,
just mentioning its name. The \getvalue macro then constructs the actual
macro name internally. That works always, but usually macro calls look
funny when used in that way.

I just found  \rawsectionnumber, so with this change it should also work 
(and look less low-level, which is good if you want to wikify it):

   \def\Mychapter#1%
  {\convertnumber{Characters}{\rawsectionnumber{section-1}}#1}

Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Converting counters?

2008-04-01 Thread Wolfgang Schuster
On Tue, Apr 1, 2008 at 10:49 AM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:
 On Tue, Apr 1, 2008 at 9:56 AM, Zhichu Chen [EMAIL PROTECTED] wrote:
  Yes, only I don't need that complex. I mean \chinesenumber{123} will give
  one hundred and twenty-three but all I want is one two three. Besides,
  I don't like to copy such long codes since I really don't want to load
  font-chi.tex
  which gives weird spacing problems while typesetting Chinese along with
  English. Anyway, I'd love to learn something rather than to use something.
 
  Thanks.

A slightly modified version.

You could now also use counter values.

\def\dododozhnumber#1%
 {\ifcase#1
  a\or
  b\or
  c\or
  d\or
  e\or
  f\or
  g\or
  i\or
  h\or
  i\fi}

\def\zhnumber#1%
 {\expandafter\dozhnumber#1\endzhnumber}

\def\endzhnumber{\endzhnumber}

\def\dozhnumber
 {\futurelet\next\dodozhnumber}

\def\dodozhnumber
 {\ifx\next\endzhnumber
\let\next\gobbleoneargument
  \else
\def\next##1{\dododozhnumber{##1}\dozhnumber}%
  \fi\next}

\starttext
\zhnumber{01234}

\zhnumber{\number\pageno}
\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Converting counters?

2008-04-01 Thread Zhichu Chen
Thanks Wolfgang, it's perfect.

On Tue, Apr 1, 2008 at 5:04 PM, Wolfgang Schuster 
[EMAIL PROTECTED] wrote:

 On Tue, Apr 1, 2008 at 10:49 AM, Wolfgang Schuster
 [EMAIL PROTECTED] wrote:
  On Tue, Apr 1, 2008 at 9:56 AM, Zhichu Chen [EMAIL PROTECTED]
 wrote:
   Yes, only I don't need that complex. I mean \chinesenumber{123} will
 give
   one hundred and twenty-three but all I want is one two three.
 Besides,
   I don't like to copy such long codes since I really don't want to load
   font-chi.tex
   which gives weird spacing problems while typesetting Chinese along
 with
   English. Anyway, I'd love to learn something rather than to use
 something.
  
   Thanks.

 A slightly modified version.

 You could now also use counter values.

 \def\dododozhnumber#1%
  {\ifcase#1
  a\or
  b\or
  c\or
  d\or
  e\or
  f\or
  g\or
  i\or
  h\or
  i\fi}

 \def\zhnumber#1%
  {\expandafter\dozhnumber#1\endzhnumber}

 \def\endzhnumber{\endzhnumber}

 \def\dozhnumber
  {\futurelet\next\dodozhnumber}

 \def\dodozhnumber
  {\ifx\next\endzhnumber
 \let\next\gobbleoneargument
  \else
\def\next##1{\dododozhnumber{##1}\dozhnumber}%
  \fi\next}

 \starttext
 \zhnumber{01234}

 \zhnumber{\number\pageno}
 \stoptext

 Wolfgang

 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___




-- 
Best Regards
Chen


Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
| www.sinap.ac.cn

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pagenumbering in header-margin with outer-align

2008-04-01 Thread Wolfgang Schuster
On Sat, Mar 29, 2008 at 7:06 PM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:
 On Fri, 28 Mar 2008 21:41:27 +0100
 Peter Schorsch [EMAIL PROTECTED] wrote:

  Hi,
 
  I am trying to put the pagenumber in the margin of the header. But I also 
  want
  it outer-aligned - not inner-aligned, which seems to be the standart
  alignment of margin. But the inner-align of the body-margin should still be
  inner-aligned. So I tried following:
 
  \setuppagenumbering[conversion=Romannumerals,alternative=doublesided,
location={header,margin},style={\setupalign[outer]}]
 
  but Context dont like this.. it stops converting. Does anyone know a working
  solution for this problem?

 \setuppagenumbering
  [conversion=Romannumerals,
   alternative=doublesided,
   location=]

 \setupheadertexts[margin]
  [][\hfil\pagenumber][\pagenumber\hfil][]


also possible

\setupheader
  [margin]
  [righttext=\doifoddpageelse{\hfill\pagenumber}{\pagenumber\hfill}]

 \starttext

 \dorecurse{30}{\input knuth\par}

 \stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] New Member Introductory Rant

2008-04-01 Thread Hans Hagen
Mojca Miklavec wrote:
 On Mon, Mar 31, 2008 at 5:46 PM, Andrea Valle wrote:
  Thanks Aditya



 Sorry, I have no idea of how things work on a Mac, but it seems strange to
 hide the entire tex tree

 simply, the whole usr folder is hidden
 
 OK, but when you install Windows, the whole C:\ directory is hidden as
 well if I recall it correctly. You have to keep in mind that most
 users should not bother about things under /usr. For the rest, there
 is Terminal.

c: is not hidden, some system paths are semi hidden, i.e. the file 
manager does not show their content unless explicitely told to do

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] ConTeXt meeting moved to October/November

2008-04-01 Thread Mojca Miklavec
Hello,

I'm sorry to inform you that due to some other unavoidable obligations
at the faculty, I have been forced to move the ConTeXt meeting to 29th
October - 3rd November, unless I will be able to find someone else to
take over the organisation.

More information to come in the following days.

I'm really sorry for the incovenience,
 Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt meeting moved to October/November

2008-04-01 Thread Steffen Wolfrum
I hope you are joking, no?!

As today is April fool's day I don't worry about your email ...
... otherwise I really would, cause as all tickets are now booked and  
payed for August!!!


Steffen



Am 01.04.2008 um 20:15 schrieb Mojca Miklavec:
 Hello,

 I'm sorry to inform you that due to some other unavoidable obligations
 at the faculty, I have been forced to move the ConTeXt meeting to 29th
 October - 3rd November, unless I will be able to find someone else to
 take over the organisation.

 More information to come in the following days.

 I'm really sorry for the incovenience,
  Mojca
 __ 
 _
 If your question is of interest to others as well, please add an  
 entry to the Wiki!

 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ 
 ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 __ 
 _

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt meeting moved to October/November

2008-04-01 Thread Willi Egger
Gosh! - I do hope this is a 1st of april joke!


Willi

On Apr 1, 2008, at 8:15 PM, Mojca Miklavec wrote:
 Hello,

 I'm sorry to inform you that due to some other unavoidable obligations
 at the faculty, I have been forced to move the ConTeXt meeting to 29th
 October - 3rd November, unless I will be able to find someone else to
 take over the organisation.

 More information to come in the following days.

 I'm really sorry for the incovenience,
  Mojca
 __ 
 _
 If your question is of interest to others as well, please add an  
 entry to the Wiki!

 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ 
 ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 __ 
 _

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Different os, different output (and other)

2008-04-01 Thread Diego Depaoli
2008/4/1, Aditya Mahajan [EMAIL PROTECTED]:
 Are Opensuse and freebsd using an older version of ConTeXt? (ctxtools
  --contextversion should tell the context version). There was a bug in
  enumeration and conversions which was fixed around the middle of last
  year.
You're right.
Ubuntu's version is dated september 2007, Opensuse january 2007 and
FreeBSD (tetex) 2005!


  To get alignment you can do this

  \starttest
  {\switchtobodyfont[20pt]\bf Test} This is a test \input knuth
  \stoptest
Many thanks, it works.

  Hans, can \switchtobodyfont be modified so that it also works for relative
  font size (a,b,c,x,xx)? Also something is wrong with location=left|right
  and titles.

  \defineenumeration[test][location=left,title=yes]
title...
I don't remember this option...

-- 
Diego Depaoli
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt meeting moved to October/November

2008-04-01 Thread Mojca Miklavec
On Tue, Apr 1, 2008 at 9:09 PM, Steffen Wolfrum wrote:
 I hope you are joking, no?!

  As today is April fool's day I don't worry about your email ...
  ... otherwise I really would, cause as all tickets are now booked and
  payed for August!!!

No need to worry.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt meeting moved to October/November

2008-04-01 Thread Idris Samawi Hamid
On Tue, 01 Apr 2008 12:15:00 -0600, Mojca Miklavec  
[EMAIL PROTECTED] wrote:

 I'm sorry to inform you that due to some other unavoidable obligations
 at the faculty, I have been forced to move the ConTeXt meeting to 29th
 October - 3rd November, unless I will be able to find someone else to
 take over the organisation.

LOL: You really scared me, Mojca ;-)

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt meeting moved to October/November

2008-04-01 Thread Arthur Reutenauer
 LOL: You really scared me, Mojca ;-)

  You're no fun: April Fools are not supposed to be disclosed in public!
You should have said something like “I would be happy to take over
organization at the original date, but you would have to come to the US
(I have found the perfect location for a conference at the bottom of the
Grand Canyon)” :-)

Arthur

P-S: By the way, for next year I have found the perfect location for a
conference on Easter Island ...
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt meeting moved to October/November

2008-04-01 Thread Hans Hagen
Idris Samawi Hamid wrote:
 On Tue, 01 Apr 2008 12:15:00 -0600, Mojca Miklavec  
 [EMAIL PROTECTED] wrote:
 
 I'm sorry to inform you that due to some other unavoidable obligations
 at the faculty, I have been forced to move the ConTeXt meeting to 29th
 October - 3rd November, unless I will be able to find someone else to
 take over the organisation.
 
 LOL: You really scared me, Mojca ;-)

well, i just booked a flight for the mentioned period, so now she has to 
organize two conferences

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt meeting moved to October/November

2008-04-01 Thread Arthur Reutenauer
 well, i just booked a flight for the mentioned period, so now she has to 
 organize two conferences

  I would have, too, but the network folks at my university have just
informed us that in order to support sustainable development and spend
less energy, they will shut down our Internet connection 50% of the time
at random moments this week, and I don't want to risk being in the
process of typing my credit card number when this happens ...

Arthur
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt meeting moved to October/November

2008-04-01 Thread Mojca Miklavec
On Wed, Apr 2, 2008 at 12:00 AM, Hans Hagen wrote:
 Idris Samawi Hamid wrote:
   On Tue, 01 Apr 2008 12:15:00 -0600, Mojca Miklavec
   [EMAIL PROTECTED] wrote:
  
   I'm sorry to inform you that due to some other unavoidable obligations
   at the faculty, I have been forced to move the ConTeXt meeting to 29th
   October - 3rd November, unless I will be able to find someone else to
   take over the organisation.

  well, i just booked a flight for the mentioned period, so now she has to
  organize two conferences

Now, you have sent that 16 seconds past midnight.
I could only wish that the timing would have been intended ... ;)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Different os, different output (and other)

2008-04-01 Thread Aditya Mahajan
On Tue, 1 Apr 2008, Diego Depaoli wrote:

 2008/4/1, Aditya Mahajan [EMAIL PROTECTED]:
  \defineenumeration[test][location=left,title=yes]
 title...
 I don't remember this option...

Title has been there since 2006 (I think), but it was experimental for a 
while, and not documented. Last summer, I modified some of the code so 
that enumerations can support titles (for theorems and such) and close 
symbols (for proofs). Unfortunately, did not really get enough time to 
write a My Way on it. I did write an article for this issue on MAPS about 
support for theorems which gives the details about titles. I do not know 
if the current MAPS has been published or not.

Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___