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

Replace miktex with pylatex #23

Closed
leotrs opened this issue May 20, 2020 · 19 comments
Closed

Replace miktex with pylatex #23

leotrs opened this issue May 20, 2020 · 19 comments

Comments

@leotrs
Copy link
Contributor

leotrs commented May 20, 2020

This would reduce the number of non-python dependencies (i.e. packages that cannot be installed via pip and therefore could cause problems during manual installation).

Anyone wants to volunteer?

@PgBiel
Copy link
Member

PgBiel commented May 20, 2020

I don't think this will be possible or desired. It seems to me that PyLaTeX does not have support for the packages that manim imports. Regardless, MikTeX is of manageable size; TeXLive is the issue. However, it is quite hard to replace it for our purposes.

@leotrs
Copy link
Contributor Author

leotrs commented May 20, 2020

Am I wrong in thinking that a majority of potential users of manim (who are, presumably, knowledgeable in math), already have some sort of latex distribution on their machines and thus would not care about texlive?

@PgBiel
Copy link
Member

PgBiel commented May 20, 2020

Probably (this was my case at least; already had it installed)
Still sucks for LaTeX overall that we need this massive... thing... to use it, though 😔

@leotrs
Copy link
Contributor Author

leotrs commented May 20, 2020

Fair. So if we want to use LaTeX, we will depend on a LaTeX distribution, such as TeXLive. So there is literally nothing to be done here it seems?

@PgBiel
Copy link
Member

PgBiel commented May 20, 2020

For now, seems like it, yes

If there's something we can do, is make such installation optional, that way users can restrict themselves to Text if needed

@kilacoda-old
Copy link
Contributor

There are smaller alternatives for MiKTeX and TeX Live like tinytex and BasicTeX which we could recommend users to use if they only really want to use LaTeX for manim

@PgBiel
Copy link
Member

PgBiel commented May 20, 2020

There are smaller alternatives for MiKTeX and TeX Live like tinytex and BasicTeX which we could recommend users to use if they only really want to use LaTeX for manim

that's also correct, yes

@Aathish04
Copy link
Member

Fair. So if we want to use LaTeX, we will depend on a LaTeX distribution, such as TeXLive. So there is literally nothing to be done here it seems?

Yes. It seems any LaTeX distribution will work, as long as certain package requirements are fulfilled.

@leotrs
Copy link
Contributor Author

leotrs commented May 20, 2020

I'm all for small latex distributions, as long as we can guarantee that they are installable in Windows/MacOS/Linux.

Also, very much agree that LaTeX should be optional. This should go in the README somewhere.

@Aathish04
Copy link
Member

Aathish04 commented May 20, 2020

Okay:

I've been using BasicTeX on MacOS for almost the entire time I've been using Manim on MacOS and it works flawlessly, except for a few missing packages here or there that were manually installed.

@eulertour 's website has a documentation page that shows install instructions for Linux.
This suggested installing the packages

texlive texlive-latex-extra texlive-fonts-extra texlive-latex-recommended texlive-science texlive-fonts-extra tipa

Which seem to be enough for Manim.

IMHO, MiKTeX is the best LaTeX distro on Windows for now, as it is the only one with truly automated on the fly package installations.

@PgBiel PgBiel added enhancement Additions and improvements in general wontfix labels May 20, 2020
@yoshiask
Copy link
Contributor

Am I wrong in thinking that a majority of potential users of manim (who are, presumably, knowledgeable in math), already have some sort of latex distribution on their machines and thus would not care about texlive?

@leotrs Unfortunately, many people who are new to Manim haven't even used the command line before. (Source: past and some current GitHub issues in the 3blue1brown/manim repo)

@yoshiask
Copy link
Contributor

yoshiask commented May 20, 2020

After some investigation of the PyLaTeX repo, you'd still have to have a LaTeX compiler installed on your machine. It looks like PyLaTeX is just a way of communicating, not necessarily compiling LaTeX without any external dependencies.

Edit: source JelteF/PyLaTeX#278

@leotrs
Copy link
Contributor Author

leotrs commented May 20, 2020

Yeah that's fair. I think there's a deeper debate here about what is the target audience of manim. I would love to encourage people with zero technical background to create math videos and content, but at this stage that seems near impossible.

@TonyCrane
Copy link
Contributor

What about this: #24 (comment)

For those who don’t want to install LaTeX, maybe it is a good choice to use online rendering.

@yoshiask
Copy link
Contributor

@tony031218 I was thinking about that, but then you'd have to have an internet connection every time you want to render a new LaTeX document.

But if we do go with server-side rendering, there is this:
https://latex.codecogs.com/svg.latex?x=\frac{4}{5}

@PgBiel
Copy link
Member

PgBiel commented May 21, 2020

@tony031218 I was thinking about that, but then you'd have to have an internet connection every time you want to render a new LaTeX document.

Indeed, this would require a ton of requests (one for each TexMobject!), plus people would end up installing BasicTeX or similar simply out of convenience.

@leotrs
Copy link
Contributor Author

leotrs commented May 21, 2020

I think this thread went on a tangent for a bit (I think I derailed it?) My current understanding of the "can we replace miktex" issue is: no, unless we make requests to a private server.

I think making requests a private server would be very very very bad design. Not to mention the requirement of internet an connection.

@PgBiel
Copy link
Member

PgBiel commented May 21, 2020

I think we can close this issue in favor of #24 or smth

@leotrs
Copy link
Contributor Author

leotrs commented May 21, 2020

Agreed.

@leotrs leotrs closed this as completed May 21, 2020
@leotrs leotrs removed the enhancement Additions and improvements in general label May 21, 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

6 participants