ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Why no page numbering here?
@ 2009-06-25  5:41 Gerben Wierda
  2009-06-25 12:38 ` Carlos Breton Besnier
  0 siblings, 1 reply; 10+ messages in thread
From: Gerben Wierda @ 2009-06-25  5:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Why no page numbering here?
  2009-06-25  5:41 Why no page numbering here? Gerben Wierda
@ 2009-06-25 12:38 ` Carlos Breton Besnier
  2009-06-25 21:15   ` Gerben Wierda
  0 siblings, 1 reply; 10+ messages in thread
From: Carlos Breton Besnier @ 2009-06-25 12:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1181 bytes --]

I think because the footer is 0 mm.



2009/6/25, Gerben Wierda <Gerben.Wierda@rna.nl>:
>
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2177 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Why no page numbering here?
  2009-06-25 12:38 ` Carlos Breton Besnier
@ 2009-06-25 21:15   ` Gerben Wierda
  2009-06-26  7:51     ` Hod do I get the page number in the left margin (not in the footer)? Gerben Wierda
                       ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Gerben Wierda @ 2009-06-25 21:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1833 bytes --]

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?

G

>
>
>
> 2009/6/25, Gerben Wierda <Gerben.Wierda@rna.nl>:
> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 3412 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Hod do I get the page number in the left margin (not in the footer)?
  2009-06-25 21:15   ` Gerben Wierda
@ 2009-06-26  7:51     ` Gerben Wierda
  2009-06-26  8:05       ` Wolfgang Schuster
  2009-06-26  8:09     ` Why no page numbering here? Wolfgang Schuster
                       ` (2 subsequent siblings)
  3 siblings, 1 reply; 10+ messages in thread
From: Gerben Wierda @ 2009-06-26  7:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2921 bytes --]

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 <Gerben.Wierda@rna.nl>:
>> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 5211 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Hod do I get the page number in the left margin (not in the footer)?
  2009-06-26  7:51     ` Hod do I get the page number in the left margin (not in the footer)? Gerben Wierda
@ 2009-06-26  8:05       ` Wolfgang Schuster
  2009-06-26  8:47         ` Gerben Wierda
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2009-06-26  8:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Why no page numbering here?
  2009-06-25 21:15   ` Gerben Wierda
  2009-06-26  7:51     ` Hod do I get the page number in the left margin (not in the footer)? Gerben Wierda
@ 2009-06-26  8:09     ` Wolfgang Schuster
  2009-06-26  8:30     ` Carlos Breton Besnier
  2009-06-26  8:36     ` luigi scarso
  3 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2009-06-26  8:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 25.06.2009 um 23:15 schrieb Gerben Wierda:

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

Even header and footer have a margin block, you need

   \setuppagenumbering[location={header,inleft}]

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Why no page numbering here?
  2009-06-25 21:15   ` Gerben Wierda
  2009-06-26  7:51     ` Hod do I get the page number in the left margin (not in the footer)? Gerben Wierda
  2009-06-26  8:09     ` Why no page numbering here? Wolfgang Schuster
@ 2009-06-26  8:30     ` Carlos Breton Besnier
  2009-06-26  8:36     ` luigi scarso
  3 siblings, 0 replies; 10+ messages in thread
From: Carlos Breton Besnier @ 2009-06-26  8:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2777 bytes --]

Yes, but in the left footer.
For more space on the page, try:

\setuplayout[backspace=1cm,
topspace=0.5cm,
header=0.5cm,
footer=0.5cm,
leftmargin=0cm,
leftmargindistance=0cm,
rightmargin=0cm,
rightmargindistance=0cm,
height=.95\paperheight,
width=.95\paperwidth]

\setuppagenumbering[location=left]

Regards.



2009/6/25, Gerben Wierda <Gerben.Wierda@rna.nl>:
>
>  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?
>
>
> G
>
>
>
>
> 2009/6/25, Gerben Wierda <Gerben.Wierda@rna.nl>:
>>
>> 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
>
> ___________________________________________________________________________________
>
>

[-- Attachment #1.2: Type: text/html, Size: 5867 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Why no page numbering here?
  2009-06-25 21:15   ` Gerben Wierda
                       ` (2 preceding siblings ...)
  2009-06-26  8:30     ` Carlos Breton Besnier
@ 2009-06-26  8:36     ` luigi scarso
  3 siblings, 0 replies; 10+ messages in thread
From: luigi scarso @ 2009-06-26  8:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 360 bytes --]

On Thu, Jun 25, 2009 at 11:15 PM, Gerben Wierda <Gerben.Wierda@rna.nl>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?
>
> G
>
Why don't you use \showlayout ?

\showlayout
\starttext
\input knuth
\stoptext

-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 861 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Hod do I get the page number in the left margin (not in the footer)?
  2009-06-26  8:05       ` Wolfgang Schuster
@ 2009-06-26  8:47         ` Gerben Wierda
  2009-06-28 16:13           ` Solution. Only one problem left ($ in file name) Gerben Wierda
  0 siblings, 1 reply; 10+ messages in thread
From: Gerben Wierda @ 2009-06-26  8:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Solution. Only one problem left ($ in file name)
  2009-06-26  8:47         ` Gerben Wierda
@ 2009-06-28 16:13           ` Gerben Wierda
  0 siblings, 0 replies; 10+ messages in thread
From: Gerben Wierda @ 2009-06-28 16:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

The solution to my search (thanks Wolfgang for your help) is below. I  
have two overlays, one for the PDF and one for the rotated heading. I  
reset the heading's setups at every \typeSQLfile so the name gets  
changed. I just add both backgrounds (this is why I like ConTeXt,  
stuff like that (background=header becomes  
background={header,ifsqoverlay} just works.

What is left now is that the \expanded, \detokenize and stuff is still  
not able to typefile files with $ in their name. For files with _ in  
their name, it works  now. WIthout the expanded stuff in

\expanded{\typeSQLfile{\detokenize{Library-procedures/hlx$requery.pls}}}

the TeX job crashes because of the $ in the file name. WIth it it does  
not crash but I get

[fileLibrary-procedures/hlx$requery.pls does not exist]

WIth

\typeSQLfile{Library-procedures/hlx\$requery.pls}

it also does not crash, but I get

[fileLibrary-procedures/hlx\$requery.pls does not exist]

G

Solution so far:


\def\IfSQprojectname{Foo}
\definetyping[SQL][option=color,numbering=line,bodyfont=9pt]
\setuppapersize[A4,landscape][a4,landscape]
\setuptyping[SQL][palet=colorpretty]

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

\definelayer[header][width=\paperwidth,height=\paperheight]
\defineoverlay[ifsqoverlay][\overlayfigure{IfSQ-overlay.pdf}]
\setupbackgrounds[page] 
[setups={header:margin},background={header,ifsqoverlay}]

\def\typeSQLfile#1{%
\startsetups header:margin
  \setlayerframed
    [header]
    [hoffset=\dimexpr\backspace-\leftmarginwidth-\leftmargindistance 
\relax,
     voffset=\dimexpr\topspace+\headerheight+\headerdistance\relax]
    [frame=off,
     orientation=90,
     width=\leftmarginwidth,
     height=\textheight,
     align={top,middle}]
    {\detokenize{#1}\hfil\pagenumber\hfil \IfSQprojectname, \date}
\stopsetups
\pagebreak\expanded{\typefile[SQL]{\detokenize{#1}}}}

\starttext
\typeSQLfile{Library-procedures/aanroep_kgcpros20.pls}
\typeSQLfile{Library-procedures/details.pls}
\expanded{\typeSQLfile{\detokenize{Library-procedures/hlx$requery.pls}}}
\stoptext

On 26 Jun 2009, at 10:47, Gerben Wierda wrote:

> 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/foo_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
> ___________________________________________________________________________________
>

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-06-28 16:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-25  5:41 Why no page numbering here? Gerben Wierda
2009-06-25 12:38 ` Carlos Breton Besnier
2009-06-25 21:15   ` Gerben Wierda
2009-06-26  7:51     ` Hod do I get the page number in the left margin (not in the footer)? Gerben Wierda
2009-06-26  8:05       ` Wolfgang Schuster
2009-06-26  8:47         ` Gerben Wierda
2009-06-28 16:13           ` Solution. Only one problem left ($ in file name) Gerben Wierda
2009-06-26  8:09     ` Why no page numbering here? Wolfgang Schuster
2009-06-26  8:30     ` Carlos Breton Besnier
2009-06-26  8:36     ` luigi scarso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).