어떤 이유로 두 번째 노드의 텍스트는 노드 상자 내부에 인쇄되지 않고 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는 비머와 함께 사용되지만 기사와 책에서도 발생합니다)
답변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}