Skip to content

Make the Latex Installation efficient #255

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

Closed
naveen521kk opened this issue Aug 6, 2020 · 16 comments
Closed

Make the Latex Installation efficient #255

naveen521kk opened this issue Aug 6, 2020 · 16 comments

Comments

@naveen521kk
Copy link
Member

It would be good if we could make out Installation of Latex easy and also small with only packages necessary for running manim the default way. We can make a choco package for windows and a brew formula for mac and also a script to install in Linux(or publish to any Linux package manager).
I found TinyTex which already does it but it requires some extra modules to work with manim. But we can make it even less space and edit it so that it works with manim.
If we somehow get all the latex packages required for installation we could do this we easily by editing this file. Also, I found a list of packages here. This would be useful for newcomers.

@leotrs
Copy link
Contributor

leotrs commented Aug 6, 2020

Indeed this would be good. There has been much discussion about this on discord and github, I'll let others chime in @huguesdevimeux @yoshiask @PgBiel

@huguesdevimeux
Copy link
Member

Completly agree with that. IIRC latex packages (miktex, etc) are all broken on choco.

If we can make anything easier to install, we should not hesitate to do it !

@PgBiel
Copy link
Member

PgBiel commented Aug 12, 2020

Well, making such packages are out of the scope of this project, as LaTeX authors are responsible for their installation scripts. If we want this, we may create a make or something script which identifies the platform and runs commands accordingly.

@naveen521kk
Copy link
Member Author

The only thing which is now required is to know what are packages manim requires and nothing else. One could use texlive base framework and install just the packages required by manim, and that could be automated by a script. This issue is actually to find the packages required for it and not create a new latex package.

@leotrs
Copy link
Contributor

leotrs commented Aug 13, 2020

@naveen521kk, just to double check: the new #277 would close this issue, yes?

@naveen521kk
Copy link
Member Author

NO. WE SHOULD NOT DISTRIBUTE TEXLIVE OURSELVES.
See FAQ 2 of this doc.

@leotrs
Copy link
Contributor

leotrs commented Aug 23, 2020

I'm confused. This issue was suggesting the use of TinyTex, which was implemented in #277. But @naveen521kk says it doesn't solve the problem. What am I missing?

@naveen521kk
Copy link
Member Author

This issue for making a package (maybe chocolatey for windows) which has latex just required for manim. This can be easily done once the people at TinyTex work on choco package, by adding it as dependency and installing the extra package which manim requires, using tlmgr. Choco is for windows and similarly it can be done for other OS.(But I don't know.)

@leotrs
Copy link
Contributor

leotrs commented Aug 24, 2020

Ok so the suggestion is to package our own little version of TinyTex, and by no means for us to package/distribute texlive.

I know that's not what #227 is doing, but it is already using TinyTex, so in principle it did make the installation of Latex more efficient (at least on windows).

@naveen521kk
Copy link
Member Author

naveen521kk commented Aug 24, 2020

Ok so the suggestion is to package our own little version of TinyTex,

Yes. But TinyTex is a modified version of TexLive, and we are gonna do one similar to that for manim.

no means for us to package/distribute texlive

We can distribute it but the condition is that we should download/distribute it from the original source(CTAN repo). We can create a script or something which downloads from that source and modify it to be small.(Like how tinytex does).

(at least on windows)

Also, tinytex can be installed for other OS also.

@leotrs
Copy link
Contributor

leotrs commented Aug 24, 2020

Oooooh ok finally got it. Thanks!

So it seems like any progress on this issue must wait until TinyTex gets it together and uploads a choco package. If that's the case, I think we should close this and reopen when it's actually feasible.

@naveen521kk
Copy link
Member Author

I will reopen this issue when they create a choco package.

@naveen521kk
Copy link
Member Author

naveen521kk commented Sep 4, 2020

They(means me) have create it rstudio/tinytex#236

@naveen521kk naveen521kk reopened this Sep 4, 2020
@leotrs
Copy link
Contributor

leotrs commented Sep 4, 2020

Great! So what are the next steps for us?

@naveen521kk
Copy link
Member Author

naveen521kk commented Sep 5, 2020

Great! So what are the next steps for us?

Create a chocolatey package for this with Id manim-tex(or something better?). I will do the rest just tell me the id and that I'd would be something used to install
choco install manim-latex.

@naveen521kk naveen521kk self-assigned this Sep 11, 2020
@naveen521kk
Copy link
Member Author

This is done for windows
https://chocolatey.org/packages/manim-latex/2020.09
The chocolatey package is approved. I will soon add it to docs. Closing this issue.

@naveen521kk naveen521kk removed their assignment Sep 27, 2020
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

No branches or pull requests

4 participants