我正在准备土耳其语的讲义,我有一个数学建模过程的图表。但我不能为以下代码生成良好的输出。当我删除前三个包,我得到了我想要的输出。但是,我需要将它们保留在我的文档中。你能在这方面帮助我吗?
\documentclass[10pt,notheorems]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[turkish]{babel}
\usepackage{tikz}
\usetikzlibrary{positioning,shapes,arrows}
\hypersetup{bookmarksdepth=4,bookmarksnumbered=true,bookmarksopen=true}
\usetheme{Warsaw}
\usecolortheme{seahorse}
\begin{document}
\begin{frame}[fragile]{}{}
\begin{figure}
\centering
\begin{tikzpicture}
\node (rwp) [draw,fill=blue!20,text centered,minimum height=2em,rounded corners] {Ger\c{c}ek ya\c{s}am problemi};
\node (mm) [right=2cm of rwp,draw,fill=purple!20,text centered,minimum height=2em,rounded corners] {Matematiksel model};
\node (mc) [below=2cm of mm,draw,fill=green!20,text centered,minimum height=2em,rounded corners] {Matematiksel \c{c}{\i}kar{\i}m};
\node (rwq) [below=2cm of rwp,draw,fill=red!20,text centered,minimum height=2em,rounded corners] {Ger\c{c}ek ya\c{s}am tahminleri};
\path [draw,->] (rwp.east) -- node [above] {Form\"{u}lasyon} (mm.west);
\path [draw,->] (mm.south) -- node [right] {\c{C}\"{o}z\"{u}m} (mc.north);
\path [draw,->] (mc.west) -- node [below] {Yorum} (rwq.east);
\path [draw,->] (rwq.north) -- node [left] {Kontrol} (rwp.south);
\end{tikzpicture}
\caption{Modelleme s\"{u}reci}\label{s2ss2fig1}
\end{figure}
\end{frame}
\end{document}
答案1
Babel 定义了各种简写来简化特殊字符的输入,这对于输入字母非常方便,但有时这会导致与其他包发生冲突。幸好tikz
有一个库\usetikzlibrary{babel}
可以解决这个问题。
\documentclass[10pt,notheorems]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[turkish]{babel}
\usepackage{tikz}
\usetikzlibrary{positioning,shapes,arrows}
\usetikzlibrary{babel}
\hypersetup{bookmarksdepth=4,bookmarksnumbered=true,bookmarksopen=true}
\usetheme{Warsaw}
\usecolortheme{seahorse}
\begin{document}
\begin{frame}[fragile]{}{}
\begin{figure}
\centering
\begin{tikzpicture}
\node (rwp) [draw,fill=blue!20,text centered,minimum height=2em,rounded corners] {Ger\c{c}ek ya\c{s}am problemi};
\node (mm) [right=2cm of rwp,draw,fill=purple!20,text centered,minimum height=2em,rounded corners] {Matematiksel model};
\node (mc) [below=2cm of mm,draw,fill=green!20,text centered,minimum height=2em,rounded corners] {Matematiksel \c{c}{\i}kar{\i}m};
\node (rwq) [below=2cm of rwp,draw,fill=red!20,text centered,minimum height=2em,rounded corners] {Ger\c{c}ek ya\c{s}am tahminleri};
\path [draw,->] (rwp.east) -- node [above] {Form\"{u}lasyon} (mm.west);
\path [draw,->] (mm.south) -- node [right] {\c{C}\"{o}z\"{u}m} (mc.north);
\path [draw,->] (mc.west) -- node [below] {Yorum} (rwq.east);
\path [draw,->] (rwq.north) -- node [left] {Kontrol} (rwp.south);
\end{tikzpicture}
\caption{Modelleme s\"{u}reci}\label{s2ss2fig1}
\end{figure}
\end{frame}
\end{document}