Re: [NTG-context] German ConTeXt Initiative

2010-03-15 Thread Vnpenguin

 On Sat, Mar 13, 2010 at 20:41, Hannes Riebl wrote:
 Hi Mojca,

 my name is Hannes. I've set up the german ConTeXt board on
 http://context.pytalhost.de/.

 Yasser asked me to contact you because of our idea to start a german
 community platform for ConTeXt.

 We both prefer a board instead of a mailing list because we think it's
 easier to use especially for unexperienced users. Another reason is that I'm
 not very experienced with mailing lists and have never set up one neither do
 I know HyperNews. I personally like PunBB because it's lightwight and easy
 to set up and administer.

Yep, one vote for PunBB :-)
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt forum engine

2010-03-15 Thread Mojca Miklavec
On Mon, Mar 15, 2010 at 00:21, Vyatcheslav Yatskovsky wrote:
 Hello

 Why not phpBB??

 http://www.phpbb.com/

The question was whether there's also some other solution worth
considering. (This one is most likely to be used otherwise.)

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] interaction fails with footnotes (was: xml with interaction fails in footnotes)

2010-03-15 Thread Philipp Gesang
On 2010-03-14 22:01:40, Curiouslearn wrote:
 Have you updated to the latest context minimals version. That might
 solve the problem. I had a similar  problem with including a clickable
 URL in a footnote. Updating solved it.
Yes, I did.  It's friday's beta and recent minimals but I remember
already experiencing this error a while ago and ignoring it back then
(by switching off interaction).  And note that I don't even have
clickable stuff _in_ the footnote, it is the raised footnote marker
itself that is clickable.

Thanks anyways,


Philipp

 
 On 3/14/10, Philipp Gesang pges...@ix.urz.uni-heidelberg.de wrote:
  On 2010-03-15 00:12:03, Philipp Gesang wrote:
  Good evening all,
 
 
  I'm experiencing a weird behaviour when using my module to transliterate
  stuff in a footnote.  ConTeXt fails with an undefined control sequence
  if an only if I switch on interaction.
 
  The issue vanishes when I removing either the footnote environment or
  the interaction or the transliteration or the tag with the text to be
  transliterated.
 
  In the following minimal example I specified the lines that will make
  context process the file when commented out.  Please note that
  everything works fine outside xml as the transliteration immediately
  after “\starttext” demonstrates.
  Correction: It doesn't work fine outside xml, too, when again put in a
  footnote.[1]  So forget about the xml part.  Interaction seems to be the
  culprit.
 
  Philipp
 
 
  [1] Like this:
  ---8--
  Words before a footnote\footnote{
  \transliterate{раз, два, три}
  }
  ---8--
 
 
 
  Thanks for any help,
 
 
  Philipp
 
  ---8--
 
  \enabletrackers[xml.entities]
  \enabletrackers[xml.parse]
  \enabletrackers[xml.path]
  \enabletrackers[xml.profile]
  \enabletrackers[xml.remap]
  \enabletrackers[lxml.access]
  \enabletrackers[lxml.comments]
  \enabletrackers[lxml.loading]
  \enabletrackers[lxml.manipulations]
  \enabletrackers[lxml.setups]
 
  \setupinteraction[state=start]%this one
  \usemodule[transliterator]
 
  \startxmlsetups xml:testsetups
  \xmlsetsetup{\xmldocument}{*}{-}
  \xmlsetsetup{\xmldocument}{
body|
content|
trru|   %this one
fn|
}{xml:*}
  \stopxmlsetups
 
  \xmlregistersetup{xml:testsetups}
 
  \startxmlsetups xml:body
  \xmlflush{#1}
  \stopxmlsetups
 
  \startxmlsetups xml:content
  \xmlflush{#1}
  \stopxmlsetups
 
  \startxmlsetups xml:fn
  \startfootnote%this together with …
  \xmlflush{#1}
  \stopfootnote %… this one
  \stopxmlsetups
 
  \startxmlsetups xml:trru
\starttransliterate %this together with …
  \xmlflush{#1}
\stoptransliterate  %… this one
  \stopxmlsetups
 
  \starttext
 
  \transliterate{раз, два, три}
 
  \startbuffer
  body
  content
Content to include with a footnote
fn
trruраз, два, три/trru  %this one
/fn
  /content
  /body
  \stopbuffer
 
  \xmlprocessbuffer{test}{}{}
 
  \stoptext
 
  ---8--
 
  --
  ()  ascii ribbon campaign - against html e-mail
  /\  www.asciiribbon.org   - against proprietary attachments
 
 
 
  ___
  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  : http://foundry.supelec.fr/projects/contextrev/
  wiki : http://contextgarden.net
  ___
 
 
  --
  ()  ascii ribbon campaign - against html e-mail
  /\  www.asciiribbon.org   - against proprietary attachments
 
 
 -- 
 Sent from my mobile device
 ___
 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : 

Re: [NTG-context] alignment explanation

2010-03-15 Thread Mehdi Omidali

On 3/15/2010 2:21 AM, Aditya Mahajan wrote:

On Mon, 15 Mar 2010, Mehdi Omidali wrote:

   

Hi,
Finally, after reading source code of math-ali.mkiv, I found the best way to
typeset my multiline equation as follows

\starttext
\placeformula

\startformula

\startalign[n=3]
 

This means that you must have three columns in each line


   

\NC x^2 + y^2 \NC = z^2 \NC \NR[eq:1]

\NC\NC = w^2 \NC + u^2\NC \text{(by \in{Equation}[eq:2])} \cr
 

This has 4 columns. You do not get an error message because you use \cr
instead of \NR. That also messes up the alignment of the next equation.
   

but I don't know what is going on here. Exactly, eq:2 and eq:3 has the same
output but they can not be interchanged. Can someone explain this code?
 

This is how I would do this.

\placeformula \startformula \startalign[n=3]
\NC x^2 + y^2 \NC = z^2 \NC 
\NR[eq:1]
\NC   \NC = w^2 + u^2   \NC \text{(by \in{Equation}[eq:2])} \NR
\NC   \NC \quad + v^2 + r^2 \NC 
\NR[eq:2]
\NC   \NC \quad + v^2 + r^2 \NC 
\NR[eq:3]
\NC   \NC = v^2 + r^2   \NC 
\NR[eq:4]
\stopalign \stopformula

Aditya
   
Thanks, but your output is not the same as mine. The comment by 
Equation 2 must be right aligned exactly where formula number is. Also 
I don't like manual alignment like \quad. AMS-TEX provide commands for 
automatic alignment. It would be nice if context supports that too.

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] where \xmlnofelements

2010-03-15 Thread Hans van der Meer

Here \xmlnofelements (seen in the refman) gives
! Undefined control sequence.
\@@su:xml:case:processing ...fnum \xmlnofelements

Has this macro disappeared? Best replacement? I would like to switch  
on a node having other nodes in it besides text content.


Hans van der Meer
ConTeXt  ver: 2010.03.10 23:47 MKIV  fmt: 2010.3.11  int: english/ 
english





___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] not printable pdf

2010-03-15 Thread R. Bastian
On Sat, 13 Mar 2010 18:57:07 +0100
luigi scarso luigi.sca...@gmail.com scribit:

 On Sat, Mar 13, 2010 at 6:22 PM, R. Bastian rbast...@free.fr wrote:
  Hello,
 
  I join a minimal example (ex0.tex)
 
  texexec (version 6.2.1) and context (2009.10.02)
  compile and the PDf is visible (xpdf and kpdf)
  but it is not printable (lpr -P HP-5MP ...)
 printable here with my HP LaserJEt 1020
 #cupsdoprint -P HP_LaserJet_1020 -o InputSlot=Auto -o
 Resolution=1200x600dpi -o PageSize=A4 $1
 
 
  The same text in his Latex-form is printed (after pdflatex), so I think 
  that there is a bug in the PDF produced by context | texexec.
 I don't see anything wrong in it.
 -- 
 luigi

Something is wrong with my printer which prefers PDF from Latex :( 

I tried 'pdftops' - the PS output is not printable.

Is there a way to get PostScript output from context ?
 
 


-- 
René Bastian
www.pythoneon.org
www.musiques-rb.org
http://www.soundsurvey.org.uk/


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] not printable pdf

2010-03-15 Thread Taco Hoekwater

R. Bastian wrote:


Something is wrong with my printer which prefers PDF from Latex :( 


Perhaps you could try \pdfminorversion = 4.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt forum engine

2010-03-15 Thread Andreas Schneider
Mojca Miklavec wrote:

 On Mon, Mar 15, 2010 at 00:21, Vyatcheslav Yatskovsky wrote:
 Hello

 Why not phpBB??

 http://www.phpbb.com/
 
 The question was whether there's also some other solution worth
 considering. (This one is most likely to be used otherwise.)
 
 Mojca

I vote for http://www.simplemachines.org/ which is a lot easier to 
administrate and also has lots of features. An integrated package and 
upgrade manager makes security updates pretty easy (a few clicks instead of 
uploading/downloading any update scripts yourself).
I use both myself - phpbb and smf - and I have a lot less trouble with the 
smf install than with phpbb.

Best Regards,
Andreas.

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] not printable pdf

2010-03-15 Thread luigi scarso
On Mon, Mar 15, 2010 at 11:55 AM, R. Bastian rbast...@free.fr wrote:


 Something is wrong with my printer which prefers PDF from Latex :(
hm, can you show
pdfinfo/pdffonts your_latex_pdf
and
pdfinfo/pdffonts your_context-mkii_pdf


 I tried 'pdftops' - the PS output is not printable.
 Is there a way to get PostScript output from context ?

hm you should use dvi mode and then dvips ... but it's better if you
send me off ml you pdf

-- 
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt forum engine

2010-03-15 Thread Taco Hoekwater

Andreas Schneider wrote:

Mojca Miklavec wrote:


On Mon, Mar 15, 2010 at 00:21, Vyatcheslav Yatskovsky wrote:

Hello

Why not phpBB??

http://www.phpbb.com/

The question was whether there's also some other solution worth
considering. (This one is most likely to be used otherwise.)

Mojca


I vote for http://www.simplemachines.org/ which is a lot easier to 
administrate and also has lots of features. An integrated package and 
upgrade manager makes security updates pretty easy (a few clicks instead of 
uploading/downloading any update scripts yourself).
I use both myself - phpbb and smf - and I have a lot less trouble with the 
smf install than with phpbb.


Same experience here, so my vote would go to smf as well (although I am
rather unlikely to use the forum except when someone explicitly points
to a thread/question).

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt forum engine

2010-03-15 Thread Patrick Gundlach
Hi all,

before everyone votes for a different software, what about a forum that is 
hosted by another company but reached from a contextgarden subdomain? There 
should be services on the net that support that?!?

And I would (probably) only use software that can be installed with ubuntu 
package manager from the distribution that is running on contextgarden to 
reduce maintenance.

Patrick

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] interaction fails with footnotes

2010-03-15 Thread Hans Hagen

On 15-3-2010 0:32, Philipp Gesang wrote:

On 2010-03-1500:12:03, Philipp Gesang wrote:

Good evening all,


I'm experiencing a weird behaviour when using my module to transliterate
stuff in a footnote.  ConTeXt fails with an undefined control sequence
if an only if I switch on interaction.

The issue vanishes when I removing either the footnote environment or
the interaction or the transliteration or the tag with the text to be
transliterated.

In the following minimal example I specified the lines that will make
context process the file when commented out.  Please note that
everything works fine outside xml as the transliteration immediately
after “\starttext” demonstrates.

Correction: It doesn't work fine outside xml, too, when again put in a
footnote.[1]  So forget about the xml part.  Interaction seems to be the
culprit.


you have to make a minial example that i can run here (no fancy module 
code that can interfere)


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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] text in current node only

2010-03-15 Thread Hans van der Meer

How can I restrict the text to that in the current node only.
Calling \xmltext{#1}{} gives me not only the text in the current node,  
but also the text in its subnodes. The latter I want to suppress.


Hans van der Meer




___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] oldstyle numbers in TeXGyre fonts

2010-03-15 Thread Thomas A. Schmitz
Hi all, Hans,

is there or can we have an easy, fast way of setting up the TeXGyre fonts so 
that they use oldstyle numbers by default? I think this would be attractive at 
least for the serif fonts termes, pagella, schola, which all have this feature. 

All best

Thomas
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] What do you miss in ConTeXt?

