News for hackers. Stuff that matters.
Re:Using Computer Modern on the web (2013) by m000 on Wednesday May 12, 2021 @08:53AM (#27129716)
Just no. CM font was made for printing. It was last updated in 1992, before PDF was even a thing. CM is not made for screens and it is a horrible idea to use it on the Web.

> It's so good-looking that some scientists do research just so they can write it up in Computer Modern.

It's more like "undergrad students use it in their papers because they don't know better". The only Computer Science publications I'm aware of that still use CM are the Springer LNCS/LNAI series. Which also happen to still use a template optimized for printing the proceedings as books. And AFAIK, these templates are universally hated and considered archaic and outdated: They look bad everywhere (screen, A4 printout, letter printout) except the Springer-printed paper volume.

Re:Using Computer Modern on the web (2013) by augstein on Wednesday May 12, 2021 @11:39AM (#27131567)
Always the same objections, from the same people, when it comes to CM.

It's mostly just subjective nowadays, just like your whole 'argument'.

I think it looks great on high res displays, which should cover a huge chunk of all consumer displays used today.

Re:Using Computer Modern on the web (2013) by halikular on Wednesday May 12, 2021 @02:43PM (#27133688)
World wide the most used screen resolution is 1920x1080 at ~9% all other top resolutions is somewhere around 720p [1]. Even on desktop computers the top resolutions is 1920x1080 at ~21% followed by 1366x768 also at ~21% [2]. I still only use 1080p screens due to superior performance in games, refresh rate, battery life and that you don't have to deal with scaling issues. Things have changed since I bought them three years ago, but I don't need to upgrade.

[1] https://gs.statcounter.com/screen-resolution-stats

[2] https://gs.statcounter.com/screen-resolution-stats/desktop/w...

Re:Using Computer Modern on the web (2013) by justaj on Wednesday May 12, 2021 @06:31PM (#27135962)
I can only offer my opinion and an image. I think CM looks terrible on dark backgrounds: https://0x0.st/-M8w.png

(This is with the Dark Reader extension in Dynamic mode with these settings: https://0x0.st/-M8g.png)

Re:Using Computer Modern on the web (2013) by Syzygies on Wednesday May 12, 2021 @03:22PM (#27134146)
Computer Modern is the "plaid shorts" of TeX fonts. I profoundly admire all of Don Knuth's efforts, and I've had the pleasure of a number of conversations with him. He threw in the towel himself, recognizing that artists could design better fonts than computers.

To excel at math requires focus. When I see Computer Modern I see an author who didn't get distracted choosing a better font. Not just undergraduates.

Re:Using Computer Modern on the web (2013) by sdgegdfg on Wednesday May 12, 2021 @05:23PM (#27135300)
It's good that he threw in the towel. It takes a bit of a galaxy brain perspective to conclude that by being amateurish in his approach to font implementation with TeX/Metafont, Knuth was somehow being a more professional mathematician.

We need to accept that Knuth was an amateur type designer who was genuinely preoccupied with fonts (“I can’t go to a restaurant and order food because I keep looking at the fonts on the menu.” — Donald Knuth https://twitter.com/TeXtip/status/1389329788628783104). He could have delegated the design of the first font for his TeX system to a professional type designer. He didn't.

Re:Using Computer Modern on the web (2013) by SeanLuke on Wednesday May 12, 2021 @05:32PM (#27135394)
> He could have delegated the design of the first font for his TeX system to a professional type designer.

Knuth started work on TeX's fonts about the same time that he began work on TeX and Metafont (1977-78). CM was largely completed by about 1984-86. He was a computer science professor. I'm not aware of any funding he procured to develop TeX. You're saying he had the financial resources to hire a professional type designer for fonts for an academic publishing system of unknown future?

Re:Using Computer Modern on the web (2013) by sdfsefgsrgerg on Wednesday May 12, 2021 @05:59PM (#27135664)
By 1980 Knuth was working with Hermann Zapf. So he was able to interest Zapf in his software essentially immediately. Knuth was a prestigious figure, so it's not a shock. Stanford students of typography and CS participated in the detailed production work on the font that was made with Zapf. It doesn't sound like funding was an issue.

Sure, bootstrapping the TeX project would have been a bit more difficult if a font designer had been required from the start; on the other hand, maybe Metafont would have been a more successful font design system if type designers had been (more?) involved from the outset.

"Zapf designed and drew the Euler alphabets in 1980–81 and provided critique and advice of digital proofs in 1983 and later. The typeface family is copyright by American Mathematical Society, 1983. Euler Metafont development was done by Stanford computer science and/or digital typography students; first Scott Kim, then Carol Twombly and Daniel Mills, and finally David Siegel, all assisted by John Hobby. Siegel finished the Metafont Euler digitization project as his M.S. thesis in 1985."

It's worth noting, more generally, that Knuth himself has described a realization that he gets better results from delegating tasks than from "going it alone":

"Some of you may recall that I wrote the entire program for TEX78 and TEX82 all by myself, and you may be wondering whether I’ve done the same for iTeX. Don’t worry: This time around I’m having the job done by people who know what they’re doing. After many years I’ve finally come to realize that my main strength lies in an ability to delegate work and to lead large projects, rather than to go it alone. Programming has never really been my forté for example, I’ve had to remove 1289 bugs from TEX, and 571 from METAFONT."

Re:Using Computer Modern on the web (2013) by svat on Sunday May 16, 2021 @10:50PM (#27179621)
This is backwards: This comment (and its grandparent) makes it sound as though Knuth set out to create a typesetting system and a font creation system, and then was faced with the choice of who would design the first font for the system. In reality, his work in typesetting started with a very narrow goal: when the publishers of TAOCP were about to set the second edition of Volume 2 using phototypesetting (instead of hot-metal typesetting as in the first edition of Vols 1–3 and 2nd edition of Vol 1), he found the galley proofs awful, and at the same time he came to know of the existence of a digital typesetter, so he thought he might be able to retain the appearance of the first edition. That's all there was to it; it was supposed to be a three-month one-off job specifically for TAOCP (and later volumes/editions thereof), and he even thought his grad students could code up the whole thing over the summer while he was away.

More concretely: the design of Computer Modern is based on the typeface used for the first edition (10-point Monotype Modern 8A, etc). It's not identical, but you can compare say, the first (1973, Monotype hot metal) and second (1998, using CM/Metafont) editions of Volume 3; it's substantially the same typeface; at least most people's criticisms of Computer Modern would also apply to the font he found so beautiful and which he was trying to reproduce. (Except the "spindly" or "too light" complaint which is not a problem with "true" CM but only with the TrueType/OpenType version used today by nearly everyone except Knuth: see https://tex.stackexchange.com/a/361722/48 and the comment below it, and http://mirrors.ctan.org/fonts/mlmodern/doc/mlmodern.pdf.) In fact, he says he was excited when Addison-Wesley approached him to write a textbook (in the early 1960s) because he loved their typesetting so much.

His goal at first was simply to reproduce the same font digitally (TeX was created only because of the necessity of a system for using those new digital fonts). He approached Xerox (PARC, I think) to use their high-resolution equipment and obtain a digital scan of the Monotype font. If they had agreed unconditionally, that would have been the end of it, and METAFONT wouldn't have existed. They insisted that any font created digitally using their resources would belong to Xerox, which Knuth thought fair but unacceptable to him, so he set out to reproduce the font with the resources available to him. While staring at blown-up images of the letters projected on his wall at home via a TV camera, he had the realization that the shapes were not entirely arbitrary and therefore perhaps he ought to describe the shapes in terms of curves rather than simply capturing the shapes as numbers, and his syntax (and implementation) for describing these shapes turned into METAFONT. His shapes (glyphs) for CM did diverge from Monotype Modern a bit, with all the feedback he got from people like Hermann Zapf and Matthew Carter and Richard Southall and Chuck Bigelow & Kris Holmes and Neenie Billawala (one of the Stanford students)—these are the people credited in the preface to Volume E (Computer Modern Typefaces)—but it's not as if he sat down to design a typeface ab initio in a system that he had already built or was planning to build. METAFONT is simply the collection of tricks/code he came up with for the problem of creating a computer version of Monotype Modern (thus the name, "Computer Modern").

Much of this story is narrated in his Kyoto Prize lecture of 1996 (https://web.archive.org/web/20201111041445/https://www.kyoto...), reprinted as the first chapter of his collected volume Digital Typography.

The last paragraph you quoted is from a joke/satire/parody (https://tug.org/TUGboat/tb31-2/tb98knut.pdf / https://www.youtube.com/watch?v=eKaI78K_rgA) and represents the opposite of his views (https://yurichev.com/mirrors/knuth1989.pdf):

> Thus, I came to the conclusion that the designer of a new system must not only be the implementer and the first large-scale user; the designer should also write the first user manual. The separation of any of these four components would have hurt TeX significantly. If I had not participated fully in all these activities, literally hundreds of improvements would never have been made, because I would never have thought of them or perceived why they were important.

Re:Using Computer Modern on the web (2013) by masak on Wednesday May 12, 2021 @09:56PM (#27137590)
He's poking fun at himself with the whole "programming has never been my forté" -- the fact that he kept count of all the bugs in TEX and METAFONT is the amazing thing.

At the risk of stating the obvious, iTeX is not a real successor of TeX, it's a deliberately-vaporware joke.

Re:Using Computer Modern on the web (2013) by dheera on Wednesday May 12, 2021 @04:59PM (#27135085)
CM isn't good for the web, but it is pleasing in print IMO.

I do agree though it has been abused a lot as a status symbol. Back at MIT, having a resume in CM spoke "I come from a science/engineering background" right off the bat, while having a resume in a Microsoft font spoke "I go to the business school".

If you move away from CM, great, there are lots of better web-friendly fonts, but don't go to TNR for f*ck's sake. TNR is awful. Unfortunately some publications have gone down this hole.

I like Crimson Pro of late. It looks VERY pleasing on mobile LCD/LED and e-Ink screens, has the effect of making your device feel like a quality printed book, and has a full selection of weights.

https://fonts.google.com/specimen/Crimson+Pro

Re:Using Computer Modern on the web (2013) by joezydeco on Wednesday May 12, 2021 @11:27PM (#27138071)
If I see a resume in CM I know that person will be back in grad school before I can finish onboarding them.
Re:Using Computer Modern on the web (2013) by Blikkentrekker on Wednesday May 12, 2021 @11:19AM (#27131350)
> Just no. CM font was made for printing. It was last updated in 1992, before PDF was even a thing. CM is not made for screens and it is a horrible idea to use it on the Web.

The same can be said about P.D.F. files.

I recently found out why so often when copying from them, spaces are either inserted doubly, or removed: the reason is that the format has no understanding of spaces, only of distance between characters and is completely about præsentation, lacking semantics in any way.

When copying, the reader simply applies a heuristic of what distance between characters constitutes a space, and is often wrong.

Re:Using Computer Modern on the web (2013) by klodolph on Wednesday May 12, 2021 @02:15PM (#27133410)
The format understands spaces just fine. The problem is that programs that produce PDFs are often designed just to make the PDF look correct, without any care for semantics.

I think there's just a bunch of history here--print is the use case that you really want PDF to get correct, and so you take existing print pipelines which discard semantics and add PDF as a new backend. This is the easy/lazy way to get PDF working, and there are also tons of PDF pipelines are just stapled onto the end of a print pipeline as if PDF were another type of printer.

You'll see a night and day difference between one of those pipelines and something more suited to processing a document with semantics, like FrameMaker. FrameMaker seems to be a bit more niche now that print documentation is less mainstream.

I can understand why the PDF ecosystem is a bit frustrating, but I still prefer it when I'm reading academic papers explaining some algorithm or mathematical concept.

Re:Using Computer Modern on the web (2013) by selfhoster11 on Monday May 17, 2021 @06:26AM (#27181943)
> The problem is that programs that produce PDFs are often designed just to make the PDF look correct, without any care for semantics.

When the alternative is that they don't offer a non-proprietary export format at all, I'll take it. Even a poor PDF output is better for data portability than having your data forever trapped in a proprietary platform that can disappear or get discontinued at any time without a migration path.

Re:Using Computer Modern on the web (2013) by Mediterraneo10 on Wednesday May 12, 2021 @12:39PM (#27132265)
It is not the case that treatment of spaces is completely wild and ad hoc. PDF can, and frequently does, contain the text itself along with the display of said text. This is why applications like pdftotext can often give you correct plaintext output.

OCR applications are able to make PDFs from scanned images accessible and searchable (and with the right spaces) precisely because they embed their output into that layer of the PDF meant for the text itself, not its presentation.

Re:Using Computer Modern on the web (2013) by aardvark179 on Wednesday May 12, 2021 @04:12PM (#27134574)
Actually what OCR programs do is a very clever hack. PDF is mostly just a way to describe how to render pages, and just like with any rendering frame work that can involve a bitmap, a set of stroke and fill commands, or some text rendering. A scanned document obviously is just a huge bitmap, but if you can identify the text, and can define a font that doesn’t draw anything, then you can add instructions to the PDF to render that text in that font and as long as you can specify character positions everything will line up nicely.

If you are generating a PDF with text you can render a string with spaces and let the glyph layout sort it out, or render individual characters, or draw those characters by hand and use the invisible font trick (because your font is not licensed for embedding). It’s not that you’re using different conceptual layers of the PDF, you’re just choosing how to render your content.

Re:Using Computer Modern on the web (2013) by selfhoster11 on Monday May 17, 2021 @06:23AM (#27181916)
PDF is simply the lowest common denominator of what counts as "computerized sheaf of paper, with a layout and appearance that won't shift over time, no matter which reader software you use". It has its value, especially with preservation of pre-digital documents.

Accepting a potentially inferior machine-readable plaintext when copy and pasting is the price we pay for having something like that available.

Re:Using Computer Modern on the web (2013) by wiz21c on Wednesday May 12, 2021 @10:27AM (#27130717)
I'm one of those undergrad students :-) What are the better, more current, ways of prepare, say, a thesis document with maths, pictures ?
Re:Using Computer Modern on the web (2013) by bluenose69 on Wednesday May 12, 2021 @10:40AM (#27130857)
Springer's sample document for monographs^1 and books contains

    \usepackage{newtxtext}
    \usepackage{newtxmath}
for font setup.

1. https://resource-cms.springernature.com/springer-cms/rest/v1...

Re:Using Computer Modern on the web (2013) by m000 on Wednesday May 12, 2021 @01:49PM (#27133127)
TBF, I was one too :-)

FWIW, for non-math, single column text, LuaLaTeX + plex-otf [1] is my current favourite combo. Reads well both on screen and on paper. But if you are heavy on math, you will need to setup a second font to replace CM in the math formulas. You can also scout the top conferences/journals in your niche (i.e. where your prof. publishes) and pick a template you like. The templates are typically linked with every CfP, and you can expect that they will have worked-out the common cases for their field.

[1] https://ctan.org/pkg/plex-otf

Re:Using Computer Modern on the web (2013) by fuklief on Wednesday May 12, 2021 @02:59PM (#27133884)
I'm using the following for fonts.

  \usepackage[T1]{fontenc}
  \usepackage[utf8]{inputenc}
  \usepackage[largesc]{newpxtext}
  \usepackage{newpxmath}
  \usepackage[supsfam=newpx]{superiors}