# [NTG-context] underbar and hyphenation

Wed Jul 26 01:22:45 CEST 2006

```On Tue, 25 Jul 2006, Peter Rolf wrote:

>> On Tue, 25 Jul 2006, Mojca Miklavec wrote:
>>
>>> Hello,
>>>
>>> is there any way to make hyphenation work when using \underbar?
>>
>> Mojca, sorry I do not know the answer to that. But I was testing a few
>> things with \underbar and now have questions of my own.
>>
>> Something seem to be broken with \underbar and ||. See the output of
>>
>> \underbar{stand||alone}
>>
> Isn't | a special char like & (plain tex)?
> What happens, if you use \textbar instead?

I want to get the special meaning of |. Actually I was just testing
something with

\underbar{\input knuth \endgraf}

and noticed the problem.

>> Also, what is difference between alternatives in underbar? All the
>> three alternatives look the same to me (from the sources)
>>
>>    {\setupunderbar [alternativevariant=a]\underbar{alternative a}},
>>    {\setupunderbar [alternativevariant=b]\underbar{alternative b}},
>>    {\setupunderbar [alternativevariant=c]\underbar{alternative c}}
>>
> Try "alternative" instead of "alternativevariant".

Thanks, "alternative" works perfectly.

Hans, can you fix the typo in the example in core-fnt.tex (around line
440).