Re: [NTG-context] Formatting numbers in LuaTeX

2010-02-14 Thread Peter Münster
On Sun, Feb 14 2010, Andreas Harder wrote:

 1) Is it possible to have a comma as decimal separator?
 
 2) If you look at the above definition, it works fine with +, –, /, but
 not with *. Is it possible to expand my macro that it will also work with
 a multiplication or even with the last two examples?

Hello Andreas,

Just a quick hack:

\usemodule[calcmath]
\startluacode
sqrt = math.sqrt
pi = math.pi
function my_equation(s, r)
r = tostring(r)
tex.print(s:gsub(*, ×) .. = .. r:gsub(%., ,))
end
\stopluacode
\def\calculate#1{\calcmath{\ctxlua{my_equation(#1, #1)}}}
\starttext
\startlines
  \calculate{1+2}
  \calculate{3/2-1}
  \calculate{3*2}
  \calculate{sqrt(2)}
  \calculate{2*pi}
\stoplines
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] tracking feature requests and bugs

2010-02-13 Thread Peter Münster
Dear ConTeXt developers,

Does it make sense, to add the recent feature requests to the tracker at
http://tracker.luatex.org/ ?

It would be nice for ConTeXt users like me, to see the status of requests,
perhaps also target dates, and to get automatic notifications when the
status changes.

But this is only possible, if you actually use the tracker.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] \fieldstack with mkiv

2010-02-13 Thread Peter Münster
Hello,

What is needed to get \fieldstack working in mkiv?

The following example works with mkii, but not with mkiv:

\setupinteraction[state=start]
\definesymbol[step1][AAA]
\definesymbol[step2][BBB]
\definefieldstack[test][step1, step2]
\starttext
\fieldstack[test]

Just click \goto{here}[JS(Walk_Field{test})] to walk through the fieldstack!
\goto{(restart)}[JS(Set_Field{test, 1})]
\stoptext

TIA for any hints!
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] tracking changes (was: Re: What do you miss in ConTeXt?)

2010-02-13 Thread Peter Münster
On Sat, Feb 13 2010, John Devereux wrote:

 I would think that would be an extremely useful feature in technical
 environment, where all document changes need to be reviewed

Hello John,

Perhaps this can help: 
http://archive.contextgarden.net/message/20060806.143457.47021821.en.html


 and precisely recorded.

Then I suggest a version control system.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] checking keys (was: Re: What do you miss in ConTeXt?)

2010-02-13 Thread Peter Münster
On Sat, Feb 13 2010, Wolfgang Schuster wrote:

 \getcheckedparameters[test][xx][a=a]
 \getcheckedparameters[test][xx][b= b]
 \getcheckedparameters[test][xx][c = c]
 \getcheckedparameters[test][xx][d = d d , e = e ,f = f ]
 \getcheckedparameters[test][xx][g={oeps {oeps}}]
 \getcheckedparameters[test][xx][crap=whatever]

Hello Wolfgang,

I get:
syntax  : invalid key 'crap' for 'test' in line 16

But no messages for the other keys.

Consider also this:

\enablecheckparameters
\starttext
\getcheckedparameters[test][xx][g=g]
\getcheckedparameters[test][xx][h=h]
\stoptext

$ context test | grep invalid
syntax  : invalid key 'h' for 'test' in line 4

So, the keys a-g are always valid!? ;)

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] checking keys

2010-02-13 Thread Peter Münster
On Sat, Feb 13 2010, Wolfgang Schuster wrote:

 Hans made them valid for the test namespace, replace the test with
 a different name and they should be invalid too.

Result:

\enablecheckparameters
\starttext
\getcheckedparameters[bla][xx][h=h]
\getcheckedparameters[bla][xx][g=g]
\stoptext

-

! LuaTeX error ...text/tex/texmf-context/tex/context/base/mult-chk.lua:61: 
attempt to index field '?' (a nil value)
stack traceback:
...text/tex/texmf-context/tex/context/base/mult-chk.lua:61: in function 
'_gcp_'
main ctx instance:1: in main chunk.
\dogetcheckedparametersyes ...okenize {#3}\!!es )}
  
l.3 \getcheckedparameters[bla][xx][h=h]

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] tracking changes

2010-02-13 Thread Peter Münster
On Sat, Feb 13 2010, John Devereux wrote:

 The text-worddiff utility looks interesting. Does it work well in
 practice?

Hello John,

I don't know, I've never used it in real life ... ;)

It was just a prove of concept: I'm working in an environment where
everybody uses M$-Office, I'm the only exception. And I want to be prepared
for the moment, when one of my co-workers wants to see such visualisation
of changes. That's the only reason, why I need it. But up to now, nobody
has ever asked me for such visualisation :)


 Did you develop the little script you posted any further,
 or is it sufficient?

I've put the latest version on the web:
http://pmrb.free.fr/work/OS/ConTeXt/typeset-diff.sh

In fact, there are only 3 commands:
- wdiff
- editor to tune the tex-file (grouping issues and such)
- context

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] What do you miss in ConTeXt?

2010-02-11 Thread Peter Münster
On Mon, Feb 08 2010, Wolfgang Schuster wrote:

 ConTeXt has many features but sometimes there is something missing, what 
 feature or package do you miss which is already available in another TeX 
 system or unavailable in any TeX system?

Hello Wolfgang,

It would be nice, to specify a background-color for some text, but without
that the background of one line touches the background of the line below.

Illustration of what I'm looking for:

\setupinterlinespace[line=1cm] % just to make the example more obvious
\definetextbackground[myBG][background=color, backgroundcolor=green,
  % backgroundheight=1ex, % does not work
  % height=1ex,   % does not work
frame=off]
\starttext
bla bla \startmyBG \dorecurse{30}{bla }\stopmyBG bla bla
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] What do you miss in ConTeXt?

2010-02-11 Thread Peter Münster
On Mon, Feb 08 2010, Wolfgang Schuster wrote:

 ConTeXt has many features but sometimes there is something missing, what 
 feature or package do you miss which is already available in another TeX 
 system or unavailable in any TeX system?

Hello,

What about collecting these feature requests somewhere at a central point,
for example at http://tracker.luatex.org/ and keeping their status updated.

It would also be nice, to have milestones attached to each request, so that
users know how long to wait.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] What do you miss in ConTeXt?

2010-02-11 Thread Peter Münster
On Thu, Feb 11 2010, Vedran Miletić wrote:

 According to RFC 1738 from IETF, * is used only as a wildcard, e.g. to
 denote all newsgroups from specific category. It is never used for
 specifiying a single URL.

So, http://pmrb.free.fr/tmp/file*with*stars; is not allowed???
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] indent lost after \placefigure

2010-02-11 Thread Peter Münster
On Thu, Feb 11 2010, Alan BRASLAU wrote:

 An opposite feature is also strange - minimal example:
 
 \setupindenting [medium,yes]
 \starttext
 A paragraph, including an itemized list:
 \startitemize [joinedup,packed]
 \item first
 \item second
 \stopitemize
 The following text is indented. It is not a new paragraph.
 \stoptext

\setupitemize[indentnext=auto] % should be default value everywhere IMHO

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] What do you miss in ConTeXt?

2010-02-11 Thread Peter Münster
On Thu, Feb 11 2010, Hans Hagen wrote:

 \definebar
   [backbar]
   [offset=1.5,rulethickness=2.4,color=blue,
continue=yes,order=background]

Great, many thanks for this hidden feature!

What is the logic behind offset and rulethickness (the units and the
reference point)?
(I played a bit with offset=0 and different rulethicknesses...)

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] What do you miss in ConTeXt?

2010-02-10 Thread Peter Münster
On Tue, Feb 09 2010, Hans Hagen wrote:
 On 9-2-2010 23:30, Peter Münster wrote:

 In the current version of MKIV, there is no support for language-specifics,
 so there is actually no support for switching back from French to another
 language.

 in mkiv language specific features are and will be part of the mechanisms 
 themselves (and are then driven by mainlanguage)

Ok, then I just don't know how to use them...


 1. the 1. paragraph of each section is indented (LATEX only);
 2. the default items in itemize environment
 3. vertical spacing in general LATEX lists is shortened;

 to me these sounds like a design issue, not related to french

I agree. The module is just for people like Sebastien, who like to find the
same things as in the frenchb LaTeX package.

At some point, someone should decide, what is triggered by
\mainlanguage[fr] and what is provided by such french-module.

For me, \setcharacterspacing[frenchpunctuation] is the border case.


 2. `double punctuation' (: ; ! ?) is made active

 remark: in mkiv not active using active chars as we have better mechanisms

Of course, the module is for mkiv and uses \setcharacterspacing.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] What do you miss in ConTeXt?

2010-02-09 Thread Peter Münster
On Tue, Feb 09 2010, Sebastien Mengin wrote:

 Thanks for the link, I failed to use it, as I have a ConTeXt/luaTeX
 versions distributed by ubuntu/jaunty, which seems to be too old. I
 should update and give it a try -- later.

Hello Sebastien,

Anyway, it was not the latest version.

In the current version of MKIV, there is no support for language-specifics,
so there is actually no support for switching back from French to another
language.


 Did you have a look at the doc I posted yesterday?

Yes. I attach a recent t-french.tex file, that supports most of frenchb.


In detail:

 1. the 1. paragraph of each section is indented (LATEX only);

Done.


 2. the default items in itemize environment

Done.


 3. vertical spacing in general LATEX lists is shortened;

Done in itemize list.


 4. footnotes are displayed à la française.

What is this?


 1. French hyphenation patterns are made active;

Done.


 2. `double punctuation' (: ; ! ?) is made active

Done.


 3. \today prints the date in French;

The command is \date.


 4. the caption names are translated into French (LATEX only);

Done.


 5. the space after \dots is removed in French.

There is no space.


 1. French quotation marks

\quotation{...}


 2. A command \up is provided

M\high{me}


 provided for ordinals: \ier, \iere, \iers, \ieres, \ieme, \iemes

Done.


 the macro \bsc (boxed small caps) does this, e.g., Leslie~\bsc{Lamport}

\Bsc{...}


 4. Commands \primo, \secundo, \tertio and \quarto print 1o, 2o, 3o, 4o.
 \FrenchEnumerate{6} prints 6o.

No.


 obtained via the commands \No, \Nos, \no, \nos.

No.


 6. Two commands are provided to typeset the symbol for \degre

No.


 the TEXbook p. 134). The command \DecimalMathComma makes the comma

\enablemathpunctuation
\disablemathpunctuation


 8. A command \nombre was provided in 1.x versions to easily format numbers

\dorecurse6{
\setdigitmode \recurselevel\relax
\recurselevel: \digits{12.345,90} \digits{12.345.000} \digits{1,23}\par}


 9. frenchb has been designed to take advantage of the xspace package

No.


Here a test file:

\usemodule[french]
\starttext
\section{test}
\Bsc{Test} \Bsc{Test}
\startitemize
\item 1\ier\ item
\item «bla»
\item bla
\stopitemize
\quotation{bla} hello: hello; hello? hello! \date
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/
%D \module
%D   [  file=t-french,
%Dversion=2010.02.09,
%D  title=\CONTEXT\ User Module,
%D   subtitle=For French documents,
%D author=Peter Münster,
%D   date=\currentdate,
%D  copyright={Peter Münster}]
%C This module is copyrighted by Peter Münster.
%C Please send any comments to pmrb at free.fr.
%C You can find the latest version of this module on
%C http://modules.contextgarden.net/

% This program is free software; you can redistribute it and/or
% modify it under the terms of the GNU General Public License
% as published by the Free Software Foundation; either version 2
% of the License, or (at your option) any later version.

% This program is distributed in the hope that it will be useful,
% but without any warranty; without even the implied warranty of
% merchantability or fitness for a particular purpose.  See the
% GNU General Public License for more details.

%D This module tries to do similar things as the frenchb.ldf in LaTeX:
%D \startitemize
%D \item automatic space before » and after «, :, ?, ; and ! 
%D \item changing symbol for itemize environment
%D \item itemize environment packed
%D \item first paragraph of section indented
%D \item \type{\Bsc{}} macro
%D \stopitemize

\writestatus{loading}{Typesetting French documents}
\doifnotmode{mkiv}{\writestatus{error}{needs MKIV}\wait\end}

\setcharacterspacing[frenchpunctuation]
\setupitemize[symbol=2]
\setupitemize[packed]
\setupheads[indentnext=yes]
\setupindenting[yes, medium]
\lccode`\'=`\'

\mainlanguage[fr]

\ifx \ieme  \undefined \def\ieme  {\highordinalstr{e}}   \fi
\ifx \iemes \undefined \def\iemes {\highordinalstr{es}}  \fi
\ifx \ier   \undefined \def\ier   {\highordinalstr{er}}  \fi
\ifx \iere  \undefined \def\iere  {\highordinalstr{re}}  \fi
\ifx \iers  \undefined \def\iers  {\highordinalstr{ers}} \fi
\ifx \ieres \undefined \def\ieres {\highordinalstr{res}} \fi

\def\Bsc#1{\dontleavehmode\hbox{\sc#1}}

\doifnotmode{demo}{\endinput}

%D Usage example:
\def\myItems{%
  \startitemize
  \item test
  \item test
\startitemize
\item test
\item test
  \startitemize
  \item test
  \item test
  \stopitemize
\stopitemize
  \stopitemize}

\usemodule[french]

\starttext
Voilà: Voilà? Voilà! Voilà;
{\en some english text: «English» or \quotation{French}, ok?}
«voilà» \quote{voilà} \quotation{voilà}
\myItems
\en
\myItems
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg

[NTG-context] very strange error with \xypos and vim-typing

2010-02-08 Thread Peter Münster
Hello,

I get the following error:

! Missing number, treated as zero.
to be read again 
   \dontleavehmode 
argument \dontleavehmode 
   \normalspace 
\secondoftwoarguments #1#2-#2
  
l.1 \the\dimexpr 
 63.6383pt-0pt\relax
\MPy #1-\ctxlua {jobpositions.MPy(#1)}
 
\dopresetpositionanchors ...expr \MPy \textanchor 
  +\MPh \textanchor
  -\!!dime...
...
l.5 \s[]{bla;}


with this test-file:

\usemodule[vim]
\setupbodyfont[ss, 14pt]
\setuppapersize[S6][S6]
\definevimtyping[C][syntax=c]
\starttext
\startC
\stopC
\xypos{XXX}
\startC
bla;
bla;
bla;
\stopC
\startC
bla;
bla;
bla;
\stopC
\startC
bla;
bla;
bla;
bla;
\stopC
\startC
bla;
bla;
bla;
bla;
bla;
\stopC
\stoptext

t-vim.tex comes from
http://www.ntg.nl/pipermail/ntg-context/2009/042527.html


Strange, because whenever I remove a line of this test-file, the error
disappears.

Could someone help please?

TIA for any hints!
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] What do you miss in ConTeXt?

2010-02-08 Thread Peter Münster
On Mon, Feb 08 2010, Sebastien Mengin wrote:

 I once tried to list the different points missing regarding the french
 language support and think of a way to integrate them as a module for
 ConTeXt, as frenchb [1] does for LaTeX.
 
 This is finally not trivial at all (at least for me).
 
 I don't know if this goes in the category « something missing » you are
 talking about... but for me, it is a reason why I stick to LaTeX.

This could be a starting point:
http://modules.contextgarden.net/t-french

What do you need?

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] What do you miss in ConTeXt?

2010-02-08 Thread Peter Münster
On Mon, Feb 08 2010, Wolfgang Schuster wrote:

 ConTeXt has many features but sometimes there is something missing, what 
 feature or package do you miss which is already available in another TeX 
 system or unavailable in any TeX system?

The lst-listing package from LaTeX is very good.

I would be nice, to get at least support for pretty printing the
language C.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] xpdf segmentation fault

2010-02-08 Thread Peter Münster
Hello,

I don't know, if this is a ConTeXt problem (wrong PDF) or an xpdf problem.

Here the test-file, whose pdf-result xpdf cannot read:

\setupinteraction[state=start]
\placebookmarks[chapter]
\starttext
\chapter{bla}
\stoptext

Should I report this to the xpdf-authors?

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] xpdf segmentation fault

2010-02-08 Thread Peter Münster
On Mon, Feb 08 2010, Mikael Persson wrote:

 That example works fine here (both with mkii and mkiv, running ConTeXt
  ver: 2009.11.24 10:13 MKIV  fmt: 2010.2.8  int: english/english) and
 xpdf 3.02-1.4ubuntu2.

Hello Mikael,

It seems, that it was an issue with the poppler library.

I used packages from http://download.opensuse.org/distribution/11.2
Now after updating xpdf and poppler from
http://download.opensuse.org/factory/ it works again.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] svg - png conversion

2010-02-08 Thread Peter Münster
Hello,

How can I convert svg to png on the fly?

I've created a file test.rlx:

