Re: [NTG-context] Roman Page numbers

2009-09-04 Thread Derek CORDEIRO
On Fri, Sep 4, 2009 at 2:07 AM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 03.09.2009 um 15:30 schrieb Derek CORDEIRO:

 The following minimal example is not working under MkIV. However it works
 under MkII

 \setuppagenumbering[conversion=romannumerals]


 \setupuserpagenumber[numberconversion=romannumerals]



I do get romannumerals on each page now, but this is not reflected in the
TOC as it does in MkII. Below is the minimal example.



\starttext
\startfrontmatter

\setupuserpagenumber[numberconversion=romannumerals]
\setuppagenumber[number=1]
\completecontent[criterium=all]

\chapter{Intro}

\input tufte

\stopfrontmatter

\startbodymatter
\setuppagenumber[number=1]

\chapter{knuth}

\input knuth

\stopbodymatter

\stoptext


Help,
Derek
___
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] Roman Page numbers

2009-09-04 Thread Wolfgang Schuster


Am 04.09.2009 um 11:03 schrieb Derek CORDEIRO:

I do get romannumerals on each page now, but this is not reflected  
in the

TOC as it does in MkII. Below is the minimal example.


The new code is more complicated than i thought, here is solution to  
the problem.


As Hans suggested we should collect such setups on the wiki.

\definestructureconversionset[frontpart:pagenumber][][romannumerals]
\definestructureconversionset[bodypart:pagenumber] [][numbers]

\setuplist[chapter][pageconversionset=pagenumber]

\startstructureblockenvironment[frontpart]

\setupuserpagenumber[numberconversion=romannumerals]
\setuppagenumber[number=1]

\stopstructureblockenvironment

\startstructureblockenvironment[bodypart]

\setuppagenumber[number=1]

\stopstructureblockenvironment

\starttext

\startfrontmatter

\completecontent[criterium=all]

\chapter{Intro}

\input tufte

\stopfrontmatter

\startbodymatter

\chapter{knuth}

\input knuth

\stopbodymatter

\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] Errors on making lua documentation

2009-09-04 Thread luigi scarso
On Fri, Aug 28, 2009 at 10:45 AM, Hans Hagen pra...@wxs.nl wrote:

 luigi scarso wrote:

  The #1 argument  of find(find,%S)
 is find , which is a function, while should be a string, ie maybe
 something like

 function string:is_empty()
return not find(self,%S)
 end


 indeed; fixed


In minimals-beta/tex/texmf-context/tex/context/base


$context --ctx=x-ldx x-mathml.lua


