Re: [NTG-context] inline diagrams/charts?

2007-08-17 Thread Henning Hraban Ramm
2007/8/16, Wolfgang Schuster [EMAIL PROTECTED]:
   sparklines?
  Thank you, that's what I meant.
  I had in mind there was some TeX solution? But never mind, I need them
  in an InDesign layout anyway.
 there was a pgf solution on Tuftes page:
 http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=Lktopic_id=1topic=Ask+E%2eT%2e

Thank you.
Actually, I only seem to need some percentage bars for my poll results
(% of yes, perhaps and no for about 50 questions).
So I wrote a python script that gets the data from my database and
writes an EPS of the bar (fortunately I learned how to handcode PS).
This is converted to PDF, and I'm set. As I mentioned, my magazine is
made with InDesign, so I can't calculate on the fly.

Looking at all the beautiful sparklines, I thought how I could utilize
the higher data density, but had no idea yet.
But my inline bars (with a scale) are already better than the pie
charts that I had in mind first.

Greetlings, Hraban
___
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] Column enumerations start at zero

2007-08-17 Thread Wolfgang Schuster
2007/8/17, M.guravage [EMAIL PROTECTED]:
 Hi,

 I recently observed that column enumerations start at zero instead of at
 one. Has anyone else seen this? Here's a minimal example:

 % interface=en output=pdftex
 \starttext
   \startitemize[n, columns, three]
 \item  foo \item bar \item  hat
   \stopitemize
 \stoptext

 Is there a way to the initial counter value explicitly? So far my attempts
 with the setupitemize options have failed.

 Cheers,

 Michael

 PS: This is on Windows running the  minimal ConTeXt distribution ver:
 2007.07.03 19:38 MKII.

Update, this is already fixed.

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] Column enumerations start at zero

2007-08-17 Thread M.guravage
Hi,

I recently observed that column enumerations start at zero instead of at
one. Has anyone else seen this? Here's a minimal example:

% interface=en output=pdftex
\starttext
  \startitemize[n, columns, three]
\item  foo \item bar \item  hat
  \stopitemize
\stoptext

Is there a way to the initial counter value explicitly? So far my attempts
with the setupitemize options have failed.

Cheers,

Michael

PS: This is on Windows running the  minimal ConTeXt distribution ver:
2007.07.03 19:38 MKII.

___
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] \enablemathpunctuation and luatex

2007-08-17 Thread Peter Münster
On Wed, 15 Aug 2007, Peter Münster wrote:

 in the following example, the \in[test] command produces ??:
 
 %engine=luatex
 \enablemathpunctuation
 \starttext
 figure~\in[test]
 \placefigure[][test]{XXX}{XXX}
 \stoptext

I've found a workaround:

[...]
\starttext
\enablemathpunctuation
[...]

Or \appendtoks\enablemathpunctuation\to\everystarttext, if you want the
\enablemathpunctuation in an environment or module.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
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] t-bib - publicationlist space between [111] and items // luatex // error for \currentdate [y, -, mm, -, dd]

2007-08-17 Thread Tobias Burnus
Hello,

I use \setuppublications[numbering=yes,refcommand=num] and have more
than 99 references. Thus in the reference list the ] of [111]
overlaps with the entry behind.

I tried \setuppublicationlist with samplesize= and with
distance=/width=, but this did not help.

Any idea how to solve this (best would be of cause automatically).

 * * *

I'm now trying to get LuaTeX running with a TeXLive2007 system and the
current cont-tmf.zip.

I did:
- Compiled luatex and installed luatex
- Created symbolic link from texluac to luatex
- Set TEXMFCNF=dir to the directory which contains texmf.cnf

Questions and problems:

a) Where do I find mtxrun ? I found ./scripts/context/lua/mtxrun.lua, but
   lua ./scripts/context/lua/mtxrun.lua
gives the error message:

lua: ./scripts/context/lua/mtxrun.lua:3949: attempt to index global
'lua' (a nil value)

The line is:
if lua.bytecode then -- from 0 upwards


b) If I run:
   texmfstart texexec --make --lua
the metafun.mem is nicely generated but cont-* is not:
LuaTools | version 1.1.1 - 2006+ - PRAGMA ADE / CONTEXT
LuaTools | loading /home/tob/texmf/texmf.cnf
LuaTools | preparing configuration in /home/tob/luatex-cache/
[...]
LuaTools | runtime: 0.29 seconds
TeXExec | using tex engine luatex
TeXExec | using tex format path /home/tob/texmf/web2c/luatex
TeXExec | generating tex format cont-en
Error in lua file loading: ?:0: attempt to index global 'instance' (a
nil value)
[...]
LuaTools | running command: luatex --ini --lua=cont-en.luc
/home/tob/texmf/tex/context/base/cont-en.tex \dump
LuaTools |
LuaTools | runtime: 0.3 seconds
TeXExec | generating tex format cont-nl
Error in lua file loading: ?:0: attempt to index global 'instance' (a
nil value)