2010-03-15 Thread Mojca Miklavec
 By the way, XeTeX also breaks, but in a different way. Računalne
 mreže becomes RaÄ“unalne mreže. Same option also doesn't do
 anything.

 MkIV works nicely, and I know I should probably be using that, but
 LaTeX with hyperref can do unicode bookmarks in both XeTeX and pdfTeX,
 so it would be really cool if ConTeXt would be able to do it as well.

 Hm, i wonder what goes wrong, so can you make a test file? I was under the
 impression that context could do it before latex if only because it was used
 to test the  entries when that feature was added to pdftex so maybe
 soemthing got lost (it might also be that some ecodings work better than
 others, so let's assume utf)

I figured out that loading \input spec-tst.mkii before
\setupinteraction[state=start] works as expected in MKII (but then -
the backward compatibility is broken as well since one would have to
load the tex version of that file in past). Loading it after doesn't
have any influence.

It would be really nice if there was some more elegant way to use
UTF-8 in bookmarks than \input spec-tst.mkii.

For me the bookmarks in XeTeX seem to work fine.

Mojca

%%% only for pdftex
\enableregime
[utf-8]
\input spec-tst.mkii
%%%
\setupinteraction
[state=start]
\placebookmarks
[chapter,section,subsection]
[chapter,section]
\setupinteractionscreen
[option=bookmark]

\starttext

\section{Čisto prva}
\page
\section{še druga}
\page
\section{In žadnja}
\section{Računalne mreže}

\stoptext


bookmark.tex
Description: TeX document
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] oldstyle numbers in TeXGyre fonts

2010-03-15 Thread Hans Hagen

On 15-3-2010 14:46, Thomas A. Schmitz wrote:

Hi all, Hans,

is there or can we have an easy, fast way of setting up the TeXGyre fonts so 
that they use oldstyle numbers by default? I think this would be attractive at 
least for the serif fonts termes, pagella, schola, which all have this feature.


\definefontfeature[default][default][onum=yes]


-
  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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] What do you miss in ConTeXt?

2010-03-15 Thread Hans Hagen

On 15-3-2010 14:53, Mojca Miklavec wrote:

By the way, XeTeX also breaks, but in a different way. Računalne
mreže becomes RaÄ“unalne mreže. Same option also doesn't do
anything.

MkIV works nicely, and I know I should probably be using that, but
LaTeX with hyperref can do unicode bookmarks in both XeTeX and pdfTeX,
so it would be really cool if ConTeXt would be able to do it as well.


