Re: [NTG-context] Creating graphic file instead of PDF

2010-11-21 Thread luigi scarso
On Sun, Nov 21, 2010 at 7:21 AM, Cecil Westerhof cldwester...@gmail.com wrote:
 I am making flowcharts with ConTeXt. Because the flowcharts have to be
 included in other documents, I would like to make graphic files (jpeg,
 png, ...). Also not bigger as needed to represent the flowchart.
 Can this be done.
Just convert the pdf in jpeg with (for example) ghostscript.
-- 
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
___


[NTG-context] How to circumvent crossing of the lines

2010-11-21 Thread Cecil Westerhof
I have the folowing document:
\usemodule[chart]

\starttext

\setupFLOWcharts
[
  dx=2\bodyfontsize,
  dy=2\bodyfontsize,
  height=3.1\lineheight,
  maxwidth=\textwidth,
  nx=5,
  ny=4,
]

\startFLOWchart[example]
  \startFLOWcell
\connection [bt]{isErEenProbleem}
\connection [rl]{urenInvoeren}
\location   {2,1}
\name   {tijdOver}
\shape  {45}
\text   {Is er tijd voor een volgend ticket?}
  \stopFLOWcell

  \startFLOWcell
\connection [rl]{klaar}
\location   {3,1}
\name   {urenInvoeren}
\shape  {action}
\text   {Leg gebruikte uren vast}
  \stopFLOWcell

  \startFLOWcell
\connection [bt]{ticketKlaar}
\connection [lr]{contactTon}
\location   {2,2}
\name   {isErEenProbleem}
\shape  {45}
\text   {Treed er een probleem op?}
  \stopFLOWcell

  \startFLOWcell
\connection [tt]{tijdOver}
\location   {1,2}
\name   {contactTon}
\shape  {action}
\text   {Neem contact op met Ton}
  \stopFLOWcell

  \startFLOWcell
\connection [bt]{meldOpgelost}
\connection [lt]{tijdOver}
\location   {2,3}
\name   {ticketKlaar}
\shape  {45}
\text   {Is ticket opgelost?}
  \stopFLOWcell

  \startFLOWcell
\connection [lt]{tijdOver}
\location   {2,4}
\name   {meldOpgelost}
\shape  {action}
\text   {Meld ticket opgelost}
  \stopFLOWcell

\stopFLOWchart

\FLOWchart[example]

\stoptext

But the lines from ticketKlaar and meldOpgelost to tijdOver cross the
line from isErEenProbleem to contactTon. Is there a way to make the
lines pass contactTon to the left, so the lines do not cross?

-- 
Cecil Westerhof
___
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] New Release Winedt WORKS with MKIV!!

2010-11-21 Thread barney schwartz
 New build of WinEdt 6.0 (Build: 20101121) has been uploaded to

 www.winedt.com

 This build contains macros that work with the latest ConTeXt Mark
 IV (previous versions were designed for older version of ConTeXt).
 If you are upgrading from older version of WinEdt make sure that
 the executable for ConTeXt in WinEdt's Execution Modes is set
context.exe (instead of old texexec.exe)...

If you (really!?) want to use old ConTeXt Mark II you will have
modify the menu item for ConTeXt to call:

ConTeXt_old.edt

  instead of

 ConTeXt.edt

 News.txt gives the details (read it!)

 In the meantime another build 2010 had been available (but
 never announced on the list). Since then WinEdt takes care of
 environment variables MIKTEX_EDITOR and TEXEDIT that define the
 editor response for e in MiKTeX and TeX Live.

 You can install the latest build over the old version of WinEdt 6.0 and
 then read What's new in the Help menu (if you want to take
 advantage of certain changes such as new items in the Maintenance
 Menu designed to load customized scripts etc...).

 Best regards,
 alex

Just thought I would post this here for other Winedt users.

barney
___
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] Creating graphic file instead of PDF

