何らかの理由で、2 番目のノードのテキストはノードのボックス内ではなく、tikzpicture の完全に反対側に印刷されます。
修正方法を教えてください。
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{positioning,backgrounds}
\usepackage[english,hebrew,bidi=basic,provide=*]{babel}
\babelfont[hebrew]{sf}[Script=Hebrew]{Arial}
\begin{document}
\begin{frame}
\begin{tikzpicture}[background rectangle/.style={fill=gray!33}, show background rectangle]
\node [draw,text width=0.75\textwidth, align=left, outer sep=0pt,inner sep=0pt](n1) {%
לורם איפסום דולור סיט אמט.
};
\node [draw,below = 0pt of n1.south east,anchor=north east,outer sep=0pt,inner sep=0pt](n2) {%
שלום עולם};
\filldraw (n2) circle (1pt);
\end{tikzpicture}
\end{frame}
\end{document}
(MWE は Beamer で発生しますが、記事や本でも発生します)
答え1
答え2
\noindent
環境の前にを挿入するとtikzpicture
、オプションに関係なく問題が残ることに注意してくださいlayout=graphics
。
環境の前にテキストを挿入する場合も同様です。
\documentclass{article}
%% same preamble as in Javier Bezos' answer
\begin{document}
אבג% so there is no \par command before the tikzpicture
\begin{tikzpicture}
〈same code〉
\end{tikzpicture}
\end{document}