[tex-k] pdfeTeX: bad interaction of \pdfstartlink...\pdfendlink with \beginR...\endR

Vladimir Volovich vvv at vsu.ru
Sun Dec 26 00:53:38 CET 2004


Hi!

There seems to be a bug in interaction of right-to-left features of
eTeX with pdflink features of pdftex.

I would greatly appreciate any help. :)

When i try to compile the following file using pdftex:

==================================
\TeXXeTstate=1

\beginR This is a test.
\pdfstartlink attr {
  /Border[0 0 1]
  /H/I
  /C[1 0 0]
} goto name {Qwerty}
Link
\pdfendlink
This is a test.
\endR

This is a test.
\pdfdest name {Qwerty}XYZ
This is a test.

\bye
==================================

I get an error:

! pdfTeX error (ext4): \pdfendlink ended up in different nesting level
than \pdfstartlink.
[...]
!  ==> Fatal error occurred, the output PDF file is not finished!

The problem does not occur if \pdfstartlink...\pdfendlink is used
outside of the \beginR...\endR group, but what should be done if the
link needs to be typeset inside the right-to-left paragraph?

Moreover, it may be of interest that the following file causes the
! This can't happen (copying).
error:

==================================
\TeXXeTstate=1

\beginR This is a test.
\beginL
\pdfstartlink attr {
  /Border[0 0 1]
  /H/I
  /C[1 0 0]
} goto name {Qwerty}
Link
\pdfendlink
\endL
This is a test.
\endR

This is a test.
\pdfdest name {Qwerty}XYZ
This is a test.

\bye
==================================

Best,
v.



More information about the tex-k mailing list