2010-11-21 Thread Cecil Westerhof
2010/11/21 luigi scarso luigi.sca...@gmail.com:
 I am making flowcharts with ConTeXt. Because the flowcharts have to be
 included in other documents, I would like to make graphic files (jpeg,
 png, ...). Also not bigger as needed to represent the flowchart.
 Can this be done.
 Just convert the pdf in jpeg with (for example) ghostscript.

This works, but the problem is that I get an image the size of an A4.
This is mostly whitespace. Is it not possible to only get the used
part?

-- 
Cecil Westerhof
___
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] Creating graphic file instead of PDF

2010-11-21 Thread luigi scarso
On Sun, Nov 21, 2010 at 10:07 AM, Cecil Westerhof
cldwester...@gmail.com wrote:
 2010/11/21 luigi scarso luigi.sca...@gmail.com:
 I am making flowcharts with ConTeXt. Because the flowcharts have to be
 included in other documents, I would like to make graphic files (jpeg,
 png, ...). Also not bigger as needed to represent the flowchart.
 Can this be done.
 Just convert the pdf in jpeg with (for example) ghostscript.

 This works, but the problem is that I get an image the size of an A4.
 This is mostly whitespace. Is it not possible to only get the used
 part?
Maybe wrap your flowcharts-code in \startTEXpage ... \stopTEXpage, ie
something like this
\starttext
\startTEXpage
Put your flowcharts-code here...
\stopTEXpage
\stoptext
-- 
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] Creating graphic file instead of PDF

2010-11-21 Thread Cecil Westerhof
2010/11/21 luigi scarso luigi.sca...@gmail.com:
 I am making flowcharts with ConTeXt. Because the flowcharts have to be
 included in other documents, I would like to make graphic files (jpeg,
 png, ...). Also not bigger as needed to represent the flowchart.
 Can this be done.
 Just convert the pdf in jpeg with (for example) ghostscript.

 This works, but the problem is that I get an image the size of an A4.
 This is mostly whitespace. Is it not possible to only get the used
 part?
 Maybe wrap your flowcharts-code in \startTEXpage ... \stopTEXpage, ie
 something like this
 \starttext
 \startTEXpage
 Put your flowcharts-code here...
 \stopTEXpage
 \stoptext

Works like a charm. Thanks.

By the way instead of gs from ghostscript, you can also use convert
from Image Magick.

-- 
Cecil Westerhof
___
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] Creating graphic file instead of PDF

2010-11-21 Thread luigi scarso
On Sun, Nov 21, 2010 at 10:38 AM, Cecil Westerhof
cldwester...@gmail.com wrote:
 2010/11/21 luigi scarso luigi.sca...@gmail.com:
 I am making flowcharts with ConTeXt. Because the flowcharts have to be
 included in other documents, I would like to make graphic files (jpeg,
 png, ...). Also not bigger as needed to represent the flowchart.
 Can this be done.
 Just convert the pdf in jpeg with (for example) ghostscript.

 This works, but the problem is that I get an image the size of an A4.
 This is mostly whitespace. Is it not possible to only get the used
 part?
 Maybe wrap your flowcharts-code in \startTEXpage ... \stopTEXpage, ie
 something like this
 \starttext
 \startTEXpage
 Put your flowcharts-code here...
 \stopTEXpage
 \stoptext

 Works like a charm. Thanks.

 By the way instead of gs from ghostscript, you can also use convert
 from Image Magick.
or GraphicsMagick, but as far as I know they still  depend to ghostscript.
An independent way is to convert the pdf  with pdftoppm
and then convert again the ppm to png/jpeg.


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


[NTG-context] heading in margin + grid

2010-11-21 Thread Philipp Gesang
Dear fellow Contexters,

there are some subheadings I’d like to place in the margin
approximately like that:

···8

\def\text{knuth}

\setuplayout[grid=yes] \showgrid

\setuphead[section][
  %grid=yes,
  style={\tf\bf\color[red]},
  command=\placeheadinmargin,
  before=,after=,
]

\setupwhitespace[none]

