latex3 / tagpdf

Tagging support code for LaTeX
60 stars 7 forks source link

added support of associated files for structure elements #26

Closed AlexandrKozlovskiy closed 3 years ago

AlexandrKozlovskiy commented 4 years ago

I added support of associated files for structure elements. In future probably it will be need add the same for mc elements,but in this case pdf object should be added on the page,for example via lua code as pdf.setpageresources("/Properties << /P1 <</AF ["..n2.." 0 R] >> >>"),where n2 it dictionary file object,which reference on stream object. Now exists the problem of insertion latex commands inside the associated file. You can test associated files in https://pdf2data.duallab.com/responsivepdf-dev/. Some text shows incorrect,when pdf compile in pdflatex,and we know about this issue. But formulas in my opinion fully accessible with nvda.

AlexandrKozlovskiy commented 4 years ago

As for expl3 variables i dont know expl3 very good,though i read expl3 documentation. whenever i tryed fix this in latest commit.

AlexandrKozlovskiy commented 4 years ago

Now,i hope,all ok,except problem of insertion latex commands in associated file,which i couldn't solve,or something else? In my opinion,if problem of insertion of latex commands will be solved,everybody can use associated files in pdflatex or lualatex.

AlexandrKozlovskiy commented 4 years ago

Problem with insertion of latex commands in pdflatex/lualatex,seems,was solved. You can se in it in the latest commit.

AlexandrKozlovskiy commented 4 years ago

In the latest commit I added counter for associated files,which in future possible use in mc tags and fixed multline environment in test example. Now you can test it on pdf2data.duallab.com/responsivepdf-dev/