Re: [NTG-context] UTF-8 characters and gnuplot module

2008-03-25 Thread Ethan Merritt
On Monday 24 March 2008 08:53, Mojca Miklavec wrote:
 
 PS: I'm CC-ing to Ethan in case he has some proposal about what could
 be done with metapost terminal to support UTF-8 (one of the best thing
 to do would be to remove cmr, but more is needed), and I'm CC-ing to
 the developer of the new TikZ terminal (for no specific reason).

Gnuplot's metapost terminal correctly passes through UTF-8 characters
to the output.  Metapost itself then mangles them.  If there is some
additional keyword or command that gnuplot could emit that would allow
metapost to do better, please let me know.  Otherwise I think this
problem must be resolved by using a different toolchain, one that is
UTF-8 aware.
 
Mojca:

  If the context terminal allows UTF-8 strings to be properly handled
by TeX, for me that's a strong argument in favor of including it in the
next gnuplot release.  Does it?

Ethan


-- 
Ethan A Merritt
___
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] MKIV Chinese and English typesetting

2008-03-25 Thread Yanrui Li
Dear Hans and other friends:

I am a Chinese user of ConTeXt. Recently, I tried ConTeXt MkIV and
test its Chinese  typesetting. I am very glad to see MkIV can access
my linux OS TTFOTF fonts and give a good face of my article about
lines breaking. But on the bilingual typesetting, such as Chinese
sentences and English words appearance in a article at the same time ,
I found there are no good methods to solve the  problem of  setting
fonts for them respectively. Now I had to handle it in this way:


\definefontfeature[chinese]
 [mode=node,script=hang,lang=zhs]
 \definefontsynonym[songti]
 [name:simsun]
 [features=chinese]

 \definefontsynonym[Serif][songti]
 \definetypeface[song][rm][serif][songti]
 \setupbodyfont[song,12pt,rm]

 \font\enfont=name:msyh
 \def\en#1{%
 \,\bgroup\enfont #1\egroup\,%
 }

 \starttext
 我用英文进行\en{Hello World}测试。
 \stoptext


I am eager to see full support for chinese and other Asian languages
in ConTeXt MkIV.

I am grateful to  the developers. Thank you for your time and effort
for continuous contributions!
___
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] old cont-tmf.zip

2008-03-25 Thread Hans van der Meer
I am looking for a few cont-tmf.zip versions dating before july 7, 2007.
I tried to find the archive on the contextgarden and the pragma site  
but was unable to spot their location. Can someone give me the  
address? Thanks in advance.

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


Re: [NTG-context] old cont-tmf.zip

2008-03-25 Thread Wolfgang Schuster
On Tue, Mar 25, 2008 at 10:59 AM, Hans van der Meer
[EMAIL PROTECTED] wrote:
 I am looking for a few cont-tmf.zip versions dating before july 7, 2007.
 I tried to find the archive on the contextgarden and the pragma site
 but was unable to spot their location. Can someone give me the
 address? Thanks in advance.

 Hans van der Meer

http://wiki.contextgarden.net/Revisions#Introduction

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] old cont-tmf.zip

2008-03-25 Thread Mojca Miklavec
On Tue, Mar 25, 2008 at 10:59 AM, Hans van der Meer
[EMAIL PROTECTED] wrote:
 I am looking for a few cont-tmf.zip versions dating before july 7, 2007.
  I tried to find the archive on the contextgarden and the pragma site
  but was unable to spot their location. Can someone give me the
  address? Thanks in advance.

http://wiki.contextgarden.net/Revisions
http://foundry.supelec.fr/frs/?group_id=14

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] setupexternalfigures broken ?

2008-03-25 Thread luigi scarso
Same problem with
ConTeXt  ver: 2008.03.24 23:24 MKIV  fmt: 2008.3.25  int: english/english
This is LuaTeX, Version snapshot-0.25.1-2008032510
___
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] old cont-tmf.zip

2008-03-25 Thread Peter Rolf
Hans van der Meer schrieb:
 I am looking for a few cont-tmf.zip versions dating before july 7, 2007.
 I tried to find the archive on the contextgarden and the pragma site  
 but was unable to spot their location. Can someone give me the  
 address? Thanks in advance.
 
looks like it has been moved to

http://foundry.supelec.fr/projects/contextrev/


Best wishes, Peter

 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  : 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] MKIV Chinese and English typesetting

2008-03-25 Thread Yue Wang
 Dear Hans and other friends:

  I am a Chinese user of ConTeXt. Recently, I tried ConTeXt MkIV and
  test its Chinese  typesetting. I am very glad to see MkIV can access
  my linux OS TTFOTF fonts and give a good face of my article about
  lines breaking. But on the bilingual typesetting, such as Chinese
  sentences and English words appearance in a article at the same time ,
  I found there are no good methods to solve the  problem of  setting
  fonts for them respectively. Now I had to handle it in this way:



Well, I am aware of that problem (I think Hans is aware of that
too). See the relative thread in mailing list archive (Jan 2008, I
think). I mentioned the problem again in another mail to Hans this
morning because more messages like this appeared on Chinese TeX
related web forums these days (It's a good thing, more Chinese TeX
Gurus love to play ConTeXt and LuaTeX ^_^).

There are many ways to deal with that problem. in fact, add your \en
macro into the method.hani() function of  font-otf.lua is a quick and
dirty hack. But I think there should be other more elegant ways to
deal with it. perhaps:
- assign an english font feature to \definefontfeature or
\definefontsynonym. When define a CJK typefaces, the corresponding
English typeface can be defined by the user. switch to another font
when needed (using the similar method as in font-otf.lua).
- map the CJK part of a Chinese typeface and Latin part of a English
typeface to one single virtual font, Use this virtual font for
typesetting.

