Skip to content

Commit

Permalink
support new windows / folder
Browse files Browse the repository at this point in the history
and still win32/ for backward compatibility
  • Loading branch information
cderv committed Mar 21, 2023
1 parent 584ce05 commit 0eed871
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:

- name: Add TinyTeX to PATH
run: |
echo "$APPDATA\TinyTeX\bin\win32" >> $GITHUB_PATH
echo "$APPDATA\TinyTeX\bin\windows" >> $GITHUB_PATH
shell: bash

- name: Build TinyTeX-0.zip
Expand Down
2 changes: 1 addition & 1 deletion R/latex.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#' so that \code{latexmk()} knows where to find executables like
#' \command{pdflatex}. For example, if you are using Windows and your TinyTeX is
#' on an external drive \file{Z:/} under the folder \file{TinyTeX}, you may set
#' \code{options(tinytex.tlmgr.path = "Z:/TinyTeX/bin/win32/tlmgr.bat")}.
#' \code{options(tinytex.tlmgr.path = "Z:/TinyTeX/bin/windows/tlmgr.bat")}.
#' Usually you should not need to set this option because TinyTeX can add itself
#' to the \code{PATH} variable during installation or via
#' \code{\link{use_tinytex}()}. In case both methods fail, you can use this
Expand Down
2 changes: 1 addition & 1 deletion man/latexmk.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tools/install-bin-windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ rd /s /q "%APPDATA%\TinyTeX"
move /y TinyTeX "%APPDATA%"

echo add tlmgr to PATH
cd /d "%APPDATA%\TinyTeX\bin\win32"
cd /d "%APPDATA%\TinyTeX\bin\win*"
call tlmgr path add
if /i not "%CI%"=="true" call tlmgr option repository ctan
call tlmgr postaction install script xetex
Expand Down
2 changes: 1 addition & 1 deletion tools/install-windows-base.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
owd = setwd('tools')
f = 'install-windows.bat'
x = readLines(f)
i = x == r"(call "%APPDATA%\TinyTeX\bin\win32\tlmgr" install %pkgs%)"
i = x == r"(call tlmgr install %pkgs%)"
if (sum(i) != 1)
stop('The script ', f, ' should contain a line to install extra LaTeX packages.')
x = x[!i]
Expand Down
8 changes: 5 additions & 3 deletions tools/install-windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ for /F %%a in (pkgs-custom.txt) do set "pkgs=!pkgs! %%a"

del pkgs-custom.txt

call "%APPDATA%\TinyTeX\bin\win32\tlmgr" conf texmf max_print_line 10000
call "%APPDATA%\TinyTeX\bin\win32\tlmgr" path add
call "%APPDATA%\TinyTeX\bin\win32\tlmgr" install %pkgs%
pushd "%APPDATA%\TinyTeX\bin\win*"
call tlmgr conf texmf max_print_line 10000
call tlmgr path add
call tlmgr install %pkgs%
popd

pause

0 comments on commit 0eed871

Please sign in to comment.