Closed JesseTG closed 8 years ago
Looks like by "not famous to be easy", you were talking about actually compiling it. Writing is isn't too difficult, but compiling it is a pain. I'll make sure to set that up okay, too. Do you use Linux, per chance?
I barely use Linux. Only once in a while. Even if I was using Linux, the solution needs to be cross platform or potentially cross platform so that I could make it works on Windows, MacOSX and Linux.
Gotcha. Looks like it's just a matter of installing some LaTeX packages, then. I've got the PDF itself mostly done, my next step will be adding that build step.
Question. How do you want me to implement building? To build the manual will require various LaTeX packages to be installed; should the CMake file presume that they already are, or should I try to fetch them remotely as well?
Well first, I think simplicity is really important so I would say the goal would be to build in a single step. Having a dedicated custom target, build it and it's done.
This said, platforms / ecosystems have different cultures and this needs to be considered. I think for MacOSX and Windows, anything should be in the repository. It would be nice to have a submodule for that but once again... Github has a serious limitation. :(
On Linux, well, I am pretty much unfit for this culture. Each time, I have to install packages and spent forever to deal with the dependant packages to the package I actually want.
So can building be simple for the users? It sounds like your experience shows that it's not a piece of cake. Can CMake make it a piece of cake?
Yes, there are CMake scripts for automating LaTeX builds, and I'm experimenting with one. And it is easy to make the manual a custom target.
As for installing LaTeX itself, I'm pretty sure there are convenient installers for it on non-Linux platforms (on Linux, apt-get
, yum
, etc. are the convenient installers). I'll look into it.
Thinking about it, I think it's good enough to let install LaTeX. What I am not sure is, is it the only tool to install? If yes, I think just a "clean" error message (LaTeX missing, needs to be install, see there for more information about building GLM manual).
If it's actually a pill of mess tools, then I don't know, it depends.
Yeah, CMake actually has a built-in FindLatex.cmake
for just such a scenario. And I'm including another UseLatex.cmake
to make it easier (you'll see it when I send my PR).
As for installation, this website lists the exact distributions the user can download. I just need to see which packages (features, macros, etc.) said LaTeX bundles include.
Now that I've actually made the PR and pushed my work, let's move discussion to #458
@Groovounet I'm in the process of converting the documentation to LaTeX, instead of the DOCX file that exists now. I proposed this in the
gli
repo, but I'm doing the GLM manual first, so let's bring the discussion here.I've attached the LaTeX for the first section and its PDF output, for your perusal.
Overleaf Link
glm-manual.pdf I've only converted the first section thus far. I haven't managed to put images inside it yet, but it's on the to-do list.
Is this something you'd want me to move forward with?