von Gast » Sa 22. Okt 2016, 19:22
Benutze LuaLaTeX und das Paket
unicode-math, dann geht es:
% Hier ist das LaTeX-Dokument.
\documentclass[a4paper,12pt,parskip=full]{scrreprt}
\usepackage[left= 2.5cm,right = 2cm, bottom = 4 cm]{geometry}
\usepackage[ngerman]{babel}
\usepackage{fontspec}
\usepackage{unicode-math}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{paralist}
\usepackage{wrapfig}
\usepackage{amsfonts}
\usepackage{stmaryrd}
\usepackage{tikz}
\usetikzlibrary{shapes.misc}
\usepackage{color}
\usepackage{transparent}
\title{}
\author{}
\date{20. Oktober 2016}
\begin{document}
\section{Test}
Hallo test
\begin{figure}[h]
\centering{
\resizebox{150mm}{!}{\input{Zeichnung.pdf_tex}}
\caption{Top view.}
\label{fig:topView}
}
\end{figure}
\end{document}
Mit PDFLaTeX kannst du hingegen keine hochgestellten Unicode-Zeichen wie ¹ verwenden. Dann solltest du die Datei Zeichnung.pdf_tex wie folgt ändern:
\begingroup%
\makeatletter%
\providecommand\color[2][]{%
\errmessage{(Inkscape) Color is used for the text in Inkscape, but the package 'color.sty' is not loaded}%
\renewcommand\color[2][]{}%
}%
\providecommand\transparent[1]{%
\errmessage{(Inkscape) Transparency is used (non-zero) for the text in Inkscape, but the package 'transparent.sty' is not loaded}%
\renewcommand\transparent[1]{}%
}%
\providecommand\rotatebox[2]{#2}%
\ifx\svgwidth\undefined%
\setlength{\unitlength}{595.27559055bp}%
\ifx\svgscale\undefined%
\relax%
\else%
\setlength{\unitlength}{\unitlength * \real{\svgscale}}%
\fi%
\else%
\setlength{\unitlength}{\svgwidth}%
\fi%
\global\let\svgwidth\undefined%
\global\let\svgscale\undefined%
\makeatother%
\begin{picture}(1,1.41428571)%
\put(0,0){\includegraphics[width=\unitlength,page=1]{Zeichnung.pdf}}%
\put(0.18526834,1.0357748){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$L$}}}%
\put(0.34845804,1.04153438){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$f$}}}%
\put(0.47900981,1.03673471){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$M$}}}%
\put(0.17501212,0.93690101){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$A$}}}%
\put(0.20673959,0.93213771){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$f^{-1}(x)$}}}%
\put(0.46269088,0.93498106){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$f(A)$}}}%
\put(0.51452759,0.93114134){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$B$}}}%
\end{picture}%
\endgroup%
Benutze LuaLaTeX und das Paket [p]unicode-math[/p], dann geht es: [code]% Hier ist das LaTeX-Dokument.
\documentclass[a4paper,12pt,parskip=full]{scrreprt}
\usepackage[left= 2.5cm,right = 2cm, bottom = 4 cm]{geometry}
\usepackage[ngerman]{babel}
\usepackage{fontspec}
\usepackage{unicode-math}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{paralist}
\usepackage{wrapfig}
\usepackage{amsfonts}
\usepackage{stmaryrd}
\usepackage{tikz}
\usetikzlibrary{shapes.misc}
\usepackage{color}
\usepackage{transparent}
\title{}
\author{}
\date{20. Oktober 2016}
\begin{document}
\section{Test}
Hallo test
\begin{figure}[h]
\centering{
\resizebox{150mm}{!}{\input{Zeichnung.pdf_tex}}
\caption{Top view.}
\label{fig:topView}
}
\end{figure}
\end{document}[/code]
Mit PDFLaTeX kannst du hingegen keine hochgestellten Unicode-Zeichen wie ¹ verwenden. Dann solltest du die Datei [tt]Zeichnung.pdf_tex[/tt] wie folgt ändern: [code]\begingroup%
\makeatletter%
\providecommand\color[2][]{%
\errmessage{(Inkscape) Color is used for the text in Inkscape, but the package 'color.sty' is not loaded}%
\renewcommand\color[2][]{}%
}%
\providecommand\transparent[1]{%
\errmessage{(Inkscape) Transparency is used (non-zero) for the text in Inkscape, but the package 'transparent.sty' is not loaded}%
\renewcommand\transparent[1]{}%
}%
\providecommand\rotatebox[2]{#2}%
\ifx\svgwidth\undefined%
\setlength{\unitlength}{595.27559055bp}%
\ifx\svgscale\undefined%
\relax%
\else%
\setlength{\unitlength}{\unitlength * \real{\svgscale}}%
\fi%
\else%
\setlength{\unitlength}{\svgwidth}%
\fi%
\global\let\svgwidth\undefined%
\global\let\svgscale\undefined%
\makeatother%
\begin{picture}(1,1.41428571)%
\put(0,0){\includegraphics[width=\unitlength,page=1]{Zeichnung.pdf}}%
\put(0.18526834,1.0357748){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$L$}}}%
\put(0.34845804,1.04153438){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$f$}}}%
\put(0.47900981,1.03673471){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$M$}}}%
\put(0.17501212,0.93690101){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$A$}}}%
\put(0.20673959,0.93213771){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$f^{-1}(x)$}}}%
\put(0.46269088,0.93498106){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$f(A)$}}}%
\put(0.51452759,0.93114134){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{$B$}}}%
\end{picture}%
\endgroup%[/code]