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

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

 ! 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;}

Hello,

No answer. Does it mean, that there is probably no solution or work-around?

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] Cut marks + alignment marks

2010-02-16 Thread Jean-Philippe Rey

Hello everybody,

I am using the imposition feature of ConTeXt which is very nice.  
\setuplayout[marking=on] allows me to print cut marks, but this  
doesn't produce alignment marks. Is there an option to print, along  
cut marks, traditional alignement marks (hirondelles in French), i.e.  
cross hairs in a circle exactly positioned at the middle of each four  
paper sides.


Thanks for your answers.

--
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France





___
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-16 Thread Hans Hagen

On 16-2-2010 10:19, Peter Münster wrote:

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


! 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;}


Hello,

No answer. Does it mean, that there is probably no solution or work-around?


as i never use vim for pretty printing i can not quickly test it so in 
order to be able to look into it i need a more precise test case


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


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

2010-02-16 Thread Peter Münster
On Tue, Feb 16 2010, Hans Hagen wrote:

 as i never use vim for pretty printing i can not quickly test it so in 
 order to be able to look into it i need a more precise test case

I'm sorry, I can reproduce this error only with the vim module.

Can others reproduce it, or am I the only one?

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] Mathdesign and Fourier fonts (was What do you miss in ConTeXt?)

2010-02-16 Thread Mikael Persson
Thank you Mojca and Aditya for your answers,

I hope the mathdesign part of mtx-update.lua will end up in the
orignal file. I do not know how to use it now.

If I save this file and update with sh firstsetup.sh --extras=all
(or --extras=mathdesign) it seems that the mtx-update.lua is
overwritten with the version from the server. I do not know howto
upgrade with mtx-update.lua without firstsetup.sh.

About the fourier fonts. Is there a lot of work to do in math-vfu.lua
to get it to work? I looked into that file, but it was a bit hard to
understand what is needed...

Maybe it is hard work to get the fonts working, but I really think
that if we have several text+math fonts easily available in the
minimals that will make (new) users very happy.

Mikael

On Sun, Feb 14, 2010 at 11:26 PM, Mojca Miklavec
mojca.miklavec.li...@gmail.com wrote:
 (Since there are some problems with linebreaks, here's the whole file.)

 I didn't test the font itself.

 Mojca

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

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


___
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] Mathdesign and Fourier fonts (was What do you miss in ConTeXt?)

2010-02-16 Thread Hans Hagen

On 16-2-2010 11:38, Mikael Persson wrote:

Thank you Mojca and Aditya for your answers,

I hope the mathdesign part of mtx-update.lua will end up in the
orignal file. I do not know how to use it now.

If I save this file and update with sh firstsetup.sh --extras=all
(or --extras=mathdesign) it seems that the mtx-update.lua is
overwritten with the version from the server. I do not know howto
upgrade with mtx-update.lua without firstsetup.sh.

About the fourier fonts. Is there a lot of work to do in math-vfu.lua
to get it to work? I looked into that file, but it was a bit hard to
understand what is needed...

Maybe it is hard work to get the fonts working, but I really think
that if we have several text+math fonts easily available in the
minimals that will make (new) users very happy.


it depends ... if the font is in tex default encoding then it's only a 
matter of adding a small table


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] [OT] ASCII text output

2010-02-16 Thread Roger Mason
Hello,

I need to convert an exam written in ConTeXt to an ascii text file like
the following:

NewQuestion,MC,
Title,Which is gem,
QuestionText,Which one of the following is regarded as a gem?
Points,1,
Difficulty,1,
Image,,
Option,0,Feldspar,,
Option,100,Ruby,,
Option,0,Sodium chloride,,
Option,0,Quartz,,
Hint
Feedback

Before I go to the trouble of creating a parser to read the ConTeXt
input and write the desired output I'm wondering if this can be done
with ConTeXt itself.

Sorry if this is way OT.

