When reading code snippets in academic papers, do you like any of: monospaced font?
-
Laxystem (Masto/Glitch)replied to Jonathan Dowland last edited by [email protected]
@jmtd yes, only as ligatures (like e.g. JetBrains Mono has), and yes
-
Jonathan Dowlandreplied to Laxystem (Masto/Glitch) last edited by@laxla so you like the symbols in say, your editor (wiht ligature-font) but not in a PDF, is that right? Thanks for your response!
-
Laxystem (Masto/Glitch)replied to Jonathan Dowland last edited by
@jmtd what I meant is, don't use the arrow unicode character, but instead, a font with ligatures; Otherwise, monospacing is useless.
-
Jonathan Dowlandreplied to Laxystem (Masto/Glitch) last edited by@laxla ah I see. Yeah, in the LaTeX packages I am looking at, they put a lot of effort into vertical alignment issues
-
Laxystem (Masto/Glitch)replied to Jonathan Dowland last edited by
@jmtd wait. LaTeX? Aren't you doing code snippets? Or do you mean math?
-
Jonathan Dowlandreplied to Laxystem (Masto/Glitch) last edited by@laxla Code. This is a computing PhD thesis. Edit: but the preprocessor lhs2tex is using math-environments for the typesetted code, so there's some overlap here
-
Laxystem (Masto/Glitch)replied to Jonathan Dowland last edited by
@jmtd then why use LaTeX?
-
Jonathan Dowlandreplied to Laxystem (Masto/Glitch) last edited by@laxla Latex is a pretty natural choice for writing a PhD thesis. What would you suggest instead?
-
Laxystem (Masto/Glitch)replied to Jonathan Dowland last edited by
@jmtd idk. I just don't think a syntax that is intended for math is what you need.
Markdown, compiled to a PDF (or whatever other format you use), perhaps?
-
Jonathan Dowlandreplied to Laxystem (Masto/Glitch) last edited by@laxla Thanks for your input. Most Markdown→PDF workflows round-trip via LaTeX (I'm pretty sure Pandoc does). And I'm not sure they do anything special wrt formatting code -- likely just monospace it. Alas it's too late in my write-up to rework the whole thing in Markdown (or anything else) now. FWIW I've been mostly happy with LaTeX.
-
Laxystem (Masto/Glitch)replied to Jonathan Dowland last edited by
Copyright © 2024 NodeBB | Contributors