Re: [NTG-context] ! LuaTeX error [string \directlua ]:1: invalid escape sequence

2013-04-19 Thread Hans Hagen

On 4/19/2013 7:39 AM, Kip Warner wrote:

Hey list,

I am having problems typesetting the following minimal to try and
extract the current revision number from my revision control system:

 % Bzr revision...
 \def\initializeBzr
 {\ctxlua{context(\\global\\edef\\BzrRevision{\%s},
  os.resultofbzr revno | tr -d '\\n')}}
 \initializeBzr

 \starttex
 foo
 \stoptex

The error I receive is:

 ! LuaTeX error [string \directlua ]:1: invalid escape sequence
 near '\%'.
 system   tex  error on line 5 in file minimal.tex:
 LuaTeX error  ...

Line 5 is the \initializeBzr invocation. This was working with TeX Live
2012, but perhaps the correct usage has changed. I am now using ConTeXt
2013.04.11 19:55 with LuaTeX beta-0.76.0-2013041612  (TeX Live 2013)
(rev 4627).


use [[ ]] for passing strings and \letterpercent , of do:

\ctxlua{context.setxvalue(BzrRevision,os.resultof(bzr revno | tr -d 
'\string\n'))}




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] ! LuaTeX error [string \directlua ]:1: invalid escape sequence

2013-04-19 Thread Kip Warner
On Fri, 2013-04-19 at 09:07 +0200, Hans Hagen wrote:
 use [[ ]] for passing strings and \letterpercent , of do:
 
 \ctxlua{context.setxvalue(BzrRevision,os.resultof(bzr revno | tr
 -d 
 '\string\n'))} 

Thanks Hans. That solved that problem.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] gnuplot module broken

2013-04-19 Thread Mojca Miklavec
Dear Hans,

please consider the following example in MKII:

\setupcolors[state=start]

\starttext

\startMPextensions
a := \abc;
color b;
b := \MPcolor{currentcolor};
\stopMPextensions

\startuseMPgraphic{bla}
fill fullcircle scaled a withcolor b;
\stopuseMPgraphic

\def\abc{3cm}\color[blue]{\useMPgraphic{bla}}

% Nice small black circle
\def\abc{1cm}\useMPgraphic{bla}

\stoptext


I still don't know how to reproduce this in MKIV. I tried with
MPdefinitions as you suggested, but this only works the first time
when it is used. The following example creates two equal circles
instead of two different ones:


\starttext

\startMPdefinitions
a := \abc;
color b;
b := \MPcolor{currentcolor};
\stopMPdefinitions

\startuseMPgraphic{bla}
fill fullcircle scaled a withcolor b;
\stopuseMPgraphic

\def\abc{3cm}\color[blue]{\useMPgraphic{bla}}

% I want a black 1cm circle here
\def\abc{1cm}\useMPgraphic{bla}

\stoptext


Unless MKII is more powerful than MKIV: how can I achieve the same
functionality in MKIV as I did in MKII?

Thank you,
Mojca


On Tue, Feb 19, 2013 at 10:36 AM, Hans Hagen wrote:
 On 2/19/2013 1:37 AM, Mojca Miklavec wrote:

 On Mon, Feb 18, 2013 at 5:40 PM, Marco Patzer wrote:

 Hi Mojca et al.

 todays beta broke the gnuplot module. This is probably due to the
 changes in the MP inclusion mechanism.

 \usemodule [gnuplot]
 \starttext
 \stoptext

 Here's an almost minimal example:

 \def\abc{1cm}

 \startMPextensions
 a := \abc;
 color b;
 b := \MPcolor{currentcolor};
 \stopMPextensions

 \def\abc{3cm}

 \starttext
 \startcolor[blue]
 \startMPcode
 fill fullcircle scaled a withcolor b;
 \stopMPcode
 \stopcolor
 \stoptext

 The old ConTeXt draws a blue circle with diameter 3cm and the new
 ConTeXt draws a black circle with diameter 1cm. Which one is right?
  From a recent message by Hans:

 - add mp functionality (immediate expansion)


 It seems that ConTeXt now parses everything inside MPextensions
 earlier than it did before and I don't have the slightest idea how to
 account for this in the module without a major rewrite. In case that
 Hans wants to keep the new functionality, I either need [quite some]
 help with the module or I'll simply stick to TeX Live 2012 for the
 foreseeable future ;)


 For the (not texlive) module use:

 \defineMPinstance[gnuplot]
   [format=metafun,
extensions=yes,
initializations=yes,
method=double]

 \startMPdefinitions[gnuplot] ...

 and then use the gnuplot instance. This not only isolates the code, but also
 gives you floats. It also means that if someone crashes the gnuplot
 instance, the rest still keeps running.

 Definitions are per instance and are delayed i.e. passed via the tex end
 when they get expanded.

 The reason for extensions being immediate (at least for now) is that it was
 more easy to implement as extensions meant for mp extensions and can be for
 all instances of specific (sets) of instances.

 Sorry for the changes but as we have multiple instances, scale vs double and
 maybe more coming it's probably worth the trouble.

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


[NTG-context] \bTD\numexpr\currentTABLErow\minusone\relax\eTD