Thanks,
Roger
___
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] [tex-live] difference texlive 2008, 2009

2010-02-16 Thread Aditya Mahajan

On Tue, 16 Feb 2010, Lubos Kolouch wrote:


Pardon my ignorance, does it mean, I have to run it after every update of
this package?


You need to run

  source /opt/context-minimals/setuptex

once on each terminal from which you want to run context. If you do not 
use texlive, then you can add this line to your .bashrc (or the rc file of 
whatever shell you use).


setuptex sets PATH so that the minimals binaries are used rather than 
texlive's; setting OSFONTDIR so that you can use system fonts; and setting 
TEXMFCACHE.



Should that not be part of the install process?


If can be, but that will mean that context-minimals will conflict with 
texlive. With the current approach, you can use both texlive (which is 
needed for latex, texinfo, and plain tex) and context-minimals. All you 
need to do is run


  source /opt/context-minimals/setuptex

once for each terminal session.

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

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


[NTG-context] combination trickery - help needed

2010-02-16 Thread Bernhard Rosensteiner
Hi,

in the attachment is an example file which describes best what i want do. The 
method with \offset and \clip to place the figures where i want is really 
brutal force i think.  Especially fiddling around with dimension to get the 
right fit“ is tedious. Is there a better solution to do such a 
start/stopcombination?
Floatplacing is also influenced by the offset command but i compensated this 
with *hang - nevertheless all in all i think no good solution. Please help.

best regards
Bernhard



___
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] combiation trickery again now with attachement - sorry

2010-02-16 Thread Bernhard Rosensteiner
Hi,

in the attachment is an example file which describes best what i want do. The 
method with \offset and \clip to place the figures where i want is really 
brutal force i think.  Especially fiddling around with dimension to get the 
right fit“ is tedious. Is there a better solution to do such a 
start/stopcombination?
Floatplacing is also influenced by the offset command but i compensated this 
with *hang - nevertheless all in all i think no good solution. Please help.

best regards
Bernhard




floatcombiantion.tex
Description: Binary data



___
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] combiation trickery again now with attachement - sorry

2010-02-16 Thread Peter Rolf
Am 16.02.2010 19:40, schrieb Bernhard Rosensteiner:
 Hi,
 
 in the attachment is an example file which describes best what i want do. The 
 method with \offset and \clip to place the figures where i want is really 
 brutal force i think.  Especially fiddling around with dimension to get the 
 right fit“ is tedious. Is there a better solution to do such a 
 start/stopcombination?
 Floatplacing is also influenced by the offset command but i compensated this 
 with *hang - nevertheless all in all i think no good solution. Please help.
 
Hi Bernhard,

that was fun. :)

Best wishes,  Peter

\setuptolerance[verytolerant, stretch]
\setupalign[hz, hanging]
\definefloat[subfigure][subfigures]

\setupfloat[figure][]
\setupfloat[tableleft][]

\setupcaption[figure][width=max, align={hz, hanging}, style=sstf]

\setupcaption[subfigure][way=bypage, location=top, width=max, align={hz, 
hanging}, inbetween={\blank[1*small]}, style={\smallbodyfont\sstf}, 
numberconversionset=characters, numberstopper={)}, prefixsegments=4:100]





\starttext

\input tufte

\placefigure[left, here, force]{Maincaption}
{\startcombination[2*2]
  {}{}
  {\blackrule[width=5cm,height=10\baselineskip,color=lightgray]}{caption 2}
  {\newbox\MYscratchbox
   \setbox\MYscratchbox\hbox\bgroup
   \blackrule[width=5cm,height=22.24\baselineskip,color=lightgray]\egroup
   \ht\MYscratchbox=10\baselineskip % fake height
   \box\MYscratchbox}{caption 1}
  {\blackrule[width=5cm,height=10\baselineskip,color=lightgray]}{caption 3}
\stopcombination}

