[Tex/LaTex] Verse Error in Ubuntu

Ubuntuverse

I am getting below error in Ubuntu 10.04, texlive 2010
I do not get any such errors and get pdf output in my 2011 macbook running texlive 2010.

! Undefined control sequence.
l.44 \AtBeginEnvironment
                        {Verse}{\singlespacing}
? 
! Undefined control sequence.
l.45 \AtBeginEnvironment
                        {enumerate}{\singlespacing}
? 
! Undefined control sequence.
l.46 \AtBeginEnvironment
                        {longtable}{\onehalfspacing}

?

When I press enter it processes the file and gives the pdf output I am attaching the screenshot of the first page as well. The first page shows "Verse Enumerate and longtable" I could not explain why its does this. I would appreciate your help. enter image description here

second page onwards the document is as I wanted. Here are the two documents, one contants all the required packages (AK.tex) and 2_AK_034.tex has actual verse and its explanation.

Here is the file with all the packages https://docs.google.com/leaf?id=0B2ORRM7gQAXeYmY0MWVhZDAtMDU3My00OTNkLTliMzAtNDEwOWY4YzBjZjcw&hl=en_US

Here is the actual tex file that contains all the verse and explanation.
https://docs.google.com/leaf?id=0B2ORRM7gQAXeYjZlYTVmMDEtNTNjZC00NGU3LWEzOGYtNTFkMDUyZGVmMDky&hl=en_US

Best Answer

The error says that \AtBeginEnvironment is undefined. This command is defined in the etoolbox package. So ensure that this package is loaded. Consider to install that package if it's missing, or update it if it's not the current version. The most recent version of etoolbox is 2.1.

Related Question