?xml version='1.0 standalone='yes'?
rl:manipulators
rl:manipulator name='png' suffix='svg'
rl:oldrl:value name='path'//rl:value name='file'
method='nosuffix'/.png/rl:old
rl:newrl:value name='path'//rl:value name='prefix'/rl:value
name='file' method='nosuffix'/.png/rl:new
rl:step
inkscape -d 600 -e
rl:value name='new'/
rl:value name='old'/
/rl:step
/rl:manipulator
/rl:manipulators

and a file test.tex:

\setupexternalfigures[conversion=png]
\starttext
\externalfigure[./myfile.svg]
\stoptext

But when running context on the file, it tries to convert the svg to pdf.

What do I need to do?

TIA for any hint!
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] very strange error with \xypos and vim-typing

2010-02-08 Thread Peter Münster
On Mon, Feb 08 2010, Peter Münster wrote:

 Strange, because whenever I remove a line of this test-file, the error
 disappears.
 
 Could someone help please?


Hello,

One further hint, the tuc-file has one more line, when there is no error:

@@ -13,6 +13,7 @@
 jobvariables = jobvariables or { }
 jobvariables.collected = jobvariables.collected or { }
 jobvariables.collected={
+ randomseed=0.39571996843243,
  totalnofparbackgrounds=0,
 }
 jobpasses = jobpasses or { }


I would be very glad about a solution, because I don't know any
workaround...

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] simple usage of \hpos

2010-02-07 Thread Peter Münster
On Sun, Feb 07 2010, Wolfgang Schuster wrote:

 \newcounter\BackgroundPictures

 \definelayer[BackgroundPicture][width=\paperwidth,height=\paperheight]

 \def\FixedPicture
   {\dodoubleempty\doFixedPicture}

 \def\doFixedPicture[#1][#2]%
   {\doglobal\increment\BackgroundPictures
\xypos{fixedpicture:\BackgroundPictures}%
\doifnotmode{first}
  {\setlayer
 [BackgroundPicture]
 [x=\MPx{fixedpicture:\BackgroundPictures},
  y=\MPy{fixedpicture:\BackgroundPictures}]
 {\externalfigure[#1][#2]}}}

 \setupbackgrounds[page][background=BackgroundPicture]

 \starttext

 ... \FixedPicture[...] ...

 \stoptext

Hello Wolfgang,

No, it does not work. The main idea, to position the layer with
x=\MPx{} and y=\MPy{} seems to be broken.

Smaller test-file:

\definelayer[graphics][position=yes]
\setupbackgrounds[page][background=graphics]
\starttext
I would like to appear a graphics exactly 2cm left from he\xypos{XXX}re.

\setlayer[graphics][x=\MPx{XXX}, y=\MPy{XXX}, dx=-2cm]{%
  \externalfigure[hacker.jpg][width=1cm]}
\stoptext

Any other ideas?

Thanks, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] simple usage of \hpos

2010-02-07 Thread Peter Münster
On Sun, Feb 07 2010, Wolfgang Schuster wrote:

 Remove the 'position=yes' setup and correct the coordinates, layers use the 
 top left corner as origin but positions are measures from the left bottom 
 corner.

Ah, now I see, why the graphics was at the bottom before.

Thank you very much!

Here an example to show how I use it:

\usemodule[pre-stepwise]
\setupinteraction[state=start]
\definelayer[myBG]
\setupbackgrounds[page][background=myBG]
\def\PlaceAtPos{\dosingleempty\doPlaceAtPos}
\def\doPlaceAtPos[#1]#2#3{%
  \getparameters[PAA][dx=0pt, dy=0pt, #1]%
  \setbox\scratchbox\hbox{#3}%
  \setlayer[myBG][%
x=\the\dimexpr\MPx{#2} - 0.5\wd\scratchbox\relax,
y=\the\dimexpr\paperheight-\MPy{#2}-\ht\scratchbox\relax,
dx=\PAAdx, dy=\PAAdy]{#3}}

\starttext
Place something exactly 2cm left from he\xypos{XXX}re.

Place something exactly 1 line below he\xypos{YYY}re.

Place something exactly he\xypos{ZZZ}re.

\StartSteps
\PlaceAtPos[dx=-2cm]{XXX}{\red something}   \FlushStep
\PlaceAtPos[dy=\lineheight]{YYY}{\green something}  \FlushStep
\PlaceAtPos{ZZZ}{\blue something}   \FlushStep
\StopSteps
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] simple usage of \hpos

2010-02-07 Thread Peter Münster
On Sun, Feb 07 2010, Wolfgang Schuster wrote:

 \def\doPlaceAtPos[#1]#2#3{%
\getparameters[PAA][dx=0pt, dy=0pt, #1]%
\setbox\scratchbox\hbox{#3}%
\setlayer[myBG][%
  x=\the\dimexpr\MPx{#2} - 0.5\wd\scratchbox\relax,
  y=\the\dimexpr\paperheight-\MPy{#2}-\ht\scratchbox\relax,
  dx=\PAAdx, dy=\PAAdy]{#3}}

 \def\doPlaceAtPos[#1]#2%
   {\dowithnextbox
  {\setlayer
 [myBG]
 [x=\the\dimexpr\MPx{#2}-\nextboxwd/2\relax,
  y=\the\dimexpr\paperheight-\MPy{#2}-\nextboxht\relax,
  #1]
 {\flushnextbox}}
\normalhbox}

Thank you for this \dowithnextbox command!
(I keep \getparameters... because I want to use it for other parameters
outside of \setlayer)

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] simple usage of \hpos

2010-02-06 Thread Peter Münster
Hello,

How can I place an element as background at a previously defined position?

Here a test-file to show what I'm looking for:

\definelayer[graphics][position=yes]
\setupbackgrounds[page][background=graphics]
\starttext
Here is some text. I would like to appear a graphics exactly
behind \hpos{XXX}{HERE}. How can I do this, without measuring by hand the
x- and y-offsets, and perhaps also without using metapost?

Such a command would be fine: \type{\placeatpos[XXX]{my background
figure}}, or \type{\setlayer[graphics][location=XXX]{...}}.

\setlayer[graphics][dx=128mm, dy=-27mm]{\externalfigure[hacker.jpg][width=1cm]}
\stoptext

TIA for any help!
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] overlay at given position: help needed

2010-02-05 Thread Peter Münster
On Fri, Feb 05 2010, Wolfgang Schuster wrote:

 Below is a test file, to show a bit what I'm looking for: a
 background-image behind a text-area at a given position relative to the
 center of this area. I'm not yet satisfied with the result.

 What is the expected output from your code with the left and top keys?

Hello Wolfgang,

When top=0 and left=0, the image should be centred in the text area.
With top=0.5 it should be centred in the bottom half.
With top=0.5 and left=0.5 it should be centred in bottom right quarter.
And so on.
(top and left should be probably replaced by hoffset and voffset)



Another idea comes to my mind:

text text text
text text text text text text
text text text text text text text text text
text text text text text text
text \placeanchor[myanchorname][hoffset=2cm, voffset=-1cm] text text text
text text text text text
text text text text text text text text

\placeatanchor[myanchorname]{\externalfigure[...]}

That means: I would like to define a position somewhere in the text,
perhaps some distance away from the actual point (hoffset and voffset).

And afterwards, I place an image at exactly that position as background.
This way, I can probably use the \FlushStep command.

I've looked quickly into the details.pdf but it all seems to be related to
floats...

TIA for any help!
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] l-file.lua:110: stack overflow again

2010-02-05 Thread Peter Münster
Hello,

Here a new example with the stack overflow:

\executesystemcommand{touch file.svg} % just to create the file
\starttext
\externalfigure[file.svg]
% \externalfigure[./file.svg] % no problem here
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] l-file.lua:110: stack overflow

2010-02-04 Thread Peter Münster
Hello,

I get the error with the following input file:

\setupexternalfigures[directory={\currentvalue, http://pmrb.free.fr/tmp/}]
\starttext
\externalfigure[hacker-test-5.pdf]
\stoptext

There is *no* problem, when \currentvalue comes after the url:

\setupexternalfigures[directory={http://pmrb.free.fr/tmp/, \currentvalue}]
\starttext
\externalfigure[hacker-test-5.pdf]
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] problem with \em in \rightaligned

2010-02-04 Thread Peter Münster
Hello,

The last bla is not emphasised:

\starttext
\start
  \em bla\\bla
\stop

\start
  \rightaligned{\em bla\\bla}
\stop
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] problem with \em in \rightaligned

2010-02-04 Thread Peter Münster
On Thu, Feb 04 2010, Wolfgang Schuster wrote:

\rightaligned{\em bla\\bla}

 Use \startalignment[flushright]...\stopalignment to align
 more than one line and \crlf to force a line break.

Right, that's what I do now. I thought, that my construction was supposed
to work, because I got used to things like
\rightaligned{bla\\bla\\bla}...

So excuse me please for not reading the documentation before posting!

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] overlay at given position: help needed

2010-02-04 Thread Peter Münster
Hello,

Below is a test file, to show a bit what I'm looking for: a
background-image behind a text-area at a given position relative to the
center of this area. I'm not yet satisfied with the result.

Here my questions:

1.) Is \startframedtext a good choice for placing the background, or is
there something better?
2.) Is \framed[loffset=..., toffset=...]{} a good choice for specifying the
position, or is there something better?
3.) When left=1, why is the image completely outside the frame and not
only 50%?
4.) How do I make a step between text and background according to
http://wiki.contextgarden.net/Presentation_effects ?
I would like to show first the text, and after a mouse-click the
background image.

Thanks in advance for any help!
Cheers, Peter


The test-file:


% Begins a text-area with a background-image:
\def\startBGimg[#1]{%
  \getparameters[BGimg][top=0, left=0, width=2cm, #1]%
  \start
\newdimen\TopOffset \newdimen\LeftOffset
\setupframedtexts[before=, after=]
\defineoverlay[myBG][{%
\TopOffset=\overlayheight  \LeftOffset=\overlaywidth
\TopOffset=\BGimgtop\TopOffset \LeftOffset=\BGimgleft\LeftOffset
\framed[frame=on, width=\overlaywidth, height=\overlayheight,
  offset=overlay, toffset=\TopOffset, loffset=\LeftOffset]{%
  \externalfigure[\BGimgimg][width=\BGimgwidth]}}]
\startframedtext[background=myBG, frame=off, offset=overlay,
  width=\textwidth]}

% Stops the text-area with a background-image:
\def\stopBGimg{\stopframedtext\stop}

\starttext
\startBGimg[img=hacker.jpg, top=-1, left=-1]
\input tufte
\stopBGimg

\startBGimg[img=hacker.jpg, top=-1, left=1]
\input tufte
\stopBGimg

\startBGimg[img=hacker.jpg, top=1, left=-1]
\input tufte
\stopBGimg

\startBGimg[img=hacker.jpg, top=1, left=1]
\input tufte
\stopBGimg
\stoptext

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] using `` '' the output is wrong.

2010-01-19 Thread Peter Münster
On Tue, Jan 19 2010, Alan BRASLAU wrote:

 My own computers are US International. However, I often use other
 computers having different layouts, many of which I cannot change.
 The worst I find are the Macs with French keyboards, as when I use them,
 I always have to remember how to find \ and {}

Perhaps you could put your dot-files (especially .xmodmap) on a public
server, and whenever you change the computer, you copy your personal
keyboard layout.
I'm doing that with subversion. svn co ... and I feel at home :)

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] using `` '' the output is wrong.

2010-01-19 Thread Peter Münster
On Wed, Jan 20 2010, Alan BRASLAU wrote:

 What I also find disturbing is that *some* of these conventions are retained, 
 but not all.

Since most people use fixed width fonts in their editors, it is difficult
to distinguish between – (en-dash), — (em-dash) and - (hyphen-minus).
So -- and --- are quite useful.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] numbered itemize

2010-01-18 Thread Peter Münster
On Sun, Jan 17 2010, Wolfgang Schuster wrote:
 
  Bug or feature?  Should we add it to the tracker?
 
 Bug, I think. Can you add them?

Ok, done.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] numbered itemize

2010-01-17 Thread Peter Münster
On Sun, Jan 17 2010, Hans van der Meer wrote:

 But is there a more general way to enlarge the 
 item's width? Using [width=dimension] seemed no help

Hello Hans,

It works here:

\starttext
\startitemize[width=5em]
\item bla
\stopitemize
\stoptext

My version: 2010.01.15 15:49

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] numbered itemize

2010-01-17 Thread Peter Münster
On Sun, Jan 17 2010, Wolfgang Schuster wrote:
 
 That's not the problem, what did not work is
 
 - 'itemalign=...' in combination with 'width=dimen' and
 - 'fit' in combination with 'distance=dimen'

Bug or feature?  Should we add it to the tracker?

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] problem with url in \setupexternalfigures

2010-01-14 Thread Peter Münster
On Wed, Jan 13 2010, Hans Hagen wrote:

 ok, i can fix that but there is a problem ...

 if no suffix is given, the quality list is followed and the first request 
 will be

 http://pmrb.free.fr/tmp/hacker-test.pdf

 which gives a home page which is no pdf of course and luatex does not like 
 that

Hello Hans,

I get error 404 (not found):

wget http://pmrb.free.fr/tmp/hacker-test.pdf
--2010-01-14 09:05:32--  http://pmrb.free.fr/tmp/hacker-test.pdf
Resolving pmrb.free.fr... 212.27.63.139
Connecting to pmrb.free.fr|212.27.63.139|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2010-01-14 09:05:32 ERROR 404: Not Found.


 as i don't want to complicate the lookup mechanism even more, i will not 
 catch this and users can best use a suffix when using an url

Not really optimal, but should not be a problem.

Thanks, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] problem with url in \setupexternalfigures

2010-01-07 Thread Peter Münster
Hello,

This used to work:

\setupexternalfigures[directory={\currentvalue, http://pmrb.free.fr/tmp/}]
\starttext
\externalfigure[hacker-test]
\stoptext

But with the latest version, the figure is not found...

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] Thoughts on ConTeXt: ditched

2009-12-28 Thread Peter Münster
On Mon, Dec 28 2009, Manuel P. wrote:

 \def\quotebox#1#2
  
 You want perhaps a %-sign:
 \def\quotebox#1#2%

 No, it doesn't work despite the %-sign. Sorry.

Strange... Could you post a minimal example please with hanging luatex (of
course only if you have some time for that)?
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] Thoughts on ConTeXt: ditched

2009-12-27 Thread Peter Münster
On Sun, Dec 27 2009, Manuel P. wrote:

 I've had some unpleasant surprises:
 - Bibliography doesn't work the way it should on MKIV. Unlike MKII.

Hello Manuel,

You mean perhaps the problem to get all entries in the bib-database, even
without citations. I don't have the solution, but I'm quite sure, that this
is trivial for guys like Taco and others.
There is at least one workaround: cite them all at some place in a 0-width
box with white color on white background.


 - MKIV, unlike MKII, doesn't setup any background color:

 
 \setupcolors[state=start]

Not needed in MKIV.

 \setupbackground[background=screen]

No more supported in MKIV, use
\setupbackground[background=color, backgroundcolor=gray]
instead.

 \setupbackground[state=start]

I don't know if this is needed, seems to work without this line.

 \def\quotebox#1#2

You want perhaps a %-sign:
\def\quotebox#1#2%


 It's a learning experience: don't use an experimental (new for me) tool 
 for an important job. Stick to the triedtested ones, and use new stuff 
 only in a safe context (without a near hard deadline).

Right, 2-3 weeks are really a short time for such task.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] Using ConTeXt for a thesis?

2009-12-20 Thread Peter Münster
On Sat, Dec 19 2009, Aditya Mahajan wrote:

 In my experience, the trouble is not creating a style that meets your 
 university's requirement: that is easy both in LaTeX (once you know the 
 right packages) or ConTeXt. The difficulty is understanding your 
 universities requirement which, in most cases, is ambiguous and incomplete.

Hello,

The other trouble can be, that the requirements are simply ugly and don't
even respect basic typographic rules (line lengths of more than 80
characters for example).

I've typeset three PhD thesis and one master thesis, and I've never
bothered with the requirements of the universities.
The result was, that some members of the juries paid compliments on the look
of the dissertations (like a book).

I'm not an expert in typography, but sometimes the people inventing those
rules at universities are even less expert... :(

The one, that I like best (balanced columns):
http://pmrb.free.fr/tmp/main.pdf
(I'm sorry, I've typeset it before my LaTeX-ConTeXt conversion... ;)

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] latest beta and file mismatch problem

2009-12-01 Thread Peter Münster
On Tue, Dec 01 2009, Bowen Alan C. wrote:

 I get the error message  
 The argument /Applications/ConTeXtMinimals/tex/texmf-osx-64/bin is not
 a valid TEXROOT path.
 (There is no file
 /Applications/ConTeXtMinimals/tex/texmf-osx-64/bin/texmf/tex/plain/base/plain.tex)

Hello Alan,

You don't need setuptex. Just add this line to your .bash_profile or
.bashrc:

PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-64/bin:$PATH

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] definereferenceformat problem...

2009-11-28 Thread Peter Münster
On Wed, Nov 11 2009, Bernhard Rosensteiner wrote:
 
 \definereferenceformat[fig][left=(, right=), label=reffigure, text={figure}]
 
 produces no output of text (in this case figure) when i do
 \fig[something]. Is this a bug in mkiv? I use luatex 0.44

A workaround:

\definereferenceformat[fig][left=(, right=), label=reffigure]
\setuplabeltext[en][reffigure=figure]
\starttext
\placefigure[][something]{bla}{bla}
\fig[something]
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

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

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


Re: [NTG-context] t-vim / minimals

2009-11-19 Thread Peter Münster
On Thu, Nov 19 2009, Renaud AUBIN wrote:
 
 I have just reinstalled ConTeXt after an HD crash with ./first_setup
 --extras=all and t-vim seems to contain an error since I obtain (with MKII):

Hello Renaud,

The latest version of the t-vim module seems to be here:

http://www.ntg.nl/pipermail/ntg-context/2009/042527.html

I suppose, that it will be integrated soon into the minimals.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] Remove bold face

2009-11-18 Thread Peter Münster
On Wed, 18 Nov 2009, anuar lezama wrote:

 Thank you for answering. I can't make nomarking do this trick, I tried  
 something like this:
 \starttext
 The {\bf teacher-student} relationship \nomarking{\bf implies} the authority 
 of the person teaching over the
 person being taught.
 \stoptext

Hello Anuar,

I suppose, you want something like chapter 2:

\setupheadertexts[chapter]
\starttext
\chapter{something {\bolditalic another thing}}
\chapter{something {\nomarking\bolditalic another thing}}
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] Pstricks and Asymptote

2009-11-18 Thread Peter Münster
On Wed, 18 Nov 2009, luigi scarso wrote:

 # find minimals-beta -name *pgf*
 
 The result is an empty string on my minimals, ie no pgf on minimals.

Hello Luigi,

You can add the option --extras=all to first-setup.sh to get all the
contributed modules.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] the meaning of cutspace

