ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Stefan Wachter <stefan.wachter@gmx.de>
Subject: Re: How to rotate a single character on a line?
Date: Thu, 01 Apr 2004 11:50:31 +0200	[thread overview]
Message-ID: <c4gojl$b0c$1@sea.gmane.org> (raw)
In-Reply-To: <6.0.1.1.2.20040324101822.01e58ec0@server-1>

Hans Hagen wrote:
> At 16:22 23/03/2004, you wrote:
> 
>> Hi all.
>>
>> I want to use some arrows of the ZapfDingbats fonts. Most of the 
>> arrows included in this font are directed from left to right. I tried 
>> to use \rotate to produce arrows directed to different directions. 
>> Yet, rotate produces new lines.
>>
>> Example:
>>
>> \definefontsynonym[ZapfDingbats][zd]
>> \definefont[Zapf][ZapfDingbats at 24pt]
>>
>> \rotate[rotation=180]{\Zapf\char234} {\Zapf\char234}
>>
>> The example is intended to produce an arrow directed to the left 
>> followed by an arrow directed to the right. The result however is an 
>> arrow directed to the left followed by a new line with an arrow 
>> directed to the right.
>>
>> intended:
>> <- ->
>>
>> result:
>> <-
>> ->
>>
>> Does someone know how the new line can be suppressed?
> 
> 
> (untested)
> 
> \definesymbol[whatever][\dontleavehmode\rotate[rotation=180]{\getglyph{ZapfDingbats}{234}] 
> 
> 
> \symbol[whatever]
Hi Hans,

thanks for the help. I had to enclose the symbol definition part in 
curly brackets:

\definesymbol[whatever][{\dontleavehmode\rotate[rotation=180]{\getglyph{ZapfDingbats}{234}}}]

Now the symbol is rotated without causing a new line. Yet, the rotated 
symbol appears below the current line:

text     text -> text
      <-

Is there a possibility to specifiy the center of rotation?

Thanks again,
--Stefan

  reply	other threads:[~2004-04-01  9:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-23 15:22 Stefan Wachter
2004-03-24  9:19 ` Hans Hagen
2004-04-01  9:50   ` Stefan Wachter [this message]
2004-04-02 12:53     ` Adam Lindsay
2004-04-02 13:51       ` Hans Hagen
2004-04-02 15:10         ` Adam Lindsay
2004-04-07  6:29       ` after updating I failed using MPtoPDF Peter.Andree

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='c4gojl$b0c$1@sea.gmane.org' \
    --to=stefan.wachter@gmx.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).