Fonts & Character SetsLinux libertine glyphs and logo

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
sph
Posts: 2
Joined: Tue Feb 08, 2011 5:39 am

Linux libertine glyphs and logo

Post by sph »

Hi,

I am using the libertine package provided by archlinux texlive-fontsextra and am getting an 'Undefined control sequence' error whenever I try to use \useTextGlyph or \xllogo. I found a previous post [1] on this forum with a similar problem, and it seems to have been resolved with a mwe of the form:

Code: Select all

\listfiles
\documentclass{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{libertine}

\begin{document}
\useTextGlyph{fxl}{Tux}
\xllogo
\end{document} 
I have tryed this example but to no avail. I have also tryed using XeTeX and `\Lglyph{Tux}', but that did not seem to make a difference. My listfiles output is:

Code: Select all

 *File List*
scrartcl.cls    2010/09/17 v3.07 KOMA-Script document class (article)
scrkbase.sty    2010/09/17 v3.07 KOMA-Script package (KOMA-Script-dependent bas
ics and keyval usage)
 scrbase.sty    2010/09/17 v3.07 KOMA-Script package (KOMA-Script-independent b
asics and keyval usage)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
scrlfile.sty    2009/03/25 v3.03 KOMA-Script package (loading files)
tocbasic.sty    2010/09/14 v3.06a KOMA-Script package (handling toc-files)
scrsize11pt.clo    2010/09/17 v3.07 KOMA-Script font size class option (11pt)
typearea.sty    2010/09/17 v3.07 KOMA-Script package (type area)
 fontenc.sty
   t1enc.def    2005/09/27 v1.99g Standard LaTeX file
inputenc.sty    2008/03/30 v1.1d Input encoding file
    utf8.def    2008/04/05 v1.1m UTF-8 support for inputenc
   t1enc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc
  ot1enc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc
  omsenc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc
libertine.sty    2010/08/30 - 4.8.7: Font libertine - (License GPL) Michael Nie
dermair
 ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
     fxl.inc
     fxb.inc
   t1fxl.fd    2010/08/30 scaled font definitions for libertine T1/fxl (Nm).
 ***********
so it seems to load libertine.sty fine.

There is one further curious thing: if I use XeTeX and try to add any of the options, listed in Section 3 of [2], to

Code: Select all

\usepackage[<optionen >]{ libertine}[\code] I get, for example for the option draft, a `Package keyval Error: draft undefined' error. 

It seems that this may be a problem with the libertine package, or the texlive installation I'm using, but I would have expected to find others reporting similar errors, which I have not. 

If anyone can provide hints/insights on this I would be grateful. 

Best regards,
Sebastian

[1] [url]http://www.latex-community.org/forum/viewtopic.php?f=40&t=7496&p=29090&hilit=useTextGlyph#p29090[/url]
[2] [url]http://linuxlibertine.sourceforge.net/latex/libertinedokuxelatex.pdf[/url]
Last edited by sph on Thu Feb 10, 2011 2:12 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Linux libertine glyphs and logo

Post by frabjous »

I think the package has changed a lot in recent years. Actually there's more than one package (cf. libertinelogo, etc.).

I wasn't sure exactly which glyph you were after, but maybe:

Code: Select all

texdoc libertineglyph
would help.

E.g., for pdflatex:

Code: Select all

\documentclass{scrartcl}
\usepackage{libertine,libertinelogo}

\begin{document}
\libertineGlyph{Tux}

\libertineGlyph{uniE009}

\libertineGlyph{uniE00A}

\libertineGlyph{uniE040}

\libertinelogo
\end{document}
gives:
libertine.png
libertine.png (9.89 KiB) Viewed 3330 times
For XeLaTeX, you should just be able to copy and paste from the clipboard, or use \char" commands:

Code: Select all

\documentclass{scrartcl}
\usepackage{fontspec}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont{Linux Libertine O}

\begin{document}

\char"E000

\char"E009

\char"E00A

\char"E040

  

\end{document}
sph
Posts: 2
Joined: Tue Feb 08, 2011 5:39 am

Re: Linux libertine glyphs and logo

Post by sph »

Awesome, thank's a lot for your help. I must have been looking at outdated documentation.

Best,
Sebastian
Post Reply