2009-11-17 Thread Peter Münster
On Mon, 16 Nov 2009, Wolfgang Schuster wrote:

 After reading the source 'width=middle' make sense, when both backspace
 and cutspace
 are set the width of the textarea is 'paperwidth - backspace - cutspace'
 but when
 cutspace is set to 0pt the textarea is 'paperwidth - 2*backspace'.

Hello Wolfgang,

I'm sorry, I still don't understand...  When width=middle adjusts the width
to paperwidth - backspace - cutspace, what should width=fit then do?
What does middle mean, in the middle of *what*?

I suggest, that specifying backspace + cutspace + width=middle should
output an error or warning, and backspace + cutspace + width=fit should do
it right...

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] rotate a figure

2009-11-17 Thread Peter Münster
On Tue, Nov 17 2009, R. Bastian wrote:

   \rotate[rotation=90]{\externalfigure[filename]}
  
  \externalfigure[filename][orientation=90] ;)
  
 OK, it is the param I hoped to get, but how to find it in the doc ?

Hello,

I suppose, that you can find orientation=... only in the sources, but
\rotate[]{} is a standard command that you can find in the wiki, in
mp-cb-en.pdf and in texshow.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] the meaning of cutspace

2009-11-16 Thread Peter Münster
On Mon, 16 Nov 2009, Vyatcheslav Yatskovsky wrote:

 I need to set up 1.5cm/2cm page borders.
 
 Backspace in layout setup gives me expected result (distance from page to the
 text). According to the wiki, cutspace should do the same for opposite side of
 the page, but it doesnt. So, I cannot get the meaning of cutspace.
 
 \setuplayout[topspace=2cm, header=0cm, footer=0.6cm, bottomspace=2cm,
 height=fit,
 %leftmargin=1.5cm, rightmargin=2cm,
 backspace=1.5cm, cutspace=2cm, width=fit]

Hello Vyatcheslav,

You must be sure, that leftmargin + leftmargindistance = backspace
and rightmargin + rightmargindistance = cutspace.

Working example:

\setuplayout[leftmargin=1cm, rightmargin=1.5cm,
  leftmargindistance=2mm, rightmargindistance=2mm,
  backspace=1.5cm, cutspace=2cm, width=fit]

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] the meaning of cutspace

2009-11-16 Thread Peter Münster
On Mon, 16 Nov 2009, Peter Münster wrote:

 Working example:
 
 \setuplayout[leftmargin=1cm, rightmargin=1.5cm,
   leftmargindistance=2mm, rightmargindistance=2mm,
   backspace=1.5cm, cutspace=2cm, width=fit]

I'm sorry, Taco is right. There is indeed a problem here...

Instead of cutspace=2cm, width=fit you could write
width=\dimexpr \paperwidth - 35mm \relax.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] After \placefigure the first paragraph of body text is not indented

2009-11-09 Thread Peter Münster
On Mon, 9 Nov 2009, Vyatcheslav Yatskovsky wrote:

 I noticed that after \placefigure the first paragraph of body text is not
 indented. Can I enable the indenting after figures?
 
 My setups are like this:
 \setupindenting[yes, big]
 
 \placefigure[middle]{ }
 {\externalfigure[image015][width=0.9\textwidth]}

Hello,

The opposite is also true. See http://tracker.luatex.org/view.php?id=105

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] Usage of filename in document

2009-11-05 Thread Peter Münster
On Thu, 5 Nov 2009, Martin Scholz wrote:

 is there a way in conTeXt how I can use a filename, so that I can write a 
 text where I can refer to it for using it in the following scenario:
 
 I need 4 documents with nearly the same content. what I like to do is to 
 switch in the document depending on the called filename.

Hello Martin,

As already posted, modes are good for binary switches.

Often, I extract some values from the filename, that are used in the text,
here is a simple example:

\def\ResultName{\systemparameter{file}}

% only to show, that a special filename can trigger a mode:
\doif{\ResultName}{order}{\enablemode[ordermode]}{}

\starttext
This file is the \ResultName.

\startmode[ordermode]
special text for order
\stopmode
\stoptext

Then I call context with different resultnames:
context --result=order filename or
context --result=invoice filename


 as I got a file called invoice.tex and create some links to this file 
 called delivery.tex order.tex and so on and now call

Symbolic links are a good idea, if you cannot submit options
like --result=

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] ConTeXt Minimal: error pdftex on CentOS x86_64

2009-11-02 Thread Peter Münster
On Sun, Nov 01 2009, Vnpenguin wrote:

  a) (dangerous; I would not do it) install a more recent version of
  libc on your machine
 
 It's NOT possible.

Hello Vnpenguin,

Why not?


  b) we need to set up some virtual machine with an old linux and
  compile binaries there or find someone else with a reasonably old
  64-bit linux server

I could set up such a system, but not immediately (in a few weeks probably).

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] ConTeXt Minimal: error pdftex on CentOS x86_64

2009-11-02 Thread Peter Münster
On Sun, Nov 01 2009, Vnpenguin wrote:

  xetex
 xetex: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found
 (required by xetex)

Hello,

Here, I don't know how to help. I've these packages on my system:

libstdc++33-3.3.3
libstdc++33-devel-3.3.3
libstdc++41-devel-4.1.3_20080612
libstdc++43-devel-4.3.3_20080904
libstdc++44-4.4.0_20090519
libstdc++-devel-4.3

But I don't know how to select the library for building xetex...

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] ConTeXt Minimal: error pdftex on CentOS x86_64

