Re: [NTG-context] professional looking tables

2016-12-22 Thread Aditya Mahajan

On Sun, 18 Dec 2016, Csikos Bela wrote:


Dear context users:

In latex I could make professional looking tables using booktabs module.
Using longtable package I could make nice looking multipage tables.

I see that context offers several table environments. Which one of them
is suitable for making  professional (publication quality) tables?

The requirements for such tables are the follows:

- Only horizontal rules are needed
- Ability to set the rule's thickness for top rule, bottom rule, middle rule
- Ability to set the distance between rules and table content
- Ability to set rule length shorter than cell or row width on both left and 
right sides
- Ability to set rules for spanning only some of the columns


Natural tables can give the same visual output as booktabs but the only 
way to shorten rules is to either use a "fake" column as spacer or use 
metapost to draw borders. For simple tables, you could get around this by 
being a little creative.


For example, here is the example from the booktabs package with very 
little manual tweaking.


\startsetups booktabs
  \setupTABLE[frame=off, rulethickness=0.5bp, loffset=1em]
  \setupTABLE[column][first][loffset=0em]
  \setupTABLE[row][first][topframe=on, rulethickness=1.5bp]
  \setupTABLE[row][last] [bottomframe=on, rulethickness=1bp]
\stopsetups

\starttext
\bTABLE[setups=booktabs]
  \setupTABLE[column][3][align=flushright]
  \bTR[topframe=on]
\bTD[nc=2, align=middle] Item \eTD
\bTD \eTD
  \eTR
  \bTR[bottomframe=on]
\bTD[topframe=on] Animal \eTD
\bTD[topframe=on] Description \eTD
\bTD Price (\$) \eTD
  \eTR
  \bTR
\bTD Gnat \eTD
\bTD per gram \eTD
\bTD 13.65\eTD
  \eTR
  \bTR
\bTD \eTD
\bTD each \eTD
\bTD 0.01 \eTD
  \eTR
  \bTR
\bTD Gnu \eTD
\bTD stuffed \eTD
\bTD 92.50   \eTD
  \eTR
  \bTR
\bTD Emu \eTD
\bTD stuffed \eTD
\bTD 33.33 \eTD
  \eTR
  \bTR
\bTD Armadillo \eTD
\bTD frozen\eTD
\bTD 8.99  \eTD
  \eTR
\eTABLE
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] "\" in text from "\comment"

2016-12-22 Thread Pablo Rodriguez
On 12/21/2016 10:51 PM, Hans Hagen wrote:
> On 12/21/2016 9:29 PM, Pablo Rodriguez wrote:
>> [...]
>> Text from comment reads "\Ux {5C}ConTeXt\Ux {5C} is great". It should
>> read "\ConTeXt\ is great".
>>
>> Am I missing something or is this a real bug?
> 
> \startxmlsetups xml:pre:code
>  solution one \begingroup
>  \expandUx
>  \comment[symbol=Key, location=inmargin,color=yellow]{\xmlflush{#1}}
>  \endgroup
>  \par
>  solution two
>  \comment[symbol=Key, location=inmargin,color=yellow]{\xmlpure{#1}}
>  \par
>  \xmlprettyprint{#1}{tex}
> \stopxmlsetups

Many thanks for your help, Hans.

Pablo
-- 
http://www.ousia.tk
___
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] btx/xml tree - entry with missing field

2016-12-22 Thread Michael Eidenbenz
thanks a lot hans!

> Am 22.12.2016 um 18:30 schrieb Hans Hagen :
> 
> On 12/22/2016 6:06 PM, Michael Eidenbenz wrote:
>> Hello
>> 
>> I use the xml interface to list all publications that dont match a
>> search criteria:
>> 
>> /field[@name='keywords'
>>and not (contains(text(),'alpha'))]
>> 
>> but there are entries where the keywords field is missing.
>> how can I include them (here "test-3") in the output?
>> 
>> Thanks Michael
>> 
>> --
>> 
>> \startbuffer[bib]
>> 
>> @article{test-1,
>>   title= {Article One},
>>   author   = {A. Foo and X. Bar},
>>   year = {2001},
>>   keywords = {alpha},
>> }
>> 
>> @book{test-2,
>>   title= {Book Two},
>>   author   = {B. Foo},
>>   year = {2002},
>>   keywords = {beta},
>> }
>> 
>> @whatever{test-3,
>>   title= {Book Three},
>>   author   = {C. Foo},
>>   year = {2003},
>> }
>> 
>> \stopbuffer
>> 
>> \usebtxdataset [database] [bib.buffer]
>> \convertbtxdatasettoxml [database]
>> 
>> \startxmlsetups btx:tag
>> \hbox{\xmlatt{#1}{tag}}
>> \stopxmlsetups
>> 
>> \startxmlsetups btx:demo
>>   \xmlfilter {#1} {
>> /bibtex
>> /*
>> /field[@name='keywords'
>>and not (contains(text(),'alpha'))]
>> /..
>> /command(btx:tag)
>>   }
>> \stopxmlsetups
>> 
>> \starttext
>> \xmlsetup{btx:database}{btx:demo}
>> \stoptext
> 
> \startxmlsetups btx:demo
>   \xmlfilter {#1} {/bibtex/*/command(btx:demo:action)}
> \stopxmlsetups
> 
> \startxmlsetups btx:demo:action
>\xmldoifelse {#1} {/field[@name='keywords']} {
>\xmlfilter {#1} {
> /field[@name='keywords'
>and not contains(text(),'alpha')]
> /..
> /command(btx:tag)
>}
>} {
>\xmlsetup{#1}{btx:tag}
>   }
> \stopxmlsetups
> 
> 
> -
>  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
> ___

___
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] professional looking tables

2016-12-22 Thread Csikos Bela
Hans Hagen írta:
>On 12/22/2016 4:02 PM, Csikos Bela wrote:
>> Pablo Rodriguez írta:
>>> On 12/18/2016 07:19 PM, Csikos Bela wrote:
 Dear context users:
 [...]
 I see that context offers several table environments. Which one of them
 is suitable for making  professional (publication quality) tables?
 [...]
 Is this feasible in current context?
>>>
>>> Dear Csikos,
>>>
>>> http://www.pragma-ade.com/general/manuals/xtables-mkiv.pdf is your
>>> friend here.
>>
>> Thank you. I started to learn xtables but I have problems. When I use
>> toffset and boffset the table is not rendered correctly. The width of the
>> columns are not correct, the defined widths are not applied to the columns.
>> See my example code below and the corresponding pdf result, xtables example 
>> 1.
>> I use context beta standalone: ConTeXt  ver: 2016.10.12 17:26 MKIV beta  
>> fmt: 2016.10.13  int: english/english.
>>
>> Code:
>>
>> \starttext
>>
>> xtables example 1
>>
>> \startxtable[frame=off,topframe=on,bottomframe=on,toffset=0.4cm,boffset=0.6cm]
>> \startxrow
>> \startxcell[width=4cm] First Column \stopxcell
>> \startxcell[width=5cm] Second Column \stopxcell
>> \startxcell[width=2cm] Third Column \stopxcell
>> \stopxrow
>> \startxrow
>> \startxcell Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
>> Curabitur massa turpis, semper quis fringilla ut, viverra nec risus. 
>> \stopxcell
>> \startxcell Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
>> \stopxcell
>> \startxcell Lorem ipsum \stopxcell
>> \stopxrow
>> \startxrow
>> \startxcell Pellentesque habitant morbi tristique senectus et netus 
>> \stopxcell
>> \startxcell Pellentesque habitant morbi tristique senectus et netus 
>> \stopxcell
>> \startxcell Pellentesque \stopxcell
>> \stopxrow
>> \startxrow
>> \startxcell Donec nunc lorem, sollicitudin vel sodales eget 
>> \stopxcell
>> \startxcell Donec nunc lorem, sollicitudin vel sodales eget Donec 
>> nunc lorem, sollicitudin vel sodales eget \stopxcell
>> \startxcell Donec \stopxcell
>> \stopxrow
>> \stopxtable
>>
>> \stoptext
>>
>> How can I fix this?
>
>\setupxtable[one]  [width=4cm]
>\setupxtable[two]  [width=5cm]
>\setupxtable[three][width=2cm]
>
>\startxtable[frame=off,topframe=on,bottomframe=on,toffset=0.4cm,boffset=0.6cm]
> \startxrow
> \startxcell[one]   First Column \stopxcell
> \startxcell[two]   Second Column \stopxcell
> \startxcell[three] Third Column \stopxcell
> \stopxrow
> \startxrow
> \startxcell[one]   Lorem ipsum dolor sit amet, consectetur 
>adipiscing elit. Curabitur massa turpis, semper quis fringilla ut, 
>viverra nec risus. \stopxcell
> \startxcell[two]   Lorem ipsum dolor sit amet, consectetur 
>adipiscing elit. \stopxcell
> \startxcell[three] Lorem ipsum \stopxcell
> \stopxrow
> \startxrow
> \startxcell[one]   Pellentesque habitant morbi tristique 
>senectus et netus \stopxcell
> \startxcell[two]   Pellentesque habitant morbi tristique 
>senectus et netus \stopxcell
> \startxcell[three] Pellentesque \stopxcell
> \stopxrow
> \startxrow
> \startxcell[one]   Donec nunc lorem, sollicitudin vel sodales 
>eget \stopxcell
> \startxcell[two]   Donec nunc lorem, sollicitudin vel sodales 
>eget Donec nunc lorem, sollicitudin vel sodales eget \stopxcell
> \startxcell[three] Donec \stopxcell
> \stopxrow
>\stopxtable
>

OK, this works.
Thank you for the very fast answer!

bcsikos
_
___
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] btx/xml tree - entry with missing field

2016-12-22 Thread Hans Hagen

On 12/22/2016 6:06 PM, Michael Eidenbenz wrote:

Hello

I use the xml interface to list all publications that dont match a
search criteria:

 /field[@name='keywords'
and not (contains(text(),'alpha'))]

but there are entries where the keywords field is missing.
how can I include them (here "test-3") in the output?

Thanks Michael

--

\startbuffer[bib]

@article{test-1,
   title= {Article One},
   author   = {A. Foo and X. Bar},
   year = {2001},
   keywords = {alpha},
}

@book{test-2,
   title= {Book Two},
   author   = {B. Foo},
   year = {2002},
   keywords = {beta},
}

@whatever{test-3,
   title= {Book Three},
   author   = {C. Foo},
   year = {2003},
}

\stopbuffer

\usebtxdataset [database] [bib.buffer]
\convertbtxdatasettoxml [database]

\startxmlsetups btx:tag
\hbox{\xmlatt{#1}{tag}}
\stopxmlsetups

\startxmlsetups btx:demo
   \xmlfilter {#1} {
 /bibtex
 /*
 /field[@name='keywords'
and not (contains(text(),'alpha'))]
 /..
 /command(btx:tag)
   }
\stopxmlsetups

\starttext
\xmlsetup{btx:database}{btx:demo}
\stoptext


\startxmlsetups btx:demo
   \xmlfilter {#1} {/bibtex/*/command(btx:demo:action)}
\stopxmlsetups

\startxmlsetups btx:demo:action
\xmldoifelse {#1} {/field[@name='keywords']} {
\xmlfilter {#1} {
 /field[@name='keywords'
and not contains(text(),'alpha')]
 /..
 /command(btx:tag)
}
} {
\xmlsetup{#1}{btx:tag}
   }
\stopxmlsetups


-
  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] \copypages and page numbering

2016-12-22 Thread Hans Hagen

On 12/20/2016 11:06 PM, Andrea Valle wrote:

Dear all,

I’m assembling into a unique pdf the proceedings of a conference.
They have been created by various sw (latex, word, writer etc).
In order to include the papers, I’m just using a series of commands like

\copypages[CIMXXI_contributi/dapelo][][scale=950]

They are not provided with page numbers, and I’m including them in the
usual way.
Now, most of the time it just works.
All the papers should conform to a template, but in some cases, page
numbers are not displayed, and this depends on the fact that the page
setup in that paper has a greater height (or maybe a different crop
area), so that it covers the page number.
I would simply solve the problem by having the page number on top of the
imported pdf.
Is it possible?


\starttext

\setuplayout
  [page]

\setupbackgrounds
  [page]
  [background={foreground,whatever}]

\definelayer
  [whatever]
  [height=\paperheight,
   width=\paperwidth]

\setuptexttexts
  [{\setlayerframed
  [whatever]
  [preset=middletop,
   voffset=1cm]
  [foregrondcolor=red,
   foregroundstyle=\bfd]
  {\pagenumber}}]

\setupexternalfigures
  [location=default]

\externalfigure
  [mill.png]
  [height=\paperheight,
   width=\paperwidth]

\stoptext

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
___

[NTG-context] btx/xml tree - entry with missing field

2016-12-22 Thread Michael Eidenbenz
Hello

I use the xml interface to list all publications that dont match a search 
criteria:

 /field[@name='keywords'
and not (contains(text(),'alpha'))]

but there are entries where the keywords field is missing.
how can I include them (here "test-3") in the output? 

Thanks Michael

--

\startbuffer[bib]

@article{test-1,
   title= {Article One},
   author   = {A. Foo and X. Bar},
   year = {2001},
   keywords = {alpha},
}

@book{test-2,
   title= {Book Two},
   author   = {B. Foo},
   year = {2002},
   keywords = {beta},
}

@whatever{test-3,
   title= {Book Three},
   author   = {C. Foo},
   year = {2003},
}

\stopbuffer

\usebtxdataset [database] [bib.buffer]
\convertbtxdatasettoxml [database]

\startxmlsetups btx:tag
\hbox{\xmlatt{#1}{tag}}
\stopxmlsetups

\startxmlsetups btx:demo
   \xmlfilter {#1} {
 /bibtex
 /*
 /field[@name='keywords'
and not (contains(text(),'alpha'))]
 /..
 /command(btx:tag)
   }
\stopxmlsetups

\starttext
\xmlsetup{btx:database}{btx:demo}
\stoptext

Michael Eidenbenz / Senior Researcher
eidenb...@arch.ethz.ch 
Phone +41 44 632 33 46

Chair of Architecture and Building Process
ETH Zurich / Building HIB / Floor E / Room 33
Stefano-Franscini-Platz 1 / CH-8093 Zurich
www.bauprozess.arch.ethz.ch 

/ ITA
Institute of Technology in Architecture
Faculty of Architecture / ETH Zurich
www.ita.arch.ethz.ch 

___
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] header text style and dimension

2016-12-22 Thread Andrea Valle
thanks Hans, 
I still don’t get the bfb style, but I think it might have to do with my font 
definition

Best

-a-


--
Andrea Valle
--
CIRMA - StudiUm
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.fonurgia.unito.it/andrea/
--> http://www.flickr.com/photos/vanderaalle/sets/
--> http://vimeo.com/vanderaalle
--> andrea.va...@unito.it
--

"This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a 
lotta what-have-yous." 
(Jeffrey 'The Dude' Lebowski)

> On 22 Dec 2016, at 16:22, Hans Hagen  wrote:
> 
> On 12/22/2016 1:22 AM, Andrea Valle wrote:
>> Dear,
>> 
>> I want to reduce the dimension of only the header text and have it italic.
>> Sorry, should be easy, but I tested a bit and can’t have it working by
>> setting \setupheader.
> \starttext
> 
> \setupheader
>  [style=\bfb,
>   color=darkblue,
>   leftstyle=bold,
>   rightstyle=bolditalic,
>   leftcolor=darkgreen,
>   rightcolor=darkred]
> 
> \setupheadertexts
>  [middle]
> 
> \setupheadertexts
>  [left]
>  [right]
> 
> test
> 
> \stoptext
> 
> 
>> Thanks a lot
>> 
>> -a-
>> 
>> --
>> Andrea Valle
>> --
>> CIRMA - StudiUm
>> Università degli Studi di Torino
>> --> http://www.cirma.unito.it/andrea/
>> --> http://www.fonurgia.unito.it/andrea/
>> --> http://www.flickr.com/photos/vanderaalle/sets/
>> --> http://vimeo.com/vanderaalle
>> --> andrea.va...@unito.it 
>> --
>> 
>> "This is a very complicated case, Maude. You know, a lotta ins, a lotta
>> outs, a lotta what-have-yous."
>> (Jeffrey 'The Dude' Lebowski)
>> 
>> 
>> 
>> --
>> Andrea Valle
>> --
>> CIRMA - StudiUm
>> Università degli Studi di Torino
>> --> http://www.cirma.unito.it/andrea/
>> --> http://www.fonurgia.unito.it/andrea/
>> --> http://www.flickr.com/photos/vanderaalle/sets/
>> --> http://vimeo.com/vanderaalle
>> --> andrea.va...@unito.it 
>> --
>> 
>> "This is a very complicated case, Maude. You know, a lotta ins, a lotta
>> outs, a lotta what-have-yous."
>> (Jeffrey 'The Dude' Lebowski)
>> 
>> 
>> 
>> ___
>> 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
> ___
> 

___
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] professional looking tables

2016-12-22 Thread Hans Hagen

On 12/22/2016 4:02 PM, Csikos Bela wrote:

Pablo Rodriguez írta:

On 12/18/2016 07:19 PM, Csikos Bela wrote:

Dear context users:
[...]
I see that context offers several table environments. Which one of them
is suitable for making  professional (publication quality) tables?
[...]
Is this feasible in current context?


Dear Csikos,

http://www.pragma-ade.com/general/manuals/xtables-mkiv.pdf is your
friend here.


Thank you. I started to learn xtables but I have problems. When I use
toffset and boffset the table is not rendered correctly. The width of the
columns are not correct, the defined widths are not applied to the columns.
See my example code below and the corresponding pdf result, xtables example 1.
I use context beta standalone: ConTeXt  ver: 2016.10.12 17:26 MKIV beta  fmt: 
2016.10.13  int: english/english.

Code:

\starttext

xtables example 1

\startxtable[frame=off,topframe=on,bottomframe=on,toffset=0.4cm,boffset=0.6cm]
\startxrow
\startxcell[width=4cm] First Column \stopxcell
\startxcell[width=5cm] Second Column \stopxcell
\startxcell[width=2cm] Third Column \stopxcell
\stopxrow
\startxrow
\startxcell Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
Curabitur massa turpis, semper quis fringilla ut, viverra nec risus. \stopxcell
\startxcell Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
\stopxcell
\startxcell Lorem ipsum \stopxcell
\stopxrow
\startxrow
\startxcell Pellentesque habitant morbi tristique senectus et netus 
\stopxcell
\startxcell Pellentesque habitant morbi tristique senectus et netus 
\stopxcell
\startxcell Pellentesque \stopxcell
\stopxrow
\startxrow
\startxcell Donec nunc lorem, sollicitudin vel sodales eget \stopxcell
\startxcell Donec nunc lorem, sollicitudin vel sodales eget Donec nunc 
lorem, sollicitudin vel sodales eget \stopxcell
\startxcell Donec \stopxcell
\stopxrow
\stopxtable

\stoptext

How can I fix this?


\setupxtable[one]  [width=4cm]
\setupxtable[two]  [width=5cm]
\setupxtable[three][width=2cm]

\startxtable[frame=off,topframe=on,bottomframe=on,toffset=0.4cm,boffset=0.6cm]
\startxrow
\startxcell[one]   First Column \stopxcell
\startxcell[two]   Second Column \stopxcell
\startxcell[three] Third Column \stopxcell
\stopxrow
\startxrow
\startxcell[one]   Lorem ipsum dolor sit amet, consectetur 
adipiscing elit. Curabitur massa turpis, semper quis fringilla ut, 
viverra nec risus. \stopxcell
\startxcell[two]   Lorem ipsum dolor sit amet, consectetur 
adipiscing elit. \stopxcell

\startxcell[three] Lorem ipsum \stopxcell
\stopxrow
\startxrow
\startxcell[one]   Pellentesque habitant morbi tristique 
senectus et netus \stopxcell
\startxcell[two]   Pellentesque habitant morbi tristique 
senectus et netus \stopxcell

\startxcell[three] Pellentesque \stopxcell
\stopxrow
\startxrow
\startxcell[one]   Donec nunc lorem, sollicitudin vel sodales 
eget \stopxcell
\startxcell[two]   Donec nunc lorem, sollicitudin vel sodales 
eget Donec nunc lorem, sollicitudin vel sodales eget \stopxcell

\startxcell[three] Donec \stopxcell
\stopxrow
\stopxtable


-
  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] header text style and dimension

2016-12-22 Thread Hans Hagen

On 12/22/2016 1:22 AM, Andrea Valle wrote:

Dear,

I want to reduce the dimension of only the header text and have it italic.
Sorry, should be easy, but I tested a bit and can’t have it working by
setting \setupheader.

\starttext

\setupheader
  [style=\bfb,
   color=darkblue,
   leftstyle=bold,
   rightstyle=bolditalic,
   leftcolor=darkgreen,
   rightcolor=darkred]

\setupheadertexts
  [middle]

\setupheadertexts
  [left]
  [right]

test

\stoptext



Thanks a lot

-a-

--
Andrea Valle
--
CIRMA - StudiUm
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.fonurgia.unito.it/andrea/
--> http://www.flickr.com/photos/vanderaalle/sets/
--> http://vimeo.com/vanderaalle
--> andrea.va...@unito.it 
--

"This is a very complicated case, Maude. You know, a lotta ins, a lotta
outs, a lotta what-have-yous."
(Jeffrey 'The Dude' Lebowski)



--
Andrea Valle
--
CIRMA - StudiUm
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.fonurgia.unito.it/andrea/
--> http://www.flickr.com/photos/vanderaalle/sets/
--> http://vimeo.com/vanderaalle
--> andrea.va...@unito.it 
--

"This is a very complicated case, Maude. You know, a lotta ins, a lotta
outs, a lotta what-have-yous."
(Jeffrey 'The Dude' Lebowski)



___
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] professional looking tables

2016-12-22 Thread Csikos Bela
Pablo Rodriguez írta:
>On 12/18/2016 07:19 PM, Csikos Bela wrote:
>> Dear context users:
>> [...]
>> I see that context offers several table environments. Which one of them
>> is suitable for making  professional (publication quality) tables?
>> [...]
>> Is this feasible in current context?
>
>Dear Csikos,
>
>http://www.pragma-ade.com/general/manuals/xtables-mkiv.pdf is your
>friend here.

Thank you. I started to learn xtables but I have problems. When I use
toffset and boffset the table is not rendered correctly. The width of the
columns are not correct, the defined widths are not applied to the columns.
See my example code below and the corresponding pdf result, xtables example 1.
I use context beta standalone: ConTeXt  ver: 2016.10.12 17:26 MKIV beta  fmt: 
2016.10.13  int: english/english.

Code:

\starttext

xtables example 1

\startxtable[frame=off,topframe=on,bottomframe=on,toffset=0.4cm,boffset=0.6cm]
\startxrow
\startxcell[width=4cm] First Column \stopxcell
\startxcell[width=5cm] Second Column \stopxcell
\startxcell[width=2cm] Third Column \stopxcell
\stopxrow
\startxrow
\startxcell Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
Curabitur massa turpis, semper quis fringilla ut, viverra nec risus. \stopxcell
\startxcell Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
\stopxcell
\startxcell Lorem ipsum \stopxcell
\stopxrow
\startxrow
\startxcell Pellentesque habitant morbi tristique senectus et netus 
\stopxcell
\startxcell Pellentesque habitant morbi tristique senectus et netus 
\stopxcell
\startxcell Pellentesque \stopxcell
\stopxrow
\startxrow
\startxcell Donec nunc lorem, sollicitudin vel sodales eget \stopxcell
\startxcell Donec nunc lorem, sollicitudin vel sodales eget Donec nunc 
lorem, sollicitudin vel sodales eget \stopxcell
\startxcell Donec \stopxcell
\stopxrow
\stopxtable

\stoptext

How can I fix this?

Thank you in advance,

bcsikos

xtables-example-01.pdf
Description: Adobe PDF document
___
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
___