% symbol in key for cross reference

jm's picture

Using the % symbol in the key for cross reference to a table results in the error message “TeX Error: Unable to create a PDF file.” The attached sci file illustrates this.

It would be helpful if SWP 6 could avoid this error, as it does for the “%” symbol in the body of a document. Is there some way of getting it to do this?

AttachmentSize
PercentSymbolCrossReference.sci87.54 KB

The error is that Version 6

The error is that Version 6 is allowing the % character and other special characters to be used for markers.  LaTeX doesn't allow such characters.  The % in particular starts a comment.  It must be entered in text as \% for LaTeX, but this doesn't apply to markers.  This problem will be repored to the development team.

Barry MacKichan's picture

I just fixed this, and the

I just fixed this, and the fix will be in the next release.

--Barry

jm's picture

That's great. Thank you.

That's great. Thank you.

Barry MacKichan's picture

Oops! George tells me that

Oops! George tells me that with my fix we can create labels containing '\%', but LaTeX doesn't allow a percent, escaped or not, in the key parameter in \ref, \pageref, etc. So I will back out my change, and in version 6.0.31, any key will be checked for any of the verboten characters and rejected if they occur. This is what version 5.5 does.

--Barry