Howto metapost textext set or change basepoint (origin) baseline of text
Hi
I have the following problem. I convert a eps file using pstoedit into
meta post file. When running this file through mptopdf the resulting
pdf image is as expected. When i include, using the input command, the
file within a startMPcode endMPcode or startMPpage stopMPpage after
replacing simple draw <string>... by draw textext(
On 2/20/2020 10:15 AM, Christoph Hintermüller wrote:
Hi I have the following problem. I convert a eps file using pstoedit into meta post file. When running this file through mptopdf the resulting pdf image is as expected. When i include, using the input command, the file within a startMPcode endMPcode or startMPpage stopMPpage after replacing simple draw <string>... by draw textext(
To mee it seems as textext uses a different basepoint/baseline of the text, than pstoedit assumed. Maybe in additon effects related to differences in fonts may be additional reason.
My questions are What keywords do i have to enter in google or the context garden wiki search box to obtain examples and questions dealing with similar aspects
How do i explicitly set the position of the text origin point within the textbox/lable box used by textext. eg. assume origin point bottom left, left on baseline, center in the middle etc.
What else might i bee missing or having a wrong idea how things are done by netapost/metafun/context in this context? You can append a palcement suffix, like:
textext.dflt you can try: lft rt bot top ulft urt llft lrt d dflt drt origin raw (if instead of an eps export you can use svg that can be an alternative route) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Hi Hans On Thu, 2020-02-20 at 10:28 +0100, Hans Hagen wrote:
On 2/20/2020 10:15 AM, Christoph Hintermüller wrote:
You can append a palcement suffix, like:
textext.dflt
you can try:
lft rt bot top ulft urt llft lrt d dflt drt origin raw
Thank you very much, that was what i missed to properly get when reading manuals.
(if instead of an eps export you can use svg that can be an alternative route)
Yes i know but i want text inside figure to be typeset by context to be able to use all the cool stuff including math fonts and others offered by context and its packages. And again i was not able to deduce any hint that this magically would happen for SVG directly. What i understood is it will be converted to pdf via cli interface of inkscape and simply included as pdf image. Best Xristoph
Hi Hans On Thu, 2020-02-20 at 10:28 +0100, Hans Hagen wrote:
On 2/20/2020 10:15 AM, Christoph Hintermüller wrote:
You can append a palcement suffix, like:
textext.dflt
you can try:
lft rt bot top ulft urt llft lrt d dflt drt origin raw
Thanks again. textext.origin was the solution i was not able to properly figure Best Xristoph
participants (2)
-
Christoph Hintermüller
-
Hans Hagen