On Sat, 2009-02-28 at 17:49 +0100, Nikos Alexandris wrote:
> Problem:
> > > > > There is only one *important* problem though: usually the _backticks_
> > > > > (used in *nix-like OSes to execute a command within, let's say, from
> > > > > another command) appear as to have a top-left to bottom-right
> > > > > direction.
> > > > > With my current setting (Typewriter font set to BeraMono and language
> > > > > set to _bash_) the _backticks_ look very similar to the... well, the
> > > > > _ticks_!
> > > > >
> > > > > I guess it's a font-specific issue. Too bad because Bera looks great.
>
>
> Solution:
> > % copy-paste from the listing package documentation
> > upquote= true|false
> > determines whether the left and right quote are printed ‘’ or `'. This
> > key requires the textcomp package if true.
>
>
> LyX-problem(?):
> I get an error-message that I should load the textcomp package although
> I already have done this. Looking at the source code, the "upquote"
> listing-setting is before the \usepackage{textcomp}.
>
> Is this a LyX-bug? I guess the solution is to manually put the
> "usepackage" command before the listing-settings.
OK,
I am confused or LyX is confusing me :-)
# 1 #############################################
# The preview source within from LyX begins with:
% Preview source code
%% LyX 1.6.1 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
[...]
\usepackage{listings}
\lstset{alsoletter={*()"'0123456789.},
basicstyle={\small},
breaklines=true,
keywordstyle={\color{marineblue}},
prebreak={\textbackslash},
upquote=true}
[...]
% the "textcomp" package is loaded after "listings"
\usepackage{textcomp}
[...]
# 2 ########################################################
# If I open with a text-editor the .lyx file it begins with the
Preamble:
#LyX 1.6.1 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass scrbook
\begin_preamble
[...]
# In addition, I can't find anywhere the \usepackage{listings} command.
Question:
So, what's the deal? Where are the "missing" lines from the .lyx file?
How can I force the "textcomp" packge to be loaded before the "listings"
package?
Thanks for any hint.
Kind regards, Nikos