[NTG-context] Layers + simplefonts: Using different font in layers?

2011-12-09 Thread Mari Voipio
Hi!

After a wee bit of struggle I've managed to get as far as to
(re)creating front and back covers of a booklet as layers. They worked
fine in separate files, but now I have to incorporate the layers into
my main file and that turned out to be too complicated for my little
brain. Thus I'd appreciate a bit of help...

I'm using Windows 7 and SciTe and I just updated my ConTeXt to newest
beta (and it works).


Problem one: The text on the covers needs to be in Arial, but the
contents should be in Candara. I can get this done in totally separate
files with


\usemodule[simplefonts]
\setmainfont[arial]

\usemodule[simplefonts]
\setmainfont[candara]


However, when I put the front cover before the main contents, I don't
seem to be able to reset the font. The same goes for
\setupinterlinespace, it is 1.8em on the cover and default in the
contents.
I'm not very familiar with the layers nor the font switching and this
together makes it very difficult for me to figure out in what order my
commands should be (and what they should be; doing a search on the
wiki pages on setmainfont gives *no* results).


So, can somebody provide me with a minimal example of a file that has
a layer with text in one font (preferably using simplefonts) and a few
pages of text in another font and then another layer as backcover in
cover font?



Problem two: Whatever I do, I can't get the final number of pages to
be divisible by for (and in a way that the back cover ends up on the
last page). I used to use the hack given at
http://wiki.contextgarden.net/Imposition#Getting_to_the_Back_Cover_of_a_Booklet,
but it doesn't work any more (hangs on \fi} / line 18); I think it
still worked in June 2011, but not any more in August.


So, how do I get my back cover to pop up on the last page of my booklet?


(Problem three: Having stuff under back matter causes a few extra
empty pages that I don't seem to be able to suppress with any
combination of \page commands (last one I tried seems to be
\page[right,quadruple]). However, this problem may go away if 1  2
get solved.)



Thankful for any help,

Mari
___
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] Layers + simplefonts: Using different font in layers?

2011-12-09 Thread Hans Hagen

On 9-12-2011 09:24, Mari Voipio wrote:


Problem one: The text on the covers needs to be in Arial, but the
contents should be in Candara. I can get this done in totally separate
files with


\usemodule[simplefonts]
\setmainfont[arial]

\usemodule[simplefonts]
\setmainfont[candara]


That is for Wolfgang to answer but you can try this:

% at the top of the file

\setupbodyfont[mscore,ss]

% then

\usemodule[simplefonts]
\setmainfont[candara]

% in the front page:

\start \switchtobodyfont[mscore,ss]

the front page

\stop \page

main text

\page \start \switchtobodyfont[mscore,ss]

the back page

\stop


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Layers + simplefonts: Using different font in layers?

2011-12-09 Thread Willi Egger
Hi Mari,

hm, although the master has given his answer already ...
Here is what I interpreted from your mail. May be it answers the first 
question. Using setups does normally help in these cases.


Making the number of pages divisible by four. quadruple works with arranging. 
So probably you must insert the number of pages needed manually?

I hope this helps you going!

Willi



test-simplefonts.tex
Description: Binary data


On 9 Dec 2011, at 09:24, Mari Voipio wrote:

 Hi!
 
 After a wee bit of struggle I've managed to get as far as to
 (re)creating front and back covers of a booklet as layers. They worked
 fine in separate files, but now I have to incorporate the layers into
 my main file and that turned out to be too complicated for my little
 brain. Thus I'd appreciate a bit of help...
 
 I'm using Windows 7 and SciTe and I just updated my ConTeXt to newest
 beta (and it works).
 
 
 Problem one: The text on the covers needs to be in Arial, but the
 contents should be in Candara. I can get this done in totally separate
 files with
 
 
 \usemodule[simplefonts]
 \setmainfont[arial]
 
 \usemodule[simplefonts]
 \setmainfont[candara]
 
 
 However, when I put the front cover before the main contents, I don't
 seem to be able to reset the font. The same goes for
 \setupinterlinespace, it is 1.8em on the cover and default in the
 contents.
 I'm not very familiar with the layers nor the font switching and this
 together makes it very difficult for me to figure out in what order my
 commands should be (and what they should be; doing a search on the
 wiki pages on setmainfont gives *no* results).
 
 
 So, can somebody provide me with a minimal example of a file that has
 a layer with text in one font (preferably using simplefonts) and a few
 pages of text in another font and then another layer as backcover in
 cover font?
 
 
 
 Problem two: Whatever I do, I can't get the final number of pages to
 be divisible by for (and in a way that the back cover ends up on the
 last page). I used to use the hack given at
 http://wiki.contextgarden.net/Imposition#Getting_to_the_Back_Cover_of_a_Booklet,
 but it doesn't work any more (hangs on \fi} / line 18); I think it
 still worked in June 2011, but not any more in August.
 
 
 So, how do I get my back cover to pop up on the last page of my booklet?
 
 
 (Problem three: Having stuff under back matter causes a few extra
 empty pages that I don't seem to be able to suppress with any
 combination of \page commands (last one I tried seems to be
 \page[right,quadruple]). However, this problem may go away if 1  2
 get solved.)
 
 
 
 Thankful for any help,
 
 Mari
 ___
 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] Layers + simplefonts: Using different font in layers?

2011-12-09 Thread Mari Voipio
On Fri, Dec 9, 2011 at 11:10, Willi Egger cont...@boede.nl wrote:
 Here is what I interpreted from your mail. May be it answers the first 
 question. Using setups does normally help in these cases.

It does sort out the font problem - turns out I was almost there,
except that my TOC insisted on being in Arial (and *really* ugly as it
is set up for Candara). Your alternative sorts out that problem, I
tested with

\placecontent

\chapter{This is chapter 1}

\dorecurse{3}
   {\input tufte \page}

\chapter{This is chapter 2}

\dorecurse{3}
   {\input tufte \page}


Even on yours the back cover ends up on the next-to-last page (the
last page being empty), so problem 2 persists. In a real pinch I can
probably fiddle with it in Acrobat (or pdfarrange or something).


Thank you,

Mari
___
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] Layers + simplefonts: Using different font in layers?

2011-12-09 Thread Willi Egger
Hi Mari,


On 9 Dec 2011, at 11:00, Mari Voipio wrote:

 On Fri, Dec 9, 2011 at 11:10, Willi Egger cont...@boede.nl wrote:
 Here is what I interpreted from your mail. May be it answers the first 
 question. Using setups does normally help in these cases.
 
 It does sort out the font problem - turns out I was almost there,
 except that my TOC insisted on being in Arial (and *really* ugly as it
 is set up for Candara). Your alternative sorts out that problem, I
 tested with
 
 \placecontent
 
 \chapter{This is chapter 1}
 
 \dorecurse{3}
   {\input tufte \page}
 
 \chapter{This is chapter 2}
 
 \dorecurse{3}
   {\input tufte \page}

When i use the attached test-file, the TOC is in palatino. May be you have to 
check, where the \setups is called. Before calling the setups there must be a 
page break.
 
 
 Even on yours the back cover ends up on the next-to-last page (the
 last page being empty), so problem 2 persists. In a real pinch I can
 probably fiddle with it in Acrobat (or pdfarrange or something).

Yes it is. I tried to use \startstandardmakeup[page=left, doublesided=no] from 
which I would expect to give the desired result, but it does not. So I am stuck 
also.



test-simplefonts.tex
Description: Binary data


Willi


 
 
 Thank you,
 
 Mari
 ___
 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] Layers + simplefonts: Using different font in layers?

2011-12-09 Thread Hans Hagen

On 9-12-2011 11:00, Mari Voipio wrote:

On Fri, Dec 9, 2011 at 11:10, Willi Eggercont...@boede.nl  wrote:

Here is what I interpreted from your mail. May be it answers the first 
question. Using setups does normally help in these cases.


It does sort out the font problem - turns out I was almost there,
except that my TOC insisted on being in Arial (and *really* ugly as it
is set up for Candara). Your alternative sorts out that problem, I
tested with


always keep in mind that tex works asynchronous ... so, add a \page 
before you change settings that also might affect th epagebuilding


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] simplefonts: math in headers

