frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Examples from The LaTeX Companion book (3rd edition)

https://ctan.org/pkg/tlc3-examples
77•teleforce•5mo ago

Comments

haunter•5mo ago
Not sure why is this posted here, pretty much useless without the book
maweki•5mo ago
Who doesn't own the third edition of the LaTeX Companion book?
psychoslave•5mo ago
Hmm, I guess most people. Just like TAOC, everybody talk about it and even those who buy it let it rot on a shelve.

I remember in university one of the professor coming to me during my master asking how did I achieved this fancy stuff in my report. Dude I just red the book, lol. I didn't manage to validate my M2 though, double lol. :D

sombragris•5mo ago
Well, it's a reference book, not a tutorial. You "let it rot on a shelve" until that moment when you need to achieve a specific outcome in your LaTeX code and then check out the book.
psychoslave•5mo ago
Just when I started to look back at latex to typeset some poetry of mine yesterday!

Been a while since I didn't touch it, so I didn't even have texlive installed on my Ubuntu box, and started a chase of dependency to make my French specific stuff to install. I still need to see if I can manage to make the three strophe I wrote be as rectangle shaped as possible, be it with automatic line break on a vers (not sure the term in English) to the next row right aligned and preceded with a [

gucci-on-fleek•5mo ago
I'm not 100% sure what you're looking for, but placing "\parfillskip=0pt" at the start of the paragraph will make the last line end on the right margin, which I think is what you mean by "rectangle shaped".
bombcar•5mo ago
There are packages that support poetry directly.

And if you’ve not seen the memoir package collection it (and the accompanying ebook on typesetting) is worth a look.

bobajeff•5mo ago
This[1] is what I use. So far haven't needed anything that's not supported by Katex. and Pandoc doesn't seem to have any problem with converting my stuff to Latex.

The only real problems I ever ran into were due to markdown (errors?) that vscode preview ignores but pandoc trips over. Mostly having to do with not leaving blank lines between different Markdown elements.

[1]: https://katex.org/docs/supported.html

gucci-on-fleek•5mo ago
KaTeX and MathJax aren't really the same as (La)TeX at all though---they support the same math syntax, but LaTeX is a complete document processing system while KaTeX is just a math renderer.

KaTeX + Markdown is comparable to LaTeX, in the same way that notepad.exe is comparable to an IDE---they both do the same thing, but one has 1000× as many features as the other. I'm personally biased towards LaTeX, but simpler solutions like Markdown certainly have their place.

WillAdams•5mo ago
First, anyone who is interested in this should buy the books:

https://www.informit.com/store/latex-companion-parts-i-ii-3r...

I was certainly glad to, since the binding was breaking on my 2nd edition due to constant usage, and I was glad to have the option of buying hardcovers.

Second, work through a good tutorial, there are many, but I like: https://tug.ctan.org/info/lshort/english/lshort.pdf

Third, learn your way around CTAN, and https://tex.stackexchange.com/ --- for pretty much any problem you have, there should be a package or code snippet which addresses it, if not ask on SE or https://old.reddit.com/r/LaTeX/ after searching (and let folks know what terminology you used in your search), and consider using one of the nice well-documented documentstyles suited to your project --- Koma is good for Europeans, I like Memoir and not just because the first author was kind enough to consider my suggestions for the manual or implement some simplistic code I sent in (has anyone heard from Peter Wilson lately?)

Lastly, when working with macros and packages and so forth, conceptually divide them between semantic markup (this bit of code describes how this text/number should be represented and thought of) and appearance (this bit of code is necessary to get the text on the page at this pagination state in the best possible way) --- all of the latter macros should be defined twice, once as null ops in one package file, a second time redefined to actually do what is desired in a second package --- that way, the page can be set without them just by commenting out the second package. It's even better if all such macros are named in such a way that they can be easily commented out w/ a find-replace.

falcor84•5mo ago
> First, anyone who is interested in this should buy the books:

> https://www.informit.com/store/latex-companion-parts-i-ii-3r...

I'm getting "Sorry, this book is no longer in print."

mbarr•5mo ago
Here's the link to the in-print version:

https://www.informit.com/store/latex-companion-parts-i-ii-97...

WillAdams•5mo ago
My apologies, didn't notice that the hardcover was out-of-print and that the paperback is what is available:

https://www.informit.com/store/latex-companion-part-i-978013...

dmlorenzetti•5mo ago
Regarding the idea to have some macros that expand to null when unwanted -- I have some "developer" macros that, in day-to-day use, do things like showing TODO items.

The most useful one typesets the labels of equations, sections, figures, and so forth, so I can copy-paste right from the document as I'm editing. That makes it so much easier to insert cross-references while writing, without breaking the flow to search out the definition.

Rather than commenting out packages, I have two top-level input files, which `\input{}` the actual content. Those files differ only where they read the developer-oriented definitions:

    \input{latex_input/defn/dev_defns_for_devs.tex}
versus

    \input{latex_input/defn/dev_defns_for_release.tex}
mbarr•5mo ago
Looks like there's an update to the tutorial:

https://tobi.oetiker.ch/lshort/lshort.pdf

jdnier•5mo ago
> should buy the books

Yes I totally will, err..., oh my, ebook for $91.99, paperback for $127.99. What's going on with these prices? These aren't college textbooks. I'm glad to hear about the 3rd edition but the cost gives me pause.

WillAdams•5mo ago
I recall them being less expensive when first released.

Either there has been a new printing which was done overseas and was affected by tariffs or more expensive for some other reason, or the copies in the warehouse were taxed as inventory (blame Congress for that, it was a major change in the tax law and it created the current mess of remaindered books and no back-list and ever spiraling book prices).

gucci-on-fleek•5mo ago
> has anyone heard from Peter Wilson lately?

Unfortunately, he seems to have gone missing [0].

[0]: https://tug.org/TUGboat/tb46-1/tb142beet.pdf

Leaving Google has actively improved my life

https://pseudosingleton.com/leaving-google-improved-my-life/
158•speckx•2h ago•96 comments

OpenAI raises $110B on $730B pre-money valuation

https://techcrunch.com/2026/02/27/openai-raises-110b-in-one-of-the-largest-private-funding-rounds...
169•zlatkov•6h ago•286 comments

The Robotic Dexterity Deadlock

https://www.origami-robotics.com/blog/dexterity-deadlocks.html
47•shmublu•1h ago•26 comments

NASA announces overhaul of Artemis program amid safety concerns, delays

https://www.cbsnews.com/news/nasa-artemis-moon-program-overhaul/
127•voxadam•4h ago•132 comments

A better streams API is possible for JavaScript

https://blog.cloudflare.com/a-better-web-streams-api/
317•nnx•7h ago•107 comments

Let's discuss sandbox isolation

https://www.shayon.dev/post/2026/52/lets-discuss-sandbox-isolation/
48•shayonj•2h ago•11 comments

Dan Simmons, author of Hyperion, has died

https://www.dignitymemorial.com/obituaries/longmont-co/daniel-simmons-12758871
299•throw0101a•3h ago•128 comments

A Chinese official’s use of ChatGPT revealed an intimidation operation

https://www.cnn.com/2026/02/25/politics/chatgpt-china-intimidation-operation
46•cwwc•5h ago•22 comments

Writing a Guide to SDF Fonts

https://www.redblobgames.com/blog/2026-02-26-writing-a-guide-to-sdf-fonts/
41•chunkles•3h ago•3 comments

Allocating on the Stack

https://go.dev/blog/allocation-optimizations
92•spacey•4h ago•38 comments

A new California law says all operating systems need to have age verification

https://www.pcgamer.com/software/operating-systems/a-new-california-law-says-all-operating-system...
120•WalterSobchak•6h ago•118 comments

Kyber (YC W23) Is Hiring an Enterprise Account Executive

https://www.ycombinator.com/companies/kyber/jobs/59yPaCs-enterprise-account-executive-ae
1•asontha•2h ago

Modeling cycles of grift with evolutionary game theory

https://www.oranlooney.com/post/grifters-skeptics-marks/
60•ibobev•3d ago•23 comments

We Built Secure, Scalable Agent Sandbox Infrastructure

https://browser-use.com/posts/two-ways-to-sandbox-agents
30•gregpr07•6h ago•6 comments

"Just a little detail that wouldn't sell anything"

https://unsung.aresluna.org/just-a-little-detail-that-wouldnt-sell-anything/
62•bobbiechen•3d ago•12 comments

PCB Tracer

https://pcbtracer.com
8•Luc•3d ago•2 comments

Court finds Fourth Amendment doesn’t support broad search of protesters’ devices

https://www.eff.org/deeplinks/2026/02/victory-tenth-circuit-finds-fourth-amendment-doesnt-support...
394•hn_acker•6h ago•63 comments

Get free Claude max 20x for open-source maintainers

https://claude.com/contact-sales/claude-for-oss
327•zhisme•12h ago•161 comments

Open source calculator firmware DB48X forbids CA/CO use due to age verification

https://github.com/c3d/db48x/commit/7819972b641ac808d46c54d3f5d1df70d706d286
73•iamnothere•5h ago•33 comments

Implementing a Z80 / ZX Spectrum emulator with Claude Code

https://antirez.com/news/160
102•antirez•2d ago•52 comments

Can you reverse engineer our neural network?

https://blog.janestreet.com/can-you-reverse-engineer-our-neural-network/
236•jsomers•2d ago•170 comments

Tell HN: MitID, Denmark's digital ID, was down

96•mousepad12•10h ago•144 comments

Show HN: RetroTick – Run classic Windows EXEs in the browser

https://retrotick.com/
154•lqs_•8h ago•44 comments

Rob Grant, creator of Red Dwarf, has died

https://www.beyondthejoke.co.uk/content/17193/red-dwarf-rob-grant
135•nephihaha•2h ago•35 comments

We gave terabytes of CI logs to an LLM

https://www.mendral.com/blog/llms-are-good-at-sql
126•shad42•5h ago•80 comments

Show HN: Claude-File-Recovery, recover files from your ~/.claude sessions

https://github.com/hjtenklooster/claude-file-recovery
5•rikk3rt•5h ago•0 comments

Sprites on the Web

https://www.joshwcomeau.com/animation/sprites/
88•vinhnx•3d ago•16 comments

Statement from Dario Amodei on our discussions with the Department of War

https://www.anthropic.com/news/statement-department-of-war
2796•qwertox•22h ago•1482 comments

F-Droid Board of Directors nominations 2026

https://f-droid.org/2026/02/26/board-of-directors-nominations.html
151•edent•11h ago•104 comments

ChatGPT Health fails to recognise medical emergencies – study

https://www.theguardian.com/technology/2026/feb/26/chatgpt-health-fails-recognise-medical-emergen...
179•simonebrunozzi•5h ago•135 comments