ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* textbar
@ 2004-01-17  9:57 Thomas A.Schmitz
  2004-01-21 15:28 ` textbar Patrick Gundlach
  2004-01-24 10:00 ` textbar Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas A.Schmitz @ 2004-01-17  9:57 UTC (permalink / raw)


Hi all,
I was under the (mistaken?) impression that "textbar" (for "|") was 
predefined somewhere in the distribution, but couldn't find anyhting. 
So I defined it myself in the preamble of my document: 
\define\textbar{\getglyph{Roman}{\char124}}
and it seems to be working. Is this the proper way to do this?
Best
Thomas

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

* Re: textbar
  2004-01-17  9:57 textbar Thomas A.Schmitz
@ 2004-01-21 15:28 ` Patrick Gundlach
  2004-01-24 10:00 ` textbar Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Patrick Gundlach @ 2004-01-21 15:28 UTC (permalink / raw)


"Thomas A.Schmitz" <thomas.schmitz@uni-bonn.de> writes:

> I was under the (mistaken?) impression that "textbar" (for "|") was
> predefined somewhere in the distribution, but couldn't find
> anyhting.

It is defined in enco-cyr.tex, but should also be defined in (at
least)

enco-tbo.tex
enco-ans.tex
enco-ec.tex

> So I defined it myself in the preamble of my document:
> \define\textbar{\getglyph{Roman}{\char124}}

> and it seems to be working. Is this the proper way to do this?

\definecharacter textbar 124

Patrick

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

* Re: textbar
  2004-01-17  9:57 textbar Thomas A.Schmitz
  2004-01-21 15:28 ` textbar Patrick Gundlach
@ 2004-01-24 10:00 ` Hans Hagen
  2004-01-26 12:35   ` textbar Patrick Gundlach
  1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2004-01-24 10:00 UTC (permalink / raw)


At 10:57 17/01/2004, you wrote:
>Hi all,
>I was under the (mistaken?) impression that "textbar" (for "|") was 
>predefined somewhere in the distribution, but couldn't find anyhting. So I 
>defined it myself in the preamble of my document: 
>\define\textbar{\getglyph{Roman}{\char124}}

ok as long as you keep the font encoding in mind

more font independent alternative:

   \define\textbar{\blackrule[width=1pt,height=1.5ex,depth=.5ex]}

>and it seems to be working. Is this the proper way to do this?

or \definesymbol ...

or use:

   \vl \textbrokenbar

i'm not sure if \textbar is/should be in the encoding vectors ...

Hans  

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

* Re: textbar
  2004-01-24 10:00 ` textbar Hans Hagen
@ 2004-01-26 12:35   ` Patrick Gundlach
  2004-01-26 13:13     ` textbar Thomas A.Schmitz
  0 siblings, 1 reply; 5+ messages in thread
From: Patrick Gundlach @ 2004-01-26 12:35 UTC (permalink / raw)


Hi,

> i'm not sure if \textbar is/should be in the encoding vectors ...

since | is made active, we have to have some way to work around it. 

Or we should be able to use \| to get char 124. It does not have to
be \textbar.

\chardef\|=124 would be ok, wouldn't it?

Patrick
-- 
Morgen gibts kein ABC mehr...

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

* Re: Re: textbar
  2004-01-26 12:35   ` textbar Patrick Gundlach
@ 2004-01-26 13:13     ` Thomas A.Schmitz
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas A.Schmitz @ 2004-01-26 13:13 UTC (permalink / raw)


That's right, I think \| would be the most natural way, the same being 
true for \{ and \} (which I happen to need from time to time). Any 
chance of seeing this soon?

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

end of thread, other threads:[~2004-01-26 13:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-17  9:57 textbar Thomas A.Schmitz
2004-01-21 15:28 ` textbar Patrick Gundlach
2004-01-24 10:00 ` textbar Hans Hagen
2004-01-26 12:35   ` textbar Patrick Gundlach
2004-01-26 13:13     ` textbar Thomas A.Schmitz

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