[XeTeX] Insert Smileys in XeLaTeX
Marek Stepanek
marek at munich-taxis.de
Tue Dec 16 12:24:42 CET 2014
Hello all!
It's quite a while, that I am reading this newsgroup. But I was always
using LaTeX. Now I am close to switch to XeLaTeX or even XeTeX.
I want to offer for Christmas a large dialogue with SMS put into a
LaTeX-file. And it turns out to be a huge problem, because one day my
girl-friend discovered the icons and smileys on her iPhone ... You
imagine the disaster :-)
My first step was going to wikipedia: http://en.wikipedia.org/wiki/XeTeX
I put together a test file, based on the first example. I replaced the
"Linux Libertine O", which is not installed on my computer, with Lucida
Grande. This font is displaying these smileys well in my text editor
BBEdit and my Terminal too (with an other font: Menlo Regular), but not
in the compiled XeLaTeX-file.
Here my example:
- And thank you for your help - it is urgent - for obvious reasons :-)
marek
***
\documentclass[11pt]{article}
\usepackage{fontspec}
% from an other example to test the smiley:
%\usepackage{txfonts}
% not installed:
% \setmainfont[Ligatures=TeX]{Linux Libertine O}
% and here are some Problems:
% \setmainfont[Ligatures=TeX]{Menlo Regular}
\setmainfont[Ligatures=TeX]{Lucida Grande}
\begin{document}
\section{Unicode support}
\subsection{English}
All human beings are born free and equal in dignity and rights.
\subsection{Íslenska}
Hver maður er borinn frjáls og jafn öðrum að virðingu og réttindum.
\subsection{Русский}
Все люди рождаются свободными и равными в своем достоинстве и
правах.
\subsection{Tiếng Việt}
Tất cả mọi người sinh ra đều được tự do và bình đẳng về nhân phẩm và
quyền lợi.
\subsection{Ελληνικά}
Ὅλοι οἱ ἄνθρωποι γεννιοῦνται ἐλεύθεροι καὶ ἴσοι στὴν ἀξιοπρέπεια
καὶ τὰ δικαιώματα.
\section{Legacy syntax}
When he goes---``Hello World!''\\
She replies—“Hello dear!”
% \section{Ligatures}
% \fontspec[Ligatures={Common, Historical}]{Lucida Grande Bold}
% Questo è strano assai!
% \section{Numerals}
% \fontspec[Numbers={OldStyle}]{Lucida Grande}Old style: 1234567\\
% \fontspec[Numbers={Lining}]{Lucida Grande}Lining: 1234567
\section{Smileys}
- - - - - - - - ...
\end{document}
More information about the XeTeX
mailing list