2009-11-01 Thread Peter Münster
On Sun, Nov 01 2009, Mojca Miklavec wrote:
 
  pdftex
  pdftex: /lib64/libc.so.6: version `GLIBC_2.7' not found (required by pdftex)
 
  Any help for this problem ?
 
 This is weird. Peter - did you upgrade your linux in the meantime by
 any chance? (The update dates back to 17th October.)

Hello,

Indeed, I've updated my glibc accidentally¹ on 5th October
from 2.9 to 2.10.

So all binaries, that I've built after this date are affected by this
problem (dependency on GLIBC_2.7). Example for luatex:

~/minimals/bin/linux-64/current/luatex ldd -v beta-0.4[34].0/luatex
beta-0.43.0/luatex:
linux-vdso.so.1 =  (0x7fffb6384000)
libm.so.6 = /lib64/libm.so.6 (0x7f65e6474000)
libc.so.6 = /lib64/libc.so.6 (0x7f65e611b000)
/lib64/ld-linux-x86-64.so.2 (0x7f65e66ca000)

Version information:
beta-0.43.0/luatex:
ld-linux-x86-64.so.2 (GLIBC_2.3) = /lib64/ld-linux-x86-64.so.2
libc.so.6 (GLIBC_2.3) = /lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) = /lib64/libc.so.6
libm.so.6 (GLIBC_2.2.5) = /lib64/libm.so.6
/lib64/libm.so.6:
libc.so.6 (GLIBC_2.2.5) = /lib64/libc.so.6
/lib64/libc.so.6:
ld-linux-x86-64.so.2 (GLIBC_PRIVATE) = /lib64/ld-linux-x86-64.so.2
ld-linux-x86-64.so.2 (GLIBC_2.3) = /lib64/ld-linux-x86-64.so.2
beta-0.44.0/luatex:
linux-vdso.so.1 =  (0x7dfff000)
libm.so.6 = /lib64/libm.so.6 (0x7f53c4dbb000)
libc.so.6 = /lib64/libc.so.6 (0x7f53c4a62000)
/lib64/ld-linux-x86-64.so.2 (0x7f53c5011000)

Version information:
beta-0.44.0/luatex:
ld-linux-x86-64.so.2 (GLIBC_2.3) = /lib64/ld-linux-x86-64.so.2
libm.so.6 (GLIBC_2.2.5) = /lib64/libm.so.6
libc.so.6 (GLIBC_2.3) = /lib64/libc.so.6
libc.so.6 (GLIBC_2.7) = /lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) = /lib64/libc.so.6
/lib64/libm.so.6:
libc.so.6 (GLIBC_2.2.5) = /lib64/libc.so.6
/lib64/libc.so.6:
ld-linux-x86-64.so.2 (GLIBC_PRIVATE) = /lib64/ld-linux-x86-64.so.2
ld-linux-x86-64.so.2 (GLIBC_2.3) = /lib64/ld-linux-x86-64.so.2


I've just downgraded my glibc to 2.9 and I'm now rebuilding metapost,
luatex and pdftex. We will see in about 1 hour, if this solves the problem.

Cheers, Peter


Note 1: I only wanted to update my glib, so I've done a
' zypper up *glib* '.

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] Tikz

2009-10-01 Thread Peter Münster
On Wed, 30 Sep 2009, David Arnold wrote:

 In the minmals directory:
 david-arnolds-macbook-pro:context darnold$ find . grep 'tikz'
 find: tikz: No such file or directory

Did you really run this command find . grep 'tikz' ?
This means, you will find all files in the current directory and in the
sub-directories grep and tikz, and these 2 sub-directories probably
don't exist.

You want probably something like this:
find . -name tikz
or
find . -name *tikz*

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] file-contents module

2009-09-27 Thread Peter Münster
Hello,

It would be nice, if this module could be integrated in the distribution:
http://wiki.contextgarden.net/Filecontents

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] strange page breaks with latest beta

2009-09-24 Thread Peter Münster
Hello,

2 strange page breaks here (version 2009.09.23 10:07):

\def\mySection{\section{bla}\dorecurse{30}{text }}
\starttext
\title{bla}
\dorecurse3{
  \mySection\par
  bla}
\section{bla}
\dorecurse{30}{text }
\dorecurse3{
  \subsection{bla}
  \bTABLE
  \dorecurse{10}{\bTR \bTD bla \eTD \eTR}
  \eTABLE}
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] setting variable on cmd-line

2009-09-21 Thread Peter Münster
On Mon, 21 Sep 2009, luigi scarso wrote:

   test-file:
  
   \starttext
   Value of myVar: \ctxlua{tex.print(document.arguments[arguments=myVar])}
   \stoptext
  
   cmd-line:
  
   context --arguments=myVar=myValue test
  
   But this syntax is very strange!
  Does
   context --arguments=myVar=myValue test
  work too ?
 
  Yes, I'm using bash, so --arguments=myVar=myValue is the same as
  --arguments=myVar=myValue
 
  That means, context does not see the quotes.
 OK, in this way  syntax looks less strange

It's not the syntax of the cmd-line that looks strange, it's the syntax how
to get the value of the variable:
\ctxlua{tex.print(document.arguments[arguments=myVar])}

I'm quite sure, that this is not Hans' intention.

As I've written yesterday, I suppose, that the following syntax is wanted:
\getvariable{environment}{myVar}  but this does not work...

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] setting variable on cmd-line

2009-09-21 Thread Peter Münster
On Mon, 21 Sep 2009, Hans Hagen wrote:

  As I've written yesterday, I suppose, that the following syntax is wanted:
  \getvariable{environment}{myVar}  but this does not work...
 
 how does it look with:
 
 local flag, value = argument:match(^%-+(.-)=(.-)$)
 
 .+ - .-

I've changed the line in mtxrun.lua and now it works fine, thanks Hans!

There is another occurrence of this line in luatools.lua (line 3426),
perhaps it should be changed there too?

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] letter module: Missing number, treated as zero.

2009-09-20 Thread Peter Münster
Hello,

Here a minimal test file, to reproduce the problem with latest MKIV:

\let\defineblankmethod\definevspacingamount
\usemodule[letter]
\starttext
\startletter
  Test.
\stopletter
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] letter module: Argument of \dodoubletestempty has an extra }

2009-09-20 Thread Peter Münster
Hello,

Here a minimal test file, to reproduce the problem with latest MKII:

% engine=pdftex
\usemodule[letter]
\starttext
\startletter
\subject{Test}
hello
\stopletter
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] setting variable on cmd-line

2009-09-20 Thread Peter Münster
On Fri, 18 Sep 2009, Peter Münster wrote:

 I've a little feature request:
 It would be nice, to have a command line option like --setvalue x=y or
 similar for the context command to define a variable for the job.
 
 Modes are already very nice, but often I need just one value for
 conditional compiling a document instead of many binary switches.
 
 Perhaps the context --arguments option is what I'm looking for, but I
 didn't find how to use it.

Hello,

After reading a bit in mtx-context.lua, I've found out how to use
--arguments:

test-file:

\starttext
Value of myVar: \ctxlua{tex.print(document.arguments[arguments=myVar])}
\stoptext

cmd-line:

context --arguments=myVar=myValue test

But this syntax is very strange!

This would be much nicer:

Value of myVar: \getvariable{environment}{myVar}


Perhaps there is just a bug in the evaluation of environment.arguments?
That means, instead of using the first equal sign (=) for generating the
key/value pair, the last one is used.


 Another option would be, to make the name of the result-file
 (context --result=...) available, for example as \resultname.

Is this the right way to go: \systemparameter{file} ?

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] setting variable on cmd-line

2009-09-20 Thread Peter Münster
On Sun, 20 Sep 2009, luigi scarso wrote:

  test-file:
 
  \starttext
  Value of myVar: \ctxlua{tex.print(document.arguments[arguments=myVar])}
  \stoptext
 
  cmd-line:
 
  context --arguments=myVar=myValue test
 
  But this syntax is very strange!
 Does
  context --arguments=myVar=myValue test
 work too ?

Yes, I'm using bash, so --arguments=myVar=myValue is the same as
--arguments=myVar=myValue

That means, context does not see the quotes.

But I've also tried this: context --arguments=\myVar=myValue\ test
Error:
MTXrun | unknown script 'context --arguments=myVar=myValue.lua' or 
'mtx-context --arguments=myVar=myValue.lua'

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] setting variable on cmd-line

2009-09-18 Thread Peter Münster
Hello,

I've a little feature request:
It would be nice, to have a command line option like --setvalue x=y or
similar for the context command to define a variable for the job.

Modes are already very nice, but often I need just one value for
conditional compiling a document instead of many binary switches.

Perhaps the context --arguments option is what I'm looking for, but I
didn't find how to use it.

Another option would be, to make the name of the result-file
(context --result=...) available, for example as \resultname.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] \currentpage always 1

2009-09-16 Thread Peter Münster
Hello,

\currentpage is always 1 here:

\starttext
currentpage: \currentpage, realpageno: \the\realpageno
\page
currentpage: \currentpage, realpageno: \the\realpageno
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] nested modes

2009-09-16 Thread Peter Münster
Hello,

Here is a problem with nested modes:

\starttext
no mode
\startmode[mode1]
  mode1a
  \startmode[mode2]
mode2
  \stopmode
  mode1b % this is printed, but it should not
\stopmode
no mode
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] reference in \placefigure

2009-09-03 Thread Peter Münster
Hello,

References to figures don't seem to work with latest version:

\starttext
\section[secref]{section}
\placefigure[][figref]{caption}{figure}
In section \in[secref] and in figure
\in[figref]. % nothing here...
\stoptext

Cheers, Peter


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

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


Re: [NTG-context] two absolutely newbie questions

2009-08-25 Thread Peter Münster
On Tue, 25 Aug 2009, Vyatcheslav Yatskovsky wrote:

 \filename{c:\\Program Files}

This should work too: \filename{c:/Program Files}

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] suggestions for MKIV

2009-08-19 Thread Peter Münster
Hello Hans,

Since there is no more need, to keep compatibility with MKII (there are
already a lot of differences), I suggest - for the benefit of beginners -
to change at least 2 things:

- let \framed or \externalfigure behave like \parbox and \includegraphics
  in LaTeX, i.e. no more need to put \dontleavehmode before the command
  (the current behaviour is just not very intuitive...)

- let align=left|right behave correctly

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] suggestions for MKIV

2009-08-19 Thread Peter Münster
On Wed, 19 Aug 2009, Wolfgang Schuster wrote:

  Since there is no more need, to keep compatibility with MKII (there are
  already a lot of differences), I suggest - for the benefit of beginners -
  to change at least 2 things:
  
  - let \framed or \externalfigure behave like \parbox and \includegraphics
  in LaTeX, i.e. no more need to put \dontleavehmode before the command
  (the current behaviour is just not very intuitive...)
 
 no, no and no!
 
 \starttext
 \placefigure{centered?}{\framed{vmode}}
 \placefigure{centered?}{\dontleavehmode\framed{hmode}}
 \stoptext

Hello Wolfgang,

I remember well your example. And again, it's more intuitive, if

   \placefigure{centered?}{test}
and
   \placefigure{centered?}{\framed{test}}
and
   \placefigure{centered?}{test \framed{test} test}

would behave the *same* way.


There is no real problem for *me*, but it's very difficult to explain to a
beginner (often coming from LaTeX), that here and there, a \dontleavehmode
is needed. For beginner, this behaviour creates headaches!

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] correction of the question about \useURL

2009-08-07 Thread Peter Münster
On Fri, 7 Aug 2009, rene hassel wrote:

 I have a problem with the use of \useURL
 
 \useURL[pragma-document-url][http://www.pragma-ade.com/document-1.htm][][pragma-document]
 
 
 with \from[pragma-document-url] I get
 http://www.pragma-ade.com/document-1.htm
 in the text, but not pragma-document

Hello Rene,

Could you please post a minimal example showing the problem? What version
of context do you use, and what engine?

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

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

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


Re: [NTG-context] checking spelling of a tex document

2009-08-06 Thread Peter Münster
On Wed, 5 Aug 2009, Ciro Soto wrote:

 I wonder what the people in this list is using for checking the
 spelling of a tex document

Hello,

I have this in my .emacs file:

(setq-default ispell-program-name aspell)

I'm quite happy with aspell.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] filecontents

2009-08-04 Thread Peter Münster
Hello,

It would be nice, if this module could be integrated in the distribution:
http://wiki.contextgarden.net/Filecontents

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] module sync'ing

2009-08-04 Thread Peter Münster
Hello,

How should module contributions (t-vim, t-french, t-letter, etc.) find
their way to the minimals today?

(There are so many possibilities, I'm a bit lost:
modules.contextgarden.net, svn, git, ctan, rsync, email to Mojca, email to
Hans, and so on... ;)

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] module sync'ing

2009-08-04 Thread Peter Münster
On Tue, 4 Aug 2009, Mojca Miklavec wrote:

 1.) Authors should update modules.contextgarden.net - this is the
 primary and definite source

Thank you for this confirmation!  Sometimes it took a very long time, that
minimals got synchronised with modules.contextgarden.net, so I had some
doubt...
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] I can't put footnote

2009-07-23 Thread Peter Münster
On Thu, 23 Jul 2009, Xan wrote:

 Thank you very much, Hans. This is definitely the reason of that error.
 The conclusion is that we always should define command with non-english
 names

Or uppercase names (as suggested in the manual)!
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] problem with t-letter.tex and itemize

2009-07-22 Thread Peter Münster
Hello,

The example shows the problem:

\usemodule[letter]
\starttext
\startletter
\startitemize
\item Lines are broken
  at the same places as the input text.
  Strange...
\stopitemize
\stopletter
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] t-letter and line-breaking (was: problem with t-letter.tex and itemize)

2009-07-22 Thread Peter Münster
On Wed, 22 Jul 2009, Peter Münster wrote:

 \usemodule[letter]
 \starttext
 \startletter
 \startitemize
 \item Lines are broken
   at the same places as the input text.
   Strange...
 \stopitemize
 \stopletter
 \stoptext

Excuse me, the problem has nothing to do with itemize. Here a smaller
example:

\usemodule[letter]
\starttext
\startletter
Lines are broken
at the same places as the input text.
Strange...
\stopletter
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

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

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


Re: [NTG-context] t-vim: inline typing?

2009-07-21 Thread Peter Münster
On Mon, 20 Jul 2009, Aditya Mahajan wrote:

 On Mon, 20 Jul 2009, Peter Münster wrote:
 
 Attached is an ugly solution. I haven't tested it too much.

Thank you! (perhaps ugly, but working!)


 It should be possible to also define \typeC{...}, but then I will need to read
 up how to read code in verbatim and write it to a file.

Not really necessary for me.

Thanks, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] \setuptype[style=...] and a feature request

2009-07-21 Thread Peter Münster
On Mon, 20 Jul 2009, Hans Hagen wrote:

  Feature request:
  \setuptype[before=..., after=...]
 
 well, not before/after then but left/right

No problem, left/right is nice!
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] some problems with current

2009-07-21 Thread Peter Münster
On Mon, 20 Jul 2009, Hans Hagen wrote:

  \unprotect
  \def\...@bla{sec title}
  \def\mysection{{\setcatcodetable\prtcatcodes\section{\...@bla}}}
  \protect
  \starttext
  \mySection
  bla bla
  \stoptext
 
 fixed, that is for the moment you need to set
 
 catcodes=auto
 
 or
 
 catcodes=prtcatcodes

Hello Hans,

Where do I have to set catcodes=auto?


Thank you for all the fixes, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] support for SUBSCRIPT THREE etc. ?

2009-07-21 Thread Peter Münster
Hello,

Is support for unicode range 0x2080-0x2089 planned?

Superscript works well, but not the subscript:

\starttext
x³ x₃
\stoptext


I need it for something like this:

\usemodule[vim]
\definevimtyping[C][syntax=c]
\starttext
\startC
for(expr₁; expr₂; expr₃)
instruction
\stopC
\stoptext


Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] support for SUBSCRIPT THREE etc. ?

2009-07-21 Thread Peter Münster
On Tue, 21 Jul 2009, Khaled Hosny wrote:

 Unicode sub/superscripts aren't real sub/superscripts, and there use is
 discouraged. Most fonts will align those subscript glyphs to the base
 line not bellow it, and apparently LM fonts don't have them.

Hello,

In char-def.lua there is:

 [0x2074]={
  category=no,
  cjkwd=a,
  description=SUPERSCRIPT FOUR,
  direction=en,
  linebreak=ai,
  specials={ super, 0x0034 },
  unicodeslot=0x2074,
 },
[...]
 [0x2084]={
  category=no,
  cjkwd=a,
  description=SUBSCRIPT FOUR,
  direction=en,
  linebreak=ai,
  specials={ sub, 0x0034 },
  unicodeslot=0x2084,
 },

So I supposed, that the specials are for faking or simulating the unicode
character, for example ² - \superscript{2} or similar.
Perhaps, my assumption is just wrong...


 I think there is a way to use ConTeXt commands inside verbatim
 environments, but I don't recall it.

Yes, BTEX...ETEX, but not with the t-vim module.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] support for SUBSCRIPT THREE etc. ?

2009-07-21 Thread Peter Münster
On Tue, 21 Jul 2009, Peter Münster wrote:

 I need it for something like this:
 
 \usemodule[vim]
 \definevimtyping[C][syntax=c]
 \starttext
 \startC
 for(expr₁; expr₂; expr₃)
   instruction
 \stopC
 \stoptext

Finally I've found a simple solution:

\usemodule[vim]
\definevimtyping[C][syntax=c]
\defineactivecharacter ₁ {\low{\tx1}}
\defineactivecharacter ₂ {\low{\tx2}}
\defineactivecharacter ₃ {\low{\tx3}}
\starttext
\startC
for(expr₁; expr₂; expr₃)
instruction
\stopC
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] some problems with current

2009-07-20 Thread Peter Münster
Hello,

Here some minimal examples showing some problems:

1.) Number missing before first item:

\starttext
\startitemize[n][start=0]
\item zero is missing here
\item bla
\item bla
\stopitemize
\stoptext


2.) Problem with \FlushStep:

\usemodule[pre-stepwise]
\setupinteraction[state=start]
\starttext
\chapter{Footnote and stepwise}
\StartSteps
\startitemize
\item bla\FlushStep % 1. step: nothing
  \footnote{footnote}\FlushStep % 2. step: only footnote, not the \item
\item bla\FlushStep % 3. step: first \item
\stopitemize% second \item never appears
\StopSteps
\stoptext


3.) ERROR: LuaTeX error lpdf-ano.lua:340: attempt to
index global 'urls' (a nil value):

\setupinteraction[state=start]
\starttext
\goto{bla}[url(bla)]
\stoptext


4.) \placeheadtext[chapter] showing section title:

\starttext
\chapter{my chapter title}
\section{my section title}
test: \placeheadtext[chapter]
\stoptext


5.) \setcatcodetable\prtcatcodes no more working:

\unprotect
\def\...@bla{sec title}
\def\mysection{{\setcatcodetable\prtcatcodes\section{\...@bla}}}
\protect
\starttext
\mySection
bla bla
\stoptext


6.) x.\  should produce a normal space, not a wide space as x. :

\starttext
x. x, x.\ x,\ x
\stoptext 


Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] \startlanguagespecifics undefined

2009-07-20 Thread Peter Münster
Hello,

\startlanguagespecifics is no more known (perhaps lang-spe.mkiv
just missing?):


\startlanguagespecifics[fr]
  \setcharacterspacing[frenchpunctuation]
\stoplanguagespecifics
\starttext
bla
\stoptext 

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] t-vim: inline typing?

2009-07-20 Thread Peter Münster
Hello,

Is it possible somehow, to get inline syntax highlighting (as with
\type{...})?

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] t-vim: unwanted space after vimtyping

2009-07-20 Thread Peter Münster
Hello,

I've tried to put a \relax at the end of the input file (file generated by
vim) and also done some experiments with \removeunwantedspaces but I could
not get rid of the space (vertical or horizontal) after the vim-typing.
Here an example, showing the problem:

\usemodule[vim]
\setupwhitespace[big]
\definevimtyping[C][syntax=c]
\starttext
no problem before the typing
\startC
bla
\stopC
horizontal space added

\startC
bla
\stopC

too much vertical space
\stoptext

TIA for any help, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] t-vim: unwanted space after vimtyping

2009-07-20 Thread Peter Münster
On Mon, 20 Jul 2009, Peter Münster wrote:

 \usemodule[vim]
 \setupwhitespace[big]
 \definevimtyping[C][syntax=c]
 \starttext
 no problem before the typing
 \startC
 bla
 \stopC
 horizontal space added
 
 \startC
 bla
 \stopC
 
 too much vertical space
 \stoptext

I found a workaround:
\setupvimtyping[after=\vskip-\lineheight]

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] \setuptype[style=...] and a feature request

2009-07-20 Thread Peter Münster
Hello,

The style command of \setuptype is executed 2 times:

\setuptype[style=X]
\starttext
\type{bla}
\stoptext

Feature request:
\setuptype[before=..., after=...]

(today I use this workaround: \setuptype[style=\groupedcommand{...}{...}] )

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


[NTG-context] attempt to compare userdata with number

2009-07-20 Thread Peter Münster
Hello,

Phew, finally I've managed to reduce my 700 lines document to this
minimal example:

\setupinteraction[state=start]
\placebookmarks[chapter, section]
\setcharacterspacing[frenchpunctuation]
\starttext
\chapter{chap}
\section{sec}
text :
\section{sec}
\stoptext


Error text:

! LuaTeX error ...text/tex/texmf-context/tex/context/base/lpdf-ano.lua:510:
attempt to compare userdata with number
stack traceback:
...text/tex/texmf-context/tex/context/base/lpdf-ano.lua:510: in
function 'build'
...text/tex/texmf-context/tex/context/base/lpdf-ano.lua:564: in
function 'addbookmarks'
...text/tex/texmf-context/tex/context/base/strc-bkm.lua:83: in function
'place'
main ctx instance:1: in main chunk.
inserted text ...a {structure.bookmarks.place()}
  
\stoptext ... [\v!last ]\page \the \everystoptext 
  \expandafter \finalend

  \fi 
l.9 \stoptext


Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

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


Re: [NTG-context] pretty C with MKIV

2009-07-08 Thread Peter Münster
On Tue, 7 Jul 2009, Aditya Mahajan wrote:

-c source `kpsewhich 2context.vim`
-c wqa #1}}
 
 Hey, `kpsewhich 2context.vim` is cheating!

I admit it. But for me, fast success was most important and before it was
kpse:2context.vim...

Anyway, thanks a lot for the t-vim module!

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

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

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


[NTG-context] pretty C with MKIV

2009-07-07 Thread Peter Münster
Hello,

Unfortunately, I've no time (and perhaps also not the know-how) to write
a pret-c.lua. What would be the easiest way, to do C pretty printing?
(I've tried t-vim.tex, but it seems to be broken:
ERROR: I can't find file `test-vimsyntax.tmp-vimsyntax.tmp'.)

TIA for any help!
Peter

-- 
Contact information: http://pmrb.free.fr/contact/

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

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


Re: [NTG-context] pretty C with MKIV

2009-07-07 Thread Peter Münster
On Tue, 7 Jul 2009, Peter Münster wrote:

 (I've tried t-vim.tex, but it seems to be broken:
 ERROR: I can't find file `test-vimsyntax.tmp-vimsyntax.tmp'.)

Ok, t-vim.tex works now. The mtxrun part was the problem. Here my new
version of the \runvimsyntax macro (perhaps no more MS-Windows
compatibility):

\def\runvimsyntax#1
   {\executesystemcommand
  {vim
   -u NONE  % No need to read unnessary configurations
   -e   % run in ex mode
   -C   % Set compatibile
   -n   % No swap
%  -V10log  % For debugging only, will go away later.
   -c set tabstop=\@@vstab
   -c syntax on
   -c set syntax=\@@vssyntax
   -c let contextstartline=\@@vsstart
   -c let contextstopline=\@@vsstop
   -c source `kpsewhich 2context.vim`
   -c wqa #1}}

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

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

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


Re: [NTG-context] spanish tilde-n lost

2009-06-29 Thread Peter Münster
On Sun, 28 Jun 2009, Ciro Soto wrote:

 This last solution is the one I was looking for because my keyboard has no ñ

You only need dead_tilde and n to build the ñ.
Cheers, Peter

P.S.: I've just tried dead_tilde - dead_circumflex - E, it works!
--- Ễ

-- 
Contact information: http://pmrb.free.fr/contact/

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

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


Re: [NTG-context] spanish tilde-n lost

2009-06-28 Thread Peter Münster
On Sun, 28 Jun 2009, t...@mac.com wrote:

 If you can do without MkII compatibility the most elegant solution may be to
 simply replace all instances of \~n with ñ,
 e.g. co\~nazo -- coñazo.

Works even with MKII, you only need to declare you character set, for
example:
\enableregime[utf]

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

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

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


[NTG-context] section number is doubled

2009-06-22 Thread Peter Münster
Hello,

Just a little reminder, it has already been mentioned by others:

\starttext
\startsection[title=Test, reference=test]
Section number is doubled: \in[test]
\stopsection
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

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

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


[NTG-context] problem with \startitemize[n][start=0]

2009-06-22 Thread Peter Münster
Hello,

There is no 0. before the first item:

\starttext
\startitemize[n][start=0]
\item bla
\item bla
\item bla
\stopitemize
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

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

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


Re: [NTG-context] ConTeXt minimals installation problem

2009-06-20 Thread Peter Münster
On Sat, 20 Jun 2009, Mojca Miklavec wrote:

 I wanted to have one special kind of functionality, namely, being able
 to choose which modules to install, which engines to install, which
 fonts to install etc. SVN doesn't offer that.

Hello Mojca,

SVN supports sparse directories¹. Perhaps this can solve the problem.

¹ http://svnbook.red-bean.com/nightly/en/svn.advanced.sparsedirs.html

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

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

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


<    2   3   4   5   6   7   8   9   10   11   >