扫描使用 \newrgbcolorx 时文件结束

扫描使用 \newrgbcolorx 时文件结束

我正在制作用于海报展示的 LaTeX 文档。我使用:Mac 版本 10.8.5 和 TexShop 版本 3.50。我使用的代码如下:

    \documentclass[portrait,a0,final]{a0poster}    
    \usepackage{mathrsfs,multicol,pstricks,pst-node}    
    \usepackage{pst-grad,graphicx,palatino}    
    \usepackage{amsmath,amssymb,pifont,bbm}

    \newcommand{\OlliFrameboxA}[1]{
    \psframebox[framearc=0.3,linewidth=2pt,linecolor=green,
     fillstyle=gradient,gradbegin=yolk,gradend=white,gradmidpoint=0.5]{
     #1
     }
     }

   %%%%%%%%%
   \input{PosterA.def}
    %%%%%%%%%%%%%%%
begin{document}
%%%%%%%%% TITLE STUFF %%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\PosterTitleA}{
xxxxx
}
\newcommand{\PosterTitleB}{
yyyyy
}



\end{document}

这是 PosterA.def 的调用命令

\newcommand{\TitleFntSize}{\veryHuge\bf}
\newcommand{\AuthorFntSize}{\huge}
\newcommand{\AffFntSize}{\Large}
\newcommand{\TextFntSize}{\normalsize}                                                     
\setlength{\textwidth}{80.1cm}
\setlength{\oddsidemargin}{1.8cm}
\setlength{\hoffset}{-1in}
\setlength{\voffset}{-1in}
\setlength{\topmargin}{1.5cm}
\setlength{\textheight}{115.9cm}
%%%%% PAGE SETUP A1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%       setlength{\columnseprule}{.4pt} % RULE BETWEEN COLUMNS
\setlength{\columnsep}{2cm} % SEPARATION BETWEEN COLUMNS                                                             \makeatletter
\newenvironment{tablehere} % THIS IS TO INSERT TABLES
  {\def\@captype{table}}
  {}

\newenvironment{figurehere} % THIS IS TO INSERT FIGURES
  {\def\@captype{figure}}
  {}
\makeatother

\newrgbcolor{lightcyan}{.30 .86 .89}
\newrgbcolor{orange}{1.0 .60 .00}
\newrgbcolor{lightblue}{.30 .86 .89}
\newrgbcolor{orange}{1.0 .60 .00}
\definecolor{DeepSkyBlue1}{rgb}{0.00 0.75 1.00}
\newrgbcolor{deepskyblue2}{rgb}{0.00,0.70 0.93}
\newrgbcolor{yolk}{1.0 0.90 0.0}
\definecolor{cornflowerblue}{rgb}{0.39, 0.58, 0.93}
\newrgbcolor{olli}{0.39 0.58 .93}

当我尝试编译 tex 文件时出现以下错误。

This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)
 restricted \write18 enabled.
entering extended mode
(./A.tex
LaTeX2e <2011/06/27>
Babel <3.9f> and hyphenation patterns for 78 languages loaded.
(./a0poster.cls
Document Class: a0poster 2004/01/31 v1.22b a0poster class (GK, MW)
(/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo)) (./a0size.sty))
 (/usr/local/texlive/2013/texmf-dist/tex/latex/jknapltx/mathrsfs.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/tools/multicol.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/pstricks/pstricks.sty
(/usr/local/texlive/2013/texmf-dist/tex/generic/pstricks/pstricks.tex
(/usr/local/texlive/2013/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
(/usr/local/texlive/2013/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2013/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2013/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(/usr/local/texlive/2013/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.05, 2010/01/17 (hv))
(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.te
x)
(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.c
ode.tex))
(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex)
`PSTricks' v2.43  <2013/05/12> (tvz)
(/usr/local/texlive/2013/texmf-dist/tex/generic/pstricks/pstricks.con))
(/usr/local/texlive/2013/texmf-dist/tex/generic/pstricks/pst-fp.tex)
(/usr/local/texlive/2013/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/local/texlive/2013/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))))
(/usr/local/texlive/2013/texmf-dist/tex/latex/pst-node/pst-node.sty
(/usr/local/texlive/2013/texmf-dist/tex/generic/pst-node/pst-node.tex
 v1.27, 2013/04/12))
(/usr/local/texlive/2013/texmf-dist/tex/latex/pst-grad/pst-grad.sty
(/usr/local/texlive/2013/texmf-dist/tex/generic/pst-grad/pst-grad.tex
`pst-grad' v1.06, 2006/11/27 (tvz,dg,hv)))
(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/graphics.cfg)))
(/usr/local/texlive/2013/texmf-dist/tex/latex/psnfss/palatino.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2013/texmf-dist/tex/latex/psnfss/pifont.sty
(/usr/local/texlive/2013/texmf-dist/tex/latex/psnfss/upzd.fd)
(/usr/local/texlive/2013/texmf-dist/tex/latex/psnfss/upsy.fd))
(/usr/local/texlive/2013/texmf-dist/tex/latex/bbm-macros/bbm.sty)
(./PosterA.def)
Runaway argument?
\newrgbcolor {cornflowerblue}{0.39 0.58 .93} \newrgbcolor {olli}{0.39\ETC.
./Houches.tex:19: File ended while scanning use of \newrgbcolorx.
<inserted text> 
                \par 
l.19 \input{PosterA.def}

? 
Process aborted

如有任何评论我将不胜感激。

答案1

我不知道为什么你使用不同的语法来定义颜色;事实是你感到困惑:

\newrgbcolor{lightcyan}{.30 .86 .89}
\newrgbcolor{orange}{1.0 .60 .00}
\newrgbcolor{lightblue}{.30 .86 .89}
\newrgbcolor{orange}{1.0 .60 .00}
\definecolor{DeepSkyBlue1}{rgb}{0.00, 0.75, 1.00}% <---- commas needed
\newrgbcolor{deepskyblue2}{0.00 0.70 0.93}% <---- no {rgb} and no comma
\newrgbcolor{yolk}{1.0 0.90 0.0}
\definecolor{cornflowerblue}{rgb}{0.39, 0.58, 0.93}
\newrgbcolor{olli}{0.39 0.58 .93}

相关内容