\def\placeheadinmargin#1#2{%
  %\margintitle{#2}%
  \margintitle{\raise-\baselineskip\hbox{#2}}% needed with grid
}

\starttext

\dorecurse{10}{%
  \section{\text}
  \input \text
  \par
}

\stoptext

···8

Question is: how do I get rid of the empty line before the
heading? I thought I exhausted every possibility by unsetting the
‘after’ and ‘before’ keys and disabling interpar whitespace --
but not quite!

Thanks for any suggestions, Philipp

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


pgp8JCZc3xhTu.pgp
Description: PGP 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] Second Try for help using Windows 7 Winedt6.0 MiKTeX 2.9 to process ConTeXt

2010-11-21 Thread Ulrike Fischer
Am Sat, 20 Nov 2010 22:39:10 +0100 schrieb Mojca Miklavec:


 and so format generation fails because a context.tex in the
 documentation of circuittikz is found.

 ah, interesting; it makes me wonder why the doc search path is consulted in
 the firstplace (maybe mojca can simulate it on her machine as she did the
 miktex testing)
 
 I have uninstalled and will try to reinstall MikTeX from scratch once
 I get to a better internet connection.
 
 But I didn't stumble upon that problem since I didn't install that
 package. The author of circuittikz will rename his file and hopefully
 the bug in MikTeX will be fixed.
 
 I would be glad to test, but I can hardly respond if I don't know what
 is going on or what exactly fails.

I made some more test: context finds really everything in the
texmf-trees. I looked a bit at the trace of context and compared it
with latex. The only really obvious difference I see is that
mtxrun.lua loads a texmf.cnf and a texmcnf.lua. The contents of the
cnf is simple: It defines some variables for the roots. E.g.

TEXMFLOCAL=J:/MiKTeX2.9
TEXMF={C:/Dokumente und Einstellungen/..., 

and some parameters for hash size etc.

texmfcnf.lua contains only
return {
  TEXMFCACHE=C:/Dokumente und Einstellungen/Ulle/Lokale
Einstellungen/Anwendungsdaten/MiKTeX/2.9
}

I was wondering a bit if this texmf.cnf resets the pathes but
couldn't confirm it. Even replacing it with another texmf.cnf didn't
correct the search pathes. (And it is regenerated on-the-fly if I
delete it). 



-- 
Ulrike Fischer 

___
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] XML pretty printer?

2010-11-21 Thread Hans Hagen

On 20-11-2010 8:40, Renaud AUBIN wrote:


I have a first operational version of my lpeg-based xml pretty
printer: http://www.nibua-r.org/gitsnap/pret-xml/
operational means:


A remark:

I'm currently replacing the current pretty printing interface
and the new infrastructure is based on lpeg (which was not around when I 
did the first implementation). This is part of the work on cld (where 
verbatim has its own niche).


As I think that there are different demands for pretty printing it will 
be easier for users to plug in code. Also, there will be less tex code 
involved as the cld interface is used at the lua end, i.e. there are 
regular lua functions for dealing with it.


As you already are playing with pretty printing I'm sure that you will 
be able to plug in your code. But, naming is important and may not 
override the built in methods.


By default there will be the following pretty printers:

- v-tex
- v-metapost
- v-lua
- v-xml

These are dumb variants, insensitive for syntax errors which is handy 
for manuals. In addition there will be:


- v-lua-plus (name can change)
- v-xml-plus (name can change)

where the first one replaces the cdx code now used for documenting (so 
this targets at luigi) and can mix lua code with documentation. The 
second one is used by myself when documenting xml code and uses the 
built in parser.


Now, additional pretty printers can be plugged in as well (there is a 
register function for that) and can have names not starting with v-. 
Even better, they can be regular user modules, so in your case


  u-pretty-ra-xml.tex

or so will do. There are already some basic pretty lpeg helpers that 
will take care of (visualizing) spacing, lines, and more. In principle 
one can also mix pretty printers (so, lua code inside tex code and 
alike).


It also means that other pret-* code has to be adapted (and ends up in 
the u-pretty-* namespace).


Sorry for the inconvenience. More later.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] Second Try for help using Windows 7 Winedt6.0 MiKTeX 2.9 to process ConTeXt

