Hi, I just had my first trials with XeteX today: it works! The trick is only to use the ifxetex package. It provides the \ifxetex \else \fi environment. You just have to put everything sepcific to xetex into the first part, that is, mainly everything about font specification. You will have to use this also in the main text if you want to make xetex specific font switiching there. I guess the \else part can even be empty as it just enables the lilypond run with latex. Or then you could define the utf8 option here. I just included some non latin scripts in my document and it compiled without complaint about any encoding problems and so on.l i just can say: GREAT.
I post the file I was using: %%%%%%begin file \documentclass[DIV=12]{scrreprt} \usepackage{ifxetex} \ifxetex \usepackage{fontspec} \setmainfont{FreeSans} %\usepackage[xetex]{graphicx} \usepackage{graphicx} \else \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{pdfpages} \fi \usepackage[russian,english]{babel} \listfiles \begin{document} A funny example. \begin[quote]{lilypond} {a4 b a c } \end{lilypond} And some other language with babel: \selectlanguage{russian} Что-то здесь не то, но я точно еще не знаю, на что надо посмотреть. \selectlanguage{english} And without: Что-то здесь не то, но я точно еще не знаю, на что надо посмотреть. ぎ \end{document} %%%%%%%%%end file Greetigns Till kaputnik wrote: > > >> Indeed, the use of `latex' is hard-coded currently. While lambda is a >> rather dead end, users might become interested in using XeTeX. This >> is worth a bug report IMHO. > > I've been thinking about that, too. > > -- View this message in context: http://www.nabble.com/lp-with-korean-utf8-lambda-dvipdfmx-tf4817888.html#a13927625 Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user