systems : begin file x-mathml at line 1
! Use of \complexsetupwhitespace doesn't match its definition.
\doifnextoptionalelse ...\nextoptionalcommandyes {
  #1}\def
\nextoptionalcomma...
\starttabletail #1\stoptabletail -\setTABLEtail
 #1\end
\@@expanded ... \starttabletail ##1\stoptabletail
  {\setTABLEtail ##1\end }
\expanded #1-\long \xdef \@@expanded
  {\noexpand #1}\@@expanded
l.1 \xmlsetup{26}{ldx:variable}

\xmlflush #1-\ctxlua {lxml.flush(#1)}

...
l.2 \xmlprocess{\xmldocument}{./x-mathml.lua}{}


PS
Wolfgang, we may discuss about this in front a cup coffee ..


-- 
luigi
___
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] long quotation without quotation marks

2009-09-04 Thread Robert Blackstone
On Fri, Sep 4, 2009, Aditya Mahajan wrote


 On Thu, 3 Sep 2009, Robert Blackstone wrote:

  Hi all,
  In a text with some fairly long quotations I want to have these
 quotations
  without their quotation marks, not indented and set in small type.


 To make context ignore indenting of a signle paragraph, use
 \noindentation.

 delimited text does not offer control of indentation inside the
 environment, but offers sufficient hooks to enable manipulation of
 indentations.

 If you want paragraphs inside the quotation to be indented use the
 following (if not, replace noindentation with noindenting)

 \definedelimitedtext[LongQuote]
 [style={\switchtobodyfont[9pt]},
  spacebefore=medium,
  before=\noindentation, % also \noindenting,
]

 \setupindenting[big,yes]

 \starttext

 \input ward

 \startLongQuote
   \input knuth \par
 \stopLongQuote

 \input ward

 \stoptext


 Aditya

 Thank you Aditya, it helped. It was: before=\noindenting that did what I
wanted.

Surprisingly for me, in the example you gave, before=\noindentation resulted
in no indentation for the first paragraph but the two others were indented.
With before=\noindenting all three paragrapghs were unindented. I really
couldn’t have guessed this.

With some slight changes your example did almost exactly what I had in mind.
(Almost, since in a text like this I would prefer some space between the
paragraphs and I understand that it cannot be adjusted locally.)
Just for the sake of completeness I add it here:

\definedelimitedtext[LongQuote]
[style={\switchtobodyfont[9pt]},
 spacebefore=medium,
 before=\noindenting
   ]

\setupindenting[big,yes]

\starttext

\input ward
\startnarrower
\startLongQuote
  \input knuth \par
\stopLongQuote
\stopnarrower
\input ward

\stoptext

I have two related questions for the list:
a. Would it be useful to add this information to the ConTeXt wiki page on
Quotes?

b. Is there a complete and up to date list of commands for ConTeXt, and what
they are supposed to do, to be found somewhere? (I find things like the
existence of \noindent, \noindenting and \noindentation, all apparently
giving slightly different results, nice for the variety it offers but, for a
beginner, quite confusing  as well.)

Kind regards,

Robert Blackstone
___
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] long quotation without quotation marks

2009-09-04 Thread Aditya Mahajan

On Fri, 4 Sep 2009, Robert Blackstone wrote:


On Fri, Sep 4, 2009, Aditya Mahajan wrote



On Thu, 3 Sep 2009, Robert Blackstone wrote:


Hi all,
In a text with some fairly long quotations I want to have these

quotations

without their quotation marks, not indented and set in small type.



To make context ignore indenting of a signle paragraph, use
\noindentation.

delimited text does not offer control of indentation inside the
environment, but offers sufficient hooks to enable manipulation of
indentations.

If you want paragraphs inside the quotation to be indented use the
following (if not, replace noindentation with noindenting)

\definedelimitedtext[LongQuote]
[style={\switchtobodyfont[9pt]},
 spacebefore=medium,
 before=\noindentation, % also \noindenting,
   ]

\setupindenting[big,yes]

\starttext

\input ward

\startLongQuote
  \input knuth \par
\stopLongQuote

\input ward

\stoptext


Aditya

Thank you Aditya, it helped. It was: before=\noindenting that did what I

wanted.

Surprisingly for me, in the example you gave, before=\noindentation resulted
in no indentation for the first paragraph but the two others were indented.
With before=\noindenting all three paragrapghs were unindented. I really
couldn’t have guessed this.


I agree. The naming of the macros isn't the best in this case. The same 
result could have been achieved by


\setupindenting[no]

which is slightly easier to understand.


With some slight changes your example did almost exactly what I had in mind.
(Almost, since in a text like this I would prefer some space between the
paragraphs and I understand that it cannot be adjusted locally.)


I wasn't sure whether you wanted all paragraphs to be not be indented or 
not, so gave both options.



I have two related questions for the list:
a. Would it be useful to add this information to the ConTeXt wiki page on
Quotes?


Please do add it to the wiki. Searching the wiki is easier than searching 
the mailing list.



b. Is there a complete and up to date list of commands for ConTeXt, and what
they are supposed to do, to be found somewhere?


No. The manuals contain most of the information, but they are not 
complete. The only *complete* source of information is the source code 
(which is well documented). But, once you get the hang of ConTeXt's naming 
conventions, you can almost guess what the right key combination should 
be.



(I find things like the
existence of \noindent, \noindenting and \noindentation, all apparently
giving slightly different results, nice for the variety it offers but, for a
beginner, quite confusing  as well.)


See
http://www.tug.org/TUGboat/Articles/tb29-2/tb92mahajan.pdf

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
___


Re: [NTG-context] Intro to Luatex

2009-09-04 Thread John Culleton
On Saturday 29 August 2009 18:01:41 Idris Samawi Hamid ادريس 
سماوي حامد wrote:
 On Sat, 29 Aug 2009 15:35:33 -0600, John Culleton 
j...@wexfordpress.com

 wrote:
  Luatex has a lot of features that Context doesn't. Where is 
the best
  place to start learning about it?

 Category mistake: luatex is an engine, like pdftex and xetex :-)

 luatex is one of three official engines that context can use:

 MkII: pdftex,xetex
 MkIV: luatex

 MkII is frozen afaik: MkIV is the main development branch. 
Eventually MkIV
 will _be_ Context for all practical purposes.

 The most obvious thing MkIV gives you at the moment is 
advanced control of
 OpenType fonts. For developers, lua provides advanced 
scripting and
 extensibility. see also

 http://wiki.contextgarden.net/Mark_IV
 http://www.pragma-ade.com/general/manuals/mk.pdf

 Best wishes
 Idris

Simple question: using xetex style \font statements how do I get 
curly quotes from 
texexec --xtx book.tex?

Is the answer different for 
texexec --lua book.tex?


-- 
John Culleton
Create Book Covers with Scribus
http://www.booklocker.com/books/4055.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
___


[NTG-context] Problems with inner products

2009-09-04 Thread Guilherme P. de Freitas
Hi everybody,

I am trying to define a command for inner products. I would like to
type $\innerprod{x, y}$ and obtain in the output x, y. Now, I
defined

\define[2]\innerprod
  {\langle #1, #2 \rangle}

but then, when I used the command, I got some weird behavior: the next
character after y would jump in the inner product. For example,
when writing

$\innerprod{x, y} + z$

I was hoping to obtain as an output

x, y + z

But I got as an output

x, y + z

I am using the ConTeXt that came with MacTeX 2008 (I downloaded it a
few days ago).

Best,

Guilherme

-- 
Guilherme P. de Freitas
http://www.gpfreitas.com
___
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] EuroTeX 2009 reports?

2009-09-04 Thread Corin Royal Drummond
Wondering if there are any reports, papers, or videos from EuroTex and
the ConTeXt meeting for those of us who couldn´t be there.  

Thanks,

Corin 

___
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
___