\input tufte

\page[yes]

\input tufte
\placefigure[left, here, force]{Maincaption}
{\vbox\bgroup\hsize105mm
   \hbox\bgroup
 \vbox\bgroup\hsize50mm
   \blackrule[height=22.24\baselineskip,width=50mm,color=lightgray]
   \centerline{caption 1}
 \egroup
 \hskip5mm
 \vbox to 23.24\baselineskip\bgroup % +1 for caption
   \hsize50mm
   \vbox\bgroup
 \blackrule[height=10\baselineskip,width=50mm,color=lightgray]
 \centerline{caption 2}
   \egroup
   \vss
   \vbox\bgroup
 \blackrule[height=10\baselineskip,width=50mm,color=lightgray]
 \centerline{caption 3}
   \egroup
 \egroup
   \egroup % hbox
 \egroup % outer vbox
}
\input tufte

\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-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] [OT] ASCII text output

2010-02-16 Thread Aditya Mahajan

On Tue, 16 Feb 2010, Roger Mason wrote:


Hello,

I need to convert an exam written in ConTeXt to an ascii text file like
the following:

NewQuestion,MC,
Title,Which is gem,
QuestionText,Which one of the following is regarded as a gem?
Points,1,
Difficulty,1,
Image,,
Option,0,Feldspar,,
Option,100,Ruby,,
Option,0,Sodium chloride,,
Option,0,Quartz,,
Hint
Feedback

Before I go to the trouble of creating a parser to read the ConTeXt
input and write the desired output I'm wondering if this can be done
with ConTeXt itself.


Can you show a small example of the corresponding tex source?

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

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


Re: [NTG-context] columns and whitespace

2010-02-16 Thread Wolfgang Werners-Lucchini
Hallo Wolfgang,

  Neither \setupwhitespace[halfline]nor
 \setupcolumns[blank=halfline]is
  working. Grid is off by default, isn't it?
 
 Set the whitespace after \startcolumns.
 

This works, but shouldn't be the whitespace a global setting?

I found an other ?solution? 

When BOTH

\setupwhitespace[small]
\setupcolumns[blank=halfline]

is set then halfline is accepted. But halfline  small.

I like context very much, but finding the right option is often a 
game of pure chance.

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

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


Re: [NTG-context] \setuplabeltext [appendix=Appendix ] broken mkiv

2010-02-16 Thread Mojca Miklavec
On Mon, Feb 15, 2010 at 16:31, Alan BRASLAU wrote:
 1. Setting the labeltext appendix=Appendix  with \startappendices
   is broken in mkiv; somewhat works in mkii. What am I doing wrong?
 2. How to set the label correctly in the TOC?

 Alan

 Minimal example

 \setuplabeltext [chapter=Chapter ]   % with trailing space; blank by default
 \setuplabeltext [appendix=Appendix ] % with trailing space; blank by default
 \setuphead [chapter] [placehead=yes]
 \setuplist [chapter] [label=yes,width=5em,alternative=c]

 \starttext

 \startfrontmatter
 \completecontent
 \stopfrontmatter

 \startbodymatter
 \chapter {one}
 \input knuth
 \stopbodymatter

 \startappendices
 \chapter {first}
 \input knuth
 \stopappendices

 \stoptext

While you keep Hans and others busy, here's another thing that puzzled me:

\definehead[appendix][chapter]
\definehead[subappendix][section]

\starttext

\startappendices
\appendix{one}
\subappendix{one.one}
\appendix{two}
\subappendix{two.one}
\stopappendices

\stoptext

In mkii it gives A.1 and B.1 for numbering, but in mkiv it gives A.1
and B.2 (it forgets to reset the counter for subappendix).

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

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


Re: [NTG-context] \setuplabeltext [appendix=Appendix ] broken mkiv

2010-02-16 Thread Hans Hagen

On 16-2-2010 22:39, Mojca Miklavec wrote:

\definehead[appendix][chapter]
\definehead[subappendix][section]

\starttext

\startappendices
\appendix{one}
\subappendix{one.one}
\appendix{two}
\subappendix{two.one}
\stopappendices

\stoptext


hm, looks like startappendices has no proper reset list
--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] [OT] ASCII text output

2010-02-16 Thread Roger Mason
Hello Aditya,

Aditya Mahajan adit...@umich.edu writes:

 On Tue, 16 Feb 2010, Roger Mason wrote:

 Hello,

 I need to convert an exam written in ConTeXt to an ascii text file like
 the following:


 Before I go to the trouble of creating a parser to read the ConTeXt
 input and write the desired output I'm wondering if this can be done
 with ConTeXt itself.

 Can you show a small example of the corresponding tex source?

\def\mcquestionnumber{14}


\mcquestionheader A ruby is a gem of corundum coloured by\crlf
{$A$}: Rutile\crlf{$B$}: Calcium (Ca)\crlf{$C$}: Chromium (Cr)\crlf{$D$}: Iron 
(Fe) and Titanium (Ti)\crlf

\mcquestionfooter

And the desired output is...

NewQuestion,MC,
Title,Ruby coloured by,
QuestionText,A ruby is a gem of corundum coloured by
Points,1,
Difficulty,1,
Image,,
Option,0,Rutile,,
Option,0,Calcium (Ca),,
Option,100,Chromium (Cr),,
Option,0,Iron (Fe) and Titanium (Ti),,
Hint
Feedback

Maybe a regexp would do, followed by a bit of hand editing, but if there
is a way of doing this in ConTeXt that would be very convenient.

Thanks,
Roger

___
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-16 Thread Aditya Mahajan

On Tue, 16 Feb 2010, Peter Münster wrote:


On Tue, Feb 16 2010, Hans Hagen wrote:


as i never use vim for pretty printing i can not quickly test it so in
order to be able to look into it i need a more precise test case


I'm sorry, I can reproduce this error only with the vim module.

Can others reproduce it, or am I the only one?


I can reproduce the error...but I have no idea what is causing it.

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

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


Re: [NTG-context] \setuplabeltext [appendix=Appendix ] broken mkiv

2010-02-16 Thread Hans Hagen

On 16-2-2010 22:39, Mojca Miklavec wrote:


While you keep Hans and others busy, here's another thing that puzzled me:

\definehead[appendix][chapter]
\definehead[subappendix][section]

\starttext

\startappendices
\appendix{one}
\subappendix{one.one}
\appendix{two}
\subappendix{two.one}
\stopappendices

\stoptext

In mkii it gives A.1 and B.1 for numbering, but in mkiv it gives A.1
and B.2 (it forgets to reset the counter for subappendix).


\definestructureresetset  [\v!appendix:\s!default] [] [1] % why was 
this 0


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


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

2010-02-16 Thread Wolfgang Schuster

Am 16.02.10 23:21, schrieb Aditya Mahajan:

I can reproduce the error...but I have no idea what is causing it.

It's caused by the \strut in (t-vim.tex):