Hm, i wonder what goes wrong, so can you make a test file? I was under the
impression that context could do it before latex if only because it was used
to test the  entries when that feature was added to pdftex so maybe
soemthing got lost (it might also be that some ecodings work better than
others, so let's assume utf)


I figured out that loading \input spec-tst.mkii before
\setupinteraction[state=start] works as expected in MKII (but then -
the backward compatibility is broken as well since one would have to
load the tex version of that file in past). Loading it after doesn't
have any influence.

It would be really nice if there was some more elegant way to use
UTF-8 in bookmarks than \input spec-tst.mkii.


i'll merge the tst code into the other spec files

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] desperate for xmlstrip

2010-03-15 Thread Hans van der Meer

I really need to remove the leading and trailing whitespace from nodes.
Tried in vain to get \xmlstrip (and friends like \xmlstripnolines)  
working.
Just doing \xmlstripped{node}{lpath} is not adequate, because I want  
to order the output when a node contains several subnodes (using  
\xmlfilter for this).
Below a minimal example. Tweaking the \xmlstrip in all sorts of way  
did not help.


Hans van der Meer

\startxmlsetups xml:testsetups
\xmlsetsetup{test}{test|a|b|c}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:testsetups}

\startxmlsetups xml:test
\xmlstrip{#1}{}
\xmltext{#1}{} No spaces should showup between nodes!
\stopxmlsetups

\startxmlsetups xml:a
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:b
\xmltext{#1}{}
\stopxmlsetups

\startxmlsetups xml:c
\xmlflush{#1}
\stopxmlsetups

\starttext
\xmlprocessfile{test}{test.xml}{}
\stoptext

Input xml-file:
?xml version=1.0 encoding=UTF-8?
test
a
This is node a:
b
:Node b:
/b
c
:Node c:
/c
/a
/test

The result:


test.pdf
Description: Adobe PDF document






___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] alignment explanation

2010-03-15 Thread Aditya Mahajan
On Mon, 15 Mar 2010, Mehdi Omidali wrote:

 On 3/15/2010 2:21 AM, Aditya Mahajan wrote:
 On Mon, 15 Mar 2010, Mehdi Omidali wrote:

 
 Hi,
 Finally, after reading source code of math-ali.mkiv, I found the best way 
 to
 typeset my multiline equation as follows
 
 \starttext
 \placeformula
 
 \startformula
 
 \startalign[n=3]
 
 This means that you must have three columns in each line
 

 
 \NC x^2 + y^2 \NC = z^2 \NC \NR[eq:1]
 
 \NC\NC = w^2 \NC + u^2\NC \text{(by \in{Equation}[eq:2])} \cr
 
 This has 4 columns. You do not get an error message because you use \cr
 instead of \NR. That also messes up the alignment of the next equation.
 
 but I don't know what is going on here. Exactly, eq:2 and eq:3 has the 
 same
 output but they can not be interchanged. Can someone explain this code?
 
 This is how I would do this.
 
 \placeformula \startformula \startalign[n=3]
 \NC x^2 + y^2 \NC = z^2 \NC 
 \NR[eq:1]
 \NC   \NC = w^2 + u^2   \NC \text{(by \in{Equation}[eq:2])} \NR
 \NC   \NC \quad + v^2 + r^2 \NC 
 \NR[eq:2]
 \NC   \NC \quad + v^2 + r^2 \NC 
 \NR[eq:3]
 \NC   \NC = v^2 + r^2   \NC 
 \NR[eq:4]
 \stopalign \stopformula
 
 Aditya
 
 Thanks, but your output is not the same as mine. The comment by Equation 2 
 must be right aligned exactly where formula number is.

ConTeXt does not support that directly, but you can fake it.

\def\NRtag{\global\let\doalignNC\dodoalignNC\doalignNRtag}%

\def\doalignNRtag[#1]%
  {#1\crcr}

\starttext
\placeformula
\startformula
\startalign[n=3]
\NC x^2 + y^2 \NC = z^2 \NC \NR[eq:1]
\NC   \NC = w^2 \NC + u^2   \NRtag[\text{(by \in{Equation}[eq:2])}]
\NC   \NC   \NC + v^2 + r^2 \NR[eq:2]
\NC   \NC   \NC + v^2 + r^2 \NR[eq:3]
\NC   \NC = v^2 \NC + r^2   \NR[eq:4]
\stopalign
\stopformula
\stoptext


 Also I don't like 
 manual alignment like \quad. AMS-TEX provide commands for automatic 
 alignment. It would be nice if context supports that too.

ConTeXt does support that (see above); but aligning at the + sign makes 
sense only for specific types of equations. In general, using \quad is 
considered good typography. (Imagine what would happen if the first term 
in one of the equations was very big).

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] fig-base MKIV

2010-03-15 Thread Thomas Engel
Hi Hans,


 
 I have a problem with the following code section:
 
 .
 \usemodule[fig-base]
 \usefigurebase[drivepictures]
 .
 
 \midaligned{\externalfigure[cabinet][width=7cm]}
 
 If I run this code with MKII all the pictures are placed in the
 document from my picture datebase.
 If I run this code with MKIV I got only dummy pictures.

I didn't receive your -e-mail maybe a wrong configuration of my e-mail
system. So I have seen your answer via the web archive.

Your solution not to load the \usemodule[fig-base] is working. Thanks!

Thomas


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] mkiv and unicode

2010-03-15 Thread Wolfgang Werners-Lucchini
Hallo,

I work all the time with good old mkii-context, but I have had a lot 
of problems last time, which could be solved easely if I switch to 
mkiv. So I wonder if I should change. The main argument for me to 
stay with mkii is the following:

I have a lot of lua scripts withhin scite which are preprocessing my 
textfiles (string.gsub etc.) These scripts depent on ansi-code and do 
not work with unicode too.

An other problem I have, is to teach scite to use utf-8 per default.
(code.page=65001) does not work for me. I have tried this with a lot 
of versions of scite.

Has anybody experiences with scite-lua-scripts and unicode?

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mkiv and unicode

2010-03-15 Thread Hans Hagen

On 15-3-2010 18:27, Wolfgang Werners-Lucchini wrote:

Hallo,

I work all the time with good old mkii-context, but I have had a lot
of problems last time, which could be solved easely if I switch to
mkiv. So I wonder if I should change. The main argument for me to
stay with mkii is the following:

I have a lot of lua scripts withhin scite which are preprocessing my
textfiles (string.gsub etc.) These scripts depent on ansi-code and do
not work with unicode too.

An other problem I have, is to teach scite to use utf-8 per default.
(code.page=65001) does not work for me. I have tried this with a lot
of versions of scite.


code.page=65001
output.code.page=65001


Has anybody experiences with scite-lua-scripts and unicode?


it depends on what you do but normally lua does not care about funny 
characters in strings


an option is to run the script outside scite and pipe data back

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] alignment explanation

2010-03-15 Thread Mehdi Omidali

On 3/15/2010 8:10 PM, Aditya Mahajan wrote:

On Mon, 15 Mar 2010, Mehdi Omidali wrote:

   


ConTeXt does not support that directly, but you can fake it.

\def\NRtag{\global\let\doalignNC\dodoalignNC\doalignNRtag}%

\def\doalignNRtag[#1]%
   {#1\crcr}

\starttext
\placeformula
\startformula
\startalign[n=3]
\NC x^2 + y^2 \NC = z^2 \NC \NR[eq:1]
\NC   \NC = w^2 \NC + u^2   \NRtag[\text{(by \in{Equation}[eq:2])}]
\NC   \NC   \NC + v^2 + r^2 \NR[eq:2]
\NC   \NC   \NC + v^2 + r^2 \NR[eq:3]
\NC   \NC = v^2 \NC + r^2   \NR[eq:4]
\stopalign
\stopformula
\stoptext

ConTeXt does support that (see above); but aligning at the + sign makes
sense only for specific types of equations. In general, using \quad is
considered good typography. (Imagine what would happen if the first term
in one of the equations was very big).

Aditya
   
Thank you. It is perfect now. I think this solution deserve appearing in 
your MyWay manual. In fact, it deserves to be supported directly in MKIV.

Mehdi
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] interaction fails with footnotes

2010-03-15 Thread Philipp Gesang
On 2010-03-15 14:10:10, Hans Hagen wrote:
 On 15-3-2010 0:32, Philipp Gesang wrote:
 On 2010-03-1500:12:03, Philipp Gesang wrote:
 Good evening all,
 
 
 I'm experiencing a weird behaviour when using my module to transliterate
 stuff in a footnote.  ConTeXt fails with an undefined control sequence
 if an only if I switch on interaction.
 
 The issue vanishes when I removing either the footnote environment or
 the interaction or the transliteration or the tag with the text to be
 transliterated.
 
 In the following minimal example I specified the lines that will make
 context process the file when commented out.  Please note that
 everything works fine outside xml as the transliteration immediately
 after “\starttext” demonstrates.
 Correction: It doesn't work fine outside xml, too, when again put in a
 footnote.[1]  So forget about the xml part.  Interaction seems to be the
 culprit.
 
 you have to make a minial example that i can run here (no fancy
 module code that can interfere)

Of course.  I could narrow it down to this.  Try commenting out the
interaction part.
---8-

\setupinteraction[state=start] 

\def\test{\dosingleempty\dotest}
\def\dotest[#1]#2{#2}

\starttext

Words before a footnote\footnote{
  Test
  \test{Test}
}

\stoptext

% vim:ft=context

---8-

The error I get is the same as with my module:
---8-
! Undefined control sequence.
\dododescriptioncomponent ...entdescriptioncoding 
  \s!tex \fi \ifx \currentde...
\@@notemakedescription ...list =,\c!bookmark =,][]
  \xdef \currentnotenumber {...
l.11 }
---8-


Philipp


 
 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


signature.asc
Description: Digital signature
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] After rotation, interaction does no longer work

2010-03-15 Thread berend
Hi All,

I've a document that is typeset in A5, and then arranged with
2SIDE. Interaction is enabled. Everything works, I can click on
registers and table of contents to jump to the particular piece.

However, if I add rotated:

  \setuparranging
[2SIDE,rotated]

interaction appears to be disabled. Can this be enabled again?

The following test document demonstrates the effect. The links in the
table of content are still blue, not no longer clickable. Remove
rotated, and it works:

--
% interface=en

\setuppapersize
  [A5][A4]

\setuparranging
  [2SIDE,rotated]

\setupinteraction
  [state=start,
   color=blue]

\setupcolors
  [state=start]

\starttext

\subject{Table of contents}

\placecontent[1]

\chapter{Hello}

World.

\chapter{More}

Text.

\stoptext
--

Process with texexec --arrange

-- 
Thanks,

Berend de Boer
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] alignment explanation

2010-03-15 Thread Aditya Mahajan

On Mon, 15 Mar 2010, Mehdi Omidali wrote:

Thank you. It is perfect now. I think this solution deserve appearing in your 
MyWay manual. In fact, it deserves to be supported directly in MKIV.


I'll add it to the MyWay. MkIV will support it when we eventually get down 
to an overhaul of display math.


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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] xmlindex getting attributes and more

