-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
Include additional packages in tinytex::install_tinytex() to have it work out of box with Jupyter #228
Comments
Just out of curiosity, and to be sure to understand can't you install them using
I guess you can but it is to have no other step to do than jup_pkgs <- c(
"adjustbox",
"caption",
"collectbox",
"enumitem",
"environ",
"eurosym",
"jknapltx",
"parskip",
"pgf",
"rsfs",
"tcolorbox",
"titling",
"trimspaces",
"ucs",
"ulem",
"upquote"
)
tinytex::install_tinytex(extra_packages = jup_pks) I ask because adding those packages inside the default installation would make TinyTex less lightweight (see 3. and 4. in the FAQ) Maybe there could be a helper function (or file) to easily use this list of package when installing TinyTex for Jupyter ? |
Oooh, I really like the idea of a helper function or file to easily use the list of packages when installing TinyTex for Jupyter! Great suggestions! I am happy to start on a PR for this if it is a welcome addition? Not sure I understand your last question?
What exactly are you asking? |
How do you know which package you need for Jupyter ? Is it a minimum set of required packages based on documentation somewhere or from your own experience ? Can we based the list on something available to help keep it up to date ? |
I discovered this via following the error messages after installing TinyTex and trying to use it in Jupyter. Once I installed the packages above it worked. I uninstalled it and replicated twice on Mac, and then replicated it again on ubuntu. Sadly the nbconvert docs (which is what does the PDF conversion in Jupyter) are fairly sparse about the specific TeX package dependencies... https://nbconvert.readthedocs.io/en/latest/install.html#installing-tex And in their CI I will open an issue on the nbconvert repo asking if such a minimum set of required packages exists. I will also alert them of this project, as maybe this would be something they (and other Jupyter folks) would like to switch to? |
I'm fine with adding more packages to the default installation of TinyTeX if they are not too big. I don't have a hard limit on the size, but I'd hesitate when it would increase the size by more than 5Mb. You are definitely not the first user who has asked to include more packages. I've been a little worried about how fast we'll be approaching And there have been users who complain that TinyTeX is not "tiny", e.g., https://yihui.org/tinytex/#comment-4939627259 although I usually try to ignore such comments. |
I am not sure how to estimate what the size of increase of TinyTex would be by adding these packages... So I'll first start with a PR as per @cderv's suggestion. |
I have moved to using TinyTex with Jupyter, however to do so I need to install 16 additional packages (listed below) to make this work with the version of
tinytext
on CRAN or if I install the dev version oftinytex
.Would a pull request be welcome to add these into the base install of
tinytex::install_tinytex()
to have it work out of box with Jupyter?Packages that need to be added for CRAN version of TinyTex to work with Jupyter
By filing an issue to this repo, I promise that
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('yihui/tinytex')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: