Re: [NTG-context] setuptyping

2018-09-10 Thread Wolfgang Schuster

To limit the smaller font to \starttyping it should be

    \setuptyping [typing] [style=\ttxx]

or

    \setuptyping [typing] [style=smalltype]

because \starttyping is a generated command like \startXML.

Wolfgang


Taco Hoekwater schrieb am 10.09.18 um 11:32:

Hi Hans,
Replace your two setuptyping lines with:

   \setuptyping[style=\ttxx]
   \definetyping[XML]
   \setuptyping[XML][option=XML,style=italic]

nothing else needs to change

Best wishes,
Taco



On 10 Sep 2018, at 11:22, Hans van der Meer  wrote:



Taco Hoekwater
Elvenkind BV




___
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-10 Thread Marco Patzer
On Thu, 6 Sep 2018 17:00:38 +0200
Wolfgang Schuster  wrote:

> > 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

That's it. The printer confirmed it's working now. Thanks.

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
___

Re: [NTG-context] Modes in tables

2018-09-10 Thread Wolfgang Schuster

Just use a empty line before the table.

Wolfgang


Jan Willem Flamma schrieb am 10.09.18 um 11:49:

Thank you again Wolfgang.

Yet another question:

I like to get rid of the \par and tried integrating it into the tablesetups 
somehow. I've tried adding things like before={\blank} and before\par but 
couldn’t get it to work.


\starttext

\startsetups [tablesetups]
 
 \setupTABLE [start]  [frame=off,rulethickness=0pt,offset=0pt]

 \setupTABLE [column] [1] [width=6cm,align=flushleft]
 \setupTABLE [column] [2] [width=3cm,align=flushleft]
\stopsetups

Calculate the hydrostatic pressure of the following fluid.
\par% <-- can I get rid of this par?
\bTABLE [setups=tablesetups]
 \bTR
 \bTD Well depth \eTD
 \bTD 10100 ft   \eTD
 \bTD 3100 m \eTD
 \eTR
 \bTR
 \bTD Fluid density  \eTD
 \bTD 9.0 ppg\eTD
 \bTD 1.08 kg/l  \eTD
 \eTR
\eTABLE

\stoptext


On 7 Sep 2018, at 20:19, Wolfgang Schuster  
wrote:



Jan Willem Flamma schrieb am 07.09.18 um 20:01:

Thank you Wolfgang.

When comparing the results between tabulate and TABLE, I noticed some different 
results in formatting.

1. When using TABLE the table text is slightly shifted to the right. My initial 
guess was that this is due to the frame thickness but setting rulethickness= 
0pt did not solve this.
How can I get the text in the table to align with the regular text?

In a natural table each cell acts like \framed where you have a offset value on 
each side, to get rid of it set offset to 0pt.

\setupTABLE [start] [frame=off,rulethickness=0pt,offset=0pt]


2. In both cases column widths of 6cm and 3 cm have been set. Yet, the results 
show a difference in column width (not sure which one is correct)

Tabulate adds extra space between the columns but it can be disabled.

\starttabulate[|lw(6cm)j0|i0lw(3cm)|p|]


3. The vertical space between the regular text and the start of the table 
varies. It is larger when using tabulate.

Tabulate add by default a \blank before and after the table which can be 
disabled.

\starttabulate [...] [before=,after=]

or

\setuptabulate [before=,after=]


4. The vertical space between the lines in the table text also varies. It is 
larger when using TABLE.

Setting offset to 0pt reduces the vertical space in natural table but there 
will always be differences between different table types.


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
___


___
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] Construct tables column after column

2018-09-10 Thread Henri Menke
On 09/10/2018 10:47 PM, Jan Willem Flamma wrote:
> Dear list members,
> 
> Table are constructed row after row like in the code below:
> 
> Building up a table row after row
> \par
> \bTABLE
> \bTR
> \bTC Row 1, Column 1 \eTC
> \bTC Row 1, Column 2 \eTC
> \eTR
> \bTR
> \bTC Row 2, Column 1 \eTC
> \bTC Row 2, Column 2 \eTC
> \eTR
> \eTABLE
> 
> But is it possible to construct tables column after column?

