Skip to content
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

Add alt text to figures; glossary; formatting; R function for local compile #232

Merged
merged 39 commits into from
Jul 25, 2024
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
4d667a8
try accessibility options
e-perl-NOAA Jun 6, 2024
2f1d2e2
try different accessibility method
e-perl-NOAA Jun 6, 2024
c61457e
try with axessibility package
e-perl-NOAA Jun 6, 2024
3add748
add alt to all images
e-perl-NOAA Jun 6, 2024
1216760
small fixes and try glossary
e-perl-NOAA Jun 7, 2024
89026da
comment out try glossaries
e-perl-NOAA Jun 7, 2024
96faefd
try glossary
e-perl-NOAA Jun 10, 2024
64bc157
update number spellcheck errors
e-perl-NOAA Jun 10, 2024
e5c8126
try again
e-perl-NOAA Jun 10, 2024
fb9fa8b
try again
e-perl-NOAA Jun 10, 2024
06c532a
try again
e-perl-NOAA Jun 10, 2024
f93e0f3
try adding to toc
e-perl-NOAA Jun 10, 2024
7e56b17
don't print page number of glossary
e-perl-NOAA Jun 10, 2024
facfffb
add glossary terms
e-perl-NOAA Jun 11, 2024
65fd689
fix admb gls
e-perl-NOAA Jun 11, 2024
8aff28d
fix gls sd
e-perl-NOAA Jun 11, 2024
ad6b673
fix gls msy
e-perl-NOAA Jun 11, 2024
525aedc
fix gls ssi
e-perl-NOAA Jun 11, 2024
a21be28
fix gls ofl
e-perl-NOAA Jun 11, 2024
beb2156
fix gls acronyms
e-perl-NOAA Jun 11, 2024
347843a
fix glspl
e-perl-NOAA Jun 11, 2024
fb37147
try again
e-perl-NOAA Jun 11, 2024
5e88842
fix href in glossaries
e-perl-NOAA Jun 11, 2024
e31f897
try without ++
e-perl-NOAA Jun 11, 2024
2c7a146
try again
e-perl-NOAA Jun 11, 2024
eb9ea6e
fix gls url error
e-perl-NOAA Jun 11, 2024
a232af7
add words to dictionary
e-perl-NOAA Jun 12, 2024
cd02e56
try pdf tagging
e-perl-NOAA Jun 12, 2024
603b111
tag some tables
e-perl-NOAA Jun 12, 2024
04941ab
fix
e-perl-NOAA Jun 12, 2024
727b753
fix allowed warnings
e-perl-NOAA Jun 12, 2024
34fa194
remove separate table tagging
e-perl-NOAA Jun 12, 2024
5559b9b
more small changes
e-perl-NOAA Jun 12, 2024
4cc56c6
add r script to run locally without having to comment out lines yourself
e-perl-NOAA Jun 13, 2024
c7ca18d
alt text; subscript fixes; SB to SSB; equation notation; virgin spawn…
e-perl-NOAA Jun 21, 2024
fe5797f
fix SS330_User_Manual.tex accessibility lines and function
e-perl-NOAA Jun 21, 2024
1945df3
update pdflatex_local_manual dir
e-perl-NOAA Jun 21, 2024
771a5b9
pdflatex_local_manual description and parameter changes
e-perl-NOAA Jun 25, 2024
fc91003
B0 to Virgin Spawning Biomass; remove settings.json file
e-perl-NOAA Jun 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
pdflatex_local_manual description and parameter changes
  • Loading branch information
e-perl-NOAA committed Jul 24, 2024
commit 771a5b9f828ce887b14aaaf7b9c07accdd624e47
15 changes: 8 additions & 7 deletions .github/r_code/pdflatex_local_manual.r
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
#' Comment out lines that prevent pdf from being generated locally and produce pdf
#'
#' Reads the tex file and comments out lines that prevent pdf from being
#' generated locally and produces pdf using tinytex::pdflatex() and then changes
#' the tex file back.
#' generated locally and produces pdf using tinytex::pdflatex() and then changes
#' the tex file back. Please see issue #135 in the ss3-doc repository
#' (https://github.com/nmfs-ost/ss3-doc/issues/135) for more information on the
#' lines that prevent the pdf from being generated locally.
#'
#' @param manual_file Name of the manual tex file. Default is "SS330_User_Manual.tex"
#' with the assumption that this file is in your working directory.
#' @param dir Directory if "SS330_User_Manual.tex" is not in your working directory,
#' otherwise the function uses getwd() ad the default.
#' @param manual_file A string providing the name of the manual tex file. The default is
#' "SS330_User_Manual.tex" with the assumption that this file is in your working directory.
#' @param dir A string providing the path to the directory where `manual_file` is located.
#' The default is [getwd()].
#' @author Elizabeth F. Perl
#' @return Results from tinytex::pdflatex().
#' @examples
Expand Down Expand Up @@ -38,7 +40,6 @@ pdflatex_local_manual <- function(manual_file = "SS330_User_Manual.tex", dir = g
}
)

manual <- readLines(file.path(dir,"SS330_User_Manual.tex"))
manual[3] <- gsub("%\\\\", "\\\\",manual[3])
manual[4] <- gsub("%\\\\", "\\\\",manual[4])
manual[6] <- gsub("%\\\\", "\\\\",manual[6])
Expand Down