On Fri, Feb 12 2021, Wolfgang Schuster wrote:
> 2. Add \strut, e.g. \position(1, 1){\strut i}
Ah, thanks. So the anchor is not the baseline, but the top-left corner of
the content.
Since "\setuppositioning[before=\strut]" does not work, I use this
workaround now:
\def\myPosit
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
Am 12.01.2011 um 09:39 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
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
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
, rather than just position relative to the
current baseline.
Layers or overlays are certainly the right method. But there is also the
\position macro:
\setupframed[foregroundstyle=\bfc]
\setuppositioning[state=overlay, unit=cm, xoffset=0.5\textwidth,
yoffset=0.5\textheight]
\starttext
, but with the ability to
specify absolute coordinates, rather than just position relative to the
current baseline.
Layers or overlays are certainly the right method. But there is also the
\position macro:
\setupframed[foregroundstyle=\bfc]
\setuppositioning[state=overlay, unit=cm, xoffset=0.5\textwidth
]
[{http://wiki.contextgarden.net/ConTeXt_Minimals}]
[]
[\ConTeXt\ Minimals]
\useURL
[setposition]
[{http://source.contextgarden.net/core-pos.tex#setpositions}]
[]
[\tex{setposition}]
\useURL
[setuppositioning]
[http://texshow.contextgarden.net]
[{cmd/en/setuppositioning}]
[\tex
){#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
papersize][printing papersize]
\setupparagraphnumbering[options]
\setupparagraphs[name][number|each][options]
\setuppositioning[options]
\setupprofiles[options]
\setupprograms[directory=text]
\setuppublications[options]
\setupquote[options]
\setupreferencelist[names][options]
\setupreferencing
, 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
}
\def\dostartoverfig[#1][#2]%
{\bgroup
\setbox\scratchbox\hbox{\externalfigure[#1][#2]}%
\overfigwd=\wd\scratchbox
\overfight=\ht\scratchbox
\setuppositioning[unit=pt,
xfactor=\withoutpt\the\dimexpr(\overfigwd/100),
yfactor
/ts.rb?what=descif=encmd=useURL
says attached file URL
The one sample using it is:
\useURL
[setuppositioning]
[http://texshow.contextgarden.net]
[cmd=setuppositioning]
[\tex{setuppositioning}]
I didn't test anything.
Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
Hi Giuseppe,
try:
\setuppositioning[unit=cm,factor=0.5]
\starpositioning
\position(1,1){top left text}
\position(40,1){top right text}
\stoppositioning
Of course, the unit can be almost all of well known TeX units (pt, mm, em,
in, ...)
Have a nice day,
Martin
-Original Message
Tuesday, September 7, 2004 Martin Kolarik wrote:
Hi Giuseppe,
try:
\setuppositioning[unit=cm,factor=0.5]
\starpositioning
\position(1,1){top left text}
\position(40,1){top right text}
\stoppositioning
Of course, the unit can be almost all of well known TeX units (pt, mm, em
17 matches
Mail list logo