2013-04-19 Thread Alan BRASLAU
Hello,

I naively tried using
\bTD\numexpr\currentTABLErow\minusone\relax\dTD
in a TABLE.

As I do not master even simple calculations under TeX, I do not see
what I am missing in order to label TABLE rows, starting from 0?


(Row 1 is a heading, set off by \bTABLEhead\eTABLEhead, which is why I
am looking to subtract 1 from \currentTABLErow, but this does not
matter of course.

But perhaps the addressing of TABLE rows, including within \setupTABLE,
should or could handle this situation? This is a secondary question to
think about...)

Alan
___
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] gnuplot module broken

2013-04-19 Thread Marco Patzer
On 2013–04–19 Mojca Miklavec wrote:

 Dear Hans,
 
 please consider the following example in MKII:
 
 \setupcolors[state=start]
 
 \starttext
 
 \startMPextensions
 a := \abc;
 color b;
 b := \MPcolor{currentcolor};
 \stopMPextensions
 
 \startuseMPgraphic{bla}
 fill fullcircle scaled a withcolor b;
 \stopuseMPgraphic
 
 \def\abc{3cm}\color[blue]{\useMPgraphic{bla}}
 
 % Nice small black circle
 \def\abc{1cm}\useMPgraphic{bla}
 
 \stoptext
 
 
 I still don't know how to reproduce this in MKIV.

Use \startMPinitializations instead of \startMPextensions, it's
global to all MP instances, though.

Marco


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

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

[NTG-context] Is fine-grained grid control possible?

2013-04-19 Thread Tom Ellis
I asked a question on tex.stackoverflow, and it was suggested ConTeXt could
help and that I should repost my question here.


http://tex.stackexchange.com/questions/108850/is-fine-grained-grid-control-possible

I want to make a variety of checklists which are essentially based on a grid
layout.  I care about having fine-grained control over the exact placement
of labels and boxes.  I do not care about paragraphs, hypenation, equations,
or anything like that which I know TeX is very good at.

Is ConTeX a good fit for my needs?  How could I do it?

I've already though about Tikz and PGF but I don't think they give me enough
fine-grained control.  If I fail to find a way to solve my problem using TeX
I will probably explore SVG and PostScript.

Here are some examples of the kind of thing I would like to do that I pulled
from an image search for checklist

* 
https://studenttechportfolio.wikispaces.com/file/view/checklist.png/34343465/checklist.png
* 
http://checklisttemplate911.com/wp-content/uploads/2012/02/checklist-template12.jpg
* http://img.docstoccdn.com/thumb/orig/72289360.png
* http://www.bimmerfest.com/forums/attachment.php?attachmentid=88940stc=1
* 
http://theorganisedhousewife.com.au/shop/wp-content/uploads/2012/12/conference-checklist.jpg
* 
http://2.bp.blogspot.com/-piQobSY-8Mw/Tcihq580IgI/AgE/Fd0AQD1e69Y/s1600/Operator_Page_1.jpg
* 
http://www.dbh.govt.nz/UserFiles/Image/Publications/building/weathertightness/remediation-checklist-2.gif
* http://spxcooling.com/images/M92-1447C-s.jpg

Thanks,

Tom
___
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] \bTD\numexpr\currentTABLErow\minusone\relax\eTD

2013-04-19 Thread Marco Patzer
On 2013–04–19 Alan BRASLAU wrote:

   \bTD\numexpr\currentTABLErow\minusone\relax\dTD

  \bTD\the\numexpr\currentTABLErow-1\relax\eTD


Marco


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

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

[NTG-context] gnuplot module fixed (was: gnuplot module broken)

2013-04-19 Thread Mojca Miklavec
On Fri, Apr 19, 2013 at 10:09 AM, Marco Patzer wrote:
 On 2013–04–19 Mojca Miklavec wrote:

 Dear Hans,

 please consider the following example in MKII:

 \setupcolors[state=start]

 \starttext

 \startMPextensions
 a := \abc;
 color b;
 b := \MPcolor{currentcolor};
 \stopMPextensions

 \startuseMPgraphic{bla}
 fill fullcircle scaled a withcolor b;
 \stopuseMPgraphic

 \def\abc{3cm}\color[blue]{\useMPgraphic{bla}}

 % Nice small black circle
 \def\abc{1cm}\useMPgraphic{bla}

 \stoptext


 I still don't know how to reproduce this in MKIV.

 Use \startMPinitializations instead of \startMPextensions, it's
 global to all MP instances, though.

Thank you very much.

I hope that the module in
https://github.com/mojca/context-gnuplot/
is hotfixed now, thanks to Marco's extensive support. If anyone is
willing to do a couple more basic tests, I would be grateful. I plan
to upload this version to CTAN to get it into TeX Live and our
distribution.

Apart from that, Marco is working on a heavily modified version of the
module (for MKVI). Once that one is tested, we'll upload it as well,
but this patch is just to make the module usable again.

I'm very sorry that it took me so long.

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

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

[NTG-context] Lucida doesn't work in TL 2013 / latest ConTeXt

2013-04-19 Thread Mojca Miklavec
Hi,

in TL 2013 neither \setupbodyfont[lucida] nor \setupbodyfont[lucidanova] works.

