From: "Verhaag, G.C.H.M." <verhaaggchm@ziggo.nl>
To: Hans Hagen <pragma@wxs.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Setuplayout bug?
Date: Sat, 14 May 2011 19:44:29 +0200 [thread overview]
Message-ID: <4DCEBF7D.9070202@ziggo.nl> (raw)
In-Reply-To: <4DCE65BE.3060507@wxs.nl>
[-- Attachment #1: Type: text/plain, Size: 1944 bytes --]
On 05/14/2011 01:21 PM, Hans Hagen wrote:
> On 14-5-2011 11:15, Verhaag, G.C.H.M. wrote:
>> On 05/13/2011 10:25 AM, Verhaag, G.C.H.M. wrote:
>>> Hi,
>>>
>>> The \setuplayout command causes problems I don't understand, sorry! I
>>> use the following setup in a screen (\setuppapersize[S6][S6]) document:
>>>
>>> \setuplayout
>>> [header=0cm,
>>> topspace=.2cm,
>>> backspace=.2cm,
>>> margin=0cm,
>>> width=fit,
>>> footer=1cm,
>>> bottomdistance=5pt,
>>> bottom=20pt,
>>> height=fit]
>>>
>>> This gives a result as aspected! However adding the setting
>>>
>>> rightedge=3cm
>>>
>>> to the layout command, for a menu, yields an unexpected result. Okay,
>>> an area on the right of the screen is indeed blank as aspected! But
>>> the text of a full page is also shifted downward, and overlaps the
>>> text within the footer area, which is quite weird isn't it?
>>>
>>> I don't grasp this footer problem as indicated above!!!! Any idea
>>> what's wrong?
>>>
>>> Regards,
>>> Gerard Verhaag
>>>
>>> P.S.
>>> I use ConTeXt ver: 2011.03.30 11:21 MKIV fmt: 2011.3.30 int:
>>> english/english
>>>
>>> ...
>>
>> Hi,
>>
>> I figured out that the problem is caused by the \setupinteraction
>> command. When switching the menu off by setting menu=off, the layout of
>> the text is okay, without the shift! However, when I use
>>
>> \setupinteraction
>> [state=start,
>> style=small,
>> page=yes,
>> menu=on]
>>
>> the annoying interference of the text with the footer is introduced. Any
>> ideas how to correct the problem?
>
> We need a one page self contained example for this.
>
> Hans
> ....
Hi,
You'll find the self contained example (rightedge.tex) attached!
I compile it using:
context --pdf rightedge
and view the result with Acrobat Reader 9.
I upgraded to the latest version and now use:
ConTeXt ver: 2011.05.13 12:01 MKIV fmt: 2011.5.14 int: english/english
Thanks for paying attention to this problem!
Regards,
Gerard Verhaag
[-- Attachment #2: rightedge.tex --]
[-- Type: text/x-tex, Size: 1256 bytes --]
\setuppapersize
[S6][S6]
\language[nl]
\setuplayout
[header=0cm,
topspace=.2cm,
backspace=.2cm,
margin=0cm,
width=fit,
footer=1cm,
rightedge=3cm,
bottomdistance=5pt,
bottom=20pt,
height=fit]
\showframe
\definecolor [MyColor] [darkgreen]
\setupfootertexts
[chapter][{\currentdate[month,year]}]
\setupinteraction
[state=start,
style=small,
menu=on, % switching between on and off will show my problem (the vertical shift of the entire text!)!
title=ABL File,
author=Geert Verhaag]
\setupbackgrounds
[page]
[background=color,
backgroundcolor=darkgreen]
\setupbackgrounds
[text,header,footer][leftmargin,text,rightmargin]
[background=color,
backgroundcolor=white,
backgroundoffset=.5mm]
\setupinteractionmenu
[right]
[background=color,
backgroundcolor=MyColor,
color=blue,
frame=off,
distance=overlay,
unknownreference=no,
samepage=yes]
\defineinteractionmenu
[main][right]
[state=start,
width=\rightedgewidth,
align=middle]
\startinteractionmenu[main]
\but [inleiding] Inleiding \\
\vfill
\but [CloseDocument] sluit \\
\stopinteractionmenu
\starttext
\chapter[inleiding]{Inleiding}
\dorecurse{3}{\input tufte \par \input knuth \par}
\stoptext
[-- Attachment #3: Type: text/plain, Size: 485 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
___________________________________________________________________________________
next prev parent reply other threads:[~2011-05-14 17:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-13 8:25 Verhaag, G.C.H.M.
2011-05-14 9:15 ` Verhaag, G.C.H.M.
2011-05-14 11:21 ` Hans Hagen
2011-05-14 17:44 ` Verhaag, G.C.H.M. [this message]
2011-05-16 9:12 ` Hans Hagen
2011-05-16 16:19 ` Verhaag, G.C.H.M.
2011-05-16 20:52 ` Alan Braslau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DCEBF7D.9070202@ziggo.nl \
--to=verhaaggchm@ziggo.nl \
--cc=ntg-context@ntg.nl \
--cc=pragma@wxs.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).