XeTeXMinimal example doesn't run, corrupted installation?

Information and discussion about XeTeX, an alternative for pdfTeX based on e-Tex
Post Reply
Rab
Posts: 1
Joined: Sat Aug 06, 2011 11:12 am

Minimal example doesn't run, corrupted installation?

Post by Rab »

I am about to switch to xetex and installed it using the ubuntu 11.04 software manager, texlive is also installed.

I'm compiling with XeLaTeX via Kile, but he doesn't even recognize the setmainfont-command, "undefined control sequence". It works when leaving out setmainfont.

Code: Select all

\documentclass[11pt]{article}
\usepackage{xltxtra}
\setmainfont[Mapping=tex-text]{Linux Libertine O}
\begin{document}
\section{test}
 test
\end{document}
Where can I look for the reason?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Minimal example doesn't run, corrupted installation?

Post by localghost »

Make sure that you have the Linux Libertine font installed as OTF on your system [1]. Furthermore the log file could be very helpful since it gives more detailed information about what is going wrong. So check the log for any irregularities.

[1] Files & License — Libertine Open Fonts Project


Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Minimal example doesn't run, corrupted installation?

Post by frabjous »

Your sample works fine for me. The log file would be helpful, especially if you add \listfiles to the beginning.
Post Reply