The first one gives:

!LuaTeX error: Invalid local font in font lbr!

 == Fatal error occurred, no output PDF file produced!

and the other one complains about

! Math error: parameter \Umathquad\displaystyle is not set.

(I've set export TEXMFLOCAL=/path/to/texmf/with/both/lucidas.)

When trying the same with latest distribution I get

! LuaTeX error .../context/tex/texmf-context/tex/context/base/math-act.lua:101:
attempt to perform arithmetic on field 'size' (a nil value)
stack traceback:
.../context/tex/texmf-context/tex/context/base/math-act.lua:101: in
function 'mathematics_checkprivateparameters'
[string local mathematics_initializeparameters = math...]:10: in
function 'runner'
.../context/tex/texmf-context/tex/context/base/math-act.lua:39: in
function 'assignmathparameters'
.../context/tex/texmf-context/tex/context/base/math-vfu.lua:917: in
function .../context/tex/texmf-context/tex/context/base/math-vfu.lua:537
(...tail calls...)
.../context/tex/texmf-context/tex/context/base/font-def.lua:423: in
function 'read'
.../context/tex/texmf-context/tex/context/base/font-ctx.lua:947: in
function 'definefont_two'
[string \directlua ]:1: in main chunk.

system   tex  error on line 52 in file
/Users/mojca/context/gnuplot/mojca/texmf/doc/context/third/gnuplot/gnuplot-context-doc.tex:
LuaTeX error  ...

and with lucidanova I get the same error as in TeX Live.

I'm using \sometxt{} inside metapost code to draw labels, so maybe
that's connected.

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

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


Re: [NTG-context] Cumulating numbered lists

2013-04-19 Thread Alan Bowen
In the simplified example,

\setupitemgroup[itemize][broad]
\setupitemize[itemalign=flushright]
\startitemize[n,repeat]
\item level a
\item level a
\startitemize[n,repeat]
\item level b
\item level b
\startitemize[A][prefix=no]
\item level c
\item level c
\stopitemize
\stopitemize
\stopitemize

“prefix=no” does not work.

I am also puzzled that “repeat” must be entered at the higher levels if it
effectively means “repeat higher-level number at lower levels, to produce
e.g. 1.a.4” (quoting the wiki).

Alan



On Thu, Apr 18, 2013 at 2:43 PM, Alan Bowen bowenala...@gmail.com wrote:

 Hi, Wolfgang—

 Thanks for this—I will be more careful in keeping the two apart. In this
 instance, however, when I make the change, the problem persists.

 I am using ConTeXt  ver: 2013.04.17 18:36 MKIV beta  fmt: 2013.4.17  int:
 english/english

 Alan


 On Thu, Apr 18, 2013 at 2:07 PM, Wolfgang Schuster 
 schuster.wolfg...@gmail.com wrote:


 Am 18.04.2013 um 19:57 schrieb Alan Bowen bowenala...@gmail.com:

  I need a list structure that can be numbered in different ways as the
 occasion warrants.
 
  In this case, I need:
  1. text
  2. text
  2.1. text
   2.2. text
Text
Text
   A. text
   B. text
 
  The problem seem to be in turning off the cumulation of numbers in the
 last entries (fourth level).
 
  \defineitemgroup[MyList]
  \setupitemgroup[MyList][1][broad,joinedup,packed,autointro]
 
 [itemalign=flushright,left={},right={},stopper={.},margin=3pc]
 
  \setupitemgroup[MyList][2][broad,joinedup,packed,autointro]
[itemalign=flushright,left={},right={},stopper={.}]
 
  \setupitemgroup[MyList][3][broad,joinedup,packed,autointro]
[itemalign=flushright,left={},right={},stopper={.}]
 
  \setupitemgroup[MyList][4][broad,joinedup,packed,autointro]
[itemalign=flushright,left={},right={},stopper={.}]
 
  \starttext
 
  \startMyList[n,repeat]
\item First level text
\item First level text
\startMyList[n,repeat]
 \item Second level text
\item Second level text
\startMyList[symbol={}]
 \item Third level text
\item Third level text
\startMyList[A]%=
   %\startMyList[A,prefix=no]  %=
\item Fourth level text
\item Fourth level text
\stopitemize
\stopitemize
\stopitemize
  \stopitemize
 
 
  \stoptext
 
  With \startMyList[A], I get
 2.2.2.A. Fourth level text
 2.2.2.B. Fourth level text
  With \startMyList[A,prefix=no], I get

 You can’t put keywords and assignments in the same argument. You need two
 arguments
 where one holds the keywords and the other the assignments:

   \startMyList[A][prefix=no]

 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

 ___



___
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] Lucida doesn't work in TL 2013 / latest ConTeXt

2013-04-19 Thread Mojca Miklavec
I'm sorry. I was pointing TEXMFLOCAL to the wrong (older) version of
fonts without OT in the filename.

However, the Type1 fonts still don't work.

Mojca

