Open rjw62 opened 4 years ago
Thanks, @rjw62 . That’s an interesting one!
Could you give me the line number in accessibility.sty of the \pdfliteral call that you commented out?
It's the first one in the definition of PDFMarkContent, currently at line 424: https://github.com/AndyClifton/accessibility/blob/master/source/v2x/accessibility.sty#L424
When using
accessibility.sty
v.2.0.3 with the tagged option, there appears to be a problem with the vertical alignment ofp
columns in the tabular environment. The text in such columns is displaced downwards by about a line, relative to where is should be. MWE:In this example, the text "Left Column", "Paragraph Column" and "Left Column" should all share the same baseline. In reality though "Paragraph Column" is displaced downwards by about a line height. This issue does not arise if you remove the "tagged" option, or comment out the accessibility package line altogether.
I've had a play with commenting things out of the
accessibility.sty
file, and it seems that the ultimate cause is the\pdfliteral
command within the start of thePDFMarkContent
environment, which is called from\PDFTableCell
, which in turn is executed after every ampersand inside tabular. Presumably there's something about the way thatp
columns are implemented that means\pdfliteral
is upsetting the baseline of the row that the column sees.