Both of them are not hard to do technically compared what had been
done before.  So maybe we should wake Hans up to continue the CJK
support? Zhichu Chen and I are eager to help whenever a localization
problem is occurred.

Yue Wang
___
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] more xml in mkiv

2008-03-25 Thread Thomas A. Schmitz

On Mar 24, 2008, at 11:34 PM, Hans Hagen wrote:
 works here, just to be sure i uploaded a new current

 Hans


Thanks Hans! You're right; I worked on a minimal example for a long  
time and got confused. I tried again; this example demonstrates the  
behavior (I tested on two different computers to be really sure :-):

test.xml:

document
   section
 labelA/label
 contenttext
 itemize
   item
one
   /item
   item
two
   /item
   item
three
   /item
 /itemize
 more text
 /content
   /section
/document

test-style.tex:

\startxmlsetups xml:mysetups
\xmlsetsetup{\xmldocument}{document|section|itemize|item}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:mysetups}

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

\startxmlsetups xml:section
\section{\xmlfirst{#1}{label}} \xmlfirst{#1}{content}
\stopxmlsetups

\startxmlsetups xml:itemize
\startitemize
\xmlflush{#1}
\stopitemize
\stopxmlsetups

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

\starttext
\xmlprocess{main}{\inputfilename}{}
\stoptext

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


Re: [NTG-context] more xml in mkiv

2008-03-25 Thread Wolfgang Schuster
On Tue, Mar 25, 2008 at 1:17 PM, Thomas A. Schmitz
[EMAIL PROTECTED] wrote:

 On Mar 24, 2008, at 11:34 PM, Hans Hagen wrote:
  works here, just to be sure i uploaded a new current
 
  Hans
 

 Thanks Hans! You're right; I worked on a minimal example for a long
 time and got confused. I tried again; this example demonstrates the
 behavior (I tested on two different computers to be really sure :-):

 test.xml:

 document
   section
 labelA/label
 contenttext
 itemize
   item
one
   /item
   item
two
   /item
   item
three
   /item
 /itemize
 more text
 /content
   /section
 /document

 test-style.tex:

 \startxmlsetups xml:mysetups
\xmlsetsetup{\xmldocument}{document|section|itemize|item}{xml:*}
 \stopxmlsetups

\startxmlsetups xml:mysetups
   \xmlsetsetup{\xmldocument}{document|section|content|itemize|item}{xml:*}
\stopxmlsetups

 \xmlregistersetup{xml:mysetups}

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

 \startxmlsetups xml:section
\section{\xmlfirst{#1}{label}} \xmlfirst{#1}{content}
 \stopxmlsetups

\startxmlsetups xml:section
   \section{\xmlfirst{#1}{label}}
   \xmlflush{#1}
\stopxmlsetups

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

 \startxmlsetups xml:itemize
\startitemize
\xmlflush{#1}
\stopitemize
 \stopxmlsetups

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

also possible

\startxmlsetups xml:item
   \startitem
   \xmlflush{#1}
   \stopitem
\stopxmlsetups

 \starttext
 \xmlprocess{main}{\inputfilename}{}
 \stoptext

Not sure if this works, I can't test it at the moment.

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
___


[NTG-context] MKIV/LuaTeX roadmap

2008-03-25 Thread Santy, Michael

I've been following the MKIV developments on the list, but don't have a good 
feeling for the overall stability/robustness/completeness of the new code.

Can someone who has the high-level insight (Hans, Taco?) please add a page to 
the wiki that gives the community a general roadmap for new features and an 
eventual MKIV/LuaTeX stable release?

Thanks,
Mike
___
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] more xml in mkiv

2008-03-25 Thread Thomas A. Schmitz

On Mar 25, 2008, at 1:42 PM, Wolfgang Schuster wrote:
 On Tue, Mar 25, 2008 at 1:17 PM, Thomas A. Schmitz
 [EMAIL PROTECTED] wrote:

 On Mar 24, 2008, at 11:34 PM, Hans Hagen wrote:
 works here, just to be sure i uploaded a new current

 Hans


 Thanks Hans! You're right; I worked on a minimal example for a long
 time and got confused. I tried again; this example demonstrates the
 behavior (I tested on two different computers to be really sure :-):

 test.xml:

 document
  section
labelA/label
contenttext
itemize
  item
   one
  /item
  item
   two
  /item
  item
   three
  /item
/itemize
more text
/content
  /section
 /document

 test-style.tex:

 \startxmlsetups xml:mysetups
   \xmlsetsetup{\xmldocument}{document|section|itemize|item} 
 {xml:*}
 \stopxmlsetups

 \startxmlsetups xml:mysetups
   \xmlsetsetup{\xmldocument}{document|section|content|itemize| 
 item}{xml:*}
 \stopxmlsetups

 \xmlregistersetup{xml:mysetups}

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

 \startxmlsetups xml:section
   \section{\xmlfirst{#1}{label}} \xmlfirst{#1}{content}
 \stopxmlsetups

 \startxmlsetups xml:section
   \section{\xmlfirst{#1}{label}}
   \xmlflush{#1}
 \stopxmlsetups

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

 \startxmlsetups xml:itemize
   \startitemize
   \xmlflush{#1}
   \stopitemize
 \stopxmlsetups

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

 also possible

 \startxmlsetups xml:item
   \startitem
   \xmlflush{#1}
   \stopitem
 \stopxmlsetups

 \starttext
 \xmlprocess{main}{\inputfilename}{}
 \stoptext

 Not sure if this works, I can't test it at the moment.

 Wolfgang

Thanks, Wolfgang, but I still get the same output: items one and two  
are empty. Maybe a bug?

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


Re: [NTG-context] UTF-8 characters and gnuplot module

2008-03-25 Thread Morgan Brassel

Hi everyone, Hi Mojca,

I finally compiled gnuplot with support for the context terminal. It was 
really easy in the end, I should not have been afraid...


I have two questions however (see example below):

* Does the option 'solid' work with the context terminal? I still get 
dashed lines here...


* ' and  quotes do not give the same result when UTF-8 character are 
involved. Is it wanted?


Best regards,
Morgan


\enableregime[utf]
\usemodule[gnuplot]
\setupcolors[state=start]
\setupGNUPLOT[options=color solid]

\startGNUPLOTscript[sin]
set ylabel héllo
set xlabel 'héllo'
plot sin(x), sin(2*x)
\stopGNUPLOTscript

\starttext
\useGNUPLOTgraphic[sin]
\stoptext___
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] MKIV Chinese and English typesetting

2008-03-25 Thread Hans Hagen
Yue Wang wrote:

 Both of them are not hard to do technically compared what had been
 done before.  So maybe we should wake Hans up to continue the CJK
 support? Zhichu Chen and I are eager to help whenever a localization
 problem is occurred.

well, examples of input as well as wanted output are needed then

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] MKIV/LuaTeX roadmap

2008-03-25 Thread Hans Hagen
Santy, Michael wrote:
 I've been following the MKIV developments on the list, but don't have a good 
 feeling for the overall stability/robustness/completeness of the new code.
 
 Can someone who has the high-level insight (Hans, Taco?) please add a page to 
 the wiki that gives the community a general roadmap for new features and an 
 eventual MKIV/LuaTeX stable release?

hard to answer

- fonts: much done (for non latin there's work to do)
- graphics: work in progress, mostly done
- metapost: work in progress, available soon
- enhancements: ongoing effort
- xml: basics done, more will follow
- math: work needed

i use mkiv in a couple of projects (automated xml - pdf editing 
workflows) so it's usable

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] MKIV/LuaTeX roadmap

2008-03-25 Thread luigi scarso
On Tue, Mar 25, 2008 at 1:58 PM, Santy, Michael
[EMAIL PROTECTED] wrote:




 I've been following the MKIV developments on the list, but don't have a good
 feeling for the overall stability/robustness/completeness of the new code.

  Can someone who has the high-level insight (Hans, Taco?) please add a page
 to the wiki that gives the community a general roadmap for new features and
 an eventual MKIV/LuaTeX stable release?

  Thanks,
  Mike

See also
http://www.luatex.org/roadmap.html


-- 
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] more xml in mkiv

2008-03-25 Thread Peter Rolf
Thomas A. Schmitz schrieb:
 On Mar 25, 2008, at 1:42 PM, Wolfgang Schuster wrote:
 On Tue, Mar 25, 2008 at 1:17 PM, Thomas A. Schmitz
 [EMAIL PROTECTED] wrote:
 On Mar 24, 2008, at 11:34 PM, Hans Hagen wrote:
 works here, just to be sure i uploaded a new current

 Hans

 Thanks Hans! You're right; I worked on a minimal example for a long
 time and got confused. I tried again; this example demonstrates the
 behavior (I tested on two different computers to be really sure :-):

 test.xml:

 document
  section
labelA/label
contenttext
itemize
  item
   one
  /item
  item
   two
  /item
  item
   three
  /item
/itemize
more text
/content
  /section
 /document

 test-style.tex:

 \startxmlsetups xml:mysetups
   \xmlsetsetup{\xmldocument}{document|section|itemize|item} 
 {xml:*}
 \stopxmlsetups
 \startxmlsetups xml:mysetups
   \xmlsetsetup{\xmldocument}{document|section|content|itemize| 
 item}{xml:*}
 \stopxmlsetups

 \xmlregistersetup{xml:mysetups}

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

 \startxmlsetups xml:section
   \section{\xmlfirst{#1}{label}} \xmlfirst{#1}{content}
 \stopxmlsetups
 \startxmlsetups xml:section
   \section{\xmlfirst{#1}{label}}
   \xmlflush{#1}
 \stopxmlsetups

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

 \startxmlsetups xml:itemize
   \startitemize
   \xmlflush{#1}
   \stopitemize
 \stopxmlsetups

 \startxmlsetups xml:item
   \item \xmlflush{#1} \par
 \stopxmlsetups
 also possible

 \startxmlsetups xml:item
   \startitem
   \xmlflush{#1}
   \stopitem
 \stopxmlsetups

 \starttext
 \xmlprocess{main}{\inputfilename}{}
 \stoptext
 Not sure if this works, I can't test it at the moment.

 Wolfgang
 
 Thanks, Wolfgang, but I still get the same output: items one and two  
 are empty. Maybe a bug?

your original example works here too. today's context and latest luatex.

hth, peter


 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  : 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] UTF-8 characters and gnuplot module

2008-03-25 Thread Mojca Miklavec
On Tue, Mar 25, 2008 at 3:28 PM, Morgan Brassel wrote:
 Hi everyone, Hi Mojca,

  I finally compiled gnuplot with support for the context terminal. It was
  really easy in the end, I should not have been afraid...

  I have two questions however (see example below):

  * Does the option 'solid' work with the context terminal? I still get
  dashed lines here...

Ok, that's part of lack of documentation on my part :)

help term context says:


 In non-standalone (`input`) graphic only parameters `size` to select
graphic size,
 `textscale` to scale all the labels for a factor scale
 and `pointswithtex`/`pointswithmetapost` make sense, the rest is
silently ignored
 and should be configured in the .tex file which inputs the graphic.


You can use

\setupGNUPLOTterminal
  [context]
  [dashed=no,
   textscale=0.9]

or similar. The reason why I have implemented it that way is:
- you can reuse the same graphics by only turning that option on and
off in the terminal, you don't need to rerun gnuplot
- it's clumsy to provide explicit options to the terminal anyway,
using an interface is easier
- the option solid is only respected when you say 'standalone'

  * ' and  quotes do not give the same result when UTF-8 character are
  involved. Is it wanted?

No. It's the same problem that I have mentioned last time. If you take a look at
   filename-gnuplot-1.plt
you will see:

set ylabel h\dochar {233}llo
set xlabel 'h\dochar {233}llo'

The second case gets literally to the output file, but then ConTeXt
interprets it OK again. In the first case backslash is lost, and you
get nonsense. This can be solved by using \detokenize as descriibed
last time, but then again - it would be best if Taco or Hans or
someone else had an idea of how to prevent that weird expansion inside
\startGNUPLOTscript. I always use simple quotes for no particular
reason (or maybe because I sometimes want to use \bf or other commands
with backslash).

Mojca


  \enableregime[utf]
  \usemodule[gnuplot]
  \setupcolors[state=start]
  \setupGNUPLOT[options=color solid]

  \startGNUPLOTscript[sin]
  set ylabel héllo
  set xlabel 'héllo'
  plot sin(x), sin(2*x)


 \stopGNUPLOTscript

  \starttext
  \useGNUPLOTgraphic[sin]
  \stoptext
___
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] more xml in mkiv

2008-03-25 Thread Thomas A. Schmitz

On Mar 25, 2008, at 3:38 PM, Peter Rolf wrote:
 your original example works here too. today's context and latest  
 luatex.

 hth, peter

Wait wait wait ... you mean you get correct output with the example I  
posted in this thread? In that case, I'm completely baffled, because I  
get something like this

.
.
. three

Hans, is there any way to capture the intermediate result into which  
ConTeXt transforms the xml file before it processes it?

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


Re: [NTG-context] more xml in mkiv

2008-03-25 Thread Wolfgang Schuster
On Mon, Mar 24, 2008 at 10:28 PM, Thomas A. Schmitz
[EMAIL PROTECTED] wrote:
 Hi all,

 I played some more with the new mkiv xml mechanism and am beginning to
 see the light: some things that turned out to be very difficult (at
 least for me) with the old mechanism are easy now. However, I still
 have a couple of questions:

 1. I have this minimal file test.xml:

 document
   itemize
 item
   one
 /item
 item
   two
 /item
 item
   three
 /item
   /itemize
 /document

 and this minimal environment test-style.tex:
 \startxmlsetups xml:mysetups
\xmlsetsetup{\xmldocument}{document|itemize|item}{xml:*}
 \stopxmlsetups

 \xmlregistersetup{xml:mysetups}

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

 \startxmlsetups xml:itemize
\startitemize
\xmlflush{#1}
\stopitemize
 \stopxmlsetups

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

 \starttext
 \xmlprocess{main}{\inputfilename}{}
 \stoptext

 When I run texexec --lua --env=test-style test.xml, I get output only
 for item three, not for one and two. What am I doing wrong?

 2. In every run, I get this warning:

 TeXUtil | check loading of file 'test-style', begin/end problem

 I don't see anything wrong with my files, though. Is this harmless?


 3. I have a structure like this to get numbered labels:

 lemmasection
   label1234/label
   content
blahblah
   /content
 /lemmasection

you could try something like

\startxmlsetups xml:lemma
  \startlemma{\xmlfirst{#1}{label}}
  \ignorespaces\xmlfirst{#1}{content}\removeunwatedspaces
  \stoplemma
\stopxmlsetups

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] more xml in mkiv

2008-03-25 Thread Peter Rolf

Thomas A. Schmitz schrieb:

On Mar 25, 2008, at 3:38 PM, Peter Rolf wrote:
your original example works here too. today's context and latest  
luatex.


hth, peter


Wait wait wait ... you mean you get correct output with the example I  
posted in this thread? In that case, I'm completely baffled, because I  
get something like this



see yourself and beleave ;)


.
.
. three

Hans, is there any way to capture the intermediate result into which  
ConTeXt transforms the xml file before it processes it?


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





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


Re: [NTG-context] UTF-8 characters and gnuplot module

2008-03-25 Thread Morgan Brassel

 You can use

 \setupGNUPLOTterminal
  [context]
  [dashed=no,
   textscale=0.9]

Thank you, Mojca!

The dashed option is ok, but I didn't manage to have 'textscale' work: 
adding these lines in my previous example still gives 12pt font... Am I 
missing something?


  * ' and  quotes do not give the same result when UTF-8 character are
  involved. Is it wanted?

 No. It's the same problem that I have mentioned last time. If you take a look 
 at
   filename-gnuplot-1.plt
 you will see:

 set ylabel h\dochar {233}llo
 set xlabel 'h\dochar {233}llo'

 The second case gets literally to the output file, but then ConTeXt
 interprets it OK again. In the first case backslash is lost, and you
 get nonsense. This can be solved by using \detokenize as descriibed
 last time, but then again - it would be best if Taco or Hans or
 someone else had an idea of how to prevent that weird expansion inside
 \startGNUPLOTscript. I always use simple quotes for no particular
 reason (or maybe because I sometimes want to use \bf or other commands
 with backslash).

Sorry to make you explain again, I'm a bit lost with all those new 
things... I'll use simple quotes from now on, but is there a simple way to 
escape the ' character in this case? I tried

set xlabel 'I\'\ m sorry!'

but the ' is not typeset correctly then.


A big thanks for your great patience!
Morgan
___
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] more xml in mkiv

2008-03-25 Thread Thomas A. Schmitz


On Mar 25, 2008, at 4:36 PM, Peter Rolf wrote:
Wait wait wait ... you mean you get correct output with the example  
I  posted in this thread? In that case, I'm completely baffled,  
because I  get something like this



see yourself and beleave ;)


Hey, I'm quite willing to believe - but now I have a really  
inexplicable phenomenon: see what I get as output! Using the same  
version of luatex (0.25.1) and of ConTeXt as you do! I tested both  
under OS X and under SuSE 10.3., and I consistently get this. I even  
tried moving my personal texmf out of the way - still same result.  
Could somebody else please test. And Peter, could you maybe mail me  
the log of your TeX run so I can compare and see if I can discover  
anything? Thanks a lot!


Thomas



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


Re: [NTG-context] more xml in mkiv

2008-03-25 Thread Peter Rolf
Thomas A. Schmitz schrieb:
 
 On Mar 25, 2008, at 4:36 PM, Peter Rolf wrote:
 Wait wait wait ... you mean you get correct output with the example 
 I  posted in this thread? In that case, I'm completely baffled, 
 because I  get something like this

 see yourself and beleave ;)

i belIEve my english needs some improvements :D

 Hey, I'm quite willing to believe - but now I have a really inexplicable 
 phenomenon: see what I get as output! Using the same version of luatex 
 (0.25.1) and of ConTeXt as you do! I tested both under OS X and under 
 SuSE 10.3., and I consistently get this. I even tried moving my personal 
 texmf out of the way - still same result. Could somebody else please 
 test. And Peter, could you maybe mail me the log of your TeX run so I 
 can compare and see if I can discover anything? Thanks a lot!

sure. i'll send you the test files in a pm.

best wishes, peter

 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  : 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] UTF-8 characters and gnuplot module

2008-03-25 Thread Mojca Miklavec
On Tue, Mar 25, 2008 at 4:57 PM, Morgan Brassel wrote:

   You can use
  
   \setupGNUPLOTterminal
[context]
[dashed=no,
 textscale=0.9]

  Thank you, Mojca!

  The dashed option is ok, but I didn't manage to have 'textscale' work:
  adding these lines in my previous example still gives 12pt font... Am I
  missing something?

Whps ... apparently I forgot to upload that change. Sorry - I have
no idea when I did it without uploading it. I will upload it now.

  Sorry to make you explain again, I'm a bit lost with all those new
  things... I'll use simple quotes from now on, but is there a simple way to
  escape the ' character in this case? I tried

I guess not. But the fact that double quotes don't work is really a
bug in my module that I don't know how to solve.
If you use XeTeX, the UTF-8 should work OK, but sooner or later other
problems might arise anyway (I always try to keep my fingers crossed
that it will work).

On the other hand, you may also run gnuplot separately and prepare
clean files there.
Then, you can use
\processGNUPLOTfile[NAME][filename] % name of the generated file,
not of the gnuplot script
and later on
\useGNUPLOTgraphic[NAME][maybe some options]

  set xlabel 'I\'\ m sorry!'

  but the ' is not typeset correctly then.

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] more xml in mkiv

2008-03-25 Thread Hans Hagen
Thomas A. Schmitz wrote:
 On Mar 25, 2008, at 3:38 PM, Peter Rolf wrote:
 your original example works here too. today's context and latest  
 luatex.

 hth, peter
 
 Wait wait wait ... you mean you get correct output with the example I  
 posted in this thread? In that case, I'm completely baffled, because I  
 get something like this
 
 ..
 ..
 .. three
 
 Hans, is there any way to capture the intermediate result into which  
 ConTeXt transforms the xml file before it processes it?

hm, you can patch in lxml-ini.lua

 local function sprint(root)
 if not root then
 -- quit
 elseif type(root) == 'string' then
print(root)
 capture:match(root)
 elseif next(root) then
 xml.serialize(root,sprint,nil,nil,xml.specialhandler)
 end
 end

and remake the format

keep in mind that in mkiv we basically have a kind of big evergoing 
nested expansion i.e. piping to tex whicn can call lua which again can 
piping into tex etc etc

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
___


[NTG-context] (no subject)

2008-03-25 Thread Horacio Suarez

Hello all,

I have a stupid cuestion:

I´m making a long 12 pages table. I´m using \setupfootertexts for the 
pagenumber. I don´t want page numbers in the header at all.

header=hight or header=empty in the \title setup is not enough, I still have a 
page number centered in the header.

How can I supress the page number or the header totally in the whole document?

Thankyou in advance.



Horacio Suarez
Editorial Antropofagia
www.eantropofagia.com.ar
_
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vistamkt=en-USform=QBRE___
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] (no subject)

2008-03-25 Thread Peter Rolf
Hi Horacio,

Horacio Suarez schrieb:
 Hello all,
 
 I have a stupid cuestion:
 
 I´m making a long 12 pages table. I´m using \setupfootertexts for the 
 pagenumber. I don´t want page numbers in the header at all.
 
 header=hight or header=empty in the \title setup is not enough, I still 
 have a page number centered in the header.
 
 How can I supress the page number or the header totally in the whole 
 document?

you can try

\setupheadertexts[]

I guess you have already looked at
http://wiki.contextgarden.net/Headers_and_Footers

[and please use a subject next time]

Best wishes, Peter

 Thankyou in advance.
 
 
 
 Horacio Suarez
 Editorial Antropofagia
 www.eantropofagia.com.ar
 
 Discover the new Windows Vista Learn more! 
 http://search.msn.com/results.aspx?q=windows+vistamkt=en-USform=QBRE
 
 
 
 
 ___
 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] MKIV Chinese and English typesetting

2008-03-25 Thread Henning Hraban Ramm
Just an idea (I know nothing about Asian scripts and don't need those  
features myself):

Would it perhaps possible to hook that font switch into the language  
mechanism?

Like if I change the language between latin-script languages with  
{\de Deutsch} and get different typography, e.g. other quotation marks.

Perhaps it would be a good solution to use something like:

\setuplanguage[en]{fontfamily=MySerif}
\setuplanguage[cn]{fontfamily=Songti}
\mainlanguage[cn]
  \starttext
我用英文进行{\en Hello World}测试。
  \stoptext


At least that looks logical to me...


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] UTF-8 characters and gnuplot module

2008-03-25 Thread Henning Hraban Ramm
Am 2008-03-25 um 18:11 schrieb Mojca Miklavec:
 On Tue, Mar 25, 2008 at 4:57 PM, Morgan Brassel wrote:
  set xlabel 'I\'\ m sorry!'

If UTF-8 works, why don’t you just use a proper apostrophe (’ vs. ')  
then?

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] description fails on \if

2008-03-25 Thread Hans van der Meer
There is the following problem on code that did work around july 2007,  
but no longer under the current context version (2008-03-11).

Define a description, I did:
\definedescription[answerblock][%
\c!margin=\v!no,\c!location=\v!left,%
\c!headstyle=\@@exmintrostyle,\c!style=\@@exmstyle,%
\c!before=,\c!inbetween=,\c!after=,%
\c!hang=\@@exmhang,\c!width=\questionblockwidth,%
\c!text=\placeanswerstart]

Typeset with this description inside the following macro:
\def\shortanswer#1\par{%
\par % be sure to end paragraph here
\answerblock{}% % {} needed here in description call
\ifanswers #1\else\dotfill\strut\fi %  crashing on this if
\par%  final \par of description ... \par
}
The above code crashes with: ! Incomplete \ifx; all text was ignored  
after ...

After some detective work in which Wolfgang Schuster had a large share  
and has found the most elegant workaround, the addition of a \relax  
just after the description call prevents the error:
\def\shortanswer#1\par{%
\par % be sure to end paragraph here
\answerblock{}% % {} needed here in description call
\relax  %\relax prevents crash on if
\ifanswers #1\else\dotfill\strut\fi
\par%  final \par of description ... \par
}

The way \relax stops the error reminds me of the \relax that one  
places after a number in order to separate that from the code following.
I did compare core-des.tex, both the last version and the archived  
from 2007-04-17. But I must admit, I did not succeed finding a clue  
among the differences about what could have happened. The code is a  
bit too intricate to just jump in and pinpoint the culprit -- at least  
for me.

Allthough Wolfgang's workaround saves the day, I feel this problem  
deserves solving inside ConTeXt, not outside it. Someday somewhere  
another person will stumble on the same problem -- a situation that  
can and should be avoided, in my view.
Therefore I explain the problem here as fully as possible hoping  
someone knowledgeable with descriptions we might need to fall back  
to Taco or Hans will find the best remedy.

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


Re: [NTG-context] margins

2008-03-25 Thread Henning Hraban Ramm
Am 2008-03-25 um 01:51 schrieb Joel C. Salomon:
 In other words, you want large inner margins and small outer margins.
  However, the standard behaviour seems to be the opposite.
 For very good reason.  When a two-page spread is laid flat, it usually
 looks best if the outer margins are both approximately equal in width
 to the combined inner margins.  The default layout takes that into
 account.

 While the binding of a book does eat some of the inner margin, it's
 probably less than you think (IIRC, from ¼ʺ to ½ʺ, depending on  
 the
 binding method), and often the print shop can correct for that.  (If
 you need to be exact, measure against a book bound where your book
 will be and in the same method.)

It depends on the binding method.

The traditional margin sizes are only good for thread-stitching.
If your book's bound threadless (perfect binding, Wire-O etc.) your  
inner margins need to be bigger (not always bigger as the outer, but  
at least bigger than the traditional measures).

It's not only that the bookbinder mills away a few millimeters of the  
page - you can't open a adhesive bound book as much as a thread- 
stitched, so you need a wider gutter to be able to read the book  
without destroying the binding. (Or in case of spiral binding the  
holes for the wire need enough space.)

And if you need to send your PDF print-ready to your printshop (maybe  
books-on-demand maker), there's nobody else who will correct for that.

Insofar the OP's question is well justified.
Even if he could have found the answer easily himself:

Of course you can define your page layout at will,
see http://wiki.contextgarden.net/Layout


Greetlings from Lake Constance!
Hraban (typesetter  printing engineer)
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] how to supress headers

2008-03-25 Thread Horacio Suarez

Thankyou Peter. Sorry, I forgot the subject.

I have already looked at http://wiki.contextgarden.net/Headers_and_Footers

Now in \setuplayout I use header=0cm and the header is not visible. Not so 
elegant.

\setupheadertexts[] doesn´t supress the header.

Thankyou very much.


Horacio Suarez
Editorial Antropofagia
www.eantropofagia.com.ar

 Date: Tue, 25 Mar 2008 20:32:41 +0100
 From: [EMAIL PROTECTED]
 To: ntg-context@ntg.nl
 Subject: Re: [NTG-context] (no subject)
 
 Hi Horacio,
 
 Horacio Suarez schrieb:
  Hello all,
  
  I have a stupid cuestion:
  
  I´m making a long 12 pages table. I´m using \setupfootertexts for the 
  pagenumber. I don´t want page numbers in the header at all.
  
  header=hight or header=empty in the \title setup is not enough, I still 
  have a page number centered in the header.
  
  How can I supress the page number or the header totally in the whole 
  document?
 
 you can try
 
 \setupheadertexts[]
 
 I guess you have already looked at
 http://wiki.contextgarden.net/Headers_and_Footers
 
 [and please use a subject next time]
 
 Best wishes, Peter
 
  Thankyou in advance.
  
  
  
  Horacio Suarez
  Editorial Antropofagia
  www.eantropofagia.com.ar
  
  Discover the new Windows Vista Learn more! 
  http://search.msn.com/results.aspx?q=windows+vistamkt=en-USform=QBRE
  
  
  
  
  ___
  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
 ___

_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx___
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] margins

2008-03-25 Thread Peter I. Hansen
On Tue, Mar 25, 2008 at 9:06 PM, Henning Hraban Ramm [EMAIL PROTECTED] wrote:
 Am 2008-03-25 um 01:51 schrieb Joel C. Salomon:

  In other words, you want large inner margins and small outer margins.
However, the standard behaviour seems to be the opposite.
   For very good reason.  When a two-page spread is laid flat, it usually
   looks best if the outer margins are both approximately equal in width
   to the combined inner margins.  The default layout takes that into
   account.
  
   While the binding of a book does eat some of the inner margin, it's
   probably less than you think (IIRC, from ¼ʺ to ½ʺ, depending on
   the
   binding method), and often the print shop can correct for that.  (If
   you need to be exact, measure against a book bound where your book
   will be and in the same method.)

  It depends on the binding method.

  The traditional margin sizes are only good for thread-stitching.
  If your book's bound threadless (perfect binding, Wire-O etc.) your
  inner margins need to be bigger (not always bigger as the outer, but
  at least bigger than the traditional measures).

  It's not only that the bookbinder mills away a few millimeters of the
  page - you can't open a adhesive bound book as much as a thread-
  stitched, so you need a wider gutter to be able to read the book
  without destroying the binding. (Or in case of spiral binding the
  holes for the wire need enough space.)

  And if you need to send your PDF print-ready to your printshop (maybe
  books-on-demand maker), there's nobody else who will correct for that.

  Insofar the OP's question is well justified.
  Even if he could have found the answer easily himself:

  Of course you can define your page layout at will,
  see http://wiki.contextgarden.net/Layout

Well, the information here does not solv my problem completely.
The thing is, that while I do want the inner margins to be larger than
the outer, my description also implies that the odd numbered pages are
right pages, which is sometimes a requirement for printed books.
I have tried to define the margins following the Layout section of the
manual, but I can't figure out how to change that the odd pages are
assumed to be left pages.

-Peter
___
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] how to supress headers

2008-03-25 Thread Peter Rolf
Horacio Suarez schrieb:
 Thankyou Peter. Sorry, I forgot the subject.
 
 I have already looked at http://wiki.contextgarden.net/Headers_and_Footers
 
 Now in \setuplayout I use header=0cm and the header is not visible. Not 
 so elegant.

There should be a better solution.

 \setupheadertexts[] doesn´t supress the header.

Strange, as this supresses the header page number here.
Second try (not much experience with this...)

\setupheader[state=stop]

If there is no better answer from the list (= all busy atm):
make a minimal example that shows the problem (mainly your page layout).

Peter

 Thankyou very much.
 
 
 Horacio Suarez
 Editorial Antropofagia
 www.eantropofagia.com.ar
 
   Date: Tue, 25 Mar 2008 20:32:41 +0100
   From: [EMAIL PROTECTED]
   To: ntg-context@ntg.nl
   Subject: Re: [NTG-context] (no subject)
  
   Hi Horacio,
  
   Horacio Suarez schrieb:
Hello all,
   
I have a stupid cuestion:
   
I´m making a long 12 pages table. I´m using \setupfootertexts for the
pagenumber. I don´t want page numbers in the header at all.
   
header=hight or header=empty in the \title setup is not enough, I 
 still
have a page number centered in the header.
   
How can I supress the page number or the header totally in the whole
document?
   
   you can try
  
   \setupheadertexts[]
  
   I guess you have already looked at
   http://wiki.contextgarden.net/Headers_and_Footers
  
   [and please use a subject next time]
  
   Best wishes, Peter
  
Thankyou in advance.
   
   

Horacio Suarez
Editorial Antropofagia
www.eantropofagia.com.ar

 
Discover the new Windows Vista Learn more!

 http://search.msn.com/results.aspx?q=windows+vistamkt=en-USform=QBRE
   
   

 
   

 ___
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
   
 ___
 
 
 Get news, entertainment and everything you care about at Live.com. Check 
 it out! http://www.live.com/getstarted.aspx 
 
 
 
 
 ___
 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] how to supress headers

2008-03-25 Thread Horacio Suarez

hello:

Peter:

I was triying and the problem are because the titles are inside a table. The 
same text outside and inside a table gives different results:

%%%
\setupheadertexts[]

\setuppagenumbering[alternative=doublesided]

\setuphead[title][header=empty]

\setupfootertexts[\setups{texta}][][][\setups{textb}]
\startsetups[texta]
{\tfx\ss Editorial Antropofagia - www.eantropofagia.com.ar - [EMAIL PROTECTED] 
\hfill {\bf Página \pagenumber}}
\stopsetups

\startsetups[textb]
{\tfx\ss{\bf Página \pagenumber}\hfill Editorial Antropofagia - 
www.eantropofagia.com.ar - [EMAIL PROTECTED]
\stopsetups

\starttext

\title Un título cualquiera

\dorecurse{4}{\input tufte}

\bTABLE

\bTR \bTD

\title Un título cualquiera

\eTD \eTR

\bTR \bTD \dorecurse{4}{\input tufte}\eTD \eTR

\eTABLE

\stoptext

%%



Horacio Suarez
Editorial Antropofagia
www.eantropofagia.com.ar

 Date: Wed, 26 Mar 2008 00:00:06 +0100
 From: [EMAIL PROTECTED]
 To: ntg-context@ntg.nl
 Subject: Re: [NTG-context] how to supress headers
 
 Horacio Suarez schrieb:
  Thankyou Peter. Sorry, I forgot the subject.
  
  I have already looked at http://wiki.contextgarden.net/Headers_and_Footers
  
  Now in \setuplayout I use header=0cm and the header is not visible. Not 
  so elegant.
 
 There should be a better solution.
 
  \setupheadertexts[] doesn´t supress the header.
 
 Strange, as this supresses the header page number here.
 Second try (not much experience with this...)
 
 \setupheader[state=stop]
 
 If there is no better answer from the list (= all busy atm):
 make a minimal example that shows the problem (mainly your page layout).
 
 Peter
 
  Thankyou very much.
  
  
  Horacio Suarez
  Editorial Antropofagia
  www.eantropofagia.com.ar
  
Date: Tue, 25 Mar 2008 20:32:41 +0100
From: [EMAIL PROTECTED]
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] (no subject)
   
Hi Horacio,
   
Horacio Suarez schrieb:
 Hello all,

 I have a stupid cuestion:

 I´m making a long 12 pages table. I´m using \setupfootertexts for the
 pagenumber. I don´t want page numbers in the header at all.

 header=hight or header=empty in the \title setup is not enough, I 
  still
 have a page number centered in the header.

 How can I supress the page number or the header totally in the whole
 document?

you can try
   
\setupheadertexts[]
   
I guess you have already looked at
http://wiki.contextgarden.net/Headers_and_Footers
   
[and please use a subject next time]
   
Best wishes, Peter
   
 Thankyou in advance.


 
 Horacio Suarez
 Editorial Antropofagia
 www.eantropofagia.com.ar
 
  
 Discover the new Windows Vista Learn more!
 
  http://search.msn.com/results.aspx?q=windows+vistamkt=en-USform=QBRE


 
  

 
  ___
 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

  ___
  
  
  Get news, entertainment and everything you care about at Live.com. Check 
  it out! http://www.live.com/getstarted.aspx 
  
  
  
  
  ___
  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] MKIV Chinese and English typesetting

2008-03-25 Thread Dohyun Kim
2008/3/25, Yue Wang [EMAIL PROTECTED]:
  Dear Hans and other friends:
  
I am a Chinese user of ConTeXt. Recently, I tried ConTeXt MkIV and
test its Chinese  typesetting. I am very glad to see MkIV can access
my linux OS TTFOTF fonts and give a good face of my article about
lines breaking. But on the bilingual typesetting, such as Chinese
sentences and English words appearance in a article at the same time ,
I found there are no good methods to solve the  problem of  setting
fonts for them respectively. Now I had to handle it in this way:
  



 Well, I am aware of that problem (I think Hans is aware of that
  too). See the relative thread in mailing list archive (Jan 2008, I
  think). I mentioned the problem again in another mail to Hans this
  morning because more messages like this appeared on Chinese TeX
  related web forums these days (It's a good thing, more Chinese TeX
  Gurus love to play ConTeXt and LuaTeX ^_^).

  There are many ways to deal with that problem. in fact, add your \en
  macro into the method.hani() function of  font-otf.lua is a quick and
  dirty hack. But I think there should be other more elegant ways to
  deal with it. perhaps:
  - assign an english font feature to \definefontfeature or
  \definefontsynonym. When define a CJK typefaces, the corresponding
  English typeface can be defined by the user. switch to another font
  when needed (using the similar method as in font-otf.lua).
  - map the CJK part of a Chinese typeface and Latin part of a English
  typeface to one single virtual font, Use this virtual font for
  typesetting.

  Both of them are not hard to do technically compared what had been
  done before.  So maybe we should wake Hans up to continue the CJK
  support? Zhichu Chen and I are eager to help whenever a localization
  problem is occurred.


FYI.  I have recently tried to implement Korean typesetting with LuaTeX,
using the second method you have mentioned, that is virtual font mechanism.
It is, however, not for ConTeXt but for plain TeX, because I am
ignorant about ConTeXt.

http://people.ktug.or.kr/~nomos/mine/luatexko.tex
http://people.ktug.or.kr/~nomos/mine/luatexko.lua
http://people.ktug.or.kr/~nomos/mine/luatextt.lua

On current stage, one of important features missing is supporting
opentype GSUB, which now I am trying to understand how to implement.

For testing, you have to install UnBatang.ttf, the most popular truetype font
for Korean language. You can download this font from
http://kldp.net/frs/download.php/1425/un-fonts-core-1.0.tar.gz
or you may already have it if you use debian or ubuntu linux system.

Then just make a document as follows and compile it with `luatex' command
%
\input luatexko
... some Korean document including english characters ...
\bye
%

I hope my effort could contribute to developing CJK typesetting with LuaTeX.

Dohyun Kim
___
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] MKIV Chinese and English typesetting

2008-03-25 Thread Yue Wang
   \starttext
  我用英文进行{\en Hello World}测试。
   \stoptext


  At least that looks logical to me...


Yes, It is not only logic, but also useless and troublesome.
especially typesetting a document with large amount of foreign words.
Zhichu Chen and I are making a sample. Wait for a few days and we will
post it to Hans.
___
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
___