this post was submitted on 15 May 2024
310 points (98.7% liked)

Open Source

30988 readers
419 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS
 

Better design, new features and readme.

... and this is the most popular open source LaTeX book on github ❤️

https://github.com/AnMnv/eBook

top 29 comments
sorted by: hot top controversial new old
[–] [email protected] 36 points 5 months ago

I love how the Oreilly books became the gold standard for covers for this sort of thing.

[–] [email protected] 12 points 5 months ago (2 children)

There are a lot of typos in this book. Are you looking for someone to proofread? Great work btw

[–] [email protected] 7 points 5 months ago

thanks, will correct all typos asap

[–] [email protected] 1 points 5 months ago

Sure, the docx file is online if you want to help.

[–] [email protected] 6 points 5 months ago

Great! I forgot that Latex was on my mental list of things to learn/look into, so now I can add it on my actual written list, and bookmark this page.

[–] [email protected] 5 points 5 months ago

Hope they can get into the latex3 programming stuff as well!

[–] [email protected] 5 points 5 months ago

Wooow, thank you!

[–] [email protected] -2 points 5 months ago* (last edited 5 months ago) (3 children)

You guys should also check out Typst https://typst.app/. It is a lot easier than LaTeX even though not as powerful. It has meaningful error messages making the debugging a lot more user friendly.

[–] [email protected] 11 points 5 months ago

I had been using LaTeX at work and decided to give Typst a try:

I installed the compiler and vscode extensions to run Typst natively.

Setting up my orgs template in Typst was significantly easier then LaTeX and took about 20% less lines of code.

I like the more modern, practical syntax for writing docs.

It's still a relatively young project though, so I found a few rough edges:

  • Paragraph indentation rules for my language weren't available: managed to find a workaround though
  • Only allows use of relative paths for images, imports etc: apparently for security reasons, forces me to have template logo in almost every folder
  • Localized dates: Typst can't do it
  • No \graphicspath like command: LaTeX will search for an image by filename in each specified folder, in order. Typst has no equivalent command (yet)

Overall I was positively impressed, but went back to LaTeX mostly because of the last two points. Curious to see how Typst will be in a few years!

[–] [email protected] 1 points 5 months ago (1 children)

Why can’t I find any information about pricing on that page?

[–] [email protected] 1 points 5 months ago

Because it's free for the time being.

[–] [email protected] 1 points 5 months ago (2 children)

Under every single LaTeX themed post there is someone suggesting typst. Why use something open, if you can use something proprietary? /s

[–] [email protected] 6 points 5 months ago (1 children)

The compiler is open source: https://github.com/typst/typst

And maybe because LaTeX is a pain to work and debug? So please don't tell me that you have never been frustrated with it.

[–] [email protected] -1 points 5 months ago* (last edited 5 months ago)

What are you using it for? Did you publish anything written in typst? Edit: this is a genuine question.

[–] [email protected] 1 points 5 months ago

The Typst compiler is available under the Apache License 2.0.

The web app at https://typst.app is proprietary but also completely optional. You can use Typst with only a text editor supporting the LSP (VSCodium, Kate, Atom, ...), typst-lsp (Apache-2.0 OR MIT) and the Typst compiler.

[–] [email protected] -4 points 5 months ago (3 children)

What's an "open source" book? You don't compile a book, aren't they all "open source"? Do they list all the sources for their text or something?

[–] [email protected] 29 points 5 months ago (1 children)

Well yes, but also no. You can't reproduce a book because that violates copyrights.

Open source in this context just means that nobody owns the book, you can reproduce it however many times you want, and distribute it where you want as long as you include the original license in the reproduction (MIT license).

Also, there's a bit of a colloquial understanding that others are able to contribute or fork the original source material.

[–] [email protected] -3 points 5 months ago (2 children)

But "open source" doesn't even mean that you can reproduce it or use it for free. It just means that you can see the source code. The permissiveness, as you mentioned, lies in the licensing.
So I still think that it's a complete misnomer.

[–] [email protected] 13 points 5 months ago (1 children)

But "open source" doesn't even mean that you can reproduce it or use it for free.

You're thinking of source-available licenses. Open source has a clear and widely accepted definition that requires a certain level of freedom. You're free to ignore this definition, but you can't expect the rest of the world to do the same.

To be clear, open source allows for only providing access to paying customers, but those paying customers are then free to use and distribute their copies without any further payment. Then it wouldn't be open source anymore.

[–] [email protected] 6 points 5 months ago (1 children)

Fair enough, I didn't know that "open-source" is, in of itself, sort of a misnomer and, by the formal definition, a book can be open-source, because the phrase means certain specific things not tied to source code, contrary to what the name implies.
And in my defense, I've seen some software that required license key to use, with code available on GitHub or something that called itself open-source (I won't be able to recall the specific names). I assume the term is misused often.

[–] [email protected] 5 points 5 months ago (1 children)

No worries, nothing wrong with not knowing everything about every random subject. I would like to apologize for being overly harsh, I assumed that people in c/opensource would have general knowledge of this definition, but that assumption was clearly bad. So again, sorry.

I assume the term is misused often.

Yes, companies sometimes do that. Open source is marketable as a guarantee that you won't fully lose access to a piece of software, and there aren't any real consequences of misusing it. But there's also a scheme called dual licensing where the software is available under two licenses - one license is open source but annoying for commercial use, and the other is a "normal" proprietary license under which businesses can buy the code. This is fine (as long as the provider has copyright to all the code being dual licensed) and is pretty common and makes the software open source.

[–] [email protected] 3 points 5 months ago

This post is on the "front page", didn't come here deliberately.

[–] [email protected] 6 points 5 months ago* (last edited 5 months ago)
[–] [email protected] 19 points 5 months ago

I mean, it's called "LaTeX by example", so there's a pretty good chance it's written in LaTeX, which you do indeed compile to get the PDF or whatever output you want.

Also, just having access to the source doesn't make it open source - that requires more freedoms. For example, here's GitLab Enterprise Edition source code, fully functional and ready to be used. And also officially described as the proprietary edition of GitLab by the GitLab company itself. Why? Because its license pretty much boils down to "you can use this only for testing and development, unless you have paid for it".

[–] [email protected] 12 points 5 months ago (1 children)

You don’t compile a book

The irony

[–] [email protected] 2 points 5 months ago (1 children)

I'm surprised this is still getting responses.
Fair jab, but I was obviously the computing term, implying "...from source code".

[–] [email protected] 1 points 5 months ago (1 children)

Yeah, even in that sense… the irony

Ok I’ll stop being a prick 😂 if you haven’t used Latex before, you do write source code that gets compiled into PDF/PPT/whatever

[–] [email protected] 2 points 5 months ago (1 children)

I have some experience with Latex, but afaik, it's mostly for writing mathematical formulas and stuff, no?

[–] [email protected] 2 points 5 months ago

Sort of, if you’re writing a research paper or presentation or something like that with a lot of math in it, you can use Latex (for the whole thing, not just the formulas). It’s 10000X better than writing the same stuff in Word, especially if you know how to code