Peter Münster schrieb am 12.02.2021 um 13:31:
Hi,
When I want to type an "i" in the position-command, there is some
vertical offset:
\starttext
\startpositioning
\position(1, 1){i} \position(2, 1){x}
\position(1, 2){x} \position(2, 2){i}
\position(1, 3){a} \position(2, 3){x}
\positi
Hi,
When I want to type an "i" in the position-command, there is some
vertical offset:
\starttext
\startpositioning
\position(1, 1){i} \position(2, 1){x}
\position(1, 2){x} \position(2, 2){i}
\position(1, 3){a} \position(2, 3){x}
\position(1, 4){x} \position(2, 4){a}
\stoppositioning
ements and coordinates on the go, like the stuff
provided by the picture package on LaTeX. (It's labels for cider
bottles this time.)
A third method apart from layers and metapost is the positioning
environment.
\setupexternalfigure[location=default]
\starttext
\startpositioning
\position(0,0){\external
Hello,
thanks to all for the answers, Peter's solution is closest to that I need. My
code now is:
---
\setuppapersize[A1,landscape]
\setuplayout[page]
\setuppositioning
[state=overlay,
yoffset=-12pt % Why?
]
\starttext
\startpositioning
\position(0,0){\rotate[rotation=90
?
]
\starttext
\startpositioning
\position(0,0){\rotate[rotation=90]{\externalfigure[TvNK]}}
\position(630mm,297mm){\framed[frame=off,offset=overlay,background=color,backgroundcolor=white]
{\externalfigure[_R]}}
\stoppositioning
\stoptext
---
I'd still
the job:
\setuppapersize[A2]
\setuplayout[page]
\setuppositioning[state=overlay,
yoffset=-12pt%%% Why is this offset needed???
]
\starttext
\startpositioning
\position(0,0){\externalfigure[a2-page]}
\position(0,0){\framed[frame=off, offset=overlay, background=color
the code a bit and it's now in pack-pos.mkiv.
The \startpositioning macro also accepts an optional settings argument
now.
Hans
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH
\startpositioning
\position(0,0){\framed{0,0}}
\position(-5,-5){\framed{-5,-5}}
\position(-5,5){\framed{-5,5}}
\position(5,-5){\framed{5,-5}}
\position(5,5){\framed{5,5}}
\stoppositioning
\input tufte
\input tufte
\input tufte
\input tufte
\input tufte
\stoptext
Cheers, Peter
--
Contact
,
yoffset=0.5\textheight]
\starttext
\startpositioning
\position(0,0){\framed{0,0}}
\position(-5,-5){\framed{-5,-5}}
\position(-5,5){\framed{-5,5}}
\position(5,-5){\framed{5,-5}}
\position(5,5){\framed{5,5}}
\stoppositioning
\input tufte
\input tufte
\input tufte
\input tufte
\input tufte
){#3}%
\StopLocalStep
\ignorespaces}
\starttext
\framed
[width=3cm,
height=3cm,
background=invoke,
offset=overlay]
{\setuppositioning[unit=mm,factor=5,xoffset=-2.5cm,yoffset=-2.5cm]
\startpositioning
\addstone12X% show layer 1
\addstone42O% show layer 2
\stopnotmode
\startopposite \stopopposite
\startoverlay{text}{text} \stopoverlay
\startoverview[names] \stopoverview
\startpacked[blank] \stoppacked
\startparagraph \stopparagraph
\startpositioning \stoppositioning
\startpostponing \stoppostponing
\startproduct file \stopproduct
\startprofile[names
, leftmargindistance=0pt, backspace=0pt,
rightmargin=0pt, rightmargindistance=0pt, cutspace=0pt, width=middle,
topspace=0pt, header=0pt, headerdistance=0pt, footer=0pt,
footerdistance=0pt, bottomspace=0pt, height=middle]
%\showlayout
\starttext
\setuppositioning[unit=cm]
\startpositioning
, rightmargindistance=0pt, cutspace=0pt, width=middle,
topspace=0pt, header=0pt, headerdistance=0pt, footer=0pt,
footerdistance=0pt, bottomspace=0pt, height=middle]
%\showlayout
\starttext
\setuppositioning[unit=cm]
\startpositioning
\newcount\Row
\Row= 0
\loop
=middle,
topspace=0pt, header=0pt, headerdistance=0pt, footer=0pt, footerdistance=0pt,
bottomspace=0pt, height=middle]
%\showlayout
\starttext
\setuppositioning[unit=cm]
\startpositioning
\newcount\Row
\Row= 0
\loop
{
\newcount
\setbox\scratchbox\hbox{\externalfigure[#1][#2]}%
\overfigwd=\wd\scratchbox
\overfight=\ht\scratchbox
\setuppositioning[unit=pt,
xfactor=\withoutpt\the\dimexpr(\overfigwd/100),
yfactor=\withoutpt\the\dimexpr(\overfight/100)]%
\startpositioning
=\withoutpt\the\dimexpr(\overfight/100)]%
\startpositioning
\position(0,0){\box\scratchbox}}
\def\stopoverfig
{\stoppositioning\egroup}
% Put (centered) at the position (x%,y%) on the figure.
% The lower-left corner is (0,0)
\def\calspair(#1,#2)#3%
{\setbox0\hbox{#3
cells on the right with
automatically determined widths and heights.
2. grid typesetting
http://pragma-ade.nl/general/manuals/details.pdf
you can position the stuff on the grid (still precise, but in other
units than centimeters)
3. http://wiki.contextgarden.net/Chromatograms uses \startpositioning
\startpositioning
... \stoppositioning, which is probably something similar to layers. I
never used it, but perhaps you can take a look if you find it useful.
4. many other ways for sure (depending on your needs), in worst case
even plain TeX ;)
I discovered that the layers were inserted
18 matches
Mail list logo