On Fri, Apr 19, 2013 at 1:31 PM, Mojca Miklavec wrote:
 Hi,

 in TL 2013 neither \setupbodyfont[lucida] nor \setupbodyfont[lucidanova] 
 works.

 The first one gives:

 !LuaTeX error: Invalid local font in font lbr!

  == Fatal error occurred, no output PDF file produced!

 and the other one complains about

 ! Math error: parameter \Umathquad\displaystyle is not set.

 (I've set export TEXMFLOCAL=/path/to/texmf/with/both/lucidas.)

 When trying the same with latest distribution I get

 ! LuaTeX error 
 .../context/tex/texmf-context/tex/context/base/math-act.lua:101:
 attempt to perform arithmetic on field 'size' (a nil value)
 stack traceback:
 .../context/tex/texmf-context/tex/context/base/math-act.lua:101: in
 function 'mathematics_checkprivateparameters'
 [string local mathematics_initializeparameters = math...]:10: in
 function 'runner'
 .../context/tex/texmf-context/tex/context/base/math-act.lua:39: in
 function 'assignmathparameters'
 .../context/tex/texmf-context/tex/context/base/math-vfu.lua:917: in
 function .../context/tex/texmf-context/tex/context/base/math-vfu.lua:537
 (...tail calls...)
 .../context/tex/texmf-context/tex/context/base/font-def.lua:423: in
 function 'read'
 .../context/tex/texmf-context/tex/context/base/font-ctx.lua:947: in
 function 'definefont_two'
 [string \directlua ]:1: in main chunk.

 system   tex  error on line 52 in file
 /Users/mojca/context/gnuplot/mojca/texmf/doc/context/third/gnuplot/gnuplot-context-doc.tex:
 LuaTeX error  ...

 and with lucidanova I get the same error as in TeX Live.

 I'm using \sometxt{} inside metapost code to draw labels, so maybe
 that's connected.

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

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


Re: [NTG-context] Lucida doesn't work in TL 2013 / latest ConTeXt

2013-04-19 Thread Hans Hagen

On 4/19/2013 1:31 PM, Mojca Miklavec wrote:

Hi,

in TL 2013 neither \setupbodyfont[lucida] nor \setupbodyfont[lucidanova] works.

The first one gives:

!LuaTeX error: Invalid local font in font lbr!

  == Fatal error occurred, no output PDF file produced!

and the other one complains about

! Math error: parameter \Umathquad\displaystyle is not set.


normally that means that the font is not found


(I've set export TEXMFLOCAL=/path/to/texmf/with/both/lucidas.)

When trying the same with latest distribution I get

! LuaTeX error .../context/tex/texmf-context/tex/context/base/math-act.lua:101:
attempt to perform arithmetic on field 'size' (a nil value)
stack traceback:


i can intercept that one


/context/tex/texmf-context/tex/context/base/math-act.lua:101: in
function 'mathematics_checkprivateparameters'
[string local mathematics_initializeparameters = math...]:10: in
function 'runner'
/context/tex/texmf-context/tex/context/base/math-act.lua:39: in
function 'assignmathparameters'
/context/tex/texmf-context/tex/context/base/math-vfu.lua:917: in
function .../context/tex/texmf-context/tex/context/base/math-vfu.lua:537
(...tail calls...)
/context/tex/texmf-context/tex/context/base/font-def.lua:423: in
function 'read'
/context/tex/texmf-context/tex/context/base/font-ctx.lua:947: in
function 'definefont_two'
[string \directlua ]:1: in main chunk.

system   tex  error on line 52 in file
/Users/mojca/context/gnuplot/mojca/texmf/doc/context/third/gnuplot/gnuplot-context-doc.tex:
LuaTeX error  ...

and with lucidanova I get the same error as in TeX Live.

I'm using \sometxt{} inside metapost code to draw labels, so maybe
that's connected.


minimal example ...

tex processing doesn't happen in mp so an error means that at the tex 
end there is an issue


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] Lucida doesn't work in TL 2013 / latest ConTeXt

2013-04-19 Thread Hans Hagen

On 4/19/2013 2:04 PM, Mojca Miklavec wrote:

I'm sorry. I was pointing TEXMFLOCAL to the wrong (older) version of
fonts without OT in the filename.

However, the Type1 fonts still don't work.


Did we change something with the type 1? In mkiv ... we probably never 
finished the mappings ... waste of time now that we have otf.


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
___


[NTG-context] ConText on webspace

2013-04-19 Thread Jan Heinen

Is it possible to instal and runl ConText on webspace?
Which requirements and limitations are needed?

Have a nice weekend ... in Germany sun is shining :-)
Regards
Janis
___
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] Is fine-grained grid control possible?

2013-04-19 Thread Aditya Mahajan

On Fri, 19 Apr 2013, Tom Ellis wrote:


I asked a question on tex.stackoverflow, and it was suggested ConTeXt could
help and that I should repost my question here.

   
http://tex.stackexchange.com/questions/108850/is-fine-grained-grid-control-possible

I want to make a variety of checklists which are essentially based on a grid
layout.  I care about having fine-grained control over the exact placement
of labels and boxes.  I do not care about paragraphs, hypenation, equations,
or anything like that which I know TeX is very good at.

Is ConTeX a good fit for my needs?  How could I do it?

I've already though about Tikz and PGF but I don't think they give me enough
fine-grained control.  If I fail to find a way to solve my problem using TeX
I will probably explore SVG and PostScript.

Here are some examples of the kind of thing I would like to do that I pulled
from an image search for checklist

* 
https://studenttechportfolio.wikispaces.com/file/view/checklist.png/34343465/checklist.png
* 
http://checklisttemplate911.com/wp-content/uploads/2012/02/checklist-template12.jpg
* http://img.docstoccdn.com/thumb/orig/72289360.png
* http://www.bimmerfest.com/forums/attachment.php?attachmentid=88940stc=1
* 
http://theorganisedhousewife.com.au/shop/wp-content/uploads/2012/12/conference-checklist.jpg
* 
http://2.bp.blogspot.com/-piQobSY-8Mw/Tcihq580IgI/AgE/Fd0AQD1e69Y/s1600/Operator_Page_1.jpg
* 
http://www.dbh.govt.nz/UserFiles/Image/Publications/building/weathertightness/remediation-checklist-2.gif
* http://spxcooling.com/images/M92-1447C-s.jpg


Most of these are simple tables with itemized lists. I don't think that 
you need grid or any other fine-grained control to get this output. So, 
the short answer is yes, ConTeXt can easily do such checklists.


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

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


Re: [NTG-context] Lucida doesn't work in TL 2013 / latest ConTeXt

2013-04-19 Thread Troy Henderson

 Did we change something with the type 1? In mkiv ... we probably never
 finished the mappings ... waste of time now that we have otf.


This makes me believe that I will eventually HAVE to purchase (and by
purchase I really mean re-purchase) the OTF versions in order to use my
Lucida fonts.  This is a bit discouraging.

Troy
___
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] Lucida doesn't work in TL 2013 / latest ConTeXt

2013-04-19 Thread Khaled Hosny
On Fri, Apr 19, 2013 at 09:12:48AM -0500, Troy Henderson wrote:
 
  Did we change something with the type 1? In mkiv ... we probably never
  finished the mappings ... waste of time now that we have otf.
 
 
 This makes me believe that I will eventually HAVE to purchase (and by
 purchase I really mean re-purchase) the OTF versions in order to use my
 Lucida fonts.  This is a bit discouraging.

Given the amount of re-work that went into Lucida OT, a re-purchase is
justified ;)

Regards,
Khaled
___
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] Lucida doesn't work in TL 2013 / latest ConTeXt

2013-04-19 Thread Troy Henderson
 Given the amount of re-work that went into Lucida OT, a re-purchase is
 justified ;)


That all depends on how it is being used.  I'm not sure what advantage the
OT version of the font would have to me over the Type1 version.  If a
reasonable justification could convince me, then I might agree.

Troy
___
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] Lucida doesn't work in TL 2013 / latest ConTeXt

2013-04-19 Thread Hans Hagen

On 4/19/2013 4:12 PM, Troy Henderson wrote:

Did we change something with the type 1? In mkiv ... we probably
never finished the mappings ... waste of time now that we have otf.

This makes me believe that I will eventually HAVE to purchase (and by
purchase I really mean re-purchase) the OTF versions in order to use
my Lucida fonts.  This is a bit discouraging.


The problem is that in mkiv we make a virtual unicode font on the fly 
and for that we need vectors and lucida has a bad history: when I 
started supporting it, we coul duse the original BH / YY vectors but 
when tug took over, these were dropped in favor of some latex encoding. 
So, in mkii it does work, but you need the original tfm files. In mkiv 
we need special vectors as well because lucida's internal mapping is 
still non-tex and someone has to do all that checking. Now, given that 
we have proper otf fonts (relatively cheap for a font as tug paid for 
conversion) it makes no sense in mkiv to spent time on the old fonts (1: 
I don't use them, 2: I have no fun in doing that, 3: Nor time, 4: we 
have an alternative).


Keep in mind that a virtual type1 based lucida is never as good and 
complete as the newer otf.


Concerning 'repurchase' .. the lucida set is a bargain, definitely if 
you compare it to other fonts in that quantities. Of course you can also 
consider xits, pagella, termes etc


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] Lucida doesn't work in TL 2013 / latest ConTeXt

2013-04-19 Thread Hans Hagen

On 4/19/2013 4:35 PM, Troy Henderson wrote:

Given the amount of re-work that went into Lucida OT, a re-purchase is
justified ;)


That all depends on how it is being used.  I'm not sure what advantage
the OT version of the font would have to me over the Type1 version.  If
a reasonable justification could convince me, then I might agree.


- kerning, corrections etc etc across the whole font (multiple type 1 
fonts are isolated)


- more and improved glyphs, more alphabets

- more extensive latin support + precomposed

- alternate shapes

- more advanced extensibles

- more efficient pdf files

- cut and paste from pdf

- cleaner implementation at the tex end

- all benefits that come with mkiv

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] Is fine-grained grid control possible?

