beamer 和 tikz-uml 包无法协同工作

beamer 和 tikz-uml 包无法协同工作

tikz-uml在 LaTeX 中使用了 pretty cool report。它的效果非常好!!!

今天,我开始用 准备演示文稿。我毫无问题地 从TeXbeamer导入了所有s。tikzpicturereport

但是,当我开始导入 UML 图(类/序列图)时出现错误。

这发生在\usepackage{tikz-uml}我的文件开头的行上beamer

这是错误输出:

(/usr/share/texmf/tex/latex/lm/omllmm.fd)
(/usr/share/texmf/tex/latex/lm/omslmsy.fd)
(/usr/share/texmf/tex/latex/lm/omxlmex.fd)
(/usr/share/texmf-texlive/tex/latex/amsfonts/umsa.fd)
(/usr/share/texmf-texlive/tex/latex/amsfonts/umsb.fd)
Overfull \hbox (8.46622pt too wide) in paragraph at lines 299--299
 []

 Overfull \hbox (89.75618pt too wide) has occurred while \output is active
  [][]
  [11]
  Overfull \hbox (17.70491pt too wide) in paragraph at lines 325--325
   []
   (/usr/share/texmf/tex/latex/lm/t1lmr.fd)

   LaTeX Font Warning: Font shape `T1/lmss/m/sc' in size <10.95> not available
   (Font)              Font shape `T1/lmr/m/sc' tried instead on input line 325.


   LaTeX Font Warning: Font shape `T1/lmss/m/sc' in size <10> not available
   (Font)              Font shape `T1/lmr/m/sc' tried instead on input line 325.


   Overfull \hbox (89.75618pt too wide) has occurred while \output is active
    [][]
    [12]
    ! No room for a new \count .
    \ch@ck ...\else \errmessage {No room for a new #3}
                                                      \fi
                                                      l.349 \end{frame}

我有 0.98 版本tikz-uml.sty,是从网站下载的。

这是我的 TeX 文件的开头

\documentclass{beamer}
\usepackage[utf8]{inputenc} %russian support
%\usepackage[francais]{babel} %francais, ussian support
\usepackage[francais]{babel}
\usepackage[T1]{fontenc} %set standart fonts T1. It is Sexy!;Accent codés dans le font

\usepackage{graphicx}
\usepackage {listings}
\usepackage{beamerthemesplit} % biblio items
\usepackage{url} % url


%TIKZ pictures packages
\usepackage{calc}   %chart diagrm
\usepackage{ifthen} %chart diagrm
\usepackage{tikz}   %chart diagrm
\usetikzlibrary{shapes,arrows}   % to draw flow diagramm
\usetikzlibrary{arrows,automata} %to draw fsm

\usepackage{subfig}
%\setlength{\textwidth}{5.1in} % set default alinéa; pour les paresses. Not use it!
\usepackage{times}
\usepackage{float} %subfloat constructions for graphiques 



%listings
\usepackage{color}
\usepackage{xcolor}
\usepackage{listings}


\usepackage{ucs}            %russian support; dependency for lstset
\lstset{ %listing: add accents to 'caption'; default settings for each listings
extendedchars=\true,
inputencoding=utf8x
}
%\DeclareCaptionFont{white}{\color{white}}
%\DeclareCaptionFormat{listing}{\colorbox{gray}{\parbox{\textwidth}{#1#2#3}}}
%\captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white}


%FOR DIAGRAMM CHARTSS
\newcommand{\slice}[4]{
  \pgfmathparse{0.5*#1+0.5*#2}
  \let\midangle\pgfmathresult

  % slice
  \draw[thick,fill=red!50] (0,0) -- (#1:1) arc (#1:#2:1) -- cycle;

  % outer label
  \node[label=\midangle:#4] at (\midangle:1) {};

  % inner label
  \pgfmathparse{min((#2-#1-10)/110*(-0.3),0)}
  \let\temp\pgfmathresult
  \pgfmathparse{max(\temp,-0.5) + 0.8}
  \let\innerpos\pgfmathresult
  \node at (\midangle:\innerpos) {#3};
}

\usepackage{lmodern} %Make text more precise


\usepackage{subfloat}

%%UML, Stata machines
\usepackage{xstring}
\usepackage{pgfopts}
\usepackage{tikz-uml}
...

答案1

加载etex包。这样您就可以访问 etex 的扩展计数寄存器,这样您就有 32768 个寄存器,而不是 256 个。

相关内容