Re: [NTG-context] SciTE configuration to use mkiv instead of mkii

2012-01-03 Thread Hans Hagen

On 3-1-2012 04:52, Peter Park Nelson wrote:

Hello, I installed and configured SciTE today to try it out. I am
using the standalone distribution. When I try to process a context
document with F7, SciTE calls texexec and uses mkii instead of mkiv (I
always use mkiv/luatex). How do I configure SciTE to use mkiv?


there are scite configuration files in the context distribution (and 
there's also a page on the garden and a manual on the pragma website


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] setupnote[footnote] adding extra pages

2012-01-03 Thread Chris Lott
On Mon, Jan 2, 2012 at 6:42 PM, Chris Lott ch...@chrislott.org wrote:
 Why does this document create three pages, with the footnote on the
 second and a third that is blank?

 \setuppagenumbering[state=stop]
 \setupnote[footnote][numberconversion=Romannumerals]
 \starttext
 This is a sample letter. \footnote{foo}
 \stoptext

A bit more for troubleshooting: the above code works fine with an
earlier version of ConTeXt (2011.05.18 18:04).

The problem above occurs when using version 2011.12.31 18:06 using
context file.tex ... however using texexec --pdf file.tex works
properly, so I guess this is an MKIV problem.

c
--
Chris Lott ch...@chrislott.org
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] most recent manual

2012-01-03 Thread Chris Lott
On Mon, Jan 2, 2012 at 6:10 PM, Chris Lott ch...@chrislott.org wrote:
 I'm working my way through the ConTeXt manual/reference. I discovered
 the draft of a new manual at:
 http://wiki.contextgarden.net/manual_being_revised -- is this the
 latest available anywhere? I'm finding a lot of things that are out of
 date in the new draft (for instance, using \setupnote[footnote]
 instead of \setupfootnotes) which generally means doing it wrong,
 searching google and the wiki for information, and finding out that
 things have changed :) Is this the best way?

A clarification because a backchannel note made me suspect this
question might be taken the wrong way: it isn't intended to imply a
criticism... I'm just making sure I'm using the most recent resources!

c
--
Chris Lott ch...@chrislott.org
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] most recent manual

2012-01-03 Thread Wolfgang Schuster

Am 03.01.2012 um 04:10 schrieb Chris Lott:

 I'm working my way through the ConTeXt manual/reference. I discovered
 the draft of a new manual at:
 http://wiki.contextgarden.net/manual_being_revised -- is this the
 latest available anywhere? I'm finding a lot of things that are out of
 date in the new draft (for instance, using \setupnote[footnote]
 instead of \setupfootnotes) which generally means doing it wrong,
 searching google and the wiki for information, and finding out that
 things have changed :) Is this the best way?

\setupfootnote == \setupnote[footnote]

The second form is the recommended way and commands like \setupfootnote
are there for backward compatibility but for new functions it’s always
\setupXXX[environment].

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] most recent manual

2012-01-03 Thread luigi scarso
On Tue, Jan 3, 2012 at 9:52 AM, Chris Lott ch...@chrislott.org wrote:

 On Mon, Jan 2, 2012 at 6:10 PM, Chris Lott ch...@chrislott.org wrote:
  I'm working my way through the ConTeXt manual/reference. I discovered
  the draft of a new manual at:
  http://wiki.contextgarden.net/manual_being_revised -- is this the
  latest available anywhere? I'm finding a lot of things that are out of
  date in the new draft (for instance, using \setupnote[footnote]
  instead of \setupfootnotes) which generally means doing it wrong,
  searching google and the wiki for information, and finding out that
  things have changed :) Is this the best way?

 A clarification because a backchannel note made me suspect this
 question might be taken the wrong way: it isn't intended to imply a
 criticism... I'm just making sure I'm using the most recent resources!

there are the books at
http://www.h2o-books.com/catalog/5
but in the end the most recent resources are (in this order) the mailing
list, the wiki, the pdfs on specific arguments (as that one for xtable) and
the book.
Mkiv is still changing, and  sometime things stop working (mkiv is not
frozen as mkii, so it's better to keep around the last working beta), but
my ten year experience says that the user interface doesn't vary so much
(at least I've not found revolutions on this side);
if you are programming at the macro level the ultimate reference is the
source, which is quite readable --- well, much more than a Latex packages,
but it's my opinion.
And on this side mkiv is, if not a revolution, at least a strong evolution.

-- 
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] SciTE configuration to use mkiv instead of mkii

2012-01-03 Thread Mari Voipio
On Tue, Jan 3, 2012 at 05:52, Peter Park Nelson
peter.park.nel...@gmail.com wrote:
 Hello, I installed and configured SciTE today to try it out.

How did you do the configuration part? I.e. did you follow the (AFAIK)
up-to-date instructions at
http://wiki.contextgarden.net/Windows_Installation:_ConTeXt_Suite_with_SciTe
or some other version?

At least when I do a clean install in Win according to those
instructions, my system automatically uses MkIV, I have to force it to
use MKII if I really need that. I do have a few files still that try
to use MKII, but that's because I have

% engine=pdftex

on the very first line of the file. Once I delete that, LuaTeX steps in.


Note. If you had an old SciTe installation, your user directory may
have stuff that confuses SciTe, now you should only have configuration
files in the SciTe program file.

BTW, Hans advised me to use Ctrl+F12 to compile in my Win7+Ctx+SciTe
combo, so I've been using that since this summer - don't know how much
difference it makes, but you can always try it, too...



Hope this helps,

Mari
___
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] startcolumsetspan

2012-01-03 Thread Gordon Parrott
Hi
Happy new year:


Just curious - I tried this again after some months with the latest beta - it 
fails differently now:




system   tex  error on line 8 in file csetest.tex: Undefined control 
sequence ...

 1 \setuppapersize[A4][A4]
 2 \definecolumnset[columntest][n=3]%
 3 \definecolumnsetspan[wide][n=2]%
 4 \starttext
 5 \startcolumnset[columntest]
 6 \input knuth
 7 \startcolumnsetspan[wide]%
 8   \dorecurse{3}{\input knuth\par}
 9 \stopcolumnsetspan
10 \dorecurse{10}{\input knuth\par}
11 \stopcolumnset
12 \stoptext
13 


\dostartcolumnsetspan ...group \dostartframedtext 
  {cs:#1}[\v!none ]\ifnum \c...
to be read again 
   \dorecurse 
l.8 \dorecurse
  {3}{\input knuth\par}
? 




Cheers
Gordon


___
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] Undefined controle sequence with usemodule[vim]

2012-01-03 Thread Aditya Mahajan

On Wed, 3 Jan 2012, Aditya Mahajan wrote:


On Mon, 2 Jan 2012, pol stra wrote:



Hello everyone,
When I use t-vim module, I get this error message:
error msg
system   tex  error on line 15 in file vim.tex: Undefined control 
sequence ...


/error msg


for example with this code:
code
\usemodule[vim]

\definevimtyping[python][syntax=python, escape=on]
\starttext
\startpython
   # Returns \m{\sum_{i=1}^{n}i}
   def sum_upto(n)
   r = range(1, n+1)
   return sum(r)
\stoppython
\stoptext
/code


This works fine with 2011.12.23. I'll update later to see why this is failing 
with 2011.12.31.


This was a bug introduced by the recent cleanup of code for filter and vim 
modules. Should work well with the latest version (2012.01.03).


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] Bug with \setuphead

2012-01-03 Thread Aditya Mahajan

Hi,

\setuphead[section]
  [
alternative=middle,
header=high,
page=yes,
  ]
\starttext
\section{Test}
\stoptext

with ConTeXt  ver: 2012.01.02 21:59 MKIV gives:

! Undefined control sequence.

system   tex  error on line 9 in file test.tex: Undefined 
control sequence ...


 1 \setuphead[section]
 2   [
 3 alternative=middle,
 4 header=high,
 5 page=yes,
 6   ]
 7 \starttext
 8
 9   \section{Test}
10 \stoptext
11


\page_layouts_synchronize_element_indeed ...ounds
  \else \ifx 
\previoustextst...

\page_layouts_synchronize_element ...t_indeed {#1}
  \fi
inserted text ..._element \currentlayoutelement
  \fi
\docommand ...=high]\the \everysetuplayoutelement

\next1 #1,-\docommand {#1}
   \syst_helpers_do_process_comma_item
\syst_helpers_do_process_comma_list ...rgument #1,
  ]\relax \global \advance 
\...

...
l.9 \section{Test}


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] Bug with \setuphead

2012-01-03 Thread Wolfgang Schuster

Am 03.01.2012 um 13:18 schrieb Aditya Mahajan:

 Hi,
 
 \setuphead[section]
  [
alternative=middle,
header=high,
page=yes,
  ]
 \starttext
 \section{Test}
 \stoptext

Old internal command (\recalculatebackgrounds) was used in page-txt.mkvi.

% \def\page_layouts_synchronize_element_indeed#vertical%
%   {\ifx\currenttextstate \v!high \calculatevsizes\recalculatebackgrounds \else
%\ifx\previoustextstate\v!high \calculatevsizes\recalculatebackgrounds \else
%\ifx\currenttextstate \v!none \calculatevsizes\recalculatebackgrounds \else
%\ifx\previoustextstate\v!none \calculatevsizes\recalculatebackgrounds 
\fi\fi\fi\fi
%\letgvalue{\??layouttextssynchronize#vertical}\currenttextstate}

\def\page_layouts_synchronize_element_indeed#vertical%
  {\ifx\currenttextstate \v!high \calculatevsizes\page_backgrounds_recalculate 
\else
   \ifx\previoustextstate\v!high \calculatevsizes\page_backgrounds_recalculate 
\else
   \ifx\currenttextstate \v!none \calculatevsizes\page_backgrounds_recalculate 
\else
   \ifx\previoustextstate\v!none \calculatevsizes\page_backgrounds_recalculate 
\fi\fi\fi\fi
   \letgvalue{\??layouttextssynchronize#vertical}\currenttextstate}

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] Beta: bug in \setuphead[chapter]

2012-01-03 Thread Otared Kavian
On 3 janv. 2012, at 08:38, Wolfgang Schuster wrote:

 […]
 You need a command after “align=middle” because you assign “middle ” (with a 
 space) to the align key.


Hi Wolfgang,

I didn't get exactly what you mean, but saying either of the following:

\setuphead[chapter][header=high,align=middle]
or
\setuphead[chapter][align=middle,header=high]
or
\setuphead[chapter][align=middle,
 header=high]
or
\setuphead[chapter][header=high,
align=middle
]

results in an error. While 

\setuphead[chapter][align=middle, 
 header=high
 ]

works fine… 
On the other hand I should say that the settings I have in a document with over 
120 pages used to work until version 2011.11.29, but since the betas of 
December something seems to be broken and that's why I was reporting the bug to 
Hans' attention and yours.
In fact using any other key in \setuphead together with align=middle either 
results an error or else destroys the middle alignment.

Best regards: OK


___
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] Bug with \setuphead

2012-01-03 Thread Aditya Mahajan

On Tue, 3 Jan 2012, Wolfgang Schuster wrote:



Am 03.01.2012 um 13:18 schrieb Aditya Mahajan:


Hi,

\setuphead[section]
 [
   alternative=middle,
   header=high,
   page=yes,
 ]
\starttext
\section{Test}
\stoptext


Old internal command (\recalculatebackgrounds) was used in page-txt.mkvi.

% \def\page_layouts_synchronize_element_indeed#vertical%
%   {\ifx\currenttextstate \v!high \calculatevsizes\recalculatebackgrounds \else
%\ifx\previoustextstate\v!high \calculatevsizes\recalculatebackgrounds \else
%\ifx\currenttextstate \v!none \calculatevsizes\recalculatebackgrounds \else
%\ifx\previoustextstate\v!none \calculatevsizes\recalculatebackgrounds 
\fi\fi\fi\fi
%\letgvalue{\??layouttextssynchronize#vertical}\currenttextstate}

\def\page_layouts_synchronize_element_indeed#vertical%
 {\ifx\currenttextstate \v!high \calculatevsizes\page_backgrounds_recalculate 
\else
  \ifx\previoustextstate\v!high \calculatevsizes\page_backgrounds_recalculate 
\else
  \ifx\currenttextstate \v!none \calculatevsizes\page_backgrounds_recalculate 
\else
  \ifx\previoustextstate\v!none \calculatevsizes\page_backgrounds_recalculate 
\fi\fi\fi\fi
  \letgvalue{\??layouttextssynchronize#vertical}\currenttextstate}


Thanks. Works perfectly.

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] Beta: bug in \setuphead[chapter]

2012-01-03 Thread Wolfgang Schuster

Am 03.01.2012 um 13:58 schrieb Otared Kavian:

 On 3 janv. 2012, at 08:38, Wolfgang Schuster wrote:
 
 […]
 You need a command after “align=middle” because you assign “middle ” (with a 
 space) to the align key.
 
 Hi Wolfgang,
 
 I didn't get exactly what you mean, but saying either of the following:
 
   \setuphead[chapter][header=high,align=middle]
 or
   \setuphead[chapter][align=middle,header=high]
 or
   \setuphead[chapter][align=middle,
header=high]
 or
   \setuphead[chapter][header=high,
   align=middle
   ]
 
 results in an error. While 
 
   \setuphead[chapter][align=middle, 
header=high
]
 
 works fine… 

It’s a typo in the core, see Adityas mail but in the last case you need a comma 
after the high otherwise you pass the value “high ” (with a space at the end) 
to context.

Here is a simple example where you can that spaces matter:

\definehighlight[one][color=red ]
\definehighlight[two][color=blue]
\starttext
\one{Red} \two{Blue}
\stoptext

In the first definition i pass “red ” with a space at the end which is 
different from “red” (without a space).

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] Beta: bug in \setuphead[chapter]

2012-01-03 Thread Aditya Mahajan

On Tue, 3 Jan 2012, Otared Kavian wrote:


On 3 janv. 2012, at 08:38, Wolfgang Schuster wrote:


[…]
You need a command after “align=middle” because you assign “middle ” (with a 
space) to the align key.


I didn't get exactly what you mean, but saying either of the following:


I have not checked why the extra space is being introduced, but what 
Wolfgang meant was that


\setupwhatever[key=value]

is the same as

\setupwhatever
   [
 key=value,
   ]

but not the same as

\setupwhatever
  [
key=value
  ]

Whitespace is significant in ConTeXt setups. The last style is equivalent 
to


\setupwhatever[key={value\n}]

and that could be the reason that you are seeing extra space.

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] Beta: bug in \setuphead[chapter]

2012-01-03 Thread Otared Kavian
Thanks to both of you, Wolfgang and Aditya, for the explanantions.
After applying the patch Wolfgang sent to Aditya, the error message is gone.

I guess the patch will be in the next beta.

Best regards: OK

On 3 janv. 2012, at 14:06, Wolfgang Schuster wrote:

 
 Am 03.01.2012 um 13:58 schrieb Otared Kavian:
 
 On 3 janv. 2012, at 08:38, Wolfgang Schuster wrote:
 
 […]
 You need a command after “align=middle” because you assign “middle ” (with 
 a space) to the align key.
 
 Hi Wolfgang,
 
 I didn't get exactly what you mean, but saying either of the following:
 
  \setuphead[chapter][header=high,align=middle]
 or
  \setuphead[chapter][align=middle,header=high]
 or
  \setuphead[chapter][align=middle,
   header=high]
 or
  \setuphead[chapter][header=high,
  align=middle
  ]
 
 results in an error. While 
 
  \setuphead[chapter][align=middle, 
   header=high
   ]
 
 works fine… 
 
 It’s a typo in the core, see Adityas mail but in the last case you need a 
 comma after the high otherwise you pass the value “high ” (with a space at 
 the end) to context.
 
 Here is a simple example where you can that spaces matter:
 
 \definehighlight[one][color=red ]
 \definehighlight[two][color=blue]
 \starttext
 \one{Red} \two{Blue}
 \stoptext
 
 In the first definition i pass “red ” with a space at the end which is 
 different from “red” (without a space).
 
 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] SciTE configuration to use mkiv instead of mkii

2012-01-03 Thread John Kitzmiller
It looks like you need to point Scite to
/home/peter/context1220/texmf-mswin/bin (assuming you are using
windows) in your PATH.



On Mon, Jan 2, 2012 at 10:52 PM, Peter Park Nelson
peter.park.nel...@gmail.com wrote:

 Hello, I installed and configured SciTE today to try it out. I am
 using the standalone distribution. When I try to process a context
 document with F7, SciTE calls texexec and uses mkii instead of mkiv (I
 always use mkiv/luatex). How do I configure SciTE to use mkiv?

 Here's the beginning of the output:

 texexec --pdf H1.tex
 /home/peter/context1220/tex/texmf-context/scripts/context/ruby/base/system.rb:16:
 warning: Insecure world writable dir /usr/local/texlive in PATH, mode
 040777
 TeXExec | processing document 'H1.tex'
 TeXExec | no ctx file found
 TeXExec | tex processing method: context
 TeXExec | TeX run 1
 TeXExec | writing option file H1.top
 TeXExec | using randomseed 202
 TeXExec | tex engine: pdftex
 TeXExec | tex format: cont-en.mkii
 warning: Could not open char translation file `natural.tcx'.
 This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
  \write18 enabled.
 entering extended mode
 (./H1.tex

 ConTeXt  ver: 2011.12.31 15:44 MKII  fmt: 2011.12.31  int: english/english

 system          : cont-new.mkii loaded
 (/home/peter/context1220/tex/texmf-context/tex/context/base/cont-new.mkii

 [...more output...]
 --
 Peter Park Nelson
 peter.park.nel...@gmail.com
 ___
 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] most recent manual

2012-01-03 Thread Chris Lott
On Tue, Jan 3, 2012 at 12:02 AM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 \setupfootnote == \setupnote[footnote]

 The second form is the recommended way and commands like \setupfootnote
 are there for backward compatibility but for new functions it’s always
 \setupXXX[environment].

Thanks. Perhaps the backward compatibility was eventually removed for
setupfootnote! At any rate, what appears to be a bug reported in my
other message stands since I am pretty sure I am using the latest
syntax.

c
--
Chris Lott ch...@chrislott.org
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] setupnote[footnote] adding extra pages

2012-01-03 Thread Wolfgang Schuster

Am 03.01.2012 um 04:42 schrieb Chris Lott:

 Why does this document create three pages, with the footnote on the
 second and a third that is blank?
 
 \setuppagenumbering[state=stop]
 \setupnote[footnote][numberconversion=Romannumerals]
 \starttext
 This is a sample letter. \footnote{foo}
 \stoptext
 
 If I remove the \setupnote line, then everything is on one page, as it should 
 be.

As a intermediate solution you can add \setupapersize[A4] (or whatever paper 
you use) before \setupnote.

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] most recent manual

2012-01-03 Thread Wolfgang Schuster

Am 03.01.2012 um 18:40 schrieb Chris Lott:

 On Tue, Jan 3, 2012 at 12:02 AM, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:
 
 \setupfootnote == \setupnote[footnote]
 
 The second form is the recommended way and commands like \setupfootnote
 are there for backward compatibility but for new functions it’s always
 \setupXXX[environment].
 
 Thanks. Perhaps the backward compatibility was eventually removed for
 setupfootnote! At any rate, what appears to be a bug reported in my
 other message stands since I am pretty sure I am using the latest
 syntax.

\setupfootnotes can be also used with the mkiv beta but try to use \setupnote.

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
___


[NTG-context] (again) issues with streams

2012-01-03 Thread Pablo Rodríguez
Hi there,

playing with an example posted by Wolfgang to the list, I'm trying to
generate a bilingual poetry edition (original and facing translation).

If anyone could help, I'd really appreciate (this is the second time I
post the message to the list
http://www.ntg.nl/pipermail/ntg-context/2011/064184.html).

This is a minimal sample:

\enabletrackers[streams.flushing]
\def\itit#1{{\language[it]\em#1}}
\starttext
\completecontent

\startoutputstream[agr]

\dorecurse{4}{\chapter{Knuth}\input knuth\par}

\enableoutputstream[es]

\dorecurse{4}{\chapter{Ward}\input ward\par \input tufte\par}

\disableoutputstream
\stopoutputstream
\synchronizestreams[agr,es]
\page \flushoutputstream[agr]
\page \flushoutputstream[es]
\stoptext

My first question is how can I make that ConTeXt synchronizes
automatically titles and paragraphs. I mean, I want to type the original
first and the translation after the original and that ConTeXt typesets
everything right (original with facing translation).

My second question is how can I do that numbering on both sides is
really independent. I mean that chapter and similar titles have the same
number that its facing translations (and the same for footnotes).

My third question is how can I number lines there, since I get the
following error when using \starlinenumbering ... \stoplinenumbering
(this is all Greek to me):

!LuaTeX error: There should have been a lua node here, not an object
with type nil!
 == Fatal error occurred, no output PDF file produced!
Compilation failed.
mtx-context | fatal error: return code: 70

Thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] redefining paragraph breaks

2012-01-03 Thread Chris Lott
I know I could do it manually, but that makes the source ugly, so is
there a way to redefine paragraph breaks so that instead of actual
breaks in the output they are kept as running text separate by a
paragraph symbol, e.g.:

This is paragraph 1.

This is paragraph 2.

Becomes in the typeset document:

This is paragraph 1. ¶ This is paragraph 2.

?

c
--
Chris Lott ch...@chrislott.org
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] SciTE configuration to use mkiv instead of mkii

2012-01-03 Thread Peter Park Nelson
Thanks for your responses. I should have specified that I am using
Linux (Ubuntu). I don't have any previous SciTE configuration files in
my home directory.

I used the instructions from contextgarden and
scite-context-readme.pdf, including creating a launch script that sets
the PATH to include my context standalone binary. What I don't
understand now is that SciTE finds the correct standalone binary but
uses texexec to run mkii instead of mkiv as is supposed to be the
defuault:

ConTeXt  ver: 2011.12.31 15:44 MKII

and calls an old pdftex from a separate TexLive installation:

This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)

Any suggestions?
Thanks.

texexec --pdf H1.tex
/home/peter/context1220/tex/texmf-context/scripts/context/ruby/base/system.rb:16:
warning: Insecure world writable dir /usr/local/texlive in PATH, mode
040777
TeXExec | processing document 'H1.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file H1.top
TeXExec | using randomseed 1125
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en.mkii
warning: Could not open char translation file `natural.tcx'.
This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
 \write18 enabled.
entering extended mode
(./H1.tex

ConTeXt  ver: 2011.12.31 15:44 MKII  fmt: 2011.12.31  int: english/english

system  : cont-new.mkii loaded
(/home/peter/context1220/tex/texmf-context/tex/context/base/cont-new.mkii
systems : beware: some patches loaded from cont-new.mkii
)
system  : cont-sys.rme loaded
(/home/peter/context1220/tex/texmf-context/tex/context/user/cont-sys.rme
(/home/peter/context1220/tex/texmf-context/tex/context/base/type-siz.mkii)
(/home/peter/context1220/tex/texmf-context/tex/context/base/type-one.mkii))
system  : H1.top loaded
(./H1.top)

On Tue, Jan 3, 2012 at 9:58 AM, John Kitzmiller jki...@gmail.com wrote:
 It looks like you need to point Scite to
 /home/peter/context1220/texmf-mswin/bin (assuming you are using
 windows) in your PATH.



 On Mon, Jan 2, 2012 at 10:52 PM, Peter Park Nelson
 peter.park.nel...@gmail.com wrote:

 Hello, I installed and configured SciTE today to try it out. I am
 using the standalone distribution. When I try to process a context
 document with F7, SciTE calls texexec and uses mkii instead of mkiv (I
 always use mkiv/luatex). How do I configure SciTE to use mkiv?

 Here's the beginning of the output:

 texexec --pdf H1.tex
 /home/peter/context1220/tex/texmf-context/scripts/context/ruby/base/system.rb:16:
 warning: Insecure world writable dir /usr/local/texlive in PATH, mode
 040777
 TeXExec | processing document 'H1.tex'
 TeXExec | no ctx file found
 TeXExec | tex processing method: context
 TeXExec | TeX run 1
 TeXExec | writing option file H1.top
 TeXExec | using randomseed 202
 TeXExec | tex engine: pdftex
 TeXExec | tex format: cont-en.mkii
 warning: Could not open char translation file `natural.tcx'.
 This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
  \write18 enabled.
 entering extended mode
 (./H1.tex

 ConTeXt  ver: 2011.12.31 15:44 MKII  fmt: 2011.12.31  int: english/english

 system          : cont-new.mkii loaded
 (/home/peter/context1220/tex/texmf-context/tex/context/base/cont-new.mkii

 [...more output...]
 --
 Peter Park Nelson
 peter.park.nel...@gmail.com
 ___
 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
 ___



-- 
Peter Park Nelson
peter.park.nel...@gmail.com
___
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] redefining paragraph breaks

2012-01-03 Thread Wolfgang Schuster

Am 03.01.2012 um 20:31 schrieb Chris Lott:

 I know I could do it manually, but that makes the source ugly, so is
 there a way to redefine paragraph breaks so that instead of actual
 breaks in the output they are kept as running text separate by a
 paragraph symbol, e.g.:
 
 This is paragraph 1.
 
 This is paragraph 2.
 
 Becomes in the typeset document:
 
 This is paragraph 1. ¶ This is paragraph 2.


You can save the text in a buffer and replace the empty lines with the 
paragraph symbol.

\startluacode

userdata = userdata or { }

function userdata.specialparagraph()
local text = buffers.getcontent(specialparagraph)
text = string.gsub(text,\n\n, ¶ )
context(text)
end

\stopluacode

\def\startspecialparagraph
  
{\dostartbuffer[specialparagraph][startspecialparagraph][stopspecialparagraph]}

\def\stopspecialparagraph
  {\ctxlua{userdata.specialparagraph()}}

\starttext

This is paragraph 1.

\startspecialparagraph
This is paragraph 2.

This is paragraph 3.
\stopspecialparagraph

This is paragraph 4.

\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] [SOLVED] mod_php vs context: tight loop

2012-01-03 Thread Brendan Jurd

On 02/12/11 21:31, Hans Hagen wrote:

On 2-12-2011 02:59, Brendan Jurd wrote:


The apache worker process had no such environment variables, so mtxrun
failed. Once I added the following line to my PHP script, everything
started working just fine:

putenv('TEMPDIR=/tmp');


can you that on the wiki? maybe we need a section: running context in
webservices or so



I have added my findings to the wiki, as a new page.  At the moment the 
page isn't linked to from anywhere else in the wiki.  I wasn't sure 
which pages might have adjacent content.  Please feel free to relocate 
this if you don't like the name, or think it doesn't deserve its own page.


http://wiki.contextgarden.net/Running_ConTeXt_without_a_shell

BTW, congratulations on the new theme for the wiki.  It's a big improvement.

--
Regards,
Brendan Jurd

Software Engineer
Achieve, Corp

brendan.j...@achievecorp.com.au
___
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] SciTE configuration to use mkiv instead of mkii

2012-01-03 Thread Peter Park Nelson
OK, I just realized that the pdftex Tex Live 2010 actually is the
pdftex in the current context beta...

peter@computer:~$ which pdftex
/home/peter/context1220/tex/texmf-linux/bin/pdftex

peter@computer:~$ pdftex -v
pdfTeX 3.1415926-1.40.11-2.2 (TeX Live 2010)
kpathsea version 6.0.0
Copyright 2010 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.2.40; using libpng 1.2.40
Compiled with zlib 1.2.3; using zlib 1.2.3
Compiled with xpdf version 3.02pl4

so the problem is really just mkii vs. mkiv.


On Tue, Jan 3, 2012 at 2:07 PM, Peter Park Nelson
peter.park.nel...@gmail.com wrote:
 Thanks for your responses. I should have specified that I am using
 Linux (Ubuntu). I don't have any previous SciTE configuration files in
 my home directory.

 I used the instructions from contextgarden and
 scite-context-readme.pdf, including creating a launch script that sets
 the PATH to include my context standalone binary. What I don't
 understand now is that SciTE finds the correct standalone binary but
 uses texexec to run mkii instead of mkiv as is supposed to be the
 defuault:

 ConTeXt  ver: 2011.12.31 15:44 MKII

 and calls an old pdftex from a separate TexLive installation:

 This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)

 Any suggestions?
 Thanks.

texexec --pdf H1.tex
 /home/peter/context1220/tex/texmf-context/scripts/context/ruby/base/system.rb:16:
 warning: Insecure world writable dir /usr/local/texlive in PATH, mode
 040777
 TeXExec | processing document 'H1.tex'
 TeXExec | no ctx file found
 TeXExec | tex processing method: context
 TeXExec | TeX run 1
 TeXExec | writing option file H1.top
 TeXExec | using randomseed 1125
 TeXExec | tex engine: pdftex
 TeXExec | tex format: cont-en.mkii
 warning: Could not open char translation file `natural.tcx'.
 This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
  \write18 enabled.
 entering extended mode
 (./H1.tex

 ConTeXt  ver: 2011.12.31 15:44 MKII  fmt: 2011.12.31  int: english/english

 system          : cont-new.mkii loaded
 (/home/peter/context1220/tex/texmf-context/tex/context/base/cont-new.mkii
 systems         : beware: some patches loaded from cont-new.mkii
 )
 system          : cont-sys.rme loaded
 (/home/peter/context1220/tex/texmf-context/tex/context/user/cont-sys.rme
 (/home/peter/context1220/tex/texmf-context/tex/context/base/type-siz.mkii)
 (/home/peter/context1220/tex/texmf-context/tex/context/base/type-one.mkii))
 system          : H1.top loaded
 (./H1.top)

 On Tue, Jan 3, 2012 at 9:58 AM, John Kitzmiller jki...@gmail.com wrote:
 It looks like you need to point Scite to
 /home/peter/context1220/texmf-mswin/bin (assuming you are using
 windows) in your PATH.



 On Mon, Jan 2, 2012 at 10:52 PM, Peter Park Nelson
 peter.park.nel...@gmail.com wrote:

 Hello, I installed and configured SciTE today to try it out. I am
 using the standalone distribution. When I try to process a context
 document with F7, SciTE calls texexec and uses mkii instead of mkiv (I
 always use mkiv/luatex). How do I configure SciTE to use mkiv?

 Here's the beginning of the output:

 texexec --pdf H1.tex
 /home/peter/context1220/tex/texmf-context/scripts/context/ruby/base/system.rb:16:
 warning: Insecure world writable dir /usr/local/texlive in PATH, mode
 040777
 TeXExec | processing document 'H1.tex'
 TeXExec | no ctx file found
 TeXExec | tex processing method: context
 TeXExec | TeX run 1
 TeXExec | writing option file H1.top
 TeXExec | using randomseed 202
 TeXExec | tex engine: pdftex
 TeXExec | tex format: cont-en.mkii
 warning: Could not open char translation file `natural.tcx'.
 This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
  \write18 enabled.
 entering extended mode
 (./H1.tex

 ConTeXt  ver: 2011.12.31 15:44 MKII  fmt: 2011.12.31  int: english/english

 system          : cont-new.mkii loaded
 (/home/peter/context1220/tex/texmf-context/tex/context/base/cont-new.mkii

 [...more output...]
 --
 Peter Park Nelson
 peter.park.nel...@gmail.com
 ___
 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 :