Herbert Voss wrote:
> 
> R. Lahaye wrote:
> 
> > I'm using article (REVTeX 4) class layout with up-to-date LyX-CVS.
> >
> > RevTeX4 allows "Author Email" and "Author URL" insets.
> >
> > When a tilde (~) appears in one of these insets, it is typeset
> > in the DVI and PostScript output as "\textasciitilde{}".
> > (see attachment).
> >
> > In the LyX-file itself, the corresponding text looks like:
> > ----------------------------
> > [...]
> > \layout Author Email
> >
> > ~[EMAIL PROTECTED]
> > \layout Author URL
> >
> > http://chem1.snu.ac.kr/~CISR
> > [...]
> > ----------------------------
> >
> > Any idea why this particular tilde is not typeset as a real tilde?
> >
> > A tilde anywhere else in the the document is correctly typeset as "~".
> 
> there is no need to use \textasciitilde and \textasciicircum!
> have alook at ancient mail
> 
> http://www.mail-archive.com/lyx-devel%40lists.lyx.org/msg30809.html
> 
> and try that patch

No, that patch doesn't work. See attachment for what it gives me
in the dvi and postscript output: the tilde is now literally "~{}"!

BTW, the patch says:

                case '~':
     -                       os << "\\textasciitilde{}";
     +                       os << "\\~{}";          // same as \textasciitilde;
                             column += 16;
                             break;
                             
                     case '^':
     -                       os << "\\textasciicircum{}";
     +                       os << "\\^{}";          // same as
\textasciicircum;
                             column += 17;
                             break;

Shouldn't both values added to column-variable be 3, instead of 16 and 17?
Anyway, I tried that too, but it doesn't solve my problem either.

Any more ideas how to solve this tilde/circum problem ?

It seems to occur only with the "Author Email" and "Auther URL"
insets of REVTeX-4 class!

Thanks,
Rob.

PNG image

Reply via email to