2010-11-21 Thread Taco Hoekwater

On 11/21/2010 12:53 PM, Ulrike Fischer wrote:


texmfcnf.lua contains only
return {
   TEXMFCACHE=C:/Dokumente und Einstellungen/Ulle/Lokale
Einstellungen/Anwendungsdaten/MiKTeX/2.9
}


I hope there are quotes around that in the actual file.
(the value is a lua string)

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
___


[NTG-context] Better info for chart module

2010-11-21 Thread Cecil Westerhof
I found and use http://www.ntg.nl/maps/23/16.pdf.

But this is from 1999, so I was wondering if there is more uptodate
information. Especially I am wondering about the status from what is
told by other features.

-- 
Cecil Westerhof
___
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] heading in margin + grid

2010-11-21 Thread Wolfgang Schuster

Am 21.11.2010 um 12:28 schrieb Philipp Gesang:

 Dear fellow Contexters,
 
 there are some subheadings I’d like to place in the margin
 approximately like that:

\setuplayout[grid=yes]\showgrid

\define[2]\SectionCommand
  {\inleftmargin{#2}}

\setuphead
  [section]
  [alternative=text,
   style=bold,
   color=red,
   command=\SectionCommand,
   distance=0pt,
   before={\blank[nowhite]}]

\starttext

\dorecurse{10}
  {\section{Knuth}
   \input knuth\par}

\stoptext

Wolfgang

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

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


Re: [NTG-context] Second Try for help using Windows 7Winedt6.0 MiKTeX 2.9 to process ConTeXt

2010-11-21 Thread Ulrike Fischer
Am Sun, 21 Nov 2010 13:09:53 +0100 schrieb Taco Hoekwater:

 On 11/21/2010 12:53 PM, Ulrike Fischer wrote:

 texmfcnf.lua contains only
 return {
TEXMFCACHE=C:/Dokumente und Einstellungen/Ulle/Lokale
 Einstellungen/Anwendungsdaten/MiKTeX/2.9
 }
 
 I hope there are quotes around that in the actual file.
 (the value is a lua string)

No there aren't quotes. The path is on one line, but apart from this
it is a verbatim copy. 

-- 
Ulrike Fischer 

___
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] heading in margin + grid

2010-11-21 Thread Philipp Gesang
On 2010-11-21 13:22:32, Wolfgang Schuster wrote:
 
 Am 21.11.2010 um 12:28 schrieb Philipp Gesang:
 
  Dear fellow Contexters,
  
  there are some subheadings I’d like to place in the margin
  approximately like that:
 
 \setuplayout[grid=yes]\showgrid
 
 \define[2]\SectionCommand
   {\inleftmargin{#2}}
 
 \setuphead
   [section]
   [alternative=text,
style=bold,
color=red,
command=\SectionCommand,
distance=0pt,
before={\blank[nowhite]}]
 
 \starttext
 
 \dorecurse{10}
   {\section{Knuth}
\input knuth\par}
 
 \stoptext
 
 Wolfgang

Works like a charm, many, many thanks!

 
 ___
 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


pgp51fsWJ1EvS.pgp
Description: PGP 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] wrong name of a *.top file

2010-11-21 Thread Leo Razoumov
Hi All,
I am a new ConTeXt user coming from LaTeX background. I am using
ConTeXt minimals current version on Linux (Ubuntu-9.04)
ConTeXt  ver: 2010.07.30 11:35 MKIV  fmt: 2010.11.18  int: english/english
LuaTeX, Version beta-0.64.0-2010111215

My file is named foo.11.tex (notice two . in a filename). After
running context  foo.11.tex a bunch of files get created with the
names such as
foo.11.log
foo.11.pdf
foo.11.tex
foo.11.tuc

In addition there is a file named foo.top  but NO foo.11.top.

Inspecting the file foo.11.log I noticed the line:

systems : no foo.11.top

Please, correct me if I am wrong but I think that proper name of the
*.toc file in this case should be foo.11.top and not foo.top.
Somehow the present of two . in a filename messed up context/luatex.

If I rename the file to, let say, foo-22.tex with only a single .
remaining, then problem is gone and the file foo-22.top is properly
generated and loaded.

--Leo--
___
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] Exist any table environment flag?

2010-11-21 Thread Jaroslav Hajtmar

Hello ConTeXist,

I want my macro to act differently inside \bTABLE ... \eTABLE 
environment and otherwise outside of that environment.
Is there any sign (flag) which can determine whether my macro run inside 
or outside the \bTABLE .. \eTABLE environment?
Or do I have two similar versions of my macros (one for the table 
environment and the other for normal environment)


Explanation: To my macro work, I must have already expanded values 
inside table environment...


Thanx

Jaroslav Hajtmar


___
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] Exist any table environment flag?

