Re: [NTG-context] tip

2016-02-15 Thread Rik Kabel

On 2016-02-15 04:56, Hans Hagen wrote:

Hi,

There are quite some probably unknown features in context, here are two:

\enabletrackers[visualizers.justification] % overfull/underfull
\enabletrackers[typesetters.suspects] % suspicious spacing

\setuplayout[width=3mm] \showframe

\starttext

\hsize 3mm

xxx

x

$x$x

x:$x$

\stoptext

Interesting stuff. Can you point to or provide documentation on the 
meaning of the hbar colors? (I did try to follow the code, but could not 
make sense of it.)


With visualizers.justification, I see:

 * green
 o after loose text?
 * blue
 o in margin after tight text?
 * yellow
 o around centering text
 * cyan
 o before flush-right text?
 * magenta
 o after flush-left text?

It is not clear what these all mean (except the yellow). What is the 
difference between magenta and green (I see both in tables and some 
column-set paragraphs)? What is the difference between green and blue? 
Does green show how close to needing intraword space compression while 
blue indicates the degree of compression that was done?


With typesetters.suspects, I see

 * orange with
 o required space (*~*)
 o occasionally between words where no markup appeared (could this
   flag a small word space?)
 * maroon with
 o *’* preceded by whitespace as with the contraction /’tis/
 o *»* preceded by whitespace as an opening quotation mark for German
 * blue with
 o most punctuation, but not *]* or *)*, when at paragraph end or
   not followed by whitespace
 o some punctuation (*@ # & % *** / …***·* *and others) at any
   position
 o *.* preceding a character other than *]*
 o *.* preceding *\,*
 o some asterisms ⁂ (the second and third when three spaced are
   used as a break)
 * green with
 o ς directly preceding another letter (perhaps other terminal
   characters, my sample only has this)
 o digit preceding *,* in index
 o italic letter preceding or following an upright character
 o small-cap letter preceding or following a non-whitespace character

There are some obvious patterns here (font style transitions, for 
example) but the logic some seems less clear. Can we get a guide?

--
rik
___
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] How can I define a dotted underbar in ConTeXt?

2016-02-15 Thread Hans Hagen

On 2/15/2016 10:29 PM, Aditya Mahajan wrote:

On Mon, 15 Feb 2016, Hans Hagen wrote:


On 2/10/2016 10:14 PM, Laurent d'Airsy wrote:

 I would like to create a dotted underbar in ConTeXt with the
| \defineunderbar|mechanism. Is that possible?


i uploaded a beta where you can test:

test {\red\underrandoms{test me}} and \underrandom{test} or
\underrandom{grep} \blank
test {\red\underdashes {test me}} and \underdash  {test} or \underdash
{grep} \blank
test {\red\underdots   {test me}} and \underdot   {test} or \underdot
{grep} \blank


How do you change the thickness of the dots (i.e., set the value of
RuleFactor)?


rulethickness

and, as you like challenges ...

\starttext

\startuseMPgraphic{overarrow}
drawarrow ((0,RuleFactor/2) -- (RuleWidth,RuleFactor/2))
withcolor RuleColor
withpen pencircle scaled RuleThickness ;
\stopuseMPgraphic

\definebar[overarrow] [mp=overarrow,continue=all]

test \overarrow{\red\zwj\leaders\nohrule\hfill\zwj} test

\stoptext



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] How can I define a dotted underbar in ConTeXt?

2016-02-15 Thread Hans Hagen

On 2/15/2016 10:31 PM, Aditya Mahajan wrote:

On Mon, 15 Feb 2016, Hans Hagen wrote:

On 2/10/2016 10:14 PM, Laurent d'Airsy wrote:

 I would like to create a dotted underbar in ConTeXt with the
| \defineunderbar|mechanism. Is that possible?


i uploaded a beta where you can test:

test {\red\underrandoms{test me}} and \underrandom{test} or
\underrandom{grep} \blank
test {\red\underdashes {test me}} and \underdash  {test} or \underdash
{grep} \blank
test {\red\underdots   {test me}} and \underdot   {test} or \underdot
{grep} \blank

still somewhat experimental


While you are looking at the code, there was another question on
tex.stackexchange on bars:

http://tex.stackexchange.com/questions/291946/overstrike-in-context-can-it-overstrike-leaders


How to get bars to work with leaders?

\setuppapersize[A6][A6]
\starttext
\overstrike{Hello\hfill world!} % Works OK

Hello\leaders\hbox{.}\hfill world! % Works OK, nothing special

\overstrike{Hello\leaders\hbox{.}\hfill world!} % Not quite right
\stoptext


continue=all

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] How can I define a dotted underbar in ConTeXt?

2016-02-15 Thread Aditya Mahajan

On Mon, 15 Feb 2016, Hans Hagen wrote:

On 2/10/2016 10:14 PM, Laurent d'Airsy wrote:

 I would like to create a dotted underbar in ConTeXt with the
| \defineunderbar|mechanism. Is that possible?


i uploaded a beta where you can test:

test {\red\underrandoms{test me}} and \underrandom{test} or 
\underrandom{grep} \blank
test {\red\underdashes {test me}} and \underdash  {test} or \underdash {grep} 
\blank
test {\red\underdots   {test me}} and \underdot   {test} or \underdot {grep} 
\blank


still somewhat experimental


While you are looking at the code, there was another question on 
tex.stackexchange on bars:


http://tex.stackexchange.com/questions/291946/overstrike-in-context-can-it-overstrike-leaders

How to get bars to work with leaders?

\setuppapersize[A6][A6]
\starttext
\overstrike{Hello\hfill world!} % Works OK

Hello\leaders\hbox{.}\hfill world! % Works OK, nothing special

\overstrike{Hello\leaders\hbox{.}\hfill world!} % Not quite right
\stoptext

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] How can I define a dotted underbar in ConTeXt?

2016-02-15 Thread Aditya Mahajan

On Mon, 15 Feb 2016, Hans Hagen wrote:


On 2/10/2016 10:14 PM, Laurent d'Airsy wrote:

 I would like to create a dotted underbar in ConTeXt with the
| \defineunderbar|mechanism. Is that possible?


i uploaded a beta where you can test:

test {\red\underrandoms{test me}} and \underrandom{test} or 
\underrandom{grep} \blank
test {\red\underdashes {test me}} and \underdash  {test} or \underdash {grep} 
\blank
test {\red\underdots   {test me}} and \underdot   {test} or \underdot {grep} 
\blank


How do you change the thickness of the dots (i.e., set the value of 
RuleFactor)?


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] How can I define a dotted underbar in ConTeXt?

2016-02-15 Thread Hans Hagen

On 2/15/2016 9:31 PM, Otared Kavian wrote:

Hi Hans,

Thanks for this new nice feature!
However it seems to me that \underdashes produces dots under ords, while 
\underdots produces dashes…
Is it on purpose?


no, will be fixed in next beta


Also the name \underrandoms seems misleading too.


i needed a name and it's kind of random




Best regards: OK


On 15 Feb 2016, at 10:39, Hans Hagen  wrote:

On 2/10/2016 10:14 PM, Laurent d'Airsy wrote:

I would like to create a dotted underbar in ConTeXt with the
|\defineunderbar|mechanism. Is that possible?


i uploaded a beta where you can test:

test {\red\underrandoms{test me}} and \underrandom{test} or \underrandom{grep} 
\blank
test {\red\underdashes {test me}} and \underdash  {test} or \underdash {grep} 
\blank
test {\red\underdots   {test me}} and \underdot   {test} or \underdot {grep} 
\blank

still somewhat experimental

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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
___


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

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




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] How can I define a dotted underbar in ConTeXt?

2016-02-15 Thread Otared Kavian
Hi Hans,

Thanks for this new nice feature!
However it seems to me that \underdashes produces dots under ords, while 
\underdots produces dashes…
Is it on purpose?

Also the name \underrandoms seems misleading too.



Best regards: OK

> On 15 Feb 2016, at 10:39, Hans Hagen  wrote:
> 
> On 2/10/2016 10:14 PM, Laurent d'Airsy wrote:
>> I would like to create a dotted underbar in ConTeXt with the
>> |\defineunderbar|mechanism. Is that possible?
> 
> i uploaded a beta where you can test:
> 
> test {\red\underrandoms{test me}} and \underrandom{test} or 
> \underrandom{grep} \blank
> test {\red\underdashes {test me}} and \underdash  {test} or \underdash {grep} 
> \blank
> test {\red\underdots   {test me}} and \underdot   {test} or \underdot {grep} 
> \blank
> 
> still somewhat experimental
> 
> Hans
> 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | 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
> ___

___
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] Usedirectory and paths in OSX and Windows

2016-02-15 Thread Hans Hagen

On 2/15/2016 5:39 PM, Jaroslav Hajtmar wrote:

Hello ConTeXist.

I use standalone ConTeXt in both OS - Windows and Mac (OSX El Captain)
together for my onedrive synchronized data. Can anyone advise me whether
you can somehow arrange compatibility of paths to my libraries? For
example the following:

In windows I have:

\usedirectory[c:/path/to/myown/library/directory/module/]
\usemodule[mymodule]


Where c:/ is root directory ...


Is there possible put path into library in any "compatibility mode" of
both OS? Is there any possibility define starting point of path?

If the answer is trivial, than sorry. I note that I am a complete
beginner MAC OSX and although I advanced user of Windows, then some
basic things in OSX yet I reveal hardly.


just put your stuff in /texmf-project/tex/context/user

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] Usedirectory and paths in OSX and Windows

2016-02-15 Thread Jaroslav Hajtmar

Hello ConTeXist.

I use standalone ConTeXt in both OS - Windows and Mac (OSX El Captain) 
together for my onedrive synchronized data. Can anyone advise me whether 
you can somehow arrange compatibility of paths to my libraries? For 
example the following:


In windows I have:

\usedirectory[c:/path/to/myown/library/directory/module/]
\usemodule[mymodule]


Where c:/ is root directory ...


Is there possible put path into library in any "compatibility mode" of 
both OS? Is there any possibility define starting point of path?


If the answer is trivial, than sorry. I note that I am a complete 
beginner MAC OSX and although I advanced user of Windows, then some 
basic things in OSX yet I reveal hardly.



Thanx Jaroslav Hajtmar


___
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] fonts

2016-02-15 Thread Hans Hagen

Hi,

finaly a chinese font with hand drawn matching latin shapes

http://www.roman946.de/laowaisung.php

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] Job done event

2016-02-15 Thread Procházka Lukáš Ing .

Thanks, working solution! Lukas


On Sun, 14 Feb 2016 15:38:28 +0100, Wolfgang Schuster 
 wrote:


\appendtoks
... % put your own code here
\to \everystoptext

Wolfgang




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] Absolute position in table cell

2016-02-15 Thread Hans Hagen

On 2/15/2016 11:10 AM, Volker Mische wrote:

On 02/15/2016 10:58 AM, Hans Hagen wrote:

On 2/15/2016 10:32 AM, Volker Mische wrote:

Hi all,

I'd like to position some text in a corner of a natural table cell. I
got as far as being able to put the same text on every cell (a "p" in
the example). Now my problem is, how do I specify the contents of the
overlay/layer on a per cell basis?

Best for me would be if I could define the text directly within the
cell. I'm surely open to a completely different solution that has the
same outcome.

Here's the minimal example of what I currently have.

\starttext

\definelayer  [pagenumber][width=\overlaywidth,height=\overlayheight]
\defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}]


\startsetups pagenumber
\setlayerframed
  [pagenumber]
  [preset=rightbottom]
  {p}
\stopsetups

\bTABLE
\setupTABLE[each][each][background=pagenumber]
\bTR
  \bTD multiline \par text \eTD
  \bTD some cell \par with even \par more \par text \eTD
\eTR
\eTABLE

\stoptext


\bTABLE
   \bTR
 \bTD multiline \par text \eTD
 \bTD[background=pagenumber] some cell \par with even \par more \par
text \eTD
   \eTR
\eTABLE



I wasn't clear enough. I still want to have `pagenumber` on every cell,
but I'd like to be able to define its contents within the cell (instead
of having something like "p" hard-coded).

So I'm looking for something like

 \bTD multiline \par text \setlayercontents[pagenumber]{newval}\eTD
 \bTD some cell \par with even \par more \par text
\setlayercontents[pagenumber]{differentval}\eTD

\startsetups pagenumber
   \setlayerframed
 [pagenumber]
 [preset=rightbottom]
 {\getvariable{table}{p}}
\stopsetups

\bTABLE
   \setupTABLE[each][each][background=pagenumber]
   \bTR
 \bTD \setgvariable{table}{p}{b} multiline \par text \eTD
 \bTD \setgvariable{table}{p}{p} some cell \par with even \par more 
\par text \eTD

   \eTR
\eTABLE


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] Absolute position in table cell

2016-02-15 Thread Volker Mische
On 02/15/2016 10:58 AM, Hans Hagen wrote:
> On 2/15/2016 10:32 AM, Volker Mische wrote:
>> Hi all,
>>
>> I'd like to position some text in a corner of a natural table cell. I
>> got as far as being able to put the same text on every cell (a "p" in
>> the example). Now my problem is, how do I specify the contents of the
>> overlay/layer on a per cell basis?
>>
>> Best for me would be if I could define the text directly within the
>> cell. I'm surely open to a completely different solution that has the
>> same outcome.
>>
>> Here's the minimal example of what I currently have.
>>
>> \starttext
>>
>> \definelayer  [pagenumber][width=\overlaywidth,height=\overlayheight]
>> \defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}]
>>
>>
>> \startsetups pagenumber
>>\setlayerframed
>>  [pagenumber]
>>  [preset=rightbottom]
>>  {p}
>> \stopsetups
>>
>> \bTABLE
>>\setupTABLE[each][each][background=pagenumber]
>>\bTR
>>  \bTD multiline \par text \eTD
>>  \bTD some cell \par with even \par more \par text \eTD
>>\eTR
>> \eTABLE
>>
>> \stoptext
> 
> \bTABLE
>   \bTR
> \bTD multiline \par text \eTD
> \bTD[background=pagenumber] some cell \par with even \par more \par
> text \eTD
>   \eTR
> \eTABLE


I wasn't clear enough. I still want to have `pagenumber` on every cell,
but I'd like to be able to define its contents within the cell (instead
of having something like "p" hard-coded).

So I'm looking for something like

\bTD multiline \par text \setlayercontents[pagenumber]{newval}\eTD
\bTD some cell \par with even \par more \par text
\setlayercontents[pagenumber]{differentval}\eTD

Cheers,
  Volker
___
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] Absolute position in table cell

2016-02-15 Thread Hans Hagen

On 2/15/2016 10:32 AM, Volker Mische wrote:

Hi all,

I'd like to position some text in a corner of a natural table cell. I
got as far as being able to put the same text on every cell (a "p" in
the example). Now my problem is, how do I specify the contents of the
overlay/layer on a per cell basis?

Best for me would be if I could define the text directly within the
cell. I'm surely open to a completely different solution that has the
same outcome.

Here's the minimal example of what I currently have.

\starttext

\definelayer  [pagenumber][width=\overlaywidth,height=\overlayheight]
\defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}]

\startsetups pagenumber
   \setlayerframed
 [pagenumber]
 [preset=rightbottom]
 {p}
\stopsetups

\bTABLE
   \setupTABLE[each][each][background=pagenumber]
   \bTR
 \bTD multiline \par text \eTD
 \bTD some cell \par with even \par more \par text \eTD
   \eTR
\eTABLE

\stoptext


\bTABLE
  \bTR
\bTD multiline \par text \eTD
\bTD[background=pagenumber] some cell \par with even \par more \par 
text \eTD

  \eTR
\eTABLE



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] tip

2016-02-15 Thread Hans Hagen

Hi,

There are quite some probably unknown features in context, here are two:

\enabletrackers[visualizers.justification] % overfull/underfull
\enabletrackers[typesetters.suspects] % suspicious spacing

\setuplayout[width=3mm] \showframe

\starttext

\hsize 3mm

xxx

x

$x$x

x:$x$

\stoptext


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] How can I define a dotted underbar in ConTeXt?

2016-02-15 Thread Hans Hagen

On 2/10/2016 10:14 PM, Laurent d'Airsy wrote:

I would like to create a dotted underbar in ConTeXt with the
|\defineunderbar|mechanism. Is that possible?


i uploaded a beta where you can test:

test {\red\underrandoms{test me}} and \underrandom{test} or 
\underrandom{grep} \blank
test {\red\underdashes {test me}} and \underdash  {test} or \underdash 
{grep} \blank
test {\red\underdots   {test me}} and \underdot   {test} or \underdot 
{grep} \blank


still somewhat experimental

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] Absolute position in table cell

2016-02-15 Thread Volker Mische
Hi all,

I'd like to position some text in a corner of a natural table cell. I
got as far as being able to put the same text on every cell (a "p" in
the example). Now my problem is, how do I specify the contents of the
overlay/layer on a per cell basis?

Best for me would be if I could define the text directly within the
cell. I'm surely open to a completely different solution that has the
same outcome.

Here's the minimal example of what I currently have.

\starttext

\definelayer  [pagenumber][width=\overlaywidth,height=\overlayheight]
\defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}]

\startsetups pagenumber
  \setlayerframed
[pagenumber]
[preset=rightbottom]
{p}
\stopsetups

\bTABLE
  \setupTABLE[each][each][background=pagenumber]
  \bTR
\bTD multiline \par text \eTD
\bTD some cell \par with even \par more \par text \eTD
  \eTR
\eTABLE

\stoptext

Cheers,
  Volker
___
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
___