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

Allow TeXLive mirror to be selected #209

Merged
merged 3 commits into from
May 6, 2024
Merged

Conversation

garethstockwell
Copy link
Contributor

If set, the TEXLIVE_MIRROR_URL environment variable identifies the TeXLive mirror which should be used.

This is particularly useful when installing a historic TeXLive version. In this case, there is no automated mirror redirect, and the default mirror (ftp://tug.org/historic/) can become overloaded.

A mirror can be selected from https://www.tug.org/historic/, for example:

make latex
PANDOC_COMMIT=3.1.1
TEXLIVE_MIRROR_URL=https://ftp.math.utah.edu/pub/tex/historic/

When installing the most recent TeXLive version, by default the mirror with the fastest response is used, by resolving the mirror URL http://mirror.ctan.org/.

Alternatively, a mirror can be manually selected from https://ctan.org/mirrors/, for example:

make latex
TEXLIVE_MIRROR_URL=http://tug.ctan.org/tex-archive/

If set, the TEXLIVE_MIRROR_URL environment variable identifies the
TeXLive mirror which should be used.

This is particularly useful when installing a historic TeXLive version.
In this case, there is no automated mirror redirect, and the default
mirror (ftp://tug.org/historic/) can become overloaded.

A mirror can be selected from https://www.tug.org/historic/, for example:

  make latex \
    PANDOC_COMMIT=3.1.1 \
    TEXLIVE_MIRROR_URL=https://ftp.math.utah.edu/pub/tex/historic/

When installing the most recent TeXLive version, by default the mirror
with the fastest response is used, by resolving the mirror URL
http://mirror.ctan.org/.

Alternatively, a mirror can be manually selected from
https://ctan.org/mirrors/, for example:

  make latex \
    TEXLIVE_MIRROR_URL=http://tug.ctan.org/tex-archive/
@tarleb
Copy link
Member

tarleb commented May 6, 2024

Many apologies for letting this sit unanswered for so long. This is a great idea, I think, and I really appreciate the additional script cleanup, too. :)

I'll resolve the conflicts and merge asap.

@tarleb tarleb merged commit 412c27c into pandoc:master May 6, 2024
2 of 5 checks passed
@tarleb
Copy link
Member

tarleb commented May 6, 2024

Thank you! ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants