ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Vyatcheslav Yatskovsky <yatskovsky@gmail.com>
To: "ntg-context-request@ntg.nl" <ntg-context@ntg.nl>
Cc: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
Subject: Re: Vertical alignment of framed text
Date: Thu, 19 Apr 2007 15:46:08 +0300	[thread overview]
Message-ID: <118932055.20070419154608@gmail.com> (raw)
In-Reply-To: <mailman.5172.1176934612.17432.ntg-context@ntg.nl>

Hello,

Please, don't take me as too much exacting man, but Mojca's (partial) solution

\def\hotkey#1{\inframed[corner=00]{\ #1\ }}

is more suitable for me than the Wolfgangs's (complete) one:

\defineframed
  [dohotkey]
  [strut=yes,corner=00,frameoffset=-0.2em,location=low]
\definehspace[hotkey][0.6em]
\def\hotkey#1{\dohotkey{\hspace[hotkey]#1\hspace[hotkey]}}   

The latter add space between surrounding words proportionally to the in-frame space.

The ideal solution would be 

\def\hotkey#1{\inframed[corner=00, location=low, height=\lineheight]{\ #1\ }}

but it doesn't work. Maybe it is a bug, ideed?

Best,
Vyatcheslav

       reply	other threads:[~2007-04-19 12:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.5172.1176934612.17432.ntg-context@ntg.nl>
2007-04-19 12:46 ` Vyatcheslav Yatskovsky [this message]
2007-04-29 10:52   ` Peter Münster
     [not found] <mailman.5106.1176811855.17432.ntg-context@ntg.nl>
2007-04-17 13:27 ` Vyatcheslav Yatskovsky
2007-04-17 19:49   ` Wolfgang Schuster
2007-04-17 22:46     ` Vyatcheslav Yatskovsky
2007-04-19 12:05       ` Peter Rolf
2007-04-18 17:29   ` Mojca Miklavec
     [not found]     ` <6faad9f00704190819t559de7afgce3ae41e8b5f9815@mail.gmail.com>
     [not found]       ` <6faad9f00704190838h1d11d3c3q1e29d10a46f859ed@mail.gmail.com>
2007-04-19 17:42         ` Vyatcheslav Yatskovsky
2007-04-19 18:23           ` Mojca Miklavec
2007-04-19 18:24           ` Aditya Mahajan

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=118932055.20070419154608@gmail.com \
    --to=yatskovsky@gmail.com \
    --cc=mojca.miklavec.lists@gmail.com \
    --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).