Re: [NTG-context] labeling in meta post

2018-09-06 Thread Henri Menke
On 07/09/18 10:55, Jeong Dal wrote:
> Hi,
> 
> What is the difference between {\delta} and \delta?
> Former is OK, but the second is not compiled.
> 
> Here is a MWE.
> 
> 
> \startbuffer[delta]
> label.bot(btex ${\delta}$ etex, (1cm,0)); %
> %label.bot(btex $\delta$ etex, (3cm,0));

Why not just

label.bot("$\delta$", (3cm,0));

> label.bot(btex $\frac{2-\delta}{2}$ etex, (5cm,0));   %
> \stopbuffer
> \starttext
> \processMPbuffer[delta]
> \stoptext
> 
> Best regards,
> 
> Dalyoung
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] labeling in meta post

2018-09-06 Thread Jeong Dal
Hi,

What is the difference between {\delta} and \delta?
Former is OK, but the second is not compiled.

Here is a MWE.


\startbuffer[delta]
label.bot(btex ${\delta}$ etex, (1cm,0));   %
%label.bot(btex $\delta$ etex, (3cm,0));
label.bot(btex $\frac{2-\delta}{2}$ etex, (5cm,0)); %
\stopbuffer
\starttext
\processMPbuffer[delta]
\stoptext

Best regards,

Dalyoung
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Tabulate backgroundcolors

2018-09-06 Thread Henri Menke
Dear list,

I'm trying to color the background of “p” cells in tabulate.  The MWE
below will fail with the error “Undefined control sequence \IMPOSSIBLE”
but when I enter scrollmode to finish the run, I get a PDF which looks
exactly as intended.  Looks like it's not \IMPOSSIBLE after all but
there is actually just a definition missing.  Can you please fix this?

Cheers, Henri

---

\starttext
\starttabulate[|CM{black}l|CM{gray}p|][distance=none]
  \HL
  \VL \color[white]{\bf Table NAME} \CM[black] \VL\NR
  \HL
  \VL \VL \bf Description: \VL\NR
  \HL
  \VL \VL
\startitemize
\dorecurse{60}{\item Item \recurselevel}
\stopitemize
  \VL\NR
  \HL
\stoptabulate
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Modes in tables

2018-09-06 Thread Wolfgang Schuster

You can’t do this with tabulate but it’s possible with natural tables.

%\enablemode [BL]

\starttext

\startsetups [tablesetups]
    \setupTABLE [start]  [frame=off]
    \setupTABLE [column] [1] [width=6cm,align=flushleft]
    \setupTABLE [column] [2] [width=2cm,align=flushleft]
\stopsetups

\bTABLE [setups=tablesetups]
    \bTR
        \bTD Well depth \eTD
        \bTD 10100 ft \eTD
        \startmode [BL] \bTD \unit{3100 meter} \eTD \stopmode
    \eTR
    \bTR
        \bTD Fluid density \eTD
        \bTD 9.0 ppg \eTD
        \startmode [BL] \bTD \unit{1.08 kilogram per liter} \eTD \stopmode
    \eTR
\eTABLE

\stoptext

Wolfgang


Jan Willem Flamma schrieb am 06.09.18 um 11:44:

Dear list members

I would like to disable to third column in the question when mode BL is not 
enabled.

When mode BL is enabled (using the toggle), the third column should of course 
appear again.

How can I achieve this?

Regards,
Jan Willem


MWE:

\starttext

%Toggles
%\enablemode[BL]

\defineblock[question]
\defineblock[answer]

\hideblocks[question]
\hideblocks[answer]
  


\defineenumeration
 [question]
 [text=Question,
  after={\blank[2*big]},
  inbetween={\blank[nowhite]},
  way=bychapter,
  prefixsegments=chapter,
  prefix=yes]

  
\defineenumeration

 [answer]
 [counter=answer,
  text=,
  width=,
  before={\blank[nowhite]},
  after={\blank[nowhite]},
  indenting=no,
  titledistance=1cm,
  location=inmargin,
  alternative=left,
  headstyle=,
  way=bychapter,
  prefixsegments=chapter,
  prefix=yes]
  
  
\beginquestion

\startquestion
Calculate the hydrostatic pressure of the following fluid.
\starttabulate[|lw(6cm)|lw(3cm)|\doifmode{BL}{p|}]
\NC Well depth   \NC 10100 ft\doifmode{BL}{\NC 3100 m}  
 \NC \NR
\NC Fluid density\NC 9.0 ppg \doifmode{BL}{\NC 1.08 kg/l}   
\NC \NR
\stoptabulate
\stopquestion
\endquestion
\beginanswer
\startanswer
4726 psi\doifmode{BL}{ / 328 bar}
\stopanswer
\endanswer


\startsection[title=Questions]
 \useblocks[question]
 \startsubsubsection[title=Answers]
 \useblocks[answer]
 \stopsubsubsection
\stopsection

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Printer requires vectorised contour path for cut contour

2018-09-06 Thread Wolfgang Schuster

Marco Patzer schrieb am 06.09.18 um 12:49:

Hi!

I created a non-rectangular shaped document. The printer requires a cut
contour in a particular colour, no problem so far. However, he complained
about a missing “single continuous closed vectorised contour path”. The one I
provided is an area, not a contour path.

I created the path as follows:

\starttext
   \startMPcode
 draw origin -- (50mm, 0mm) -- (60mm, 20mm) -- (10mm, 20mm) -- origin;
   \stopMPcode
\stoptext

Any clue how to create such a vectorised contour path?


Use cycle to close the path.

\starttext
  \startMPcode
    draw origin -- (50mm, 0mm) -- (60mm, 20mm) -- (10mm, 20mm) -- cycle ;
  \stopMPcode
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Printer requires vectorised contour path for cut contour

2018-09-06 Thread Marco Patzer
Hi!

I created a non-rectangular shaped document. The printer requires a cut
contour in a particular colour, no problem so far. However, he complained
about a missing “single continuous closed vectorised contour path”. The one I
provided is an area, not a contour path.

I created the path as follows:

\starttext
  \startMPcode
draw origin -- (50mm, 0mm) -- (60mm, 20mm) -- (10mm, 20mm) -- origin;
  \stopMPcode
\stoptext

Any clue how to create such a vectorised contour path?

Marco
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Modes in tables

2018-09-06 Thread Jan Willem Flamma
Dear list members

I would like to disable to third column in the question when mode BL is not 
enabled.

When mode BL is enabled (using the toggle), the third column should of course 
appear again.

How can I achieve this?

Regards,
Jan Willem


MWE: 

\starttext

%Toggles
%\enablemode[BL]

\defineblock[question]
\defineblock[answer]

\hideblocks[question] 
\hideblocks[answer] 
 

\defineenumeration
[question]
[text=Question,
 after={\blank[2*big]},
 inbetween={\blank[nowhite]},
 way=bychapter,
 prefixsegments=chapter,
 prefix=yes]

 
\defineenumeration
[answer]
[counter=answer,
 text=,
 width=,
 before={\blank[nowhite]},
 after={\blank[nowhite]},
 indenting=no,
 titledistance=1cm,
 location=inmargin,
 alternative=left,
 headstyle=,
 way=bychapter,
 prefixsegments=chapter,
 prefix=yes]
 
 
\beginquestion
\startquestion
Calculate the hydrostatic pressure of the following fluid. 
\starttabulate[|lw(6cm)|lw(3cm)|\doifmode{BL}{p|}]
\NC Well depth   \NC 10100 ft\doifmode{BL}{\NC 3100 m}  
 \NC \NR
\NC Fluid density\NC 9.0 ppg \doifmode{BL}{\NC 1.08 kg/l}   
\NC \NR
\stoptabulate
\stopquestion
\endquestion
\beginanswer
\startanswer
4726 psi\doifmode{BL}{ / 328 bar}
\stopanswer
\endanswer


\startsection[title=Questions]
\useblocks[question]
\startsubsubsection[title=Answers]
\useblocks[answer]
\stopsubsubsection
\stopsection

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___