\def\dodotypevimfile[#1]#2%
  {\@@vsbefore
   \bgroup
   \initializevimtyping{#1}%
   \runvimsyntax{#2}%
% The strut is needed for the output to be the same when not using
% numbering. Otherwise, multiple par's are ignored. We need to 
figure out
% a mechanism to imitate this behaviour even while using line 
numbering.

\ifconditional\vimtypinginline \else
  \strut%else the first line is shifted to the left
\fi
\input #2-vimsyntax.tmp\relax%
\ifconditional\vimtypinginline \removeunwantedspaces \fi
   \egroup
   \@@vsafter}

Wolfgang

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

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


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

2010-02-16 Thread Aditya Mahajan

On Tue, 16 Feb 2010, Aditya Mahajan wrote:


On Tue, 16 Feb 2010, Peter Münster wrote:


On Tue, Feb 16 2010, Hans Hagen wrote:


as i never use vim for pretty printing i can not quickly test it so in
order to be able to look into it i need a more precise test case


I'm sorry, I can reproduce this error only with the vim module.

Can others reproduce it, or am I the only one?


I can reproduce the error...but I have no idea what is causing it.


Here is a minimal example without the vim-typing module.

\setupbodyfont[ss, 14pt]
\setuppapersize[S6][S6]
\def\startC%
  {\bgroup
  \whitespace
  \obeylines
  \ignoreeofs
  \ignorespaces
  \activatespacehandler{yes}
  \def\obeyedline{\par\strut}%
  \strut}

\def\stopC{\egroup}

\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

which gives

! 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.36 bla;

Aditya



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

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


Re: [NTG-context] One interline space setup trouble

2010-02-16 Thread Vyatcheslav Yatskovsky

Hi,

Sorry for my strive for perfection, but if I set new interline space in 
delimited text using 'before' key, the space BEFORE is affected by 
\setupinterlinespace, while the space AFTER does not. The result is a 
paragraph with visibly unbalanced surroundings. Is there a way to set 
the spaces equal without manual adjusting?


Example:


\setupinterlinespace[line=18pt]

\definedelimitedtext
  [example]
  [spacebefore=small,
   style=\tfx,
   before={\setupinterlinespace[line=12pt]}]

\starttext
Most models we discussing here are specification of dynamic behaviour of 
SUI. This behaviour is described in terms of the interactions over time 
among some entities. The entities in question fall into two broad 
categories: {\em endogenous} (intrinsic to the SUI itself) and {\em 
exogenous} (belonging to a system's environment).


\startexample All processes that take place inside Earth (and other 
planets) are considered endogenous. These processes make the continents 
migrate, push the mountains up, trigger earthquakes and volcanism, and 
are driven by the warmth that is produced in the core of Earth. 
Exogenous processes are all taking place at the outside of the Earth. 
Weathering, erosion, transportation and sedimentation are the main 
exogenous processes.\stopexample


Constants and parameters serve as names for the values that do not 
change during a simulation run. In the case of a {\em constant}, the 
assigned value remains invariant over all experiments. Often it is a 
physical constant, like $g$ -- force of gravity. In the case of a {\em 
parameter}, there normally is an intent to explore the effect upon 
behaviour of a range of different values for the parameter.


\stoptext



B.R.,
Vyatcheslav


___
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] One interline space setup trouble

2010-02-16 Thread Wolfgang Schuster

Am 17.02.10 00:56, schrieb Vyatcheslav Yatskovsky:

Hi,

Sorry for my strive for perfection, but if I set new interline space 
in delimited text using 'before' key, the space BEFORE is affected by 
\setupinterlinespace, while the space AFTER does not. The result is a 
paragraph with visibly unbalanced surroundings. Is there a way to set 
the spaces equal without manual adjusting?
The spaces are equal when as you can see on the second page, to get a 
better result set different value before and after the example environment.


\setupinterlinespace[line=18pt]

\definedelimitedtext
  [example]
  [spacebefore=small,
   %spacebefore=medium,
   %spaceafter=small,
   style=\tfx,
   before={\setupinterlinespace[line=12pt]}]

\showgrid

\starttext

Most models we discussing here are specification of dynamic behaviour of 
SUI. This behaviour is described in terms of the interactions over time 
among some entities. The entities in question fall into two broad 
categories: {\em endogenous} (intrinsic to the SUI itself) and {\em 
exogenous} (belonging to a system's environment).


\startexample
All processes that take place inside Earth (and other planets) are 
considered endogenous. These processes make the continents migrate, push 
the mountains up, trigger earthquakes and volcanism, and are driven by 
the warmth that is produced in the core of Earth. Exogenous processes 
are all taking place at the outside of the Earth. Weathering, erosion, 
transportation and sedimentation are the main exogenous processes.

\stopexample

Constants and parameters serve as names for the values that do not 
change during a simulation run. In the case of a {\em constant}, the 
assigned value remains invariant over all experiments. Often it is a 
physical constant, like $g$ -- force of gravity. In the case of a {\em 
parameter}, there normally is an intent to explore the effect upon 
behaviour of a range of different values for the parameter.


\page

\ruledvtop{\begstrut Most models we discussing here are specification of 
dynamic behaviour of SUI. This behaviour is described in terms of the 
interactions over time among some entities. The entities in question 
fall into two broad categories: {\em endogenous} (intrinsic to the SUI 
itself) and {\em exogenous} (belonging to a system's environment).\endstrut}


\startexample
\ruledvtop{\begstrut All processes that take place inside Earth (and 
other planets) are considered endogenous. These processes make the 
continents migrate, push the mountains up, trigger earthquakes and 
volcanism, and are driven by the warmth that is produced in the core of 
Earth. Exogenous processes are all taking place at the outside of the 
Earth. Weathering, erosion, transportation and sedimentation are the 
main exogenous processes.\endstrut}

\stopexample

\ruledvtop{\begstrut Constants and parameters serve as names for the 
values that do not change during a simulation run. In the case of a {\em 
constant}, the assigned value remains invariant over all experiments. 
Often it is a physical constant, like $g$ -- force of gravity. In the 
case of a {\em parameter}, there normally is an intent to explore the 
effect upon behaviour of a range of different values for the 
parameter.\endstrut}


\stoptext

Wolfgang

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

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


Re: [NTG-context] One interline space setup trouble

2010-02-16 Thread Vyatcheslav Yatskovsky

Hi, Wolfgang,

Thank you for the visual hint. The space around 2th paragraph is equal, 
I agree with you. However, why there is only a half of interline space 
BELOW 1st paragraph, while 3st paragraph has full space ABOVE it? That 
is the root cause of my problem.



\setupinterlinespace[line=28pt]

\definedelimitedtext

[example]

[spacebefore=small,

%spacebefore=medium,

%spaceafter=small,

style=\tfx,

before={\setupinterlinespace[line=12pt]}]

\starttext\ruledvtop{\begstrut Most models we discussing here are 
specification of dynamic behaviour of SUI. This behaviour is described 
in terms of the interactions over time among some entities. The entities 
in question fall into two broad categories: {\em endogenous} (intrinsic 
to the SUI itself) and {\em exogenous} (belonging to a system's 
environment).\endstrut}


\startexample

\ruledvtop{\begstrut All processes that take place inside Earth (and 
other planets) are considered endogenous. These processes make the 
continents migrate, push the mountains up, trigger earthquakes and 
volcanism, and are driven by the warmth that is produced in the core of 
Earth. Exogenous processes are all taking place at the outside of the 
Earth. Weathering, erosion, transportation and sedimentation are the 
main exogenous processes.\endstrut}


\stopexample

\ruledvtop{\begstrut Constants and parameters serve as names for the 
values that do not change during a simulation run. In the case of a {\em 
constant}, the assigned value remains invariant over all experiments. 
Often it is a physical constant, like $g$ -- force of gravity. In the 
case of a {\em parameter}, there normally is an intent to explore the 
effect upon behaviour of a range of different values for the 
parameter.\endstrut}


\stoptext

Regards,
Vyatcheslav
___
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] One interline space setup trouble

2010-02-16 Thread Wolfgang Schuster

Am 17.02.10 01:24, schrieb Vyatcheslav Yatskovsky:
Thank you for the visual hint. The space around 2th paragraph is 
equal, I agree with you. However, why there is only a half of 
interline space BELOW 1st paragraph, while 3st paragraph has full 
space ABOVE it?

What do you mean?

Wolfgang


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

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