IACR / latex-submit

Web server to receive uploaded LaTeX and execute it in a docker container.
GNU Affero General Public License v3.0
11 stars 0 forks source link

should we load luatex85.sty? #18

Closed kmccurley closed 1 year ago

kmccurley commented 1 year ago

The luatex85.sty file is apparently required to define some commands that are present in pdflatex, and can provide some compatibility with things like the xypdf package. One thing we could do is simply have \RequirePackage{luatex85} in iacrcc.cls, but I don't know what consequences this has. This is used by the standalone and dtk and suftesi cls files. It is also used by pdfx, which is of very high quality. They have

\RequirePackage{ifluatex}                                                                            
\ifluatex                                                                                            
 \IfFileExists{luatex85.sty}{% 2016+                                                                 
  \RequirePackage{luatex85}%                                                                         
...

Another approach is to look for whether xypdf is loaded at the end of the preamble, and only then \RequirePackage{luatex85}. I fear that luatex85 may introduce other bugs, particularly in distinguishing between whether you are running under pdflatex or lualatex or xelatex.

Note also that on ubuntu, you have to install texlive-lualatex in order to pick up luatex85.

jwbos commented 1 year ago

I did some reading on this topic as well. First it is godo to note that: "The luatex85 package should be seen as a temporary aid to improve compatibility during the transition towards LuaTEX 1.0 it is not intended that future documents should always have to load this compatibility emulation." Still loading it in the fashion you mention above should work and is done in multiple packages to avoid some issues. I suggest we include this change: I will incorperate this soon.

jwbos commented 1 year ago

This has been fixed.