ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Howto metapost textext set or change basepoint (origin) baseline of text
@ 2020-02-20  9:15 Christoph Hintermüller
  2020-02-20  9:28 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hintermüller @ 2020-02-20  9:15 UTC (permalink / raw)
  To: ntg-context

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(<string) ... and
compile the tex file with context than texts inside the graphic are
schilfted bottom left. 

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?

Best
Xristoph

-- 
-- 
Christoph Hintermüller
Dipl.-Ing. Dr. MBA. MSc
JKU Institute of Biomedical Mechatronics
Altenberger Straße 69,
4040 Linz, Austria,
Cell: +43 650 8827347
Tel. +43 732 2468 4813
Email: christoph.hintermueller@jku.at

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Howto metapost textext set or change basepoint (origin) baseline of text
  2020-02-20  9:15 Howto metapost textext set or change basepoint (origin) baseline of text Christoph Hintermüller
@ 2020-02-20  9:28 ` Hans Hagen
  2020-02-20 13:57   ` Christoph Hintermüller
  2020-02-20 14:03   ` Christoph Hintermüller
  0 siblings, 2 replies; 4+ messages in thread
From: Hans Hagen @ 2020-02-20  9:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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(<string) ... and
> compile the tex file with context than texts inside the graphic are
> schilfted bottom left.
> 
> 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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Howto metapost textext set or change basepoint (origin) baseline of text
  2020-02-20  9:28 ` Hans Hagen
@ 2020-02-20 13:57   ` Christoph Hintermüller
  2020-02-20 14:03   ` Christoph Hintermüller
  1 sibling, 0 replies; 4+ messages in thread
From: Christoph Hintermüller @ 2020-02-20 13:57 UTC (permalink / raw)
  To: ntg-context

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


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Howto metapost textext set or change basepoint (origin) baseline of text
  2020-02-20  9:28 ` Hans Hagen
  2020-02-20 13:57   ` Christoph Hintermüller
@ 2020-02-20 14:03   ` Christoph Hintermüller
  1 sibling, 0 replies; 4+ messages in thread
From: Christoph Hintermüller @ 2020-02-20 14:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-02-20 14:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-20  9:15 Howto metapost textext set or change basepoint (origin) baseline of text Christoph Hintermüller
2020-02-20  9:28 ` Hans Hagen
2020-02-20 13:57   ` Christoph Hintermüller
2020-02-20 14:03   ` Christoph Hintermüller

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).