If you are not scared of plain TeX macros, you can use \valign.

\starttext

\begingroup
\hsize=5cm
\valign{%
  \strut#\aligntab\strut#\cr
  %
  Column 1, Row 1\aligntab
  Column 1, Row 2\cr
  %
  Column 2, Row 1\aligntab
  Column 2, Row 2\cr
}
\endgroup

\stoptext

> (The code below does not generate output. I merely switched the xTC and xTR 
> to illustate the idea)
> 
> Building up a table column after column
> \par
> \bTABLE
> \bTC
> \bTR Column 1, Row 1 \eTR
> \bTR Column 1, Row 2 \eTR
> \eTC
> \bTC
> \bTR Column 2, Row 1 \eTR
> \bTR Column 2, Row 2 \eTR
> \eTC
> \eTABLE
> 
> Kind regards,
> Jan Willem Flamma
> ___
> 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] drop shadow

2018-09-10 Thread Hans Hagen

On 9/7/2018 2:52 PM, Henning Hraban Ramm wrote:

Hi Hans,
here's my drop shadow experiment.

The first output is good enough, but I'd like the shadow to adapt
automatically to the current font size. I guess you know how to do that...

Even better would be some kind of drop shadow that follows arbitrary
shapes, maybe even letters (like drop shadows e.g. in InDesign do).

\startuniqueMPgraphic{mpnewshadow}{offset}
  MyOffset := \MPvar{offset} ;
  ...
  ... OverlayWidth ...


\defineoverlay[newshadow][\uniqueMPgraphic{mpnewshadow}{offset=.3em}]

you use unique graphics ... so you need to make sure that offset is part 
of the uniqueness


Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] contextbeta moved or server down? SOLVED

2018-09-10 Thread Arthur Reutenauer
On Sat, Sep 08, 2018 at 03:32:47PM +0200, Michael Hallgren wrote:
> Usually port 22, since rsync is usually run in ssh when between distant hosts.

  It’s actually pretty common for port 22 to be blocked, many free wifi
providers do so.  In Hans’ case, since he can change the configuration I
don’t think we can speak of censorship, as Jan Ulrich does.  But it’s
certainly annoying.

Best,

Arthur
___
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] Tabulate backgroundcolors

2018-09-10 Thread Hans Hagen

On 9/10/2018 12:45 PM, Henri Menke wrote:

bump


already fixed but no upload yet (maybe later today)


On 09/07/2018 09:58 AM, Henri Menke wrote:

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
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Construct tables column after column

2018-09-10 Thread Taco Hoekwater
Hi,

This is a funny bit of synchronicity. I made exactly the same request 
for extreme tables (\startxtable) during the ConTeXt meeting. Would
xtables work for you as well? It would be easier for Hans to set it up
in that because a) bTABLE is ‘like html’ which would not allow a swap
like that and b) xtable has explicits command for rows and cells, but 
not columns, so that could be added without any extra effort and confusion.

Best wishes,
Taco

> On 10 Sep 2018, at 12:47, Jan Willem Flamma  wrote:
> 
> Dear list members,
> 
> Table are constructed row after row like in the code below:
> 
> Building up a table row after row
> \par
> \bTABLE
>\bTR
>\bTC Row 1, Column 1 \eTC
>\bTC Row 1, Column 2 \eTC
>\eTR
>\bTR
>\bTC Row 2, Column 1 \eTC
>\bTC Row 2, Column 2 \eTC
>\eTR
> \eTABLE
> 
> But is it possible to construct tables column after column?
> (The code below does not generate output. I merely switched the xTC and xTR 
> to illustate the idea)
> 
> Building up a table column after column
> \par
> \bTABLE
>\bTC
>\bTR Column 1, Row 1 \eTR
>\bTR Column 1, Row 2 \eTR
>\eTC
>\bTC
>\bTR Column 2, Row 1 \eTR
>\bTR Column 2, Row 2 \eTR
>\eTC
> \eTABLE
> 
> Kind regards,
> Jan Willem Flamma
> ___
> 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
> ___

Taco Hoekwater
Elvenkind BV




___
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] contextbeta moved or server down? SOLVED

2018-09-10 Thread Michael Hallgren
Usually port 22, since rsync is usually run in ssh when between distant hosts.

Cheers,
mh

Le 8 sept. 2018 à 15:19, à 15:19, Hans van der Meer  a écrit:
>I am not inclined to react so strongly. In general I am happy when the
>ISP provides its customers with default save settings. It is best for
>most people, I think.
>
>Perhaps the rsync port 873 should have been opened by default in the
>firewall, because I suspect more and more people will use it to backup
>their data over the internet.
>
>But in general I can live with changing the modem settings temporarily,
>because I am updating the ConText minimals infrequently only.
>
>> On 8 Sep 2018, at 14:34, juh  wrote:
>>
>> Hi Hans,
>>
>> I think that this is a scandal, as it is nothing else but censorship
>by
>> your ISP.
>>
>> I am a member of a cooperative hoster in Germany (Hostsharing) and
>> Telekom, the biggest German ISP, blocked our mail servers for years
>in their
>> routers they bundle with internet access services.
>>
>> We had to complain at the Netzagentur a state agency which has to
>> guarantee net neutrality in Germany – we were successful.
>>
>>
>https://www.hostsharing.net/blog/2018/06/24/telekom-speedport-mailblockade-verfa
>> hren-beendet/
>>
>> Maybe the context community should complain somewhere about this.
>>
>> juh
>>
>> --
>> Autoren-Homepage: . http://literatur.hasecke.com
>> Satiren & Essays: . http://www.sudelbuch.de
>> Privater Blog:  http://www.hasecke.eu
>> Netzliteratur-Projekt:  http://www.generationenprojekt.de
>>
>>
>>
>___
>> 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
>>
>___
>
>dr. Hans van der Meer
>
>
>
>
>
>
>___
>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] HTTPS on wiki.contextgarden.net

2018-09-10 Thread Taco Hoekwater
Wiki Ssl later today.

> Op 10 sep. 2018 om 11:54 heeft Alan Braslau  het 
> volgende geschreven:
> 
> In the meantime, don't create an account... ;-)
> 
> Alan
> 
>> On 9 Sep 2018, at 09:22, Henri Menke  wrote:
>> 
>> Dear list,
>> 
>> The page wiki.contextgarden.net processes personal data.  I can make an
>> account there with my real name, and it stores my email address.  Due to
>> the GDPR [1], personal information has to be transmitted encrypted to
>> lock out third parties.  Could you please enable SSL on the Wiki?
>> Interestingly, the modules page [2] already has SSL.
>> 
>> Cheers, Henri
>> 
>> [1] https://en.wikipedia.org/wiki/General_Data_Protection_Regulation
>> [2] https://modules.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
>> ___
> 
> ___
> 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] Construct tables column after column

2018-09-10 Thread Jan Willem Flamma
Dear list members,

Table are constructed row after row like in the code below:

Building up a table row after row
\par
\bTABLE
\bTR
\bTC Row 1, Column 1 \eTC
\bTC Row 1, Column 2 \eTC
\eTR
\bTR
\bTC Row 2, Column 1 \eTC
\bTC Row 2, Column 2 \eTC
\eTR
\eTABLE

But is it possible to construct tables column after column?
(The code below does not generate output. I merely switched the xTC and xTR to 
illustate the idea)

Building up a table column after column
\par
\bTABLE
\bTC
\bTR Column 1, Row 1 \eTR
\bTR Column 1, Row 2 \eTR
\eTC
\bTC
\bTR Column 2, Row 1 \eTR
\bTR Column 2, Row 2 \eTR
\eTC
\eTABLE

Kind regards,
Jan Willem Flamma
___
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] Tabulate backgroundcolors

2018-09-10 Thread Henri Menke
bump

On 09/07/2018 09:58 AM, Henri Menke wrote:
> 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] HTTPS on wiki.contextgarden.net

2018-09-10 Thread Alan Braslau
In the meantime, don't create an account... ;-)

Alan

> On 9 Sep 2018, at 09:22, Henri Menke  wrote:
> 
> Dear list,
> 
> The page wiki.contextgarden.net processes personal data.  I can make an
> account there with my real name, and it stores my email address.  Due to
> the GDPR [1], personal information has to be transmitted encrypted to
> lock out third parties.  Could you please enable SSL on the Wiki?
> Interestingly, the modules page [2] already has SSL.
> 
> Cheers, Henri
> 
> [1] https://en.wikipedia.org/wiki/General_Data_Protection_Regulation
> [2] https://modules.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
> ___

___
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-10 Thread Jan Willem Flamma
Thank you again Wolfgang.

Yet another question: 

I like to get rid of the \par and tried integrating it into the tablesetups 
somehow. I've tried adding things like before={\blank} and before\par but 
couldn’t get it to work.


\starttext

\startsetups [tablesetups]

\setupTABLE [start]  [frame=off,rulethickness=0pt,offset=0pt]
\setupTABLE [column] [1] [width=6cm,align=flushleft]
\setupTABLE [column] [2] [width=3cm,align=flushleft]
\stopsetups

Calculate the hydrostatic pressure of the following fluid.
\par% <-- can I get rid of this par?
\bTABLE [setups=tablesetups]
\bTR
\bTD Well depth \eTD
\bTD 10100 ft   \eTD
\bTD 3100 m \eTD
\eTR
\bTR
\bTD Fluid density  \eTD
\bTD 9.0 ppg\eTD
\bTD 1.08 kg/l  \eTD
\eTR
\eTABLE

\stoptext

> On 7 Sep 2018, at 20:19, Wolfgang Schuster 
>  wrote:
> 
> 
> 
> Jan Willem Flamma schrieb am 07.09.18 um 20:01:
>> Thank you Wolfgang.
>> 
>> When comparing the results between tabulate and TABLE, I noticed some 
>> different results in formatting.
>> 
>> 1. When using TABLE the table text is slightly shifted to the right. My 
>> initial guess was that this is due to the frame thickness but setting 
>> rulethickness= 0pt did not solve this.
>> How can I get the text in the table to align with the regular text?
> 
> In a natural table each cell acts like \framed where you have a offset value 
> on each side, to get rid of it set offset to 0pt.
> 
> \setupTABLE [start] [frame=off,rulethickness=0pt,offset=0pt]
> 
>> 2. In both cases column widths of 6cm and 3 cm have been set. Yet, the 
>> results show a difference in column width (not sure which one is correct)
> 
> Tabulate adds extra space between the columns but it can be disabled.
> 
> \starttabulate[|lw(6cm)j0|i0lw(3cm)|p|]
> 
>> 3. The vertical space between the regular text and the start of the table 
>> varies. It is larger when using tabulate.
> 
> Tabulate add by default a \blank before and after the table which can be 
> disabled.
> 
> \starttabulate [...] [before=,after=]
> 
> or
> 
> \setuptabulate [before=,after=]
> 
>> 4. The vertical space between the lines in the table text also varies. It is 
>> larger when using TABLE.
> 
> Setting offset to 0pt reduces the vertical space in natural table but there 
> will always be differences between different table types.
> 
> 
> 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
___

Re: [NTG-context] setuptyping

2018-09-10 Thread Taco Hoekwater
Hi Hans,
Replace your two setuptyping lines with:

  \setuptyping[style=\ttxx]
  \definetyping[XML]
  \setuptyping[XML][option=XML,style=italic]

nothing else needs to change

Best wishes,
Taco


> On 10 Sep 2018, at 11:22, Hans van der Meer  wrote:
> 
> 

Taco Hoekwater
Elvenkind BV




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

2018-09-10 Thread Hans van der Meer
I want to differentiate the typing of XML-code with \startXML and other text with \starttyping.That doesn’t work as I expect or I misinterpret something.The minimal example shows that in the following code there is no difference between using  \startXML or \starttyping

typingsetup.pdf
Description: Adobe PDF document


typingsetup.tex
Description: Binary data
.
dr. Hans van der Meer

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