Coder Social home page Coder Social logo

Comments (3)

FreakyPenguin avatar FreakyPenguin commented on June 3, 2024 1

Impressive as usual! Thanks for getting to the bottom of this.

Yikes, now I know much more than I ever needed to know, as usual with TeX... And of course it has to be 1/72.27... duh.

(Let's hope ACM does not find out about this and makes us all change our regular points to big points before accepting our future camera readies. ;-) )

from hotcrp.

kohler avatar kohler commented on June 3, 2024

Thanks for posting a PDF!

This is probably at root a difference between TeX’s notion of pt and everyone else’s.

Knuth decided that 1pt was exactly 1/72.27 inch. PostScript decided that 1pt was exactly 1/72 inch. Everyone else—Mac Preview, Word, etc. etc. etc.—went with PostScript because that’s obviously better, I mean come on.

If you set \baselineskip=12pt, that gives a line height of 0.1660 inches, which corresponds to a leading using the better point measurement of 11.955. If you set \baselineskip=12bp (tex's better-points unit), or use 12pt in any system other than tex, that gives a line height of 0.1666 inches (= 12.045 tex points)

See attached example.ltx. With \baselineskip=12pt, banal reports leading of 11.9pt. With \baselineskip=12bp, it reports 12pt.

The leading on a tex document really is less than 12pt because of Knuth derp. There is a rounding issue that maybe I can tweak but now you know you're getting away with something.

from hotcrp.

kohler avatar kohler commented on June 3, 2024

example.tex.txt

from hotcrp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.