Am 18.04.2014 21:48, schrieb stefano franchi:
On Wed, Apr 16, 2014 at 11:41 AM, Wolfgang Engelmann <
[email protected]> wrote:

Am 16.04.2014 16:32, schrieb stefano franchi:

  Hi Wolfgang,
I'm appending below the lyx file and pdf file that came out of it. I
installed texgyre bonum, BTW, and the pdf file seems correct.


More comments:


I did, what you suggested, except, that I took the fonts from my

texlive/2013/archive.
   I unpacked them in /usr/share/fonts/myfonts
by
unxz libertine.tar.xz
which gives libertine.tar
tar xvf libertine.tar
gives the unpacked pack


Did you move the fonts to a system-wide directory (e.g. /usr/share/fonts)?


  Did as root fc-cache,
did additionally as root and as user texhash.


  That should not be bnecessary but it does no harm
  Started from terminal lyx
which gave
we@Wolfgang:~$ Fontconfig warning: "/etc/fonts/conf.d/50-user.conf",
line
14: reading configurations from ~/.fonts.conf is deprecated.
Don't know whether this can be neglected.

  It should be harmless

  In my lilypond lyx file I checked 'use Non Tex fonts'
I now find (good!) in the drop down selection of fonts Libertine,
but listed as Linux Libertine
and quite a number of them:
Linux Libertine Display O
Linux Libertine Display T
Linux Libertine Initials O
Linux Libertine Initials T
Linux Libertine Mon O
Linux Libertine Mon O (yes, twice!)
Linux Libertine O
Linux Libertine T


  Linux Libertine O is what you want.
  I have chosen Linux Libertine O (what are the differences?)
and get after pdflatex outputting my file this:


   ! Package fontenc Error: Encoding file `eu2enc.def' not found.

(fontenc) You might have misspelt the name of the encoding.

See the fontenc package documentation for explanation.

Type H <return> for immediate help. ...

l.99 \ProcessOptions*

Necessary code for this encoding was not loaded.

Thus calling the encoding later on will produce further error messages.

! LaTeX Error: Encoding scheme `EU2' unknown.

See the LaTeX manual or LaTeX Companion for explanation.

Type H <return> for immediate help. ...

l.100 \fontencoding\encodingdefault

\selectfont

Your command was ignored.

Type I <command> <return> to replace it with another command,

or <return> to continue without it.

)

! LaTeX Error: File `xunicode.sty' not found.

Type X to quit or <RETURN> to proceed,

or enter new name. (Default extension: sty)

Enter file name:

! Emergency stop.

<read *>




It seems to me you are not use the utf8 encoding (which you should, with
Xetex). Try compiling the file I sent you and let me know what happens.



Actually, I just checked, and it seems that UTF8 encoding is automatically
selected when you choose XeTeX as a backend.
So my diagnosis was wrong. I would try this to try to determine if the
error comes from LyX or from your LaTeX installation.
Could you send me the tex file that the LyX command File>>Export
Latex(XeTeX) produces?
I'll compare it with what I get here and try to find out if there is a
LyX-related difference.


Cheers,

Stefano

Thanks, Stefano, here is a short lyx file and the Latex (Xetex) output. This is 
the Error message in the lyx log:

! Package fontenc Error: Encoding file `eu2enc.def' not found


! LaTeX Error: Encoding scheme `EU2' unknown!


LaTeX Error: File `xunicode.sty' not found..



and this is the output of the terminal, from which I run lyx (unfortunately in 
German):
we@Wolfgang:~$
Running: lilypond-book --safe --pdf --latex-program=lualatex --lily-output-dir=ly-pdf 
"SakuraTexGyreBonumStefanoShort.lytex"
lilypond-book (GNU LilyPond) 2.16.2
SakuraTexGyreBonumStefanoShort.lytex lesen...
»lualatex« für Datei »/tmp/tmpgoClVa.tex« aufrufen, um 
Standardseiteneinstellungen zu ermitteln.

lilypond-book: Warnung: Kann Standardeinstellungen nicht automatisch bestimmen:

Zerlegen...
Auszüge werden geschrieben...
Verarbeiten...
lilypond wird ausgeführt...
»snippet-map-1499501122.ly« wird verarbeitet
Analysieren...
»SakuraTexGyreBonumStefanoShort.lytex« wird verarbeitet
Analysieren...
Interpretation der Musik...[8][16][16]
Vorverarbeitung der grafischen Elemente...
Zeilenumbrüche werden berechnet...
Systeme erstellen...
Layout nach »54/lily-c145af9b.eps« ausgeben...
Konvertierung nach »54/lily-c145af9b.pdf«...
Layout nach »54/lily-c145af9b-1.eps« ausgeben...
Layout nach »54/lily-c145af9b-2.eps« ausgeben...
Layout nach »54/lily-c145af9b-3.eps« ausgeben...
Layout nach »54/lily-c145af9b-4.eps« ausgeben...
Layout nach »54/lily-c145af9b-5.eps« ausgeben...
Layout nach »54/lily-c145af9b-6.eps« ausgeben...
Layout nach »54/lily-c145af9b-7.eps« ausgeben...
Layout nach »54/lily-c145af9b-8.eps« ausgeben...
Layout nach »54/lily-c145af9b-9.eps« ausgeben...
Layout nach »54/lily-c145af9b-10.eps« ausgeben...
Layout nach »54/lily-c145af9b-11.eps« ausgeben...
Layout nach »54/lily-c145af9b-12.eps« ausgeben...
Layout nach »54/lily-c145af9b-13.eps« ausgeben...
Layout nach »54/lily-c145af9b-14.eps« ausgeben...
Layout nach »54/lily-c145af9b-15.eps« ausgeben...
Layout nach »54/lily-c145af9b-16.eps« ausgeben...
Konvertierung nach »54/lily-c145af9b-1.pdf«...
Konvertierung nach »54/lily-c145af9b-2.pdf«...
Konvertierung nach »54/lily-c145af9b-3.pdf«...
Konvertierung nach »54/lily-c145af9b-4.pdf«...
Konvertierung nach »54/lily-c145af9b-5.pdf«...
Konvertierung nach »54/lily-c145af9b-6.pdf«...
Konvertierung nach »54/lily-c145af9b-7.pdf«...
Konvertierung nach »54/lily-c145af9b-8.pdf«...
Konvertierung nach »54/lily-c145af9b-9.pdf«...
Konvertierung nach »54/lily-c145af9b-10.pdf«...
Konvertierung nach »54/lily-c145af9b-11.pdf«...
Konvertierung nach »54/lily-c145af9b-12.pdf«...
Konvertierung nach »54/lily-c145af9b-13.pdf«...
Konvertierung nach »54/lily-c145af9b-14.pdf«...
Konvertierung nach »54/lily-c145af9b-15.pdf«...
Konvertierung nach »54/lily-c145af9b-16.pdf«...
54/lily-c145af9b-systems.texi wird geschrieben...
54/lily-c145af9b-systems.tex wird geschrieben...
54/lily-c145af9b-systems.count wird geschrieben...
Kompilation erfolgreich beendet
Dateien verbinden...
/tmp/lyx_tmpdir.MT1955/lyx_tmpbuf0/SakuraTexGyreBonumStefanoShort.tex 
kompilieren...
»/tmp/lyx_tmpdir.MT1955/lyx_tmpbuf0/SakuraTexGyreBonumStefanoShort.tex« wird 
geschrieben...

Running: dvilualatex "SakuraTexGyreBonumStefanoShort.tex" > /dev/null
This is LuaTeX, Version beta-0.76.0-2013070111 (rev 4627)
  restricted \write18 enabled.
(./SakuraTexGyreBonumStefanoShort.tex
LaTeX2e <2011/06/27>
Babel <3.9f> and hyphenation patterns for 7 languages loaded.

support/Systemcall.cpp (273): Systemcall: 'dvilualatex 
"SakuraTexGyreBonumStefanoShort.tex"' finished with exit code 1


Attachment: SakuraTexGyreBonumStefanoShort.lyx
Description: application/lyx

\batchmode
\makeatletter
\def\input@path{{/home/we/Lilipond//}}
\makeatother
\documentclass[ngerman]{article}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX]{TeX Gyre Bonum}
\setsansfont[Ligatures=TeX]{TeX Gyre Bonum}
\setmonofont{TeX Gyre Bonum}
\usepackage{geometry}
\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm}
\usepackage{color}
\usepackage{babel}
\usepackage[unicode=true,
 bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=1,
 breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=true]
 {hyperref}
\hypersetup{pdftitle={LilyPond-book and LyX},
 pdfauthor={The LyX Team},
 linkcolor=blue,urlcolor=blue,pdfstartview=XYZ}

\makeatletter
\@ifundefined{date}{}{\date{}}
\makeatother

\usepackage{graphics}
\begin{document}
{%
\parindent 0pt
\noindent
\ifx\preLilyPondExample \undefined
\else
  \expandafter\preLilyPondExample
\fi
\def\lilypondbook{}%
\input{54/lily-c145af9b-systems.tex}
\ifx\postLilyPondExample \undefined
\else
  \expandafter\postLilyPondExample
\fi
}

\end{document}

Reply via email to