rstudio / rstudio/tinytex

Feature request: provide `.ps1` install script for Windows

Open
#381 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
R
Stars
1.2k
Forks
127
PR merge metrics
No merged PRs in 30d

Description

TinyTeX currently provides the Windows installer as a batch file which requires more steps to use than its Linux/macOS counterpart. It would be nice if there was a powershell version that could be downloaded and executed in a single command, e.g iwr -useb https://deno.land/install.ps1 | iex.

For context, I would like to add one-liner instructions for how to install TinyTeX in https://github.com/saadq/resumake.io

# Shell (Mac, Linux)
$ curl -sL https://yihui.org/tinytex/install-bin-unix.sh | sh

# PowerShell (Windows)
$ iwr -useb https://yihui.org/tinytex/install-bin-windows.ps1 | iex

By filing an issue to this repo, I promise that

  • I have fully read the issue guide at https://yihui.org/issue/.
  • I have provided the necessary information about my issue.
    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('tinytex'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/tinytex').
    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.
  • I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing Windows batch installer and the named install-bin-unix.sh flow, then define the equivalent install-bin-windows.ps1 entry point. Done means the PowerShell script can be downloaded and executed as a one-liner to install TinyTeX on Windows.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex, powershell
Domain
cli, release
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.