2013-04-19 Thread Tom Ellis
On Fri, Apr 19, 2013 at 09:58:47AM -0400, Aditya Mahajan wrote:
 On Fri, 19 Apr 2013, Tom Ellis wrote:
 
 I asked a question on tex.stackoverflow, and it was suggested ConTeXt could
 help and that I should repost my question here.
 

  http://tex.stackexchange.com/questions/108850/is-fine-grained-grid-control-possible
 
 I want to make a variety of checklists which are essentially based on a grid
 layout.  I care about having fine-grained control over the exact placement
 of labels and boxes.  I do not care about paragraphs, hypenation, equations,
 or anything like that which I know TeX is very good at.
 
 Is ConTeX a good fit for my needs?  How could I do it?
 
 I've already though about Tikz and PGF but I don't think they give me enough
 fine-grained control.  If I fail to find a way to solve my problem using TeX
 I will probably explore SVG and PostScript.
 
 Here are some examples of the kind of thing I would like to do that I pulled
 from an image search for checklist
 
 * 
 https://studenttechportfolio.wikispaces.com/file/view/checklist.png/34343465/checklist.png
 * 
 http://checklisttemplate911.com/wp-content/uploads/2012/02/checklist-template12.jpg
 * http://img.docstoccdn.com/thumb/orig/72289360.png
 * http://www.bimmerfest.com/forums/attachment.php?attachmentid=88940stc=1
 * 
 http://theorganisedhousewife.com.au/shop/wp-content/uploads/2012/12/conference-checklist.jpg
 * 
 http://2.bp.blogspot.com/-piQobSY-8Mw/Tcihq580IgI/AgE/Fd0AQD1e69Y/s1600/Operator_Page_1.jpg
 * 
 http://www.dbh.govt.nz/UserFiles/Image/Publications/building/weathertightness/remediation-checklist-2.gif
 * http://spxcooling.com/images/M92-1447C-s.jpg
 
 Most of these are simple tables with itemized lists. I don't think
 that you need grid or any other fine-grained control to get this
 output. So, the short answer is yes, ConTeXt can easily do such
 checklists.

Agreed, but for the checklists I want to make I would prefer more
fine-grained control.
___
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] Can't make ISBN print in bibliography

2013-04-19 Thread john Culleton
On Fri, 19 Apr 2013 07:38:18 +0200
Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote:

 On 04/19/2013 01:03 AM, john Culleton wrote:
  Any suggestions? Using MKIV currently.
 
 Use \setuppublicationlayout[book] (explained in the bib manual).
 
 Thomas

Thanks for trying.

I tried modfying one of the standard format files (apa) and ran
things again. Still no isbn data. 

Sometimes it is easier to write a program than to modify someone
else's. The task is not that complex. So I will write my own
program to extract data from a file of information, perhaps the
existing .bbl, file and format the selected data in an accepted TeX
format. I'll input that file. It will take less time that I have spent
already. And it will work, including the ISBN field. 

Again, thanks. 

-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: Create Book Covers with Scribus
available at http://www.booklocker.com/books/4055.html
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Kile for ConTeXt

2013-04-19 Thread Jan Heinen
Does anyone here uses Kile for ConTeXt? On 
contextgarden-wiki I read has native ConTeXt support as 
well. I installed Kile and as the only thing concerning 
ConTeXt II found


Build - Compile - ConTeXt

But no highlighting or autocompletion. Google gave no answer.
Do I have to install an additional aplugin?

Regards
Janis
___
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] Is fine-grained grid control possible?

2013-04-19 Thread Aditya Mahajan

On Fri, 19 Apr 2013, Tom Ellis wrote:


On Fri, Apr 19, 2013 at 09:58:47AM -0400, Aditya Mahajan wrote:

On Fri, 19 Apr 2013, Tom Ellis wrote:


Is ConTeX a good fit for my needs?  How could I do it?

Here are some examples of the kind of thing I would like to do that I pulled
from an image search for checklist


Most of these are simple tables with itemized lists. I don't think
that you need grid or any other fine-grained control to get this
output. So, the short answer is yes, ConTeXt can easily do such
checklists.


Agreed, but for the checklists I want to make I would prefer more
fine-grained control.


Then please give an example of the type of checklists that you want to 
make rather than picking random samples from google. Otherwise, it is 
impossible to answer whether what you have in mind is feasible in ConTeXt 
or not.


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

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


Re: [NTG-context] Lucida doesn't work in TL 2013 / latest ConTeXt

2013-04-19 Thread George N. White III
On Fri, Apr 19, 2013 at 11:12 AM, Troy Henderson thend...@gmail.com wrote:

  Did we change something with the type 1? In mkiv ... we probably never
 finished the mappings ... waste of time now that we have otf.


 This makes me believe that I will eventually HAVE to purchase (and by
 purchase I really mean re-purchase) the OTF versions in order to use my
 Lucida fonts.  This is a bit discouraging.

 Troy


We just purchased the OTF versions.  I'd rather have TeX developers focus
on getting OTF support right than preserving legacy capabilities.  For
years we have been able to format old docs with current TeX systems.   Now
I just
hope the old docs will work without too many changes using OTF versions of
the fonts.






 ___
 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

 ___




-- 
George N. White III aa...@chebucto.ns.ca
Head of St. Margarets Bay, Nova Scotia
___
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] Lucida doesn't work in TL 2013 / latest ConTeXt

2013-04-19 Thread Hans Hagen

On 4/19/2013 8:16 PM, George N. White III wrote:

On Fri, Apr 19, 2013 at 11:12 AM, Troy Henderson thend...@gmail.com
mailto:thend...@gmail.com wrote:

Did we change something with the type 1? In mkiv ... we probably
never finished the mappings ... waste of time now that we have otf.


This makes me believe that I will eventually HAVE to purchase (and
by purchase I really mean re-purchase) the OTF versions in order
to use my Lucida fonts.  This is a bit discouraging.


Of course Troy could complete the existing lucida mkiv vectors in 
lucida-typeone-math.lfg -)



Troy


We just purchased the OTF versions.  I'd rather have TeX developers
focus on getting OTF support right than preserving legacy capabilities.


In luatex we're 'mostly' compatible with the old tex engine but as 
opentype math support is more advanced, the focus is on supporting that 
as good as possible. Also, as opentype math originates at MS/word with 
cambria as benchmark that's mostly setting the baseline.


Of course, in context mkiv we can go a bit beyond that (and there is 
already some in place). We can also



  For years we have been able to format old docs with current TeX
systems.   Now I just
hope the old docs will work without too many changes using OTF versions
of the fonts.


In principle regular math should work ok. At some point we might benefit 
from the opening up of math parameters (quite some was hard coded in the 
traditional tex engine, much has been moved to the font parameters and 
luatex also provides more control).


Some constructs (like radicals and accents) are more native now and less 
depend on macro magic.


There will never be full visual compatibility, if only because open type 
doesn't have the (dimensional) limits of tfm (that made sense at the 
time).


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] ConText on webspace

2013-04-19 Thread Hans Hagen

On 4/19/2013 2:50 PM, Jan Heinen wrote:

Is it possible to instal and runl ConText on webspace?
Which requirements and limitations are needed?


define webspace


Have a nice weekend ... in Germany sun is shining :-)
Regards
Janis
___

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
___




--

-
  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] ConText on webspace

2013-04-19 Thread Jan Heinen

Is it possible to instal and runl ConText on webspace?
   Which requirements and limitations are needed?

 define webspace


I have webspace hosted at the german provider (1und1) where 
my homepage is running.

It contains php, perl, python, mysqld.

I have access via
- ssh
- ftp

It's NOT a managed server - there are lot's of other 
customers on the same server.


Is this enough for your answer or which else information do 
you need?


Regards
Janis

___
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] Missing number error, related to setupcolumnsetlines

2013-04-19 Thread Hans Hagen

On 4/18/2013 11:13 PM, Lars Huttar wrote:

\definecolumnset [abbcolumn] [n=2,distance=5mm,balancing=yes]

 \setupcolumnsetlines[abbcolumn][1][1][60]
 \setupcolumnsetlines[abbcolumn][1][2][60]


the 60 exceeds the number of lines


 \starttext
 \startcolumnset[abbcolumn]
 foo
 \stopcolumnset
 \stoptext


i'll add a check

(i will redo columnsets at some point in a more mkiv-ish way)

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] ConText on webspace

2013-04-19 Thread Hans Hagen

On 4/19/2013 9:17 PM, Jan Heinen wrote:


 Is it possible to instal and runl ConText on webspace?
Which requirements and limitations are needed?

  define webspace


I have webspace hosted at the german provider (1und1) where my homepage
is running.
It contains php, perl, python, mysqld.

I have access via
- ssh
- ftp

It's NOT a managed server - there are lot's of other customers on the
same server.

Is this enough for your answer or which else information do you need?


the garden distribution is not that large and if you use mkiv (install 
with --engine=luatex to get a small footprint) there are no depencies


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] ConText on webspace

2013-04-19 Thread Henning Hraban Ramm

Am 2013-04-19 um 14:50 schrieb Jan Heinen:

 Is it possible to instal and runl ConText on webspace?
 Which requirements and limitations are needed?

I run ConTeXt as typesetting machine behind my (Django/Gunicorn/NginX) 
webserver on my own virtual machine.
You cannot run any independent program on a usual shared hosting webspace, you 
need root access.


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


Re: [NTG-context] ConText on webspace

2013-04-19 Thread Peter Münster
On Fri, Apr 19 2013, Jan Heinen wrote:

Is it possible to instal and runl ConText on webspace?

 I have access via
 - ssh

Hi,

You could just try it:

- ssh remote-host
- mkdir context-dir ; cd context-dir
- rsync -ptv rsync://contextgarden.net/distribution/setup/first-setup.sh .
- ./first-setup.sh --modules=all --fonts=all
- PATH=$PATH:~/context-dir/tex/texmf-???/bin

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


Re: [NTG-context] Is fine-grained grid control possible?

2013-04-19 Thread Tom Ellis
On Fri, Apr 19, 2013 at 02:13:44PM -0400, Aditya Mahajan wrote:
 On Fri, 19 Apr 2013, Tom Ellis wrote:
 On Fri, Apr 19, 2013 at 09:58:47AM -0400, Aditya Mahajan wrote:
 On Fri, 19 Apr 2013, Tom Ellis wrote:
 
 Is ConTeX a good fit for my needs?  How could I do it?
 
 Here are some examples of the kind of thing I would like to do that I 
 pulled
 from an image search for checklist
 
 Most of these are simple tables with itemized lists. I don't think
 that you need grid or any other fine-grained control to get this
 output. So, the short answer is yes, ConTeXt can easily do such
 checklists.
 
 Agreed, but for the checklists I want to make I would prefer more
 fine-grained control.
 
 Then please give an example of the type of checklists that you want
 to make rather than picking random samples from google. Otherwise,
 it is impossible to answer whether what you have in mind is feasible
 in ConTeXt or not.

I care about having fine-grained control over the exact placement of labels
and boxes.  That is, can I place boxes and text labels at exact coordinates
on a page, either in absolute terms or relative to each other?  That's all
I'm after.

Tom
___
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] Is fine-grained grid control possible?

2013-04-19 Thread Aditya Mahajan

On Fri, 19 Apr 2013, Tom Ellis wrote:


I care about having fine-grained control over the exact placement of labels
and boxes.  That is, can I place boxes and text labels at exact coordinates
on a page, either in absolute terms or relative to each other?  That's all
I'm after.


http://wiki.contextgarden.net/Layers

This allows you to place any content at any location on a page, inside a 
frame, on an image, etc.


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

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


Re: [NTG-context] Is fine-grained grid control possible?

2013-04-19 Thread Tom Ellis
On Fri, Apr 19, 2013 at 04:35:52PM -0400, Aditya Mahajan wrote:
 On Fri, 19 Apr 2013, Tom Ellis wrote:
 I care about having fine-grained control over the exact placement of labels
 and boxes.  That is, can I place boxes and text labels at exact coordinates
 on a page, either in absolute terms or relative to each other?  That's all
 I'm after.
 
 http://wiki.contextgarden.net/Layers
 
 This allows you to place any content at any location on a page,
 inside a frame, on an image, etc.

Very nice, thank you Aditya.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Again: LuaTeX error: invalid escape sequence near '\i'

2013-04-19 Thread Jan Heinen
An example which was working with ConText (version beginning 
2012) - and now I get an error:


\define\imagepath {/home/janis/images}
\starttext
  \externalfigure[\imagepath/test.jpg]
\stoptext

LuaTeX error [string \directlua ]:1: invalid escape 
sequence near '\i'



Without my parameter \imagepath there ist no problem.
And if I want to see the echo of the parameter with
\imagepath
I get /home/janis/images which I expect.

I need parameters very often. How can I use my parameter 
\imagepath in \externafigure?



Regards
Janis

___
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] Again: LuaTeX error: invalid escape sequence near '\i'

2013-04-19 Thread Hans Hagen

On 4/19/2013 11:27 PM, Jan Heinen wrote:

An example which was working with ConText (version beginning 2012) - and
now I get an error:

\define\imagepath {/home/janis/images}
\starttext
   \externalfigure[\imagepath/test.jpg]
\stoptext

LuaTeX error [string \directlua ]:1: invalid escape sequence near '\i'


Without my parameter \imagepath there ist no problem.


\defineexpandble\imagepath {/home/janis/images}


And if I want to see the echo of the parameter with
\imagepath
I get /home/janis/images which I expect.

I need parameters very often. How can I use my parameter \imagepath in
\externafigure?


Regards
Janis

___

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
___




--

-
  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] Again: LuaTeX error: invalid escape sequence near '\i'

2013-04-19 Thread Jan Heinen

The following two commands seem to do the same:
\defineexpandable\...
\def\...

And this two also do the same:
\define\...
\unexpanded\def\...


\def is a low-level-command and shouldn't be used. Right?

Regards
Janis

___
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] Again: LuaTeX error: invalid escape sequence near '\i'

2013-04-19 Thread Jan Heinen

In last year Context this worked:
 \define\imagepath {/home/janis/images}
  \externalfigure[\imagepath/test.jpg]

Now this change is necesarry:
 \defineexpandble\imagepath {/home/janis/images}

Where do the change come from: Context, Tex or Luatex? Is 
there a genereal change which we have to take care off?


Last year I made a book with a lot of programming in Context 
and I would like to use the code for the next book.


Regards
Janis

___
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] Again: LuaTeX error: invalid escape sequence near '\i'

2013-04-19 Thread Hans Hagen

On 4/20/2013 2:16 AM, Jan Heinen wrote:

In last year Context this worked:
  \define\imagepath {/home/janis/images}
   \externalfigure[\imagepath/test.jpg]

Now this change is necesarry:
  \defineexpandble\imagepath {/home/janis/images}

Where do the change come from: Context, Tex or Luatex? Is there a
genereal change which we have to take care off?

Last year I made a book with a lot of programming in Context and I would
like to use the code for the next book.


at some point we decided to make \define generate an unexpandable 
command (which is what one wants in most cases)


so, it's just the \define command (and in your case you could as well 
use \def but it's then best to use \ImagePath as one never knows if 
\imagepath isn't some internal command


(of course you can also use \setupexternfigures)

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] Again: LuaTeX error: invalid escape sequence near '\i'

2013-04-19 Thread Hans Hagen
btw, the \i that lua reports is a side effect of lua being more strict 
in escaping characters, so that might be a compatibility issue, although 
can argue that the old lua behaviour was a buglet


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
___