ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Page Background
@ 2009-11-06 18:27 Wolfgang Murth
  2009-11-06 18:38 ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Murth @ 2009-11-06 18:27 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'


Hi all,

I have problems to put two banners on each page of a document except the first page. I tried the following that was shown perfetly,
but only on one page.

What am I doing wrong or is there a better way to show a banner on the top and on the bottom of a page?

Thanks for your help

Wolfgang Murth

\useexternalfigure[headpict][images/hintergrund_kopf.png]
\useexternalfigure[footpict][images/hintergrund_fuss.png]
\definelayer[imgtopbot]
    [width=\paperwidth,
    height=\paperheight,
    x=0cm,
    y=0cm,
    frame=off
    ]

\setlayerframed[imgtopbot][voffset=0.5cm,frame=off]
{\externalfigure[headpict]}
\setlayerframed[imgtopbot][voffset=26.5cm,frame=off]
{\externalfigure[footpict]}

\setupbackgrounds[page][background=imgtopbot,state=repeat]

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


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

* Re: Page Background
  2009-11-06 18:27 Page Background Wolfgang Murth
@ 2009-11-06 18:38 ` Wolfgang Schuster
  2009-11-07  9:24   ` Wolfgang Murth
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2009-11-06 18:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 06.11.2009 um 19:27 schrieb Wolfgang Murth:

> Hi all,
>
> I have problems to put two banners on each page of a document except  
> the first page. I tried the following that was shown perfetly,
> but only on one page.

\definelayer[...][...,state=continue,...]

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
___________________________________________________________________________________


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

* Re: Page Background
  2009-11-06 18:38 ` Wolfgang Schuster
@ 2009-11-07  9:24   ` Wolfgang Murth
  2009-11-07 12:41     ` Customizing table of contents (lists) Andreas Harder
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Murth @ 2009-11-07  9:24 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'


 Hello Wolfgang,


>\definelayer[...][...,state=continue,...]

I tried that before I posted my question but that didn't work. See below a minimal sample. 
I am using ConTeXt  ver: 2009.10.02 13:14 MKIV  and also tried it with ConTeXt  ver: 2009.11.02 21:31 MKIV.

best regards

Wolfgang Murth


% Minimal Sample

\language[de]
\mainlanguage[de]

\setuplayout[
    header=0.5cm,
    footer=1cm,
    width=16.5cm,
    height=22.7cm,
    topspace=3.8cm,
    leftmargindistance=2mm
    ]

\startstandardmakeup
    \raggedcenter \vskip 0cm \definedfont[Bold sa 2]\setstrut \strut
    This is the titlepage\\
    \vfill
\stopstandardmakeup



\starttext

\useexternalfigure[headpict][cow.pdf][height=2cm]
\useexternalfigure[footpict][cow.pdf][height=2cm]
\definelayer[imgtopbot]
    [width=\paperwidth,
    height=\paperheight,
    x=0cm,
    y=0cm,
    frame=off,
    state=continue
    ]

\setlayerframed[imgtopbot][voffset=0.5cm,frame=off]
{\externalfigure[headpict]}
\setlayerframed[imgtopbot][voffset=26.5cm,frame=off]
{\externalfigure[footpict]}
\setupbackgrounds[page][background=imgtopbot]


\chapter{first}  \dorecurse{10}{\input tufte  }
\chapter{second} \dorecurse{10}{\input davis  }
\chapter{third}  \dorecurse{10}{\input zapf   }
\chapter{fourth} \dorecurse{10}{\input bryson }
\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
___________________________________________________________________________________


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

* Customizing table of contents (lists)
  2009-11-07  9:24   ` Wolfgang Murth
@ 2009-11-07 12:41     ` Andreas Harder
  2009-11-07 16:04       ` \inline[…] Andreas Harder
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Harder @ 2009-11-07 12:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

I've adapted the example from strc-lst.mkiv:

\setuplist[section][alternative=MyListItem]

\definelistplacement[MyListItem][none]#1#2#3%
   {\framed{(#1) (#2) (#3)}}

\starttext \showframe
\placecontent \dorecurse{12}{\section{Test}}
\stoptext

But I want the list items to break after the 5th section, like with  
alternative=d. How to manage this?

In fact I've a setup like:

\setuplist [section]    [alternative=c]
\setuplist [subsection] [alternative=d,margin=3em,headnumber=no]

\starttext \showframe
\placecontent
\dorecurse{7}{\section{Test alpha}\section{Test beta}
   \dorecurse{8}{\subsection{A very long and stupid section title}}}
\stoptext

and want the subsections in the list break with the end oft the dotted  
line, therefore I tried to customize the list placement.

Perhaps someone is willing to provide a solution …

Thanks in advance.

	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
___________________________________________________________________________________


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

*  \inline[…]
  2009-11-07 12:41     ` Customizing table of contents (lists) Andreas Harder
@ 2009-11-07 16:04       ` Andreas Harder
  2009-11-07 16:31         ` \inline[…] Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Harder @ 2009-11-07 16:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hello Hans!

If referencing to the same line, the line will be displayed twice. I  
tried Wolfgangs patch: http://archive.contextgarden.net/message/20091018.091419.18877aa9.en.html 
  but it did not help.

\starttext
\startlinenumbering
   \someline[a]We thrive in information--thick worlds because of our
   marvelous and everyday ca-pacity to select, …\someline[b]
\stoplinenumbering

\inline[a] or \inline[b]
\stoptext

Greetings
	Andreas

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

[-- Attachment #2: Type: text/plain, Size: 486 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \inline[…]
  2009-11-07 16:04       ` \inline[…] Andreas Harder
@ 2009-11-07 16:31         ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2009-11-07 16:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Andreas Harder wrote:
> Hello Hans!
> 
> If referencing to the same line, the line will be displayed twice. I 
> tried Wolfgangs 
> patch: http://archive.contextgarden.net/message/20091018.091419.18877aa9..en.html 
> <http://archive.contextgarden.net/message/20091018.091419.18877aa9.en.html> but 
> it did not help.
> 
> \starttext
> \startlinenumbering
>   \someline[a]We thrive in information--thick worlds because of our
>   marvelous and everyday ca-pacity to select, …\someline[b] 
> \stoplinenumbering
> 
> \inline[a] or \inline[b]
> \stoptext

should work ok in beta


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 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
___________________________________________________________________________________


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

end of thread, other threads:[~2009-11-07 16:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-06 18:27 Page Background Wolfgang Murth
2009-11-06 18:38 ` Wolfgang Schuster
2009-11-07  9:24   ` Wolfgang Murth
2009-11-07 12:41     ` Customizing table of contents (lists) Andreas Harder
2009-11-07 16:04       ` \inline[…] Andreas Harder
2009-11-07 16:31         ` \inline[…] Hans Hagen

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).