希伯来语导致 tikz-uml 无法工作

希伯来语导致 tikz-uml 无法工作

以下代码有效:

\documentclass[a4paper, 12pt, oneside]{book}

\usepackage{tikz-uml}
\usepackage[utf8x]{inputenc}
\usepackage[english]{babel}

\begin{document}

\begin{tikzpicture}
  \begin{umlpackage}[x=0, y=0, type=class] {hi}
  \end{umlpackage}
\end{tikzpicture}

\end{document}

但是,当我添加希伯来语作为其中一种语言babel用途时:

\usepackage[english,hebrew]{babel}

代码无法编译!除了俄语之外,用任何其他语言都无法编译。知道为什么会发生这种情况吗?

错误:

! Missing number, treated as zero.
<to be read again> 
                   \protect 
l.12 ...gin{umlpackage}[x=0, y=0, type=class] {hi}

? 
! Missing = inserted for \ifnum.
<to be read again> 
                   \protect 
l.12 ...gin{umlpackage}[x=0, y=0, type=class] {hi}

? 
! Missing number, treated as zero.
<to be read again> 
                   \protect 
l.12 ...gin{umlpackage}[x=0, y=0, type=class] {hi}

? 
Missing character: There is no 0 in font nullfont!
Missing character: There is no > in font nullfont!
Missing character: There is no 0 in font nullfont!
! Undefined control sequence.
\\umlpackage ...parent {\tikzumlPackage@parentold 
                                                  @@\tikzumlPackage@nameold ...
l.12 ...gin{umlpackage}[x=0, y=0, type=class] {hi}

? 
! Undefined control sequence.
\\umlpackage ...rentold @@\tikzumlPackage@nameold 
                                                  }\else \def \tikzumlPackag...
l.12 ...gin{umlpackage}[x=0, y=0, type=class] {hi}

? 
Missing character: There is no h in font nullfont!
Missing character: There is no i in font nullfont!
Missing character: There is no h in font nullfont!
Missing character: There is no i in font nullfont!
! Missing \endcsname inserted.
<to be read again> 
                   \protect 
l.13   \end{umlpackage}

? 
Missing character: There is no 0 in font nullfont!
! Extra \endcsname.
\pgfutil@ifundefined ...\ifx \csname #1\endcsname 
                                                  \relax \expandafter \pgfut...
l.13   \end{umlpackage}

? 

! Package pgf Error: Sorry, the requested layer 'package\@@number{0}' could not
 be found. Maybe you misspelled it?.

See the pgf package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.13   \end{umlpackage}

? 
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <10.95> on input line 13.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <8> on input line 13.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <6> on input line 13.

! LaTeX Error: \begin{scope} on input line 12 ended by \end{pgfonlayer}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.13   \end{umlpackage}

? 

! LaTeX Error: \begin{umlpackage} on input line 12 ended by \end{scope}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.13   \end{umlpackage}

? 

! LaTeX Error: \begin{tikzpicture} on input line 11 ended by \end{umlpackage}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.13   \end{umlpackage}

? 
! Undefined control sequence.
\pgfsys@call@end ->\pgfsys@end@save 
                                    \pgfsys@endscope 
l.14 \end{tikzpicture}

? 
! Undefined control sequence.
\endpgfscope ...pgflinewidth =\pgfscope@linewidth 
                                                  \global \let \pgf@strokeco...
l.14 \end{tikzpicture}

? 
! Missing number, treated as zero.
<to be read again> 
                   \global 
l.14 \end{tikzpicture}

? 
! Illegal unit of measure (pt inserted).
<to be read again> 
                   \global 
l.14 \end{tikzpicture}

? 
! Missing } inserted.
<inserted text> 
                }
l.14 \end{tikzpicture}

? 
! Extra }, or forgotten \endgroup.
\endpgfpicture ...globally \endgroup \hss \egroup 
                                                  \pgf@restore@layerlist@fro...
l.14 \end{tikzpicture}

? 
! Missing } inserted.
<inserted text> 
                }
l.14 \end{tikzpicture}

? 
! Extra }, or forgotten \endgroup.
\endpgfpicture ...dpicture \endgroup \hss \egroup 
                                                  \pgfsys@typesetpicturebox ...
l.14 \end{tikzpicture}

? 

! LaTeX Error: \begin{document} ended by \end{tikzpicture}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.14 \end{tikzpicture}

? 
! Extra \endgroup.
<recently read> \endgroup 

l.14 \end{tikzpicture}

? 
! Infinite glue shrinkage found in a paragraph.
l.15 

请注意,我可以在我的计算机上编译希伯来语,而无需tikz-uml

相关内容