LyXHow to enable Xelatex @Lyx

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
ALdaperan
Posts: 9
Joined: Thu May 19, 2011 12:17 pm

How to enable Xelatex @Lyx

Post by ALdaperan »

Hello world..

I am trying to enable Xelatex @Lyx but i have some problems . I am ubuntu 11.04 user and Lyx2.0 . I followed this tutorial in order to install Xetex

Then i openned Lyx but i cant enable the option to "use non tex fonts via Xetex/luatex" . I attache a screenshot :
screenshotlxp.png
screenshotlxp.png (91.45 KiB) Viewed 4873 times
ps1: Lyx's interface is in Greek language
ps2: I have to enable first this option and then use a code in preamble in order to use a font right ? :roll:

Thanks in advance , waiting for your support ;)
Last edited by localghost on Tue May 24, 2011 9:31 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

ALdaperan
Posts: 9
Joined: Thu May 19, 2011 12:17 pm

Re: How to enable Xelatex @Lyx

Post by ALdaperan »

Any help please ? :oops:
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

How to enable Xelatex @Lyx

Post by meho_r »

Start by checking if you properly installed XeTeX (and reconfigure LyX: Tools > Reconfigure, just in case). Type in the Terminal the following:

Code: Select all

xelatex -v
This should return something like this:

Code: Select all

XeTeX 3.1415926-2.2-0.9997.4 (TeX Live 2010)
kpathsea version 6.0.0
Copyright 2010 SIL International and Jonathan Kew.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 4.4 [with modifications for XeTeX]
Compiled with zlib version 1.2.3; using 1.2.3
Compiled with FreeType2 version 2.3.11; using 2.3.11
Compiled with fontconfig version 2.7.3; using 2.8.0
Compiled with libpng version 1.2.40; using 1.2.40
Compiled with xpdf version 3.02pl4
ALdaperan
Posts: 9
Joined: Thu May 19, 2011 12:17 pm

How to enable Xelatex @Lyx

Post by ALdaperan »

yes its installed

Code: Select all

XeTeX 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian)
kpathsea version 5.0.0
Copyright 2009 SIL International and Jonathan Kew.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 3.8.1 [with modifications for XeTeX]
Compiled with zlib version 1.2.3.4; using 1.2.3.4
Compiled with FreeType2 version 2.4.4; using 2.4.4
Compiled with fontconfig version 2.8.0; using 2.8.0
Compiled with libpng version 1.2.44; using 1.2.44
Compiled with poppler version 0.16.4
Now what?
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

How to enable Xelatex @Lyx

Post by meho_r »

Strange. You'd probably have to ask at LyX's mailing list why that option is disabled. But let's see at least can you use XeTeX at all. Do the following:
1. Open LyX, create a new document and type couple of words.
2. In Documents > Settings > Preamble type in:

Code: Select all

\usepackage{fontspec}
\setmainfont{Bitstream Vera Serif}
(you can try any font you like, Bitstram Vera Serif is just an example).
3. Go to: View > View (Other Formats) > PDF (XeTeX) (you can use buttons on the toolbar instead; should be 6th and 7th from the left).
Post Reply