Equivalent in ConTeXt mkiv for LaTeX's picture environment?
The headline says it: As a convert from LaTeX I'm looking for the functionality of LaTeX's picture environment, i.e. the placing of boxes et al. according to absolute coordinates, possibly with calculating measurements and coordinates on the go, like the stuff provided by the picture package on LaTeX. (It's labels for cider bottles this time.) Cheers -- Thomas
Am 2016-06-26 um 00:31 schrieb Thomas Fehige
The headline says it: As a convert from LaTeX I'm looking for the functionality of LaTeX's picture environment, i.e. the placing of boxes et al. according to absolute coordinates, possibly with calculating measurements and coordinates on the go, like the stuff provided by the picture package on LaTeX. (It's labels for cider bottles this time.)
You’re looking for layers: http://wiki.contextgarden.net/Layers and maybe XY imposition: http://wiki.contextgarden.net/Imposition#XY_schema Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) GPG Key ID 1C9B22FD
On Sat, 25 Jun 2016, Thomas Fehige wrote:
The headline says it: As a convert from LaTeX I'm looking for the functionality of LaTeX's picture environment, i.e. the placing of boxes et al. according to absolute coordinates, possibly with calculating measurements and coordinates on the go, like the stuff provided by the picture package on LaTeX. (It's labels for cider bottles this time.)
Depends on the specifics. If you just want to place labels, then use layers. If you want labels + measuring stuff + drawing lines etc., then use a combination of layers and metapost. Aditya
Thomas Fehige mailto:thomas@fehige.de 25. Juni 2016 um 20:31 The headline says it: As a convert from LaTeX I'm looking for the functionality of LaTeX's picture environment, i.e. the placing of boxes et al. according to absolute coordinates, possibly with calculating measurements 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){\externalfigure[cow][width=\textwidth]} \position(1.5,2){\color[green]{HEAD}} \position(10,6.5){\color[red]{UDDER}} \stoppositioning \stoptext Wolfgang
participants (4)
-
Aditya Mahajan
-
Henning Hraban Ramm
-
Thomas Fehige
-
Wolfgang Schuster