2010-11-21 Thread Wolfgang Schuster

Am 21.11.2010 um 15:06 schrieb Jaroslav Hajtmar:

 Hello ConTeXist,
 
 I want my macro to act differently inside \bTABLE ... \eTABLE environment and 
 otherwise outside of that environment.
 Is there any sign (flag) which can determine whether my macro run inside or 
 outside the \bTABLE .. \eTABLE environment?
 Or do I have two similar versions of my macros (one for the table environment 
 and the other for normal environment)

\ifintable but this is not available for tabulate, another alternative is to 
use \iftrialtypesetting

 Explanation: To my macro work, I must have already expanded values inside 
 table environment...

In this case you have to expand the whole table before it’s processed, e.g.

\bTABLE
  \bTR
\expanded{\bTD ... \eTD}
  \eTR
\eTABLE

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] index sort question

2010-11-21 Thread Horacio Suarez













Jano, thankyou very much.
It is a songs book, and I need an author table of content.
Your solution is very good, works fine, but using \pagenumber or incrementing a 
counter I can´t make it work.

I replace \pagenumber with a incremental number to assure the label sorting.
So using the original sample, instead 
of:A\index[arbol+\pagenumber]{arbol+rojo}\pageB\index[araña+\pagenumber]{araña+linda}\pageC\index[arbol+\pagenumber]{arbol+verde}\pageD\index[araña+\pagenumber]{araña+grande}\pageE\index[arbol+\pagenumber]{arbol+blanco}\page
it is 
nowA\index[arbol1]{arbol+rojo}\pageB\index[araña2]{araña+linda}\pageC\index[arbol3]{arbol+verde}\pageD\index[araña4]{araña+grande}\pageE\index[arbol5]{arbol+blanco}\page
Even it´not elegant, the Author index is very nice!
Maybe yo know why I can´t make it work.
Well, thankyou again.


Horacio Suarez
Editorial Antropofagia
www.eantropofagia.com.ar



 To: ntg-context@ntg.nl
 From: jano.k...@tiscali.cz
 Date: Fri, 19 Nov 2010 10:49:35 +0100
 Subject: Re: [NTG-context] index sort question
 
 On 11/19/2010 10:45 AM, Jano Kula wrote:
  Hello Horacio,
 
  if you have only one index item per page, than on the second level you
  can use \pagenumber for sorting:
 
 or your own counter increased by every index item, which doesn't 
 restrict it to one item per page.
 
 J.
 
 ___
 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
 ___



  ___
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] problem in resume module

2010-11-21 Thread views63
Hi Wolfgang,


I find a problem in resume module with latest beta

log:

structure   : section @ level 3 : 0.0.0 - Extra 1
! Undefined control sequence.
argument ~

\firstoftwoarguments #1#2-#1

\docvline ...2}{~}{\setupinterlinespace \relax #2}
  \NC \NC \setupinterlinespa...
l.1 ...section {Extra 1} \par \cvlistitem {Item 1}
   \cvlistitem {Item 2} \cvl...
\dogetbufferasis ...uffers.get(\currentbuffer )}

\dodobuffer ...c!number \endcsname \else #2\fi }#1
  \popmacro \currentbuffer
...
l.75 \stopresume

