3

This discussion is an extension of this answer but in Beamer -documentclass and with XeLaTeX. I can get some variants working there in Pdflatex, see Christian's answer but with bad output and I do not want it, since I lose the nice layout what XeLaTeX can offer.

Code based on egreg's answer and which I think offers the best extensibility to solve this problem here in XeLaTeX

\documentclass{beamer}
\usepackage[T1]{fontenc}
\usepackage{newunicodechar}
\begin{document}
\begin{titlepage}   
š
\end{titlepage}
\end{document}

Any options offered in the above discussion are not working XeLaTeX.

Output nothing.

2 Answers2

6

Use fontspec if you want to use XeLaTeX:

\documentclass{beamer}

\usepackage{fontspec}

\begin{document}
\begin{frame}
š and math $a+b=c$
\end{frame}
\end{document}

enter image description here

egreg
  • 1,121,712
1

I think it is better to do it without fontspec. Use simply

\v{s}