von tom72 » Fr 14. Dez 2012, 15:56
So ich hab dein Beispiel getestet und es funktioniert sehr gut.
Wenn ich deine Codezeilen, aber in mein vorhandenes Dokument einbette, also so:
\documentclass[paper=a4,fontsize=11pt]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[babel, german=quotes]{csquotes}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\newfontfamily\greekfont[Script=Greek, Scale=MatchUppercase, Ligatures=TeX]{Arial}
\newcommand{\textgreek}[1]{\bgroup\greekfont\emph{#1}\egroup} % Please note, that Arial is not set in italics, notwithstanding the \emph{...}
\newfontfamily\hebfont[Script=Hebrew, Scale=MatchUppercase, Ligatures=TeX]{NewPeninimMT}
\newcommand{\textheb}[1]{\bgroup\luatextextdir TRT\hebfont #1\egroup}
\begin{document}
\titlehead{}
\title{}
\date{}
\author{}
\maketitle
\section{Notwendig}
\textheb{עִבְ} Hebrew.
\end{document}
erhalte ich folgende Fehlermeldung:
! Package inputenc Error: Unicode char \u8:ätz not set up for use with LaTeX.
See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...
l.17 \section
{Notwendig}
?
Hast du eine Idee woran das liegen könnte?
Tom
So ich hab dein Beispiel getestet und es funktioniert sehr gut.
Wenn ich deine Codezeilen, aber in mein vorhandenes Dokument einbette, also so:
[code]
\documentclass[paper=a4,fontsize=11pt]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[babel, german=quotes]{csquotes}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\newfontfamily\greekfont[Script=Greek, Scale=MatchUppercase, Ligatures=TeX]{Arial}
\newcommand{\textgreek}[1]{\bgroup\greekfont\emph{#1}\egroup} % Please note, that Arial is not set in italics, notwithstanding the \emph{...}
\newfontfamily\hebfont[Script=Hebrew, Scale=MatchUppercase, Ligatures=TeX]{NewPeninimMT}
\newcommand{\textheb}[1]{\bgroup\luatextextdir TRT\hebfont #1\egroup}
\begin{document}
\titlehead{}
\title{}
\date{}
\author{}
\maketitle
\section{Notwendig}
\textheb{עִבְ} Hebrew.
\end{document}[/code]
erhalte ich folgende Fehlermeldung:
[code]
! Package inputenc Error: Unicode char \u8:ätz not set up for use with LaTeX.
See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...
l.17 \section
{Notwendig}
?
[/code]
Hast du eine Idee woran das liegen könnte?
Tom