?

--
Best regards,

Ze Huang


resumetest-classic.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
___


[NTG-context] normal font incorrectly set to italic

2010-11-21 Thread Philipp A.
hi,
when i build my context mark iv font database via mtxrun --script font
--reload, for some fonts i get italics when i want normal fonts, most
notably with “cambria” and “envy code r”.

with cambria, this is likely due to the fact that the regular and math
variants are served within a .ttc file.
\setmainfont[Cambria][regularfont=Cambria
Math] does the trick (i use simplefonts), as well as some obscure chinese
ttc2ttf program i found on the web.

with envy code r, i have no idea.
mtxrun --script fonts --list --all --pattern=envy* yields:
envycoderenvycoder
/home/phil/.fonts/Envy Code R 7/Envy Code R.ttf
envycoderboldenvycoderbold
/home/phil/.fonts/Envy Code R 7/Envy Code R Bold.ttf
envycoderitalic  envycoderitalic
/home/phil/.fonts/Envy Code R 7/Envy Code R Italic.ttf
envycodernormal  envycoderitalic
/home/phil/.fonts/Envy Code R 7/Envy Code R Italic.ttf

you can see the problem. how can i circumvent it?

thanks, phil
___
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] Tables and nobreakable space

2010-11-21 Thread Wolfgang Schuster
Hi Hans,

there is a bug in the merged code of the table environment.

\starttext
\starttable[|p|]
\NC ~ \NC\NR
\stoptable
\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
___


Re: [NTG-context] problem in resume module

2010-11-21 Thread Wolfgang Schuster

Am 22.11.2010 um 04:01 schrieb views63:

 Hi Wolfgang,
 
 I find a problem in resume module with latest beta

It’s a bug in the table environment, see my other mail on the list.

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] normal font incorrectly set to italic

2010-11-21 Thread Wolfgang Schuster

Am 21.11.2010 um 13:56 schrieb Philipp A.:

 hi,
 when i build my context mark iv font database via mtxrun --script font 
 --reload, for some fonts i get italics when i want normal fonts, most notably 
 with “cambria” and “envy code r”.
 
 with cambria, this is likely due to the fact that the regular and math 
 variants are served within a .ttc file. 
 \setmainfont[Cambria][regularfont=Cambria Math] does the trick (i use 
 simplefonts), as well as some obscure chinese ttc2ttf program i found on the 
 web.
 
 with envy code r, i have no idea.
 mtxrun --script fonts --list --all --pattern=envy* yields:
 envycoderenvycoder 
 /home/phil/.fonts/Envy Code R 7/Envy Code R.ttf
 envycoderboldenvycoderbold 
 /home/phil/.fonts/Envy Code R 7/Envy Code R Bold.ttf
 envycoderitalic  envycoderitalic   
 /home/phil/.fonts/Envy Code R 7/Envy Code R Italic.ttf
 envycodernormal  envycoderitalic   
 /home/phil/.fonts/Envy Code R 7/Envy Code R Italic.ttf
 
 you can see the problem. how can i circumvent it?

I guess your version of the simplefonts module is too old because the current 
version will ignore „envycodernormal“.

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] index sort question

2010-11-21 Thread Vianney le Clément
On Sun, Nov 21, 2010 at 22:48, Horacio Suarez horaciosua...@hotmail.com wrote:
 A\index[arbol+\pagenumber]{arbol+rojo}\page
 B\index[araña+\pagenumber]{araña+linda}\page
 C\index[arbol+\pagenumber]{arbol+verde}\page
 D\index[araña+\pagenumber]{araña+grande}\page
 E\index[arbol+\pagenumber]{arbol+blanco}\page

I guess you should ensure that \pagenumber is expanded immediately.
Otherwise, it will be expanded on your table of contents page, which
will of course be the same number for every entry.

Maybe try with
   \setupregister[expansion=yes]

If that doesn't work, you could try replacing your \index commands with
   \expanded{\index[arbol+\pagenumber]{arbol+rojo}}

These are only guesses, I may be wrong.

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