Re: [NTG-context] Hod do I get the page number in the left margin (not in the footer)?

2009-06-26 Thread Gerben Wierda

On 26 Jun 2009, at 10:05, Wolfgang Schuster wrote:

And while I'm at it, if I want a heading in the left margin as  
well, but I want it 90 degrees rotated, how do I do that?


\setuplayout
 [leftmargin=1cm,
  leftmargindistance=5mm]

\startsetups header:margin

 \framed
   [frame=off,
orientation=90,
width=\leftmarginwidth,
height=\textheight,
align={middle,middle}]
   {My document\hfil\pagenumber\hfil My name}

\stopsetups

\defineoverlay[header:margin][\setups{header:margin}]

\setupbackgrounds[text][leftmargin][background={header:margin}]

\starttext

...

\stoptext


Thanks. Almost there. I now have:

\definetyping[SQL][option=color,numbering=line,bodyfont=9pt]
\defineoverlay[ifsqoverlay][\overlayfigure{IfSQ-overlay.pdf}]
\setuppapersize[A4,landscape][a4,landscape]
\setupbackgrounds[page][background=ifsqoverlay]
\setuptyping[SQL][palet=colorpretty]
\def\typeSQLfile{\typefile[SQL]}

\setuplayout
 [leftmargin=1cm,
  leftmargindistance=5mm,
  footer=0mm,
  header=0mm,
  rightmargin=0mm]

\startsetups header:margin
 \framed
   [frame=off,
orientation=90,
width=2\leftmarginwidth,
height=\textheight,
align={top,middle}]
   {My document\hfil\pagenumber\hfil My name}
\stopsetups

\defineoverlay[header:margin][\setups{header:margin}]

\setupbackgrounds[text][leftmargin][background={header:margin}]
\starttext
\typeSQLfile{Library-procedures/details.pls}
%\typeSQLfile{Library-procedures/aanroep_kgcpros20.pls}
%\typeSQLfile{Library-procedures/details.pls}
%\typeSQLfile{Library-procedures/helix_print.pls}
%\typeSQLfile{Library-procedures/hlx$requery.pls}
%\typeSQLfile{Library-procedures/kgc$adm_meerling.pls}
%\typeSQLfile{Library-procedures/kgc$bereken.pls}
%\typeSQLfile{Library-procedures/kgc$datum.pls}
%\typeSQLfile{Library-procedures/kgc$item.pls}
%\typeSQLfile{Library-procedures/kgc$tab.pls}
%\typeSQLfile{Library-procedures/kgc$toon.pls}
%\typeSQLfile{Library-procedures/print_uitslagbrief.pls}
%\typeSQLfile{Library-procedures/qms$record.pls}
%\typeSQLfile{Library-procedures/voeruit_idef.pls}
%\typeSQLfile{Library-procedures/vul_onwy_list.pls}
%\typeSQLfile{Library-procedures/zoek_item.pls}
\stoptext

I do now have a rotated 'header' on the left side. And thanks to the  
larger width and the top aligment, the rotated 'heading' does not  
conflict with the line numbers.


But ... the page number is '1' on every page

And the I'd like to change the definition of the \typeSQLfile command  
such that it changes the document name in the rotated header too.


G

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


Re: [NTG-context] Hod do I get the page number in the left margin (not in the footer)?

2009-06-26 Thread Wolfgang Schuster


Am 26.06.2009 um 09:51 schrieb Gerben Wierda:


On 25 Jun 2009, at 23:15, Gerben Wierda wrote:


On 25 Jun 2009, at 14:38, Carlos Breton Besnier wrote:


I think because the footer is 0 mm.


But doesn't inleft mean the page number is in the left margin, not  
the footer?


Apparently not. It is still in the footer. OK, if I set the footer  
to 10mm I get a page number in the footer (in this case in the same  
horizontal location as the line numbers)


But I want to have as much vertical space as possible for the text.  
Is it possible to get the page number in the left marging, somewhere  
in the middle of the page?


And while I'm at it, if I want a heading in the left margin as well,  
but I want it 90 degrees rotated, how do I do that?


\setuplayout
  [leftmargin=1cm,
   leftmargindistance=5mm]

\startsetups header:margin

  \framed
[frame=off,
 orientation=90,
 width=\leftmarginwidth,
 height=\textheight,
 align={middle,middle}]
{My document\hfil\pagenumber\hfil My name}

\stopsetups

\defineoverlay[header:margin][\setups{header:margin}]

\setupbackgrounds[text][leftmargin][background={header:margin}]

\starttext

...

\stoptext

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


[NTG-context] Hod do I get the page number in the left margin (not in the footer)?

2009-06-26 Thread Gerben Wierda

On 25 Jun 2009, at 23:15, Gerben Wierda wrote:


On 25 Jun 2009, at 14:38, Carlos Breton Besnier wrote:


I think because the footer is 0 mm.


But doesn't inleft mean the page number is in the left margin, not  
the footer?


Apparently not. It is still in the footer. OK, if I set the footer to  
10mm I get a page number in the footer (in this case in the same  
horizontal location as the line numbers)


But I want to have as much vertical space as possible for the text. Is  
it possible to get the page number in the left marging, somewhere in  
the middle of the page?


And while I'm at it, if I want a heading in the left margin as well,  
but I want it 90 degrees rotated, how do I do that?


G



G





2009/6/25, Gerben Wierda :
Question. With

\definetyping[SQL][option=color,numbering=line,bodyfont=9pt]
\defineoverlay[ifsqoverlay][\overlayfigure{IfSQ-overlay.pdf}]
\setuplayout[leftmargin=10mm,rightmargin=0mm,footer=0mm,header=5mm]
\setuppapersize[A4,landscape][a4,landscape]
\setupbackgrounds[page][background=ifsqoverlay]
\setuptyping[SQL][palet=colorpretty]
\setuppagenumbering[location=inleft]
\def\typeSQLfile{\typefile[SQL]}
\starttext

why do I not see page numbers? Has this to do with my margins (I  
need to use as much space on the page as possible)?


Thanks,

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