2010-03-15 Thread Hans van der Meer
(1) How does one retrieve an attribute from an element collected with  
\xmlindex{node{lpath}{n}?


(2) I don't understand in xml:test \xmlcount{#1}{} giving 1 for an  
answer,

whereas \xmlcount{#1}{*} and \xmlcount{#1}{/abc} yield 2 as is expected.

(3) With the code below \xmlindex starts looping on an empty lpath,  
whereas like \xmltext{} react without problem.

Problem is showed by \xmlindex, \xmlfirst, \xmllast, \xmlall, \xmlconcat
Behaviour is not shown by \xmltext{node}{}, \xmlstripped, \xmlstrip
Is this a bug in \xmlindex's underlying lua?

! TeX capacity exceeded, sorry [text input levels=127].
\xmlindex ...ua {lxml.index(#1,#2,\number #3)}
\@@su:xml:test #1-test:\xmlindex {#1}{}{1}
   \par
l.7 }
\xmlindex ...ua {lxml.index(#1,#2,\number #3)}
\@@su:xml:test #1-test:\xmlindex {#1}{}{1}
   \par

\startxmlsetups xml:testsetups
\xmlsetsetup{test}{test|abc}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:testsetups}

\startxmlsetups xml:test
test:\xmlindex{#1}{}{1}\par %  empty lpath fails
\stopxmlsetups

\startxmlsetups xml:abc
abc:\xmlflush{#1}\par
\stopxmlsetups

\starttext
\xmlprocessfile{test}{test.xml}{}
\stoptext

test
abcABC-1/abc
abcABC-2/abc
/test



Hans van der Meer




___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] typescript

2010-03-15 Thread Michael Saunders
I am trying to get a minimal working example so that I have something
to tinker with.

C:\contextminimal\tex\texmf-local\type-garamondprem.tex contains only:

\starttypescript [serif] [garamondprem]
 \definetypeface [garamondprem] [rm] [serif]
[name:garamondpremrpromed] [default]
\stoptypescript

(garamondpremrpromed is a name returned by mtxrun --script fonts
--list --all --pattern=*Garamond*.)

I run:
luatools --generate
and texmf-local is found.

In my preamble:
\usetypescriptfile [type-garamondprem]
\usetypescript [garamondprem]
\setupbodyfont [garamondprem,12pt]

When I run Context, the result contains only Latin Modern.
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] xmlindex getting attributes and more

2010-03-15 Thread Hans Hagen

On 15-3-2010 22:26, Hans van der Meer wrote:

(1) How does one retrieve an attribute from an element collected with
\xmlindex{node{lpath}{n}?

(2) I don't understand in xml:test \xmlcount{#1}{} giving 1 for an answer,
whereas \xmlcount{#1}{*} and \xmlcount{#1}{/abc} yield 2 as is expected.


because {} is not {*} but basically self


(3) With the code below \xmlindex starts looping on an empty lpath,
whereas like \xmltext{} react without problem.
Problem is showed by \xmlindex, \xmlfirst, \xmllast, \xmlall, \xmlconcat
Behaviour is not shown by \xmltext{node}{}, \xmlstripped, \xmlstrip
Is this a bug in \xmlindex's underlying lua?

! TeX capacity exceeded, sorry [text input levels=127].
\xmlindex ...ua {lxml.index(#1,#2,\number #3)}
\@@su:xml:test #1-test:\xmlindex {#1}{}{1}
\par
l.7 }
\xmlindex ...ua {lxml.index(#1,#2,\number #3)}
\@@su:xml:test #1-test:\xmlindex {#1}{}{1}
\par

\startxmlsetups xml:testsetups
\xmlsetsetup{test}{test|abc}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:testsetups}

\startxmlsetups xml:test
test:\xmlindex{#1}{}{1}\par %  empty lpath fails
\stopxmlsetups


why do you use xmlindex

in this case you could use \xmlfirst{#1}

or

\xmlfilter{#1}{[position()=1]}

(I will probably rewrite xmlindex as it's a leftover)



-
  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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typescript

2010-03-15 Thread Aditya Mahajan

On Mon, 15 Mar 2010, Michael Saunders wrote:


I am trying to get a minimal working example so that I have something
to tinker with.

C:\contextminimal\tex\texmf-local\type-garamondprem.tex contains only:


Wrong location. You files need to be stored according to TeX directory 
structure

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tds

Try placing that file in texmf-local\tex\context\user\

and run luatools --generate. Check that luatools can find the file by 
running


luatools type-garamondprem.tex

you should see the file location in the output.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] interaction fails with footnotes

2010-03-15 Thread Wolfgang Schuster

Am 15.03.10 19:01, schrieb Philipp Gesang:

Of course.  I could narrow it down to this.  Try commenting out the
interaction part.
---8-

\setupinteraction[state=start]

\def\test{\dosingleempty\dotest}
   

\unexpanded\def\test{\dosingleempty\dotest}

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typescript

2010-03-15 Thread Hans Hagen

On 15-3-2010 22:32, Michael Saunders wrote:

I am trying to get a minimal working example so that I have something
to tinker with.

C:\contextminimal\tex\texmf-local\type-garamondprem.tex contains only:

\starttypescript [serif] [garamondprem]
  \definetypeface [garamondprem] [rm] [serif]
[name:garamondpremrpromed] [default]
\stoptypescript

(garamondpremrpromed is a name returned by mtxrun --script fonts
--list --all --pattern=*Garamond*.)

I run:
luatools --generate
and texmf-local is found.

In my preamble:
\usetypescriptfile [type-garamondprem]
\usetypescript [garamondprem]
\setupbodyfont [garamondprem,12pt]

When I run Context, the result contains only Latin Modern.


you can just put the typescript in the file itself

\starttypescript [serif] [garamondprem]
   \definefontsynonym[Serif][name:garamondpremrpromed]
\stoptypescript

\starttypescript [garamondprem]
   \definetypeface [garamondprem] [rm] [serif] [garamondprem] [default] 
[features=default]

\stoptypescript

\setupbodyfont[garamondprem]

just look in type-otf.mkiv for more examples)

in this case [serif] [garamondprem] is the filter

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] After rotation, interaction does no longer work

2010-03-15 Thread Hans Hagen

On 15-3-2010 19:11, ber...@pobox.com wrote:

Hi All,

I've a document that is typeset in A5, and then arranged with
2SIDE. Interaction is enabled. Everything works, I can click on
registers and table of contents to jump to the particular piece.

However, if I add rotated:

   \setuparranging
 [2SIDE,rotated]

interaction appears to be disabled. Can this be enabled again?


run with --arrange


The following test document demonstrates the effect. The links in the
table of content are still blue, not no longer clickable. Remove
rotated, and it works:

--
% interface=en

\setuppapersize
   [A5][A4]

\setuparranging
   [2SIDE,rotated]

\setupinteraction
   [state=start,
color=blue]

\setupcolors
   [state=start]

\starttext

\subject{Table of contents}

\placecontent[1]

\chapter{Hello}

World.

\chapter{More}

Text.

\stoptext
--

Process with texexec --arrange




--

-
  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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typescript

2010-03-15 Thread Philipp Gesang
On 2010-03-15 16:32:23, Michael Saunders wrote:
 I am trying to get a minimal working example so that I have something
 to tinker with.
 
 C:\contextminimal\tex\texmf-local\type-garamondprem.tex contains only:
 
 \starttypescript [serif] [garamondprem]
  \definetypeface [garamondprem] [rm] [serif]
 [name:garamondpremrpromed] [default]
 \stoptypescript
 
 (garamondpremrpromed is a name returned by mtxrun --script fonts
 --list --all --pattern=*Garamond*.)
 
 I run:
 luatools --generate
 and texmf-local is found.
 
 In my preamble:
 \usetypescriptfile [type-garamondprem]
 \usetypescript [garamondprem]
 \setupbodyfont [garamondprem,12pt]
 
 When I run Context, the result contains only Latin Modern.

Hi,

this is what I am working with.  I'm not sure every detail is needed,
especially concerning the “script=latn” part as I'm successfully using
non-latin scripts as well.  If this does not work you should have a look
at your font path.  If context knows where to find your fonts but the
following fails then I suggest you adapt the [name:XXX] fields in the
typescript, you need the “postscript name” value from otfinfo -i there.

HTH,


Philipp

---8--

%%%
% Font setup  %
%%%

\starttypescript[serif]   [garamond]
\setups [font:fallback:serif]
\definefontsynonym  [Serif]   [name:GaramondPremrPro]
[features=default]
\definefontsynonym  [SerifItalic] [name:GaramondPremrPro-It] 
[features=default]
\definefontsynonym  [SerifBold]   [name:GaramondPremrPro-Smbd]   
[features=default]
\definefontsynonym  [SerifBoldItalic] [name:GaramondPremrPro-SmbdIt] 
[features=default]
\stoptypescript

\def\sc{\setfontfeature{smallcaps}}
\def\os{\setfontfeature{oldstyle}}

\definefontfeature [default][default]
 
[protrusion=quality,expansion=quality,mode=node,script=latn,onum=yes,fina=yes,calt=yes]

%\definefontfeature [oldstyle][default]
 %[protrusion=quality,expansion=quality,mode=node,script=latn,onum=yes]

%\definefontfeature [smallcaps][default]
 %[protrusion=quality,expansion=quality,mode=node,script=latn,smcp=yes]

\usetypescript  [serif]   [hz] [highquality]
\setupalign [hanging,hz]

\definetypeface[garamond] [rm] [serif] [garamond] [default] [encoding=ec]

\setupbodyfont[garamond,12pt]

\setupbodyfontenvironment[default][em=italic]

---8--

 ___
 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


signature.asc
Description: Digital signature
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typescript

2010-03-15 Thread Hans Hagen

On 15-3-2010 22:46, Philipp Gesang wrote:


this is what I am working with.  I'm not sure every detail is needed,
especially concerning the “script=latn” part as I'm successfully using


indeed some fonts have no dflt/dflt combination for script/language and 
for those you need the script=latn


i'm still not sure if we need to make script=latn default

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] interaction fails with footnotes

2010-03-15 Thread Philipp Gesang
On 2010-03-15 22:40:39, Wolfgang Schuster wrote:
 Am 15.03.10 19:01, schrieb Philipp Gesang:
 Of course.  I could narrow it down to this.  Try commenting out the
 interaction part.
 ---8-
 
 \setupinteraction[state=start]
 
 \def\test{\dosingleempty\dotest}
 \unexpanded\def\test{\dosingleempty\dotest}

Great, this works with the simple command.  But how would I apply this
onto the \long definition you gave me?  To be honest I tried almost all
the expansion related stuff from Chapter 20 of the TeXbook and the whole
unexpanded family from syst-aux.mkiv but could not get it working.

---8-

\tracingcommands=1
\tracingonline=1
\setupinteraction[state=start] 

\unexpanded\def\test{\dosingleempty\dotest}
\def\dotest[#1]#2{#2}

\def\startsomething{%
  \bgroup%
  \dosingleempty\dostartsomething
}

%\long\unexpanded\def\dostartsomething[#1]#2\stopsomething{%
\long\def\dostartsomething[#1]#2\stopsomething{%
   \dotest[#1]{#2}
  \egroup%
}

\starttext

Words before a footnote\footnote{
  The Test
  \test{The other Test}
  \startsomething[nothing]
  The next Test
  \stopsomething
}

\stoptext

% vim:ft=context

---8-

Philipp


signature.asc
Description: Digital signature
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] interaction fails with footnotes

2010-03-15 Thread Wolfgang Schuster

Am 16.03.10 00:20, schrieb Philipp Gesang:

\def\startsomething{%
   \bgroup%
   \dosingleempty\dostartsomething
}
   

\unexpanded\def\startsomething{...}

\let\stopsomething\relax

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] blank line and signals

2010-03-15 Thread Wolfgang Schuster

Am 14.03.10 15:07, schrieb Andreas Harder:

If one removes the blank line after \section{Section} the output is correct, 
otherwise \TestSpace is ignored …
   

\def\DefineSectionBlank
  {\dotripleempty\doDefineSectionBlank}

\def\doDefineSectionBlank[#1][#2][#3]#4%
  {\edef\CurrentSection{#1}%
   \setvalue{#1:#2:\ifthirdargument\the\dimexpr#3\relax\fi}{#4}}

\def\SectionBlank#1#2%
  {\edef\CurrentSection{#1}%
   
\executeifdefined{#1:#2:\LastSectionBlankSignal}{\executeifdefined{#1:#2:\the\dimexpr\zeropoint\relax}{\getvalue{#1:#2:}}}%

   \doif{#2}{after}{\SectionBlankSignal}}

\let\LastSectionBlankSignal\zeropoint

\EveryPar{\let\LastSectionBlankSignal\zeropoint}

\def\SectionBlankSignal
  
{\setevalue{LastSectionBlankSignal}{\the\dimexpr\csname\CurrentSection 
Signal\endcsname\relax}}


% chapter

\DefineSectionBlank [Chapter] [before] {\blank[force,48pt]}
\DefineSectionBlank [Chapter] [after]  {\blank[20pt]}

\newsignal\ChapterSignal

\setuphead
  [chapter]
  [before=\SectionBlank{Chapter}{before},
   after=\SectionBlank{Chapter}{after}]

% section

\newsignal\SectionSignal

\DefineSectionBlank [Section] [before] [\ChapterSignal] {\blank[18pt]}
\DefineSectionBlank [Section] [before]  {\blank[24pt]}
\DefineSectionBlank [Section] [after]   {\blank[18pt]}

\setuphead
  [section]
  [before=\SectionBlank{Section}{before},
   after=\SectionBlank{Section}{after}]

\showgrid

\starttext

\chapter{Chapter}

\section{Section}

\chapter{Chapter}\edef\CurrentSection{Section}\SectionBlankSignal % tell 
\section the last header was \section too!


\section{Section}

\chapter{Chapter}

text

\section{Section}

\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___