Re: [NTG-context] natural tables to extreme tables

2018-02-28 Thread Thomas A. Schmitz

On 02/28/2018 11:35 PM, Hans Hagen wrote:
page 26 of the xtable manual ... you define tagged settings and can use 
these tag for cells and rows


OK Hans, I see that, thanks a lot! But it still means I have to tag the 
cells/rows? As always, I'm playing with xml and Lua and am trying to 
write some universal code that allows me to try out different table 
mechanisms. Just to explain (don't spend time on this, I'm just playing 
around): I collect my table settings like this:


\startsetups section_table
\setupframedtablecolumn [1] [width=0.7cm,align=left]
\setupTABLE [column] [1] [width=0.7cm,align=left]
\stopsetups

In my Lua file, I start tables like this:

starttable()
startrow()
startcell() etc.

and can switch from one mechanism to another by having these aliases:

starttable = context.startframedtable
starttable = context.bTABLE
starttable  = context.startembeddedxtable

and commenting out the mechanisms that I don't need. But it looks like 
the xtable needs additional arguments to work...


Thanks, and all best

Thomas
___
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] natural tables to extreme tables

2018-02-28 Thread Hans Hagen

On 2/28/2018 10:28 PM, Thomas A. Schmitz wrote:

Hi,

for my experimenting with tables: is there a way to set up individual 
columns in xtables? Maybe I'm thick tonight, but I couldn't find 
anything in the manual or the source. If I have this setup


\setupTABLE [frame=on,split=repeat]
\setupTABLE [column] [1] [width=0.7cm,align=left]
\setupTABLE [column] [2] [width=0.5cm,align=left]
\setupTABLE [column] [3] [width=6cm,align={normal,verytolerant,stretch}]
\setupTABLE [column] [4] [width=8cm,align={normal,verytolerant,stretch}]
\setupTABLE [column] [5] [width=1cm,align={normal,verytolerant,stretch}]

how would this translate into \setupxtable?


page 26 of the xtable manual ... you define tagged settings and can use 
these tag for cells and rows


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

[NTG-context] natural tables to extreme tables

2018-02-28 Thread Thomas A. Schmitz

Hi,

for my experimenting with tables: is there a way to set up individual 
columns in xtables? Maybe I'm thick tonight, but I couldn't find 
anything in the manual or the source. If I have this setup


\setupTABLE [frame=on,split=repeat]
\setupTABLE [column] [1] [width=0.7cm,align=left]
\setupTABLE [column] [2] [width=0.5cm,align=left]
\setupTABLE [column] [3] [width=6cm,align={normal,verytolerant,stretch}]
\setupTABLE [column] [4] [width=8cm,align={normal,verytolerant,stretch}]
\setupTABLE [column] [5] [width=1cm,align={normal,verytolerant,stretch}]

how would this translate into \setupxtable?

Thomas
___
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] synctex file is not compressed

2018-02-28 Thread Ulrike Fischer
Am Tue, 27 Feb 2018 09:02:57 +0100 schrieb Hans Hagen:

>> I seem to be not able to get a synctex.gz instead of a synctex file.

>> I tried
>>   context --synctex=1 file
>> and
>>   context --synctex=-1 file
>> but in both cases a simple synctex-file is created.
>> 
>> Is this normal?

> Sure,
...

> but anyway, i can only test with summatra pdf and it works ok here (last 
> time i checked)

The synctex file works, that is not my problem. But arara creates by
default synctex.gz files and my editor gets confused if both
variants are used. So I was trying to unify the synctex file types
and wondered why it (no longer?) worked with context.

I can find a way around the problem. 

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.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
___

Re: [NTG-context] How to do an inline itemization?

2018-02-28 Thread Thomas A. Schmitz

On 02/28/2018 11:33 AM, Dr. Thomas Möbius wrote:

How to do an in-line / in-text itemization?

I would like to (i) enumerate something (ii) in the text (iii) but I 
don't know how.


Thank you!
Thomas


\starttext

\startitemize[n,text]
\startitem
One
\stopitem
\startitem
Two
\stopitem
\stopitemize

\stoptext

I think this isn't documented in the wiki and should be added.

Thomas
___
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] 12th ConTeXt Meeting, Prague–Sibřina, Czech Republic

2018-02-28 Thread Jano Kula
Dear list,

ConTeXt Group is happy to announce the 12th ConTeXt Meeting.

The meeting will be held from Sunday to Saturday, September 2–8, 2018.
Its venue is a small farm U Škodů  in Sibřina

next to Prague, Czech Republic.

Details and registration will be available soon on the meeting page
.

Have a nice day and stay tuned,
Jano
___
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] How to do an inline itemization?

2018-02-28 Thread Dr . Thomas Möbius

How to do an in-line / in-text itemization?

I would like to (i) enumerate something (ii) in the text (iii) but I 
don't know how.


Thank you!
Thomas
___
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] Question about text offset

2018-02-28 Thread Hans Hagen

On 2/28/2018 5:28 AM, Henri Menke wrote:

Dear list,

I was wondering, why is the text in the main text block offset by .25\exheight
from above (and below)?  Also, can you point me to the source line where this
offset is added in shipout because it is not there in \setuplayout.  If you
don't know what I mean, see MWE below.

Cheers, Henri

---

\definelayer
   [pagebg]
   [width=\textwidth,
    height=\textheight]

\setupbackgrounds
   [text][background=pagebg]

\showframe

\starttext

\setlayer
   [pagebg]
   [voffset=.25\exheight] % why?
   {\vbox{\strut\input lorem\par}}

\input lorem\par

\stoptext

\definelayer
  [pagebg]
  [width=\textwidth,
   height=\textheight]

\setupbackgrounds
  [text][background=pagebg]

\showframe

\starttext

\setlayer
  [pagebg]
  {\vbox{\red\strut\input lorem\par}}

\setlayer
  [pagebg]
  [voffset=\dimexpr\topskip-\strutht\relax] % why?
  {\vbox{\green\strut\input lorem\par}}

\setlayer
  [pagebg]
  {\vbox{\blue\topskipcorrection\strut\input lorem\par}}

\input lorem\par

\stoptext


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