2011-12-09 Thread Philipp A.
hi, i have the following setup:

\usemodule[simplefonts]
\setmainfont[Cambria]
\setsansfont[Ubuntu]
\setmonofont[Envy Code R][regularfont=envycoder]
\setmathfont[Cambria]

\setuphead[section][style={\ss\bfb}]

\starttext
\section{Wat? $y=x^2$}
\stoptext

why is the math in the header typeset in computer modern instead of ubuntu
and how do i fix it?

PS: preferrably it should be bold, too. there is a wiki page, “Bold Math in
Section Titles http://wiki.contextgarden.net/Bold_Math_in_Section_Titles”
but it doesn’t explain how to do it with simplefonts.
___
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] MetaFun: Is the maximum of `vloggrid` limited to 10?

2011-12-09 Thread Hans Hagen

On 8-12-2011 16:45, Paul Menzel wrote:

Am Donnerstag, den 08.12.2011, 16:40 +0100 schrieb Hans Hagen:

On 8-12-2011 14:54, Paul Menzel wrote:


To create grid like the log-log grid in [2] I guess I need to compose
the bigger grid from these “basic” grids then?


at some point it runs off your page i guess


But the width parameter should prevent that, should not it? In this case
10 cm?


best look in mp-grid.mpvi to see what height and width do ... nothing 
clever and no prevention



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Layers + simplefonts: Using different font in layers?

2011-12-09 Thread Mari Voipio
On Fri, Dec 9, 2011 at 13:04, Willi Egger cont...@boede.nl wrote:
 When i use the attached test-file, the TOC is in palatino. May be you have to 
 check, where the \setups is called. Before calling the setups there must be a 
 page break.

It works for me, too, once I managed to fix a stupid typo... Mostly
your version works pretty well, correct fonts at correct places (I'd
actually prefer Candara at cover, too, but it is not for me to
decide...) and at correct size, too.


On the other hand, of some reason my cover page now thinks that
righttop is located at the right top of the text area, but the wiki
says it should always refer to paper edge. Is this because of the
command \placelayer or have I just piled things up in the wrong order?


...almost there...


Mari
(and now out to the darkness and horizontal sleet, could we get some
real snow, please?)


maoutput_cover_mari.tex
Description: TeX document


maoutput_cover_test_willi.tex
Description: TeX 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Layers + simplefonts: Using different font in layers?

2011-12-09 Thread Willi Egger
Hi Mari,

if you look into the test-file I sent you before, then you will see, that 
indeed the layer has to be moved. I was also a bit amazed to see, that the 
layer is anchored to the textarea. 

Willi


On 9 Dec 2011, at 14:54, Mari Voipio wrote:

 On Fri, Dec 9, 2011 at 13:04, Willi Egger cont...@boede.nl wrote:
 When i use the attached test-file, the TOC is in palatino. May be you have 
 to check, where the \setups is called. Before calling the setups there must 
 be a page break.
 
 It works for me, too, once I managed to fix a stupid typo... Mostly
 your version works pretty well, correct fonts at correct places (I'd
 actually prefer Candara at cover, too, but it is not for me to
 decide...) and at correct size, too.
 
 
 On the other hand, of some reason my cover page now thinks that
 righttop is located at the right top of the text area, but the wiki
 says it should always refer to paper edge. Is this because of the
 command \placelayer or have I just piled things up in the wrong order?
 
 
 ...almost there...
 
 
 Mari
 (and now out to the darkness and horizontal sleet, could we get some
 real snow, please?)
 maoutput_cover_mari.texmaoutput_cover_test_willi.tex___
 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] Layers + simplefonts: Using different font in layers?

2011-12-09 Thread Wolfgang Schuster

Am 09.12.2011 um 15:43 schrieb Willi Egger:

 Hi Mari,
 
 if you look into the test-file I sent you before, then you will see, that 
 indeed the layer has to be moved. I was also a bit amazed to see, that the 
 layer is anchored to the textarea. 

\placelayer use the area of the current block (in this case the text are), one 
way out of this is to use the “pagemakeup” environment where all margins are 
set to 0pt.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] `\{start, stop}MPpage`: MetaPost figure does not fit canvas(?) in resulting PDF file

2011-12-09 Thread Hans Hagen

On 7-12-2011 20:36, Paul Menzel wrote:

Dear ConTeXt folks,


using the following example

 \starttext
 \startMPpage
 draw (0,0)--(10,10)--(15,5)--(20,10);
 draw (0,0)--(0,10)--(10,10)--(10,5)--(15,5)--(15,10)--(20,10) 
withcolor blue;
 \stopMPpage
 \stoptext

it looks like the bottom is not included in the resulting PDF file and
at the top there is too much room. (So it looks like the figure is moved
too far to the bottom.)

Using the examples from the Wiki [1] with circles works though.


it has to do with the size and topskip interference .. somewhat bigger 
images work ok (hopefully fixed in next beta)




-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Columnset error with \setupheader[state=high]

2011-12-09 Thread Hans Hagen

On 7-12-2011 06:31, Peter Park Nelson wrote:

Hello, I hope someone has solved this problem already but I haven't been
able to find a solution.

When using \setupheader[state=high], my columnset behaves correctly on the
first page but runs over the footer area on all subsequent pages.


fixed in next beta



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] bug with \setuplayout[setups=*strict]?

2011-12-09 Thread Hans Hagen

On 8-12-2011 13:40, Pablo Rodríguez wrote:

Hi there,

I read a previous message on this list form Wolgang that

\setuplayout[setups=*strict]

is the ConTeXt way to avoid orphan and widow lines.

I have tried that before checking that

\widowpenalty=1\clubpenalty=1\raggedbottom

doesn't change anything on my documents.

The problem with the first code is that it breaks some pages in clearly
wrong places (it breaks the page on the seventh line of a A4 page).

I don't know how I could provide an example, since the document is a
personal document that I cannot share with third parties.

Is there no other way to avoid orphan and widow lines? I need it urgently.


\startsetups [*lessstrict]

   \setup[*\s!reset]

   \widowpenalty =1000
   \clubpenaltie =1000
   \brokenpenalty=1000

\stopsetups

or whatever makes sense

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] orphan and widow lines

2011-12-09 Thread Stefan Müller

Hi,

you can try (and experiment with)

\clubpenalty=1
\widowpenalty=1

after \starttext.

Hope that helps,
Stefan

On 07.12.2011 22:32, Pablo Rodríguez wrote:

Hi there,

I have been using ConTeXt for some months and one of the things I cannot
control is orphan or widow lines appearing in my documents.

Isn't there a general method to avoid them? (This should set ragged
bottoms, but I'd rather have ragged bottoms than orphan or widow lines.)

Thanks for your help,


Pablo

___
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] Wrong bookmark for publications list

2011-12-09 Thread Hans Hagen

On 8-12-2011 11:24, Marco wrote:

There  is an  inconsistency concerning  the bookmarks  for
the  publications  list.  It generates  the  section  head
“References”, but the PDF bookmark “pubs”.

\setupinteraction [state=start]
\placebookmarks
\starttext


this is because the title is derived from a labeltext and bookmarks 
don't work that way ...



% generates bookmark ”pubs”
\completepublications

% workaround:

% generates bookmark ”References”
\startchapter [title=References]
   \placepublications
\stopchapter


indeed

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Two column itemize break grid layout

2011-12-09 Thread Hans Hagen

On 7-12-2011 05:41, Aditya Mahajan wrote:

Hi,

Grid layout gets broken if I use \startitemize[column,two].


quick fix in next beta

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Header spoils X(HT)ML export

2011-12-09 Thread Hans Hagen

On 6-12-2011 23:19, Andreas Harder wrote:

Hi Hans,

please consider the following example.

\setupbackend[export=yes,xhtml=yes,css=yes]
\setupheadertexts[{\startelement[header] test \stopelement}]


too messy ... so in the next beta structures is disabled completely in 
those areas



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Reverse numbering for enumerations?

2011-12-09 Thread Otared Kavian
Hi all,

When using 
\startitemize[n,reverse]
one gets items numbered in reverse order. I wonder if this feature exists also 
for enumerations. An example is given below in which the last enumeration is 
written on top of the file and I wish it were possible to have the enumerations 
numbered in reverse order.

Thanks in advance for any insight: OK
PS: here is an example file:
 enumeration-reverse.tex
\defineenumeration[Lecture]
[location=hanging,
text={Lecture n°}, 
between=,
before=, 
stopper={.},
after= {\hrule\blank}]

\setupenumerations[Lecture][number=yes]
% \setupenumerations[Lecture][numbering=reverse] % this has no effect though…

\starttext

\startLecture Tuesday December 6th: Banach spaces. 
\startitemize[n]
\item First subject.
\item Second subject.
\stopitemize
\stopLecture

\startLecture Tuesday November 29th: Norms. 
\startitemize[n]
\item First subject.
\item Second subject.
\stopitemize
\stopLecture

\startLecture Tuesday November 22nd: Topological Vector Spaces. 
\startitemize[n]
\item First subject.
\item Second subject.
\stopitemize
\stopLecture

\stoptext
%%% end enumeration-reverse.tex

___
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] Preserving Output Files

2011-12-09 Thread Hans Hagen

On 6-12-2011 04:27, Kip Warner wrote:

Hey list,

I've searched the list, but couldn't seem to dig up anything that I
thought was relevant.

How do I get ConTeXt to preserve all files necessary to run the same
invocation of LuaTeX it executed when it was run. As an example, when I
run the following...

$ context Source/Handbook.tex --result=Handbook.pdf

it says that it ran the following...

luatex
--fmt=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en 
--lua=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui 
--backend=pdf Handbook.tex

If I run the same luatex command on its own, it cannot find the
temporary working files passed to it in its parameters. I tried running
ConTeXt with the --keep argument, but those temporary files were still
not preserved.


what temporary files?


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Enumeration in mkiv

2011-12-09 Thread Hans Hagen

On 7-12-2011 21:17, Otared Kavian wrote:

Dear Hans,

In transferring some stuff from mkii to mkiv, I noticed a change in the way 
mkiv puts too much distance between the title of an enumeration and the text 
following it. I am not sure whether I have noticed this before, but my feeling 
is that the change is somewhat recent. I have put the result of the source 
below here,
http://dl.dropbox.com/u/4316076/enumeration-mkii.pdf
and
http://dl.dropbox.com/u/4316076/enumeration-mkiv.pdf

I think the correct behaviour is the one with mkii.


Add

  width=fit

could be made default for hanging:

\unprotect
\setupdescriptions[\c!width:\v!hanging=\v!fit]
\protect

but I'm not so sure about that

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Preserving Output Files

2011-12-09 Thread Kip Warner
On Fri, 2011-12-09 at 18:39 +0100, Hans Hagen wrote:
 On 6-12-2011 04:27, Kip Warner wrote:
  Hey list,
 
  I've searched the list, but couldn't seem to dig up anything that I
  thought was relevant.
 
  How do I get ConTeXt to preserve all files necessary to run the same
  invocation of LuaTeX it executed when it was run. As an example, when I
  run the following...
 
  $ context Source/Handbook.tex --result=Handbook.pdf
 
  it says that it ran the following...
 
  luatex
  --fmt=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en
   
  --lua=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui
   --backend=pdf Handbook.tex
 
  If I run the same luatex command on its own, it cannot find the
  temporary working files passed to it in its parameters. I tried running
  ConTeXt with the --keep argument, but those temporary files were still
  not preserved.
 
 what temporary files?

The ones luatex needs to access as you can see in the above command it
executes as invoked by ConTeXt.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] Possible bug in \unit

2011-12-09 Thread Hans Hagen

On 7-12-2011 22:27, Marco wrote:

There seems to be a bug in the new unit system for \unit{kbit}:

% bit
\unit{kilo bit}  % kbit
\unit{kilobit}   % kbit
\unit{kbit}  % kB, shouldn't this be kbit?

Another thing:

\unit{3.4e-5} yields to 3.4⁻⁵ that's expected according to
the manual. But  how to get 3.4·10⁻⁵ (either  with \cot or
\times)?


indeed .. here's the fix

\unexpanded\def\digitspower#1%
  {\times10\digits_raised{#1}}

\unexpanded\def\digitspowerplus#1%
  {\times10\digits_raised{\digitsplus#1}}

\unexpanded\def\digitspowerminus#1%
  {\times10\digits_raised{\digitsminus#1}}

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Preserving Output Files

2011-12-09 Thread Hans Hagen

On 9-12-2011 20:19, Kip Warner wrote:

On Fri, 2011-12-09 at 18:39 +0100, Hans Hagen wrote:

On 6-12-2011 04:27, Kip Warner wrote:

Hey list,

I've searched the list, but couldn't seem to dig up anything that I
thought was relevant.

How do I get ConTeXt to preserve all files necessary to run the same
invocation of LuaTeX it executed when it was run. As an example, when I
run the following...

$ context Source/Handbook.tex --result=Handbook.pdf

it says that it ran the following...

luatex
--fmt=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en 
--lua=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui 
--backend=pdf Handbook.tex

If I run the same luatex command on its own, it cannot find the
temporary working files passed to it in its parameters. I tried running
ConTeXt with the --keep argument, but those temporary files were still
not preserved.


what temporary files?


The ones luatex needs to access as you can see in the above command it
executes as invoked by ConTeXt.


I only see

cont-en.fmt  : format file, sits in the cache and stays there
cont-en.lui  : lua startup stub, idem

handbook.tex : your file, is kept where it is

Hans

-

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Possible bug in \unit

2011-12-09 Thread Marco
On 2011-12-09 Hans Hagen pra...@wxs.nl wrote:

  \unit{3.4e-5} yields to 3.4⁻⁵ that's expected according to
  the manual. But  how to get 3.4·10⁻⁵ (either  with \cot or
  \times)?
 
 indeed .. here's the fix
 
 \unexpanded\def\digitspower#1%
{\times10\digits_raised{#1}}
 
 \unexpanded\def\digitspowerplus#1%
{\times10\digits_raised{\digitsplus#1}}
 
 \unexpanded\def\digitspowerminus#1%
{\times10\digits_raised{\digitsminus#1}}

Thanks for the quick fix. I  assume it will be included in
the next beta.

One  feature request:  Could  it be  make configurable  to
either insert a \times or a \cdot?

Marco Patzer


___
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] Wrong bookmark for publications list

2011-12-09 Thread Marco
On 2011-12-09 Hans Hagen pra...@wxs.nl wrote:

 On 8-12-2011 11:24, Marco wrote:
  There  is an  inconsistency concerning  the bookmarks  for
  the  publications  list.  It generates  the  section  head
  “References”, but the PDF bookmark “pubs”.
 
  \setupinteraction [state=start]
  \placebookmarks
  \starttext
 
 this is because the title is derived from a labeltext and bookmarks 
 don't work that way ...

That means it is not a bug, but expected behaviour?

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Possible bug in \unit

2011-12-09 Thread Hans Hagen

On 9-12-2011 20:41, Marco wrote:


One  feature request:  Could  it be  make configurable  to
either insert a \times or a \cdot?


is already possible


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Wrong bookmark for publications list

2011-12-09 Thread Hans Hagen

On 9-12-2011 20:53, Marco wrote:

On 2011-12-09 Hans Hagenpra...@wxs.nl  wrote:


On 8-12-2011 11:24, Marco wrote:

There  is an  inconsistency concerning  the bookmarks  for
the  publications  list.  It generates  the  section  head
“References”, but the PDF bookmark “pubs”.

\setupinteraction [state=start]
\placebookmarks
\starttext


this is because the title is derived from a labeltext and bookmarks
don't work that way ...


That means it is not a bug, but expected behaviour?


indeed.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Export (table cell alignment)

2011-12-09 Thread Andreas Harder
Hi Hans,

I’ve stumbled upon another export problem, concerning (natural) tables. The 
first table exports fine but in the second table the first column is ignored. 

\startbuffer[css]
document  { display: block }
table { display: table ; width: 100% }
tablerow  { display: table-row }
tablecell { display: table-cell ; border-style: solid ; padding: 1ex }
tablecell[align=flushright] { display: table-cell ; text-align: right  }
tablecell[align=flushleft]  { display: table-cell ; text-align: left   }
tablecell[align=middle] { display: table-cell ; text-align: center }
\stopbuffer  \savebuffer[css]

\setupbackend[export=yes,xhtml=yes,css={\jobname-css.tmp}]

\starttext

\startbuffer
\bTR\bTD flush right \eTD\bTD ~  \eTD\bTD ~~ \eTD\eTR
\bTR\bTD ~ ~ \eTD\bTD flush left \eTD\bTD ~~ \eTD\eTR
\bTR\bTD ~ ~ \eTD\bTD ~  \eTD\bTD middle \eTD\eTR
\stopbuffer

\bTABLE[width=broad] \getbuffer \eTABLE % OK

\bTABLE[width=broad]
\setupTABLE [c] [1] [align=flushright]
\setupTABLE [c] [2] [align=flushleft]
\setupTABLE [c] [3] [align=middle]
\getbuffer % not OK!
\eTABLE

\stoptext


Best wishes
Andreas
___
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] Possible bug in \unit

2011-12-09 Thread Marco
On 2011-12-09 Hans Hagen pra...@wxs.nl wrote:

 On 9-12-2011 20:41, Marco wrote:
 
  One  feature request:  Could  it be  make configurable  to
  either insert a \times or a \cdot?
 
 is already possible

How?


___
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] \usezipfile

2011-12-09 Thread Hans Hagen

On 7-12-2011 20:06, Wolfgang Schuster wrote:


the \usezipfile command doesn’t work work.


Opening a zip crashes with my luatex binary so I'm stuck.

Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Footnotes break out of columnset (current beta)

2011-12-09 Thread Peter Park Nelson
Hello,

In TeXLive 2011, the following works correctly (footnotes in column) --
although the footnote rule does not appear, as I have noted in another
post.

In the current beta (29 nov 2011), the footnotes span the whole page and
are run over by the body text columns. The footnote rule also continues to
be absent.

(The actual format I'm using has more formatting options but this is
minimal).

%%%%

\definecolumnset[body][n=2,balancing=yes]

\setupnote[footnote]
  [location=columns]

\setupnotedefinition[footnote]
  [location=left]

\starttext
\startcolumnset[body]

\definecolumnset[body][n=2,balancing=yes]

\def\myfootnotecommand#1{\hbox to 1.5em{#1}}% space for footnote number.

\setupnote[footnote]
  [location=columns,
way=bytext,
command=\myfootnotecommand,
   rule=on]

\setupnotedefinition[footnote]
  [location=left]

\starttext
\startcolumnset[body]

Some text\footnote{Cluster, aggregate, outline, summarize, itemize, review,
dip into, flip through, browse, glance into, leaf through, skim, refine,
enumerate, glean, synopsize, winnow the wheat from the chaff and separate
the sheep from the goats.}

\dorecurse{5}{\input tufte \par}

\stopcolumnset
\stoptext
\dorecurse{5}{\input tufte \par}

\stopcolumnset
\stoptext

%%%%
-- 
Peter Park Nelson
peter.park.nel...@gmail.com
___
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] Possible bug in \unit

2011-12-09 Thread Hans Hagen

On 9-12-2011 22:01, Marco wrote:

On 2011-12-09 Hans Hagenpra...@wxs.nl  wrote:


On 9-12-2011 20:41, Marco wrote:


One  feature request:  Could  it be  make configurable  to
either insert a \times or a \cdot?


is already possible


How?


http://www.pragma-ade.com/general/manuals/units-mkiv.pdf


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Tabulate-export

2011-12-09 Thread Hans Hagen

On 5-12-2011 13:32, Andreas Harder wrote:

Hi Hans,

it seems that tabulate environments are not exported correctly. Here is an 
example.

\setupbackend[export=yes]

\starttext
   \starttabulate[|l|c|r|]
   \NC left \NC center \NC right \NC \NR
   \NC l\NC c  \NC r \NC \NR
   \stoptabulate
\stoptext

exports to:tabulate  /tabulate


fixed in next beta



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Export (table cell alignment)

2011-12-09 Thread Hans Hagen

On 9-12-2011 21:58, Andreas Harder wrote:

Hi Hans,

I’ve stumbled upon another export problem, concerning (natural) tables. The 
first table exports fine but in the second table the first column is ignored.

\startbuffer[css]
document  { display: block }
table { display: table ; width: 100% }
tablerow  { display: table-row }
tablecell { display: table-cell ; border-style: solid ; padding: 1ex }
tablecell[align=flushright] { display: table-cell ; text-align: right  }
tablecell[align=flushleft]  { display: table-cell ; text-align: left   }
tablecell[align=middle] { display: table-cell ; text-align: center }
\stopbuffer  \savebuffer[css]

\setupbackend[export=yes,xhtml=yes,css={\jobname-css.tmp}]

\starttext

\startbuffer
\bTR\bTD flush right \eTD\bTD ~  \eTD\bTD ~~ \eTD\eTR
\bTR\bTD ~ ~ \eTD\bTD flush left \eTD\bTD ~~ \eTD\eTR
\bTR\bTD ~ ~ \eTD\bTD ~  \eTD\bTD middle \eTD\eTR
\stopbuffer

\bTABLE[width=broad] \getbuffer \eTABLE % OK

\bTABLE[width=broad]
\setupTABLE [c] [1] [align=flushright]
\setupTABLE [c] [2] [align=flushleft]
\setupTABLE [c] [3] [align=middle]
\getbuffer % not OK!
\eTABLE

\stoptext


tricky but fixed

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Export (table cell alignment)

2011-12-09 Thread Andreas Harder

On 10.12.2011, at 00:28, Hans Hagen wrote:

 On 9-12-2011 21:58, Andreas Harder wrote:
 Hi Hans,
 
 I’ve stumbled upon another export problem, concerning (natural) tables. The 
 first table exports fine but in the second table the first column is ignored.
 
 \startbuffer[css]
 document  { display: block }
 table { display: table ; width: 100% }
 tablerow  { display: table-row }
 tablecell { display: table-cell ; border-style: solid ; padding: 1ex }
 tablecell[align=flushright] { display: table-cell ; text-align: right  }
 tablecell[align=flushleft]  { display: table-cell ; text-align: left   }
 tablecell[align=middle] { display: table-cell ; text-align: center }
 \stopbuffer  \savebuffer[css]
 
 \setupbackend[export=yes,xhtml=yes,css={\jobname-css.tmp}]
 
 \starttext
 
 \startbuffer
 \bTR\bTD flush right \eTD\bTD ~  \eTD\bTD ~~ \eTD\eTR
 \bTR\bTD ~ ~ \eTD\bTD flush left \eTD\bTD ~~ \eTD\eTR
 \bTR\bTD ~ ~ \eTD\bTD ~  \eTD\bTD middle \eTD\eTR
 \stopbuffer
 
 \bTABLE[width=broad] \getbuffer \eTABLE % OK
 
 \bTABLE[width=broad]
 \setupTABLE [c] [1] [align=flushright]
 \setupTABLE [c] [2] [align=flushleft]
 \setupTABLE [c] [3] [align=middle]
 \getbuffer % not OK!
 \eTABLE
 
 \stoptext
 
 tricky but fixed

Thank you!

Andreas
___
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] Bug with caption

2011-12-09 Thread Hans Hagen

On 4-12-2011 06:46, Aditya Mahajan wrote:

Hi,

If I use \setupcaption[number=no] and include a float with no caption,
then all subsequent floats do not have a caption!


fixed in next beta

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] \lastpage is not set when using arranging

2011-12-09 Thread Hans Hagen

On 3-12-2011 20:51, Aditya Mahajan wrote:


\setuppapersize[A5][A4,landscape]
\setuparranging[2SIDE]

\setupfootertexts[Page \currentpage\ of \lastpage]

\starttext
\dorecurse{10}{\input knuth}
\stoptext


an arranged run will not save multi-pass data

running with context --arrange takes care of it

(maybe i should honnor 'arrange=auto' in the top line)

Hans



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