From: "Vit Zyka" <vit.zyka@seznam.cz>
Subject: bug in alignbox
Date: Fri, 14 May 2004 10:53:10 +0200 [thread overview]
Message-ID: <005201c43994$2a322950$3c02000a@spekoun> (raw)
[-- Attachment #1: Type: text/plain, Size: 1314 bytes --]
Hallo Hans,
I have played with positioning text in layers. I noticed that parameter "location=t"
\setlayer[MyLayer][...,location=t,...]{...}
behaves the same way as "location=c". It seems to me it is the bug in optimized definition of
\alignedbox. If I use commented version of \alignedbox from source file core-box.tex
it is OK. Can you look at it, please?
Test file:
------------------------------------------------------------------
\definelayer[PositionText][position=no,corner=buttom,height=\textheight,option=test]
\def\PosText(#1,#2)[#3]#4{%
\setlayer[PositionText][x=#1,y=#2,location=#3]{#4}%
\ignorespaces}
\setupbackgrounds[text][background={PositionText}]
\switchtobodyfont[20pt]
\starttext
\PosText(.3\textwidth,.3\textheight)[c]{Center}
\PosText(.3\textwidth,.3\textheight)[t]{Top}
\PosText(.3\textwidth,.3\textheight)[b]{Bottom}
\PosText(.3\textwidth,.5\textheight)[l]{Left}
\PosText(.3\textwidth,.5\textheight)[r]{Right}
\PosText(.7\textwidth,.5\textheight)[tl]{TopLeft}
\PosText(.7\textwidth,.5\textheight)[tr]{TopRight}
\PosText(.7\textwidth,.5\textheight)[bl]{BottomLeft}
\PosText(.7\textwidth,.5\textheight)[br]{BottomRight}
Ap\hskip1.5em
\alignedbox[b]\hbox{ApB}\hskip1.5em
\alignedbox[c]\hbox{ApC}\hskip1.5em
\alignedbox[t]\hbox{ApT}
\stoptext
[-- Attachment #2: Type: text/html, Size: 2531 bytes --]
next reply other threads:[~2004-05-14 8:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-14 8:53 Vit Zyka [this message]
2004-05-14 16:09 ` Hans Hagen
2004-05-15 8:20 ` layers (was bug in alignbox) pawcoo
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='005201c43994$2a322950$3c02000a@spekoun' \
--to=vit.zyka@seznam.cz \
--cc=ntg-context@ntg.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).