[NTG-context] \setuplayout and splitted rotated tables

2011-08-29 Thread Jaroslav Hajtmar

Hello everybody.
I managed to set ConTeXt to properly split a rotated table.
Now I have a big problem with the correct placement of page number in 
footer. If I set different layout and numbering in footer is OK then the 
table is badly divided. Is there some choices for layout settings so 
that the page numbering to work correctly in footer while the table 
rotated to properly divided? I tried many setups with diferent 
parameters of layouts but without succes.


I'm beginning to feel that perhaps will not even possible do that.
Must I  turn off page numbering in footers, and manually put the data at 
the corresponding position on the page by using layers? Or exist any way 
to do it using \setuplayout?


Thanx Jaroslav Hajtmar

Here is my example:



% http://source.contextgarden.net/page-lay.mkiv
%\showframe

\definepapersize[paperportrait][A4]
\definepapersize[paperlandscape][A4,landscape]
\definelayout[portrait][width=fit, topspace=5mm, header=1cm, 
footer=1.5cm, height=fit]
\definelayout[rotatedportrait][location=middle,width=fit, height=fit, 
topspace=3.5cm]



\setuppapersize[paperportrait]
\setuplayout[portrait]


\setupfootertexts[ŠVP Gymnázia Zábřeh][section][ŠVP Gymnázia 
Zábřeh][section]

\setupfooter[style=\ssxx]
\setuppagenumbering[state=start,location=footer, left=---\ , right=\ ---]



   \setupTABLE[split=yes]
   \setupTABLE[row][first][background=color,backgroundcolor=gray]
   \setupTABLE[column][1][width=1cm]
   \setupTABLE[column][2][width=2cm]
   \setupTABLE[column][3][width=3cm]
   \setupTABLE[column][4][width=4cm]
   \setupTABLE[column][5][width=5cm]
   \setupTABLE[column][6][width=6cm]
   \setupTABLE[column][7][width=5cm]




  \starttext

  \setuplayout[portrait]
  \input tufte
  \page

  \setuplayout[rotatedportrait]

  \placetable[90,split][tab:example]{Example of a rotated table}
  {
  \bTABLE
  \dorecurse{65}{\bTR\dorecurse{7}{\bTD x\eTD}\eTR}
  \eTABLE
  }

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


Re: [NTG-context] \framed feature request

2011-08-29 Thread Marcin Borkowski
Dnia 2011-08-27, o godz. 13:14:14
Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a):

 Dnia 2011-08-27, o godz. 11:02:31
 Hans Hagen pra...@wxs.nl napisał(a):
   \setupframed
   [loffset=\framedparameter{hoffset},
   roffset=\framedparameter{hoffset},
   hoffset=\zeropoint]
  
   \defineframed[test][hoffset=1cm]
  
   \starttext
   \test{test}
   \stoptext
  
  a nice example for the wiki
 
 Understood - I can add it (later today).

Done - maybe in a suboptimal way (I'm not a wiki markup expert;)), but
it's there.

 
 But would it be a bad idea to add this to the ConTeXt core?
 
  
  Hans
 

Best,

-- 
Marcin Borkowski
___
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] TeX overview: some history and relations

2011-08-29 Thread Mojca Miklavec
An overview of TeX, its children and their friends ...

http://www.ctan.org/pkg/tex-overview
___
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] TeX overview: some history and relations

2011-08-29 Thread luigi scarso
On Mon, Aug 29, 2011 at 1:02 PM, Mojca Miklavec
mojca.miklavec.li...@gmail.com wrote:
 An overview of TeX, its children and their friends ...

 http://www.ctan.org/pkg/tex-overview

iTeX is the official successor of TeX3, announced by Don Knuth at the
TUG conference 2010
First release is planned for the next year, bundled with the new iPAD.



-- 
luigi
___
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] filter and/or vim module in current beta

2011-08-29 Thread Aditya Mahajan

On Mon, 29 Aug 2011, Mojca Miklavec wrote:


On Sun, Aug 28, 2011 at 21:58, Aditya Mahajan wrote:


Thank you for testing. The recent change in the namespace macros broke a lot
of functionality of the filter module. Hopefully, now everything is working
correctly.


Does it still work with TeX Live


I haven't tested it with TL. I will test with an old ConTeXt version to 
see if anything breaks (it should not).


(in case it is not, it might make sense to ask Karl not to update the 
package or to provide the old one on CTAN).


OK.

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

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


[NTG-context] smash expansion (mkiv)

2011-08-29 Thread Peter Rolf
Hi,

I use \smash[]{..} quite often and noticed some expansion problems with
it. Can \smash be defined as

[supp-box.mkiv]
\unexpanded\def\smash
  {\futurelet\nexttoken\dosmash}

???


Regards, Peter
___
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] filter and/or vim module in current beta

2011-08-29 Thread Andreas Schneider

On 28.08.2011 21:58, Aditya Mahajan wrote:

On Sun, 28 Aug 2011, Andreas Schneider wrote:

Shouldn't it detect changes to the buffer through the md5 sum? What I
meant was: I modify the buffer (add a line, or change lines) but that
change doesn't cause vim to be run again. From what I can see, the tmp
file isn't written at all, if it already exists, therefore the md5 sum
doesn't change, therefore vim isn't run again. Shouldn't the tmp file
always be (re)written, to reflect the content of the current buffer?


This appears to be a Windows specific bug. os.rename does not overwrite
file on Windows. I changed that with file.copy. Try the new version of
the t-filter module.


Weird, I didn't expect that to be a platform specific issue. Good thing, 
you figured out I was using Windows :-)



Thank you for your efforts and the quick bug fixing!


Thank you for testing. The recent change in the namespace macros broke a
lot of functionality of the filter module. Hopefully, now everything is
working correctly.


Everything I tested works fine now, so I guess you are on the right 
track (if not even on the destination :D)


Again, Many thanks :-)

--
Best Regards,
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] Questions related to margin/dynamic layout

2011-08-29 Thread Wolfgang Schuster

Am 27.08.2011 um 05:40 schrieb Yue Wang:

 Hi,
 
 I have two questions related to margin:
 
 - is it possible to move footnotes to margin?

\setupnote  [footnote][location=none]
\setupnotedefinition[footnote][location=serried,width=broad]

\setuptexttexts
 [margin]
 []
 
[{\framed[align=right,frame=off,height=\textheight,width=\rightmarginwidth]{\placenotes[footnote]}}]

\starttext
\dorecurse{20}{\input knuth\reference[foo:#1]{#1}\footnote{Knuth #1}}
\stoptext

 - similar question: I want to have a list in the margin with all the
 indexes in the given page.
 
 How to make these possible?
 
 Third question is related to layout.
 
 I know how to change page layout for a particular page. but how to
 change layout for a page whose number is unknown?
 
 for example, I am writing a book that has several large pictures
 (imagine a portfolio, or a book introducing photography).
 
 in order to fit the pictures I plan to set each pictures as page
 background or layers, that spans 3/2 pages, while leaving the
 remaining span (1/2 page) for text.
 
 however, I don't know which page number the picture should be reside,
 but I know it should be put near some given text content.
 
 it's not possible to manually give the page number according to the
 content because usually document context/formatting change all the
 time.
 
 how to do that?

You can fix a float to a certain position with \placeFLOAT[force]{…}{…}.

TO shorten/enlarge a page you can put \adaptlayout in your document
and context change the layout of the page where the command is seen.

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] Questions related to margin/dynamic layout

2011-08-29 Thread Yue Wang
Many thanks! Wolfgang!

it seems that this is a mkiv only command.

what about the second and third question?

On Mon, Aug 29, 2011 at 12:41 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 27.08.2011 um 05:40 schrieb Yue Wang:

 Hi,

 I have two questions related to margin:

 - is it possible to move footnotes to margin?

 \setupnote          [footnote][location=none]
 \setupnotedefinition[footnote][location=serried,width=broad]

 \setuptexttexts
  [margin]
  []
  [{\framed[align=right,frame=off,height=\textheight,width=\rightmarginwidth]{\placenotes[footnote]}}]

 \starttext
 \dorecurse{20}{\input knuth\reference[foo:#1]{#1}\footnote{Knuth #1}}
 \stoptext

 - similar question: I want to have a list in the margin with all the
 indexes in the given page.

 How to make these possible?

 Third question is related to layout.

 I know how to change page layout for a particular page. but how to
 change layout for a page whose number is unknown?

 for example, I am writing a book that has several large pictures
 (imagine a portfolio, or a book introducing photography).

 in order to fit the pictures I plan to set each pictures as page
 background or layers, that spans 3/2 pages, while leaving the
 remaining span (1/2 page) for text.

 however, I don't know which page number the picture should be reside,
 but I know it should be put near some given text content.

 it's not possible to manually give the page number according to the
 content because usually document context/formatting change all the
 time.

 how to do that?

 You can fix a float to a certain position with \placeFLOAT[force]{…}{…}.

 TO shorten/enlarge a page you can put \adaptlayout in your document
 and context change the layout of the page where the command is seen.

 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] Questions related to margin/dynamic layout

2011-08-29 Thread Wolfgang Schuster

Am 29.08.2011 um 19:00 schrieb Yue Wang:

 Many thanks! Wolfgang!
 
 it seems that this is a mkiv only command.

No, all commands are also available with mkii but the note mechanism has some 
limitations.

 what about the second and third question?

Dunno about the second question, maybe there is a tracker option you can use.

For the third a few more infos can be useful. When you want to keep the picture 
and the text together you can try to place the text for the picture with layers 
too, there are examples for this in the “details” and the “style” manuals.

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] rotated columns

2011-08-29 Thread Jano Kula

Thank you, Wolfgang,

I was trying to use columns, columnsets, paragraphs, but unfortunately 
not simplecolumns.


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


Re: [NTG-context] Questions related to margin/dynamic layout

2011-08-29 Thread Yue Wang
On Mon, Aug 29, 2011 at 1:45 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 29.08.2011 um 19:00 schrieb Yue Wang:

 Many thanks! Wolfgang!

 it seems that this is a mkiv only command.

 No, all commands are also available with mkii but the note mechanism has some 
 limitations.

 what about the second and third question?

 Dunno about the second question, maybe there is a tracker option you can use.

 For the third a few more infos can be useful. When you want to keep the 
 picture and the text together you can try to place the text for the picture 
 with layers too, there are examples for this in the “details” and the “style” 
 manuals.


the text main text (just normal text in between the start text and
stop text). so details and style might not suffice.

Since if I put it within a layer, the text will not flow correctly.

for example:

\starttext

(a lot of paragraphs)

surrounding paragraphs

\some_command_to_include_the_picture

surrounding paragraphs

(a lot of paragraphs)

\stoptext

here, the paragraphs should run as normal paragraphs, with these requirement:

1. the paragraphs runs continuously
2. when the picture occurs, the layout of that span changes
3. the paragraphs still runs without (page) breaks through surrounding
pages including the picture span page.
4. the surrounding paragraphs before and after, should appear near the picture.


take an example:

\starttext
paragraphs A-P
\include picture
paragraph Q-Z
\stoptext

the final result should be:

page1: para A,B,C
page2: para D,E

page 13: para M, N
page 14: 2/3 picture
page 15: 1/3 picture + text flow (para O,P,Q)
page 16: paraR, S,


when the user include the picture, he will have no idea where the
picture might appear.
So is there a way to automatically change the page layout at a
specific page (at this example, page 14,15).





 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
___


[NTG-context] Calligraphic math alphabet with xits

2011-08-29 Thread Aditya Mahajan

Hi,

There are two calligraphic shapes in math, calligraphic (e.g., \cal) and 
script (e.g., \scr from RSFS). The default shape of \cal with xits is more 
like RSFS \scr than \cal. Does xits also have a less stylistic variant for 
calligraphic letters? If so, how can I select that?


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

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


Re: [NTG-context] Calligraphic math alphabet with xits

2011-08-29 Thread Khaled Hosny
On Mon, Aug 29, 2011 at 11:08:09PM -0400, Aditya Mahajan wrote:
 Hi,
 
 There are two calligraphic shapes in math, calligraphic (e.g., \cal)
 and script (e.g., \scr from RSFS). The default shape of \cal with
 xits is more like RSFS \scr than \cal. Does xits also have a less
 stylistic variant for calligraphic letters? If so, how can I select
 that?

$ABC \cal ABC \mathalternate{cal}\cal ABC$

There are few other defined alternates in xits-math.lfg.

(I need to write some useful documentation one day)

Regards,
 Khaled

-- 
 Khaled Hosny
 Egyptian
 Arab
___
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] Calligraphic math alphabet with xits

2011-08-29 Thread Khaled Hosny
On Tue, Aug 30, 2011 at 05:34:52AM +0200, Khaled Hosny wrote:
 There are few other defined alternates in xits-math.lfg.

While at it, Hans, here is an updated copy of the file (adding yet
another stylistic set). Since I keep adding stylistic sets, should I
maintain the file and bundle it with XITS? So that users of texlive
would get updated file with new font releases without the need to update
ConTeXt.

Regards,
 Khaled

-- 
 Khaled Hosny
 Egyptian
 Arab
-- \setupbodyfont[xits]
--
-- \starttext
-- $ABC$ $\cal ABC$ $\mathalternate{cal}\cal ABC$
-- \stoptext

return {
name = xits-math,
version = 1.00,
comment = Goodies that complement xits (by Khaled Hosny).,
author = Hans Hagen,
copyright = ConTeXt development team,
mathematics = {
alternates = {
cal   = { feature = 'ss01', value = 1, comment = Mathematical 
Calligraphic Alphabet },
greekssup = { feature = 'ss02', value = 1, comment = Mathematical 
Greek Sans Serif Alphabet },
greekssit = { feature = 'ss03', value = 1, comment = Mathematical 
Italic Sans Serif Digits },
monobfnum = { feature = 'ss04', value = 1, comment = Mathematical 
Bold Monospace Digits },
mathbbbf  = { feature = 'ss05', value = 1, comment = Mathematical 
Bold Double-Struck Alphabet },
mathbbit  = { feature = 'ss06', value = 1, comment = Mathematical 
Italic Double-Struck Alphabet },
mathbbbi  = { feature = 'ss07', value = 1, comment = Mathematical 
Bold Italic Double-Struck Alphabet },
upint = { feature = 'ss08', value = 1, comment = Upright 
Integrals },
vertnot   = { feature = 'ss09', value = 1, comment = Negated 
Symbols With Vertical Stroke },
},
}
}
___
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] Calligraphic math alphabet with xits

2011-08-29 Thread Aditya Mahajan

On Tue, 30 Aug 2011, Khaled Hosny wrote:


On Mon, Aug 29, 2011 at 11:08:09PM -0400, Aditya Mahajan wrote:

Hi,

There are two calligraphic shapes in math, calligraphic (e.g., \cal)
and script (e.g., \scr from RSFS). The default shape of \cal with
xits is more like RSFS \scr than \cal. Does xits also have a less
stylistic variant for calligraphic letters? If so, how can I select
that?


$ABC \cal ABC \mathalternate{cal}\cal ABC$

There are few other defined alternates in xits-math.lfg.


Thanks a lot.

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

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