-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use github action to compile the document #20
Comments
Some additional ideas after spending some time trying to compile locally (thanks @chantelwetzel-noaa for the pointers!).
Maybe a first step in setting this up would just be to get it working with miktex, since we know that will work locally? Then transition to texlive in order to build on what @kellijohnson-NOAA has learned. There is a docker image for miktex: https://hub.docker.com/r/miktex/miktex that I think we could possibly start from. This essentially gives us a machine with miktex already set up. @kellijohnson-NOAA does this seem like a good way forward to you? |
The best example of compiling a latex document using an action is here. |
Awesome reference, I did not know about that gh action workflow! We might run into issues b/c this uses texlive, but this definitely seems like what we ultimately want. |
Well, it turns out that example worked on the first try, like magic (unless I am missing something...). Great reference, @kellijohnson-NOAA ! Currently this job just runs manually, but we can change it if we decide to use it more. It should be a useful tool to get @chantelwetzel-noaa off the hook from being the only person who compiles. |
Nice work @k-doering-NOAA and @kellijohnson-NOAA getting this working. For the record, I was able to get the manual to compile using tinytex on my laptop. I think there was some issue that I faced when I first tried, but with help from @chantelwetzel-noaa I got it worked out. So if that's an option anyone wants to pursue in the future, it's available. |
Some notes to improve accessibility of the pdf created by gh actions, based on @kellijohnson-NOAA 's awesome work with sa4ss:
|
@kellijohnson-NOAA , I got a little bit stuck with trying to use the lua filter. I think it is because the call needs to be passed to pandoc, but I am passing it to the latex engine. I'm kind of lost because I'm not even sure if pandoc is being used? Here are the options available for the github action to compile: https://github.com/xu-cheng/latex-action#inputs . I tried passing the command to call the lua filter to args, but got an error Any ideas on how to pass it to pandoc? Or how to know if I'm using pandoc? I still don't quite get the sequence of events that happens when compiling .tex. |
@kellijohnson-NOAA is definitely the expert here but I will pitch in what I know. If you have Rstudio on you machine pandoc will be available through the Rstudio terminal. However, you can also have pandoc installed separately. To check to see if it is on your machine open up the cmd and then enter pandoc --version. This should return the version on you machine if it is installed. If you do have pandoc installed, you should then make sure it is available in you PATH. Let us know what you see and we can go from there. |
Thanks, @chantelwetzel-noaa - I should have said that I am trying to do this in a github action (https://github.com/nmfs-stock-synthesis/ss-documentation/blob/build_access/.github/workflows/build_latex_texlive.yml) . It is good to know about the pandoc command, thanks so much, that is a helpful debugging tool. |
So there are different versions of latex and the action that you are calling uses pdflatex. We want to use lualatex. I didn't read a ton of the document that you linked to, thank you btw, but I did see that lualatex is an option via |
Thanks @kellijohnson-NOAA and @chantelwetzel-noaa! I figured out a few things:
This certainly reduced the number of errors with the PAC3 (an accessibility checker), although some still exist: Some of these I think are issues Kelli has run into as well and may be tricky to fix (table of contents issues, wanting annotations for links). Some are probably easily fixable, though. |
@k-doering-NOAA That is great to hear! When this document was originally created 508-compliance was not considered. We should look to see what changes can be made now that tagpdf is available to see if we can improve the document accessibility. This could be done slowly and incrementally but something that we should definitely consider when making edits to the document. |
issue #20: improve document accessibility
closing since we are successfully compiling the manual now with github actions. |
Hi all, I successfully with suggestions from @k-doering-NOAA now have github actions compiling the sa4ss document and making the resulting pdf available for download. I think it would be pretty easy to enable the building of the latex code here if we want to go that route. Happy to help when the time is right.
The text was updated successfully, but these errors were encountered: