On Wed, Sep 27, 2017 at 12:41:27PM -0400, Scott Kostyshak wrote:
> On Mon, Sep 25, 2017 at 10:24:47PM +0000, Bruce Momjian wrote:
> > I am using LyX 2.1.2 on Ubuntu 14.04.
> > 
> > If I enter this:
> > 
> >      ab'c de`f
> > 
> > in "Standard" mode I get PDF output with proper left/right single
> > quotes.  However, if I switch to LyX-Code mode for that text, I get as
> > PDF output:
> > 
> >     ab'c de'f
> 
> Testing on 2.1.0 and on 2.3.0dev, I get the following as PDF output:
> 
>   ab’c de‘f
> 
> which is different from what you get, but also not what you want.

Actually, that would be fine output, as long as they look different.

> > This is a problem for text of shell scripts.  I the want backticks
> > because backtick means 'execute' in the shell.
> > 
> > What I have done instead to get literal backticks output is to use a
> > TeX Code URT (Ugly Red Text) block inside the "LyX-Code mode" block and
> > used \char18, which properly outputs the backtick.
> > 
> > Is this expected behavior?  Is that the recommended solution for this?
> 
> I have not seen a report of this, but I haven't seen an indication that
> a lot of people are using LyX-Code, so I'm not sure if is known.

OK, not sure what could be the cause then.  I am using ps2pdf to produce
the PDF.

What I have done as a work-around is to warn in my Makefile if a
backquote is used in the LyX document.

-- 
  Bruce Momjian  <[email protected]>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +

Reply via email to