LaTeX/dvipdfm error (Can't begin an annotation when one is pending.)

Running dvipdfm on Windows XP I get the following error

(snip)[9][10
Can't begin an annotation when one is pending.

Unparsed material at end of special ignored...
Current input buffer is --><< /Type /Annot /Subtype /Link /Border [0 0 0] /C ...
<--

Tried to end an annotation without starting one!

Can't begin an annotation when one is pending.

Unparsed material at end of special ignored...
Current input buffer is --><< /Type /Annot /Subtype /Link /Border [0 0 0] /C ...
<--

Tried to end an annotation without starting one!
][11] (snip)

As can be seen from the error message, the error appearantly happens on page ten. Seen below is the source code that generates this part of my document. Page ten starts with the chapter "Introduction".


\listoffigures{}
\mainmatter
\chapter{Introduction}
Utlilzation of agricultural (snip)

Do anyone have an idea what is going on here? Any advice is nice.
tunheimAsked:
Who is Participating?
 
Jose ParrotGraphics ExpertCommented:
Hi,

Hummm... a lot of time... I've lost the pointer...

Well, actually, you are teaching me on the solution.
My story with TeX is a long time user, from the very beggining, when we had only dot-matrix printers. DEV drivers for dot-matrix printers for DOS, can you imagine that? The results were great!

I don't remember of the problem presented here in any previous use, by me or friends. BTW, the number of problems that appear from where you never imagine, are going to be less frequent. Probably few bugs (I don't think the Annotation issue is a bug). The fact is that I use very few variations, so the models I use are targeted to papers for publication, course assignments, not general use. Also I use WinEdt, that is a great tool, easy to setup and helps me a lot in productivity. So, despite the long term use, I am a end user of TeX and Latex and related packs. The only very deep knowledge in this area is the Knut's Metafont scripting, that was a inspiration for me in the creation of fonts to 3D rendering in the middle of the 80's (today it is not necessary anymore).

What happens with your Annot can be a kind of conflit with some other package active in your document (this is not an affirmation, a feeling instead). Sometimes, the ordering of the packages makes different results.

Jose
0
 
Jose ParrotGraphics ExpertCommented:
Hi,

The error message is typical of a trying to nest comments, which isn't allowed.
Take a look at the TeX source if there is a    /*"   in the text. This is a begin of  annotation. This is a special case of comment. This second isn't processed by TeX, but annotation is parsed by.

Jose

0
 
Jose ParrotGraphics ExpertCommented:
Check syntax, as per this template:

\pdfannot width 5.0in height 36pt
{/Type /Annot /Subtype /Text
/Contents (This  /Text is an annotation.)}

Jose
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
tunheimAuthor Commented:
So I should look for the string  /*"  in my source files?

I don't really understand what you ment by the second comment. Should I insert that code into my latex source?
0
 
Jose ParrotGraphics ExpertCommented:
No and no.

If you don't have a   /*"   in your source, lets delete this possible cause.
If the problem isn't a syntax error, then delete this other one.

Take a look if the source has similar sequence as per below:
\addcontentsline{toc}{chapter}
\listoffigures (or \listoftable or \listof....  anything else)
The error message can start here. This is a listof... inside a toc.

Also, the error message sounds to be different to what we are understanding.
The sentence "Unparsed material at end of special ignored..." suggests a tag like
\special{pdf: ann width 3.0in height 36pt
<< /Type /Annot /Subtype /Text /Contents (This is a /Text Annotation.) >>}
If it is the case, there is a syntax error in the "special" command.

If there are no "/Type /Annot..." in your source, then some package is puting such command in it. Take a look at the packages inserted at the begin of your TeX source.

Jose

Jose
0
 
tunheimAuthor Commented:
Pardon for my untimely responce.

Using your advice as guidance I managed to track down to source of the problem. It arises when I use the command \ac{} inside a figure caption. The ac-command is part of the acronym package (http://turl.no/1cp).

Exaple of problematic use:
(...)
\caption{Change of ac{HHV} of biooil})
(...)

This has solved my problem. However, in the interest of learning, would you be able to share with me any additional thoughts you have on the topic. Why does this problem arise in the first place? Would you consider it a bug? If so, how can it be fixed?
0
 
tunheimAuthor Commented:
Thank you for helping me trough finding a solution :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.