Generalundefine control sequences

LaTeX specific issues not fitting into one of the other forums of this category.
shamila08
Posts: 4
Joined: Sun Oct 19, 2008 7:12 am

undefine control sequences

Post by shamila08 »

Hello,dear all

i'm try to use beamer style for my slide presentation.
however there is a error such as follows:

Code: Select all

This is TeX, Version 3.14159 (MiKTeX 2.2)
(testbmr.tex
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for english, french, german, ngerman, du
mylang, nohyphenation, loaded.
(C:\texmf\tex\latex\beamer\latex-beamer-3.07\base\beamer.cls
(C:\texmf\tex\latex\beamer\latex-beamer-3.07\base\beamerbasercs.sty)
Document Class: beamer 2007/03/11 cvs version 3.07 A class for typesetting pres
entations (rcs-revision 1.70)
(C:\texmf\tex\latex\beamer\latex-beamer-3.07\base\beamerbasemodes.sty
(C:\texmf\tex\latex\beamer\latex-beamer-3.07\base\beamerbasedecode.sty))
(C:\texmf\tex\latex\beamer\latex-beamer-3.07\base\beamerbaseoptions.sty
(C:\texmf\tex\latex\graphics\keyval.sty))
(C:\texmf\tex\latex\pgf\pgf-1.01\latex\pgf\basiclayer\pgfcore.sty
(C:\texmf\tex\latex\graphics\graphicx.sty
(C:\texmf\tex\latex\graphics\graphics.sty (C:\texmf\tex\latex\graphics\trig.sty
) (C:\texmf\tex\latex\00miktex\graphics.cfg)
(C:\texmf\tex\latex\graphics\pdftex.def

Package graphics Warning: pdftex option does not work with standard TeX.

))) (C:\texmf\tex\latex\pgf\pgf-1.01\latex\pgf\systemlayer\pgfsys.sty
(C:\texmf\tex\latex\pgf\pgf-1.01\latex\pgf\utilities\pgfrcs.sty
(C:\texmf\tex\latex\pgf\pgf-1.01\generic\pgf\utilities\pgfrcs.code.tex))
(C:\texmf\tex\latex\pgf\pgf-1.01\generic\pgf\systemlayer\pgfsys.code.tex
(C:\texmf\tex\latex\pgf\pgf-1.01\generic\pgf\systemlayer\pgf.cfg)
(C:\texmf\tex\latex\pgf\pgf-1.01\generic\pgf\systemlayer\pgfsys-pdftex.def
(C:\texmf\tex\latex\pgf\pgf-1.01\generic\pgf\systemlayer\pgfsys-common-pdf.def)
))
(C:\texmf\tex\latex\pgf\pgf-1.01\generic\pgf\systemlayer\pgfsyssoftpath.code.te
x)
(C:\texmf\tex\latex\pgf\pgf-1.01\generic\pgf\systemlayer\pgfsysprotocol.code.te
x)) (C:\texmf\tex\latex\xcolor\xcolor\xcolor.sty
(C:\texmf\tex\latex\00miktex\color.cfg)
! Undefined control sequence.
\set@color ->\pdfliteral
                         {\current@color }\aftergroup \reset@color
l.1095 \color{black}
is it i have to update my latex?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

undefine control sequences

Post by Juanjo »

shamila08 wrote: is it i have to update my latex?
Yes, of course, as soon as you can. MikTeX 2.2 is too outdated.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

undefine control sequences

Post by Stefan Kottwitz »

Hi Shamila,

welcome to the board!
I agree with Juanjo. MiKTeX 2.7 is the most recent version, see miktex.org.

Further it seems that you try to use pdf features without pdflatex, that would cause a conflict. The warning "Package graphics Warning: pdftex option does not work with standard TeX." and the error "Undefined control sequence ... pdfliteral" are showing the use of pdftex, but the first line of the log says that standard TeX is used.
Either remove the option pdftex from every package (graphicx for instance) or compile with pdflatex.

Stefan
LaTeX.org admin
shamila08
Posts: 4
Joined: Sun Oct 19, 2008 7:12 am

Re: undefine control sequences

Post by shamila08 »

oh i see.
then t will get the miktex 2.7.
In order to install miktex 2.7, should i remove miktex 2.2 ?
i afraid that the previous work will delete.
What is the better way for installation.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Re: undefine control sequences

Post by Stefan Kottwitz »

Hi,

you could make a copy of your previous work to be safe. I recommend to make backups frequently.
I would remove 2.2 bevor installation of 2.7, but I think 2.7 would also work if you just install it over.

Stefan
LaTeX.org admin
NinV
Posts: 69
Joined: Sun Oct 05, 2008 12:57 pm

undefine control sequences

Post by NinV »

Hi,

I don't open another thread, because I'm getting a similar error message: "undefined control sequences", which I can't fix... I'm still learning LaTex!

This is the error message:

Code: Select all

! Undefined control sequence.
l.138 \@inifulldiagram

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
and this is the code:

Code: Select all

\def\bao@diagram#1-#2:#3-#4 {\relax
    \ifnum #3>#4 \errmessage{Nevalida nombro da truoj!} \fi
    \@letternumber{#1} \@beglet=\@lettercount             % =1
    \@letternumber{#2} \@endlet=\@lettercount             % =6a
   
    \def\@inirow##1##2{{\n=#3
      \loop
       \expandafter\let\csname @##1\romannumeral\n \endcsname=0\relax
       \edef\@@inirow{\global
            \def\csname @##1\romannumeral\n \endcsname{##2}}\@@inirow
       \ifnum \n<#4 \advance \n by 1
      \repeat
      }}\relax

    \loop
      \ifcase\@beglet\relax
      \or
      \@inirow{a}{\empty}\relax
        \global\def\@ai{\zero}
        \global\def\@ax{\zero}
      \or
      \@inirow{b}{\empty}\relax
        \global\def\@bi{\granaio}
        \global\def\@bx{\zero}
      \or
      \@inirow{c}{\empty}\relax
        \global\def\@ci{\zero}
        \global\def\@cv{\nyumba}
        \global\def\@cx{\zero}
      \or
      \@inirow{d}{\empty}\relax
        \global\def\@di{\zero}
        \global\def\@dvi{\nyumba}
        \global\def\@dx{\granaio}
      \or
      \@inirow{e}{\empty}
        \ifnum #3=1 \global\def\@ei{\zero}\fi
        \ifnum #4=10 \global\def\@ex{\zero}\fi
      \or
      \@inirow{f}{\empty}
        \global\def\@fi{\zero}
        \global\def\@fx{\zero}
      \fi
      \ifnum \@beglet<\@endlet \advance \@beglet by 1
    \repeat\relax
    }

\def\bao@inidiagram#1-#2:#3-#4{
    \bao@diagram #1-#2:#3-#4 
    }

\def\bao@inifulldiagram{\bao@inidiagram a-f:1-10 }

\@inifulldiagram
Can you help me to understand what's wrong?

Thanks,
Nino
Window + MiKTeX 2.7
Ubuntu + TexLive + Kile
Xandros (eeePC) + TeTex + TexMaker
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Re: undefine control sequences

Post by Stefan Kottwitz »

Hi Nino,

\@inifulldiagram is just not defined. Did you write that code by yourself?
What should \@inifulldiagram do?

Stefan
LaTeX.org admin
NinV
Posts: 69
Joined: Sun Oct 05, 2008 12:57 pm

undefine control sequences

Post by NinV »

Hi Stefan,
Stefan_K wrote:Hi Nino,
Did you write that code by yourself?
No! That code is based on an existenting sty-file: go.sty
Stefan_K wrote: \@inifulldiagram is just not defined.
....
Isn't the following a right definition?

Code: Select all

\def\bao@inifulldiagram{\bao@inidiagram a-f:1-10 }
\bao@inidiagram is defined at the beginning of the posted code.
Stefan_K wrote: What should \@inifulldiagram do?
It designs four rows of eight circle each.

The strange thing is that I get the right picture together with the error message!

Thanks for your help,
Nino
Window + MiKTeX 2.7
Ubuntu + TexLive + Kile
Xandros (eeePC) + TeTex + TexMaker
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

undefine control sequences

Post by Stefan Kottwitz »

\bao@inifulldiagram and \@inifulldiagram are different names. \bao@inifulldiagram is defined and can be called, \@inifulldiagram is not defined, you cannot call that.
I guess you want to call \bao@inifulldiagram in the last line, because similar code of go.sty shows:

Code: Select all

\def\inifulldiagram{\inidiagram a-t:1-19 }

\inifulldiagram % initialization
So just insert bao. ;)

Stefan
LaTeX.org admin
NinV
Posts: 69
Joined: Sun Oct 05, 2008 12:57 pm

undefine control sequences

Post by NinV »

Stefan_K wrote:\bao@inifulldiagram and \@inifulldiagram are different names. \bao@inifulldiagram is defined and can be called, \@inifulldiagram is not defined, you cannot call that.
I guess you want to call \bao@inifulldiagram in the last line, because similar code of go.sty shows:

Code: Select all

\def\inifulldiagram{\inidiagram a-t:1-19 }

\inifulldiagram % initialization
So just insert bao. ;)

Stefan
:oops:
I misunderstood the guides. I thought that the prefix of '@' was by default the name of the file; so in my case I thought that '@'='bao@'!

I inserted 'bao', but now in the pdf there is a first page with only a '0' at the left top corner and I get the following message:

Code: Select all

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.337 \bao@inifulldiagram
                          % initialization
You're in trouble here.  Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.
Nino
Window + MiKTeX 2.7
Ubuntu + TexLive + Kile
Xandros (eeePC) + TeTex + TexMaker
Post Reply