latex3 / tagpdf

Tagging support code for LaTeX
60 stars 7 forks source link

Incorrect pdf document in lua mode during the tagging of \maketitle command #33

Closed AlexandrKozlovskiy closed 3 years ago

AlexandrKozlovskiy commented 3 years ago

When i want to redefine \maketitle command and all variables,which needs for this command (\@author,\@date,\@title and \@thanks),in lua mode i have incorrect pdf. Yes,i no,that i have some things in \@thanks command,which i should fix,so i simple commented all code,connected with this command,so you can ignore this code. But even without \@thanks command pdf in lua mode is incorrect,in differents from generic mode or pdflatex,in which all ok. If it a real issue,can you please fix it,or help me to fix it. I remember you wrote,what similar issues happends,if,for example,i open mc in one groupe,and close inside of this group or in other group,e.g if i open mc before \begin{env},and close before \end{env},where \env - any environment. But what wrong now? I noticed this issue in master branch of tagpdf. In attachment you will find document and two pdfs,which i get. Thank you very much for your help. issue.zip

AlexandrKozlovskiy commented 3 years ago

Imho in future it would be nice,if you modify lua mode,or create new mode,in which all mc tags have open and close as in generic mode,except cases,when one page closed and other opened,in which this mc tags,obviously,will close and open in lua mode. Because,for example,now in my example,lua mode works incorrect,and i dont know how to fix it. Thanks.

AlexandrKozlovskiy commented 3 years ago

I found a way to solve this issue. In one place the value of open variable was after end,but it should be before end and as i see,it was fixed in splitting branch,so i closed this issue.