?
Solved

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

Posted on 2006-05-23
7
Medium Priority
?
1,195 Views
Last Modified: 2008-01-09
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.
0
Comment
Question by:tunheim
  • 4
  • 3
7 Comments
 
LVL 18

Expert Comment

by:Jose Parrot
ID: 16745113
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
 
LVL 18

Expert Comment

by:Jose Parrot
ID: 16745236
Check syntax, as per this template:

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

Jose
0
 

Author Comment

by:tunheim
ID: 16745808
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 18

Expert Comment

by:Jose Parrot
ID: 16777606
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
 

Author Comment

by:tunheim
ID: 16908834
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
 
LVL 18

Accepted Solution

by:
Jose Parrot earned 1000 total points
ID: 17047822
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
 

Author Comment

by:tunheim
ID: 17047928
Thank you for helping me trough finding a solution :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Steps to fix “Unable to mount database. (hr=0x80004005, ec=1108)”.
Eseutil Hard Recovery is part of exchange tool and ensures Exchange mailbox data recovery when mailbox gets corrupt due to some problem on Exchange server.
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question