Which seems to be the same error as in (a).

  * * *

Since the update of cont-tmf.zip, I get an error (pdfetex) for:

\currentdate [y,-,mm,-,dd]
\bye

! Missing number, treated as zero.
to be read again
   {
\convertnumber ... \s!default \fi \fi \endcsname {
  \number #2}

Any idea what goes wrong here?

Tobias
___
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] t-bib - publicationlist space between [111] and items // luatex // error for \currentdate [y, -, mm, -, dd]

2007-08-17 Thread Taco Hoekwater
Tobias Burnus wrote:
 Hello,
 
 I use \setuppublications[numbering=yes,refcommand=num] and have more
 than 99 references. Thus in the reference list the ] of [111]
 overlaps with the entry behind.
 
 I tried \setuppublicationlist with samplesize= and with
 distance=/width=, but this did not help.

Only answering this because I have to run:

   \setuppublicationlist[width=3in]

works for me (t-bib says it is 2006.12.07)

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

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


Re: [NTG-context] t-bib - publicationlist space between [111] and items // luatex // error for \currentdate [y, -, mm, -, dd]

2007-08-17 Thread Peter Münster
On Fri, 17 Aug 2007, Tobias Burnus wrote:

 I'm now trying to get LuaTeX running with a TeXLive2007 system and the
 current cont-tmf.zip.
 
 I did:
 - Compiled luatex and installed luatex
 - Created symbolic link from texluac to luatex
 - Set TEXMFCNF=dir to the directory which contains texmf.cnf

This was not enough for me, I also had to set TEXMF and TEXFORMATS. It
seems to me, that texmf.cnf is not read by luatex, even if TEXMFCNF is set.
(I also made a link for texlua.)

 Questions and problems:
 
 a) Where do I find mtxrun ? I found ./scripts/context/lua/mtxrun.lua, but
lua ./scripts/context/lua/mtxrun.lua

I just made a symbolic link:
ln -s .../scripts/context/lua/mtxrun.lua .../bin/mtxrun
(with all other lua-scripts too)

You can look into my spec-file in
http://pmrb.free.fr/texlive/texlive.nosrc.rpm to see what I needed to do to
get MKIV running on TL-2007 (or better: TL-trunk)

 Since the update of cont-tmf.zip, I get an error (pdfetex) for:
 
 \currentdate [y,-,mm,-,dd]
 \bye
 
 ! Missing number, treated as zero.

Confirmation: here too...

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
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] Possible bug in core-tab?

2007-08-17 Thread Hans Hagen
Aditya Mahajan wrote:
 Another bug:
 
 \starttext
 \starttablehead
 \HL
 \stoptablehead
 \starttables[|l|l|]
\VL Some text \VL some text \VL \AR
 \stoptables
 \stoptext
 
 gives Misplaced \noalign.
 
 Bugfix:
 
 \def\stoptables
{\chuckTABLEautorow %AM:Added. before the tail, else noalign problem
\ifconditional\tablerepeattail\else\insertTABLEtail\fi
 \finishTABLE
 \egroup
 \dosplittablebox\tablecontentbox
 \flushnotes
 \egroup}

ok, patched ... i cross my fingers for side effects -)

-
   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] MetaFont

2007-08-17 Thread Wolfgang Werners-Lucchini
  But this does massivly restrict metafonts capabilities. Pens
 for
  example are not allowed (Metafont with applied handbrake)!
  I agree, metatype1 is not very easy to use if you are familiar
  with
  metafont already. For existing fonts, mf2pt1 is in general the
  best
  approach, I think. There is a (patched?) version out there that
  delegates most the hard work to fontforge, and it's results are
  normally
  quite acceptable.
  
  There was once (1990) an article in TUGboat 11:4, pages 525-541
  which discribes an patch to mf84. The patched mf could produce
 type3 
  fonts. Should'nt it be possible to do the same for type1?
 
 Not without a lot of effort. Type3 fonts allow all sorts of stuff
 that is illegal in Type1, like overlapping and mixing of strokes
 and fills.

The cases where fontforge is refusing, are cases which are best 
handeld inside metafont, where one has the knowledge: a.) elliptical 
curves, which are represented by polygons (lots of points and 
resolution depandend) and should converted to something smoother, and 
b.) short epicycles, which are also artifacts from penmotions, which 
can easyly be detected and replaced by an corner point.

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
___