8 ms·
I don't always use LaTeX, but when I do, I compile to HTML (2013)
- pyjamafish 3y agoSo, I originally posted this last year. When I posted it, I was using tectonic as my LaTeX compiler, and since it didn't support HTML output yet, I didn't actually try the article's suggestion. Today, when I saw that I got an invitation to repost this article from the mods, I thought I'd take the time to try it out. The two commands that the article suggests can be combined into one: latexmlpost --dest=mydoc.html --format=html5 <(latexml mydoc.tex) I did a comparison[1] of pdflatex and latexml using some old assignments, and it looks like compiling to HTML isn't fully there yet: the spacing was off in some places, and manual line breaks didn't work. But, I remain hopeful. If this gets polished, viewing LaTeX documents on phones would be much nicer. [1]: https://imgur.com/a/yyyXWL8 https://imgur.com/a/yyyXWL8
- thewakalix 3y agoWhat's the advantage of that subshell redirection over a simple pipe?
- pyjamafish 3y agoI don't know if there's an advantage, haha. It was just the first thing that came to mind. Looks like a pipe is also supported; you just need to pass `-` as the name of the file to `latexmlpost`. latexml mydoc.tex | latexmlpost --dest=mydoc.html --format=html5 -
- tkw01536 3y agoYou can actually also use the latexmlc omni-executable [1] (that is part of the latexml distribution), which can convert to html in one command: latexmlc --dest=mydoc.html --format=html5 mydoc.tex [1] https://math.nist.gov/~BMiller/LaTeXML/manual/commands/latexmlc.html https://math.nist.gov/~BMiller/LaTeXML/manual/commands/latex...
- PrimeMcFly 3y ago> Today, when I saw that I got an invitation to repost this article from the mods The mods personally invited you to repost a year later?
- pyjamafish 3y agoYes! I was surprised too. It's a cool hidden mechanic of HN, the second chance pool[1]. [1]: https://news.ycombinator.com/item?id=26998308 https://news.ycombinator.com/item?id=26998308
- PrimeMcFly 3y agoInteresting! Thanks for the link :)
- marknazzaro 3y agoThere's some good news... arXiv just adopted LaTeXML for in-house HTML conversions of its papers. They allow users to submit bug reports and have collected over 700 so far. LaTeXML is maintained by a team at NIST, and they are actively responding to the bug reports on github issues. The LaTeX team headed by Frank Mittelbach is also working to add more structural information to the output of LaTeX, which will make compiling to HTML much easier.
- deleted 3y ago[deleted]
- acidburnNSA 3y agoSphinx and reStructuredText are, IMHO, underrated power houses of document building. With extensions, you can hook them up to Zotero (or whatever)-managed bibtex files. You can render to beautiful HTML files, and you get latex PDFs and epubs for free. First class latex-math support, plenty of integrations with things like mermaid, graphviz, and the ability to build super-powerful custom directives to do basically anything. And way simpler/easier than pure LaTeX. Heck you can even integrate a full-on requirements management system in them using sphinx-needs https://sphinx-needs.readthedocs.io/en/latest/ https://sphinx-needs.readthedocs.io/en/latest/
- mr_mitm 3y agoOne of the selling points of PDF is that it is a single self-contained file. I found this lacking in Sphinx and wrote an extension for it to zip and bundle the assets into a single HTML file: https://github.com/AdrianVollmer/Zundler https://github.com/AdrianVollmer/Zundler Also works with HTML documents produced in other ways.
- o11c 3y agoHmm, the disadvantage of your approach is that it unconditionally requires Javascript, even if the original didn't. Also if you're going to embed a giant binary blob, please ship way to extract it.
- markdoubleyou 3y agoYou're getting close to making your own CHM format, which Sphinx could make for you. I always thought CHM files were a nice self-contained option for multi-page HTML docs. (Though they'd happily execute whatever JavaScript the author embedded in there... Maybe that's why they fell out favor?)
- mattl 3y agoI write markdown, use pandoc to make LaTeX and from that a PDF for a printed thing and just supply markdown for non-printed stuff.
- davidthewatson 3y agoI was surprised recently when I changed up my HTML and PDF toolstack not just how good pandoc was, but the entire ecosystem that had emerged around pandoc including pandocomatic and pandoc-resume.
- mattl 3y agopandoc is so good. And volunteer maintained.
- chaxor 3y agoTypst is pretty close to markdown for simple things, and scales nicely to hard things. So you don't really need to worry about the markdown-pandoc shuffle anymore.
- amai 3y agoUnfortunately typst doesn‘t support HTML output. It can only generate PDFs.
- xattt 3y agoCorrect me if I’m wrong, but there isn’t a way to do a compile that incorporates Biblatex.
- acidburnNSA 3y agoI've started auto-exporting Zotero-managed references to a bibtex file using better bibtex [1] and then using Sphinx and reStructuredText to process them uniformly into nicely formatted HTML, pdf, and epub using sphinxcontrib-bibtex [2]. [1] https://github.com/retorquere/zotero-better-bibtex https://github.com/retorquere/zotero-better-bibtex [2] https://sphinxcontrib-bibtex.readthedocs.io/en/latest/usage.html https://sphinxcontrib-bibtex.readthedocs.io/en/latest/usage....
- bradrn 3y agoI honestly don’t see the point of using LaTeX if you’re generating HTML. The great strength of LaTeX, in my view, is the precise control it provides over typography and formatting. As such, it works best with an output format which can faithfully render these documents — such as PDF. For an output format like HTML, which encourages reflowability over faithful rendering, I’d much prefer to use an ‘easier’ document format like Markdown or reStructuredText.
- golol 3y agoExactly, there is a triangle of tradeoffs here: prettyness vs easyness vs responsiveness. You can only have 2 of them. pretty and easy is Latex. The reason people call CSS a nightmare is because responsiveness fundamentally makes it much more difficult to make a document pretty. So HTML+CSS gives you pretty + responsive or easy + responsive. That's not the same functionality as a pdf for a fixed scientific document.
- seeknotfind 3y agoI spent a few weeks last year doing the opposite, HTML to LaTex in order to print and nicely typeset top HN articles, so I'd have a nicely printed booklet each morning. I think creating hard copies of web content for offline reading holds a lot of promise, but the internet is a beast.
- AzuraIsCool 3y agoInteresting, I have done exactly that too! I have it sent to my laser printer to print out just before I wake up.
- PrimeMcFly 3y ago> so I'd have a nicely printed booklet each morning. Why? If you're just printing to read on the train or whatever, wouldn't you just discard after reading?
- seeknotfind 3y agoYou would have hated the newspaper industry.
- generationP 3y agoThis is from 2013, so the bet that "nobody will want to read [PDFs] in 5 years" can be considered failed. If anything, PDF has become the lingua franca of the academic web, crowding out even DjVU at the thing that DjVU was made for and PDF was not. I have not been following the development of mathjax, pandoc, etc. carefully, so I'm wondering: Have the main issues been solved? By these I mean (1) support for most popular packages, (2) automatically breaking long outputs into small pages that don't overheat my laptop or crash my browser and yet reference each other properly, (3) printability (without lines broken in half, senseless overflows and the likes) or cross-compilability with a regular PDF compiler? I know the ar5iv project is getting closer and closer to (1) and (3), but is that available to regular users?
- bloaf 3y agoAnd it is a shame. The current AI explosion is the poorer for it, due to the greater difficulty of extracting the text from PDFs.
- adastra22 3y agomathjax has come tremendously far, but not on the problems you mention :(
- bowsamic 3y agoThe problem with DjVu is that its viewers suck, especially on macOS, which is very popular in modern academia
- roel_v 3y agoBut don't worry, 2024 is going to be the Year Of Math On The Web. (I've been trying to do 'math on the web' (ish)) since 2002, and it's always sucked in some way; and all that time, images/pdf have Just Worked(TM). The emphasis in the OP on how much you'll have to report/chip in/fix is telling...)
- matt3210 3y agoAt work all reports are html. If you want pdf, cmd-P
- whatever1 3y agoI dont always use latex but when I do I always hate it.
- sleepingreset 3y ago[dead]
- IAmLiterallyAB 3y agoTangently related, does anyone have experience with AsciiDoc? I've used reStructuredText before, but AsciiDoc is tempting, it looks cleaner.
- pbronez 3y agoAsciidoc has potential. Last time I dug into it the ecosystem was lacking, but there were glimmers of a reboot. I hope that pulls through because it’s a great format. Edit: yeah it’s managed through the Eclipse Foundation now. They’re slowly working towards a formal spec, haven’t hit 1.0 yet. Details here https://gitlab.eclipse.org/eclipse/asciidoc-lang/asciidoc-lang/-/releases https://gitlab.eclipse.org/eclipse/asciidoc-lang/asciidoc-la...
- pbronez 3y agoyeah it’s managed through the Eclipse Foundation now. They’re slowly working towards a formal spec, haven’t hit 1.0 yet. Details here https://gitlab.eclipse.org/eclipse/asciidoc-lang/asciidoc-lang/-/releases https://gitlab.eclipse.org/eclipse/asciidoc-lang/asciidoc-la...
- jiehong 3y agoUsing it for internal docs, but we don’t generate pdfs so I can’t comment on that part. I personally find asciidoc easier to write manually.
- throwaway290 3y agoI had experience with AsciiDoc and personally not a fan. IMO it has weird features like totally illegible compact table syntax (seriously, that stuff is worse than XML) and the spec looks abandoned. But I keep seeing it being used, I guess it appeals to people who want something more flexible than Markdown (and who like Ruby, or they would go with RST)
- lkuty 3y agoYou have also AsciiDoctor ( https://asciidoctor.org/ https://asciidoctor.org/ ) which is alive and well. I am using it for technical CS documentation internally, but only for single page documents. I did not try to deploy their whole multi-document setup called Antora ( https://antora.org/ https://antora.org/ ).
- abdullahkhalids 3y agoLaTeML [1] is presumably the latex to html tool that arXiv is testing right now. What are peoples thoughts about it compared to other such tools? [1] https://github.com/brucemiller/LaTeXML https://github.com/brucemiller/LaTeXML
- j2kun 3y agoThe recommendation to use Markdown+MathJAX fall short when you want to write longer documents with numbered section, subsection, and theorem/definition/figure etc tracking and referencing. I'm sure with Sphinx and reStructuredText you can get that large-scale document tracking stuff, but with LaTeX it just works for the most part and you don't need to juggle a bunch of different side-projects and extensions. Plus you get things like automatic index generation (for a physical book).
- bigpeopleareold 3y agoI searched for a comment to supports the fact that LaTeX shines in certain areas. My memory of LaTeX has weakened over the years, since I am not writing long texts with lots of figures and such, but I know it's more than this statement let's on in the article: "Something that is more modern than learning a hundred bits of print typesetting that your student will never, ever need?" What exactly is, in the end, is 'modern'? Is it because there is less syntax in Markdown to remember and the Modern is syntax-adverse? :D Aren't there editors for these in the first place to avoid the daily grind of remembering syntax?
- BlueTemplar 3y agoModern as in "more recent" (and not as in "the modern era" that ended decades ago). More recent doesn't mean better though : the likes of Overleaf, Google Docs, Github are also "more modern" than some of their alternatives, yet ought to be avoided like the plague.
- phiresky 3y agoMarkdown actually works great for larger documents when you use it with pandoc [1]. That way you get HTML output and PDF output via Latex, without the HTML being a second class citizen. I wrote my thesis (50 pages) and multiple published papers this way. Maybe it seems janky but honestly my experience with Latex and it's 10 incompatible compilers and thousands of semi-incompatible packages has been much worse. I also don't understand why (academic) publishing is so PDF focused. It's a horrible format to read on screens (think multi-column PDFs, and scrolling / jumping up and down to find references), and who actually prints stuff anymore? The thing I love most about Pandoc is that my notes can just slowly turn into a fully fledged document. Like bullet points - The syntax in Latex is far too verbose to make taking notes with it comfortable. It's also much easier to extend, I wrote a simple tool that automatically converts URLs into full and correctly formatted citations, so I don't even need a citation manager to get the same results: The GAN was first introduced in [@gan](https://papers.nips.cc/paper/5423-generative-adversarial-nets). Turns into https://github.com/phiresky/pandoc-url2cite/blob/master/example/minimal.pdf https://github.com/phiresky/pandoc-url2cite/blob/master/exam... Another great project with similar structure is Manubot [3], though the PDFs there are not generated by LaTeX. [1]: https://pandoc.org/ https://pandoc.org/ [2]: https://github.com/phiresky/pandoc-url2cite https://github.com/phiresky/pandoc-url2cite [3]: https://manubot.org/ https://manubot.org/
- dwheeler 3y agoOne solution is to embed alternatives within PDF itself. LibreOffice can embed inside a PDF the original editabble source in ODF format. You could also embed ePub. That would mean you would have a single file that could be processed in many useful ways.
- froh 3y agoI just moved "up" from gfm markdown to asxiidoc and oh do I miss LaTeX. html rendering of LaTeX is a godsend. and imnsho asciidoc a work around to not fully having that.
- bmacho 3y agoI feel ambivalent to LaTeX. I don't like the language, the ecosystem is too big, complicated and breaks, but the end result is hard to do any other way. This applies both the equations part, and the text reflow part (I think them as separate things, but they usually go together). It should be possible to write text in HTML or markdown, and write the equations in latex or asciimath, and turn it into a beautiful/article style pdf, but sadly it is not. Although CSS (colored and rounded boxes and such) + MathJax-SVG also can look nice.
- loxdalen 3y agoI believe I have used pandoc to convert markdown to PDF. Maybe this is something you could try?
- criddell 3y agoThat’s probably what they were referring too when they described it as big, complicated, and fragile. https://pandoc.org/chunkedhtml-demo/2.4-creating-a-pdf.html https://pandoc.org/chunkedhtml-demo/2.4-creating-a-pdf.html
- Muehe 3y agoWell you need to install the appropriate texlive dependencies which can be somewhat complicated, but once that's done it's just writing inline Latex $$\like{this}$$ into your Markdown files and then doing pandoc -f markdown -t pdf -o output.pdf input.md Haven't used this in a while and just tried it again, was just a matter of searching a few error messages, gleaning the missing texlive package names from the results, and installing them. Works like a charm now. I also had this working for Markdown to HTML conversion back in the day when I needed it, but that requires the website using a JS library like Mathjax.
- bowsamic 3y agoUsing REVTeX I honestly have no issues with LaTeX, especially if I just stick to Overleaf
- 3y ago
- bowsamic 3y agoIf I'm using LaTeX, I'm writing scientific articles. I expect scientific articles to be read by people on computers with normal screen sizes or printed off. Therefore there's no reason to bother with anything other than PDF. PDF works great.
- analog31 3y agoThat's certainly one use case. I might be the exception, trying to look up something on my phone, or following a link in a blog or HN post. Stuff in PDF's is hard to read, especially two column journal articles. I'm often not at my desk, since I might be in a meeting or in the lab.
- bowsamic 3y agoDon’t you have a computer in your lab? Also I actually think the 2 column format works well on phone bc you can zoom in to fit the column to the screen
- analog31 3y agoA computer at every lab bench, usually tied to specific experiments. Sometimes I sit down at an adjacent server and read something, sometimes pull out my phone. Anything can be accommodated. One thought is to provide the source code, then people can adapt it to their display preferences. Like how HTML was originally envisioned.
- Retr0id 3y ago> don't just produce PDFs that nobody can read on small screens I was thinking about this recently. If you get pedantic enough* about it, the typesetting quality you can get from a LaTeX+PDF is strictly better than what can be achieved using (sane) HTML. I wanted to blog in LaTeX, and to solve the screen-size issue I thought I'd pre-bake to a wide range of page geometries, and then serve up an appropriate one to the client using pdf.js. Fortunately for everyone, I decided against it in the end and continued blogging in markdown+html (with mathml support) *well beyond what most readers would possibly care about
- mbid 3y agoFor me, the main problem with most tools that render to HTML was that they don't support all math typesetting libraries that latex supports. I used to work with category theory, where it's common to use the tikz-cd library to typeset commutative diagrams. tikz-cd is based on tikz, which is usually not supported for HTML output. But apart from math typesetting, my latex documents were usually very simple: They just used sections, paragraphs, some theorem environments and references to those, perhaps similar to what the stack project uses [3]. Simple latex such as this corresponds relatively directly to HTML (except for the math formulas of course). But many latex to html tools try to implement a full tex engine, which I believe means that they lower the high-level constructs to something more low level (or that's at least my understanding). This results in very complicated HTML documents from even simple latex input documents. So what would've been needed for me was a tool that can (1) render all math that pdflatex can render, but that apart from math only needs to (2) support a very limited set of other latex features. In a hacky way, (1) can be accomplished by simply using pdflatex to render each formula of a latex document in isolation to a separate pdf, then converting this pdf to svg, and then incuding this svg in the output HTML in the appropriate position. And (2) is simply a matter of parsing this limited subset of latex. I've prototyped a tool like that here [1]. An example output can be found here [2]. Of course, SVGs are not exactly great for accessibility. But my understanding is that many blind mathematicians are very good at reading latex source code, so perhaps an SVG with alt text set to the latex source for that image is already pretty good. [1] https://github.com/mbid/latex-to-html https://github.com/mbid/latex-to-html [2] https://www.mbid.me/lcc-model/ https://www.mbid.me/lcc-model/ [3] https://stacks.math.columbia.edu/ https://stacks.math.columbia.edu/
- ykonstant 3y agoTangentially, for me the stacks project is the gold standard of mathematical typography on the web. Look at this beauty: https://stacks.math.columbia.edu/tag/074J https://stacks.math.columbia.edu/tag/074J Also check the diagrams: https://stacks.math.columbia.edu/tag/001U https://stacks.math.columbia.edu/tag/001U If anyone can explain to me, a complete noob regarding html, how they achieve this result with html, css and whichever latex engine they use, I would be grateful. I want to make a personal webpage in this style.
- opentokix 3y agoLyX is the way to LaTeX
- notpushkin 3y agoInstead of MathJax, maybe also consider KaTeX: https://katex.org/ https://katex.org/ It's faster than MathJax and also can be pre-rendered on the server (or in your SSG!).
- amai 3y agoThat is old news. Mathjax 3 is a lot faster nowadays than it used to be and it supports more LaTeX keywords than KaTex. Especially the important \label and \ref are still not supported by KaTex.
- bovermyer 3y agoWhen I use LaTeX, it's because I want a way to store book manuscripts and their layout as code in version control. I never use any of the math layout. I get the impression that my use case is rather in the minority. I would use CSS+HTML for layout, but what do I do about automatically generating tables of contents and indexes? I guess I could write my own tool for that. Hmm.
- gglitch 3y agoLooks like Pandoc can generate tables of contents for HTML, though I don't see anything about indexes. Roff and friends, and Texinfo, can do both, though with their own tradeoffs. https://pandoc.org/MANUAL.html https://pandoc.org/MANUAL.html
- riperoni 3y agoThis article really doesn't get what LaTeX does. Of course it is overkill to have 5 lines of text rendered with LaTeX into a PDF. But the point of LaTeX is exactly to set the typesetting of an output document in stone. PDF is meant to do that and HTML cannot do that. A PDF conserves everything and that is precisely the point to have a set layout for printing or displaying on different devices. Yes, there should be easy ways to display math on the web. No, this doesn't mean that LaTeX is obsolete. Besides, what about references, both external and internal? Probably needs more "modern" tooling.
- geon 3y ago> to have a set layout for printing or displaying on different devices. That’s a horrible way to go about it. Already in the 90s it was clear that varying display sizes was a problem, and it has gotten orders of magnitudes worse since then. The concept of a single set layout that is suitable for everyone is utterly absurd.
- master-lincoln 3y agoThen do not use a tool that was designed for typesetting printed pages which is what LaTex is for. The author of the article seems to think about LaTex only for math rendering. But that is just a fraction of what it is used for. Complex diagrams with tikz or typesetting entire books, so that adding content in an arbitrary place still makes the rest of the book look good without breaking layout are some of the examples of why I would use LaTex instead of html
- geon 3y agoThat’s exactly what the author says at the beginning: > are you sure you have to use LaTeX?
- artagnon 3y agoLatexML has come a long way. Even arXiv uses LatexML internally to offer HTML5 versions as of late 2023. It does have limitations in not supporting all packages, or producing a high-quality translation in all cases. If you don't need to convert entire LaTeX documents, MathJaX and KaTeX are really good at rendering a subset of LaTeX as MathML/SVG. I run MathJaX + an xypic extension for commutative diagrams with server-side rendering on my website, and it works great in practice.
- kkfx 3y agoI like LaTeX for the quality of it's pdf output, I use in for docs that need to be "printed" (non necessarily on paper, but still 'fixed typographical form for potentially long term archiving) not for anything else and yes I DO HATE pdfs because of their design, but PostScript is not much common these days and while a bit better for certain aspect is not much better in general, dvi is even worse. For my notes, for anything that need to be "live" I use org-mode because: - it's a far more natural markup than anything else - it's rendered INLINE, no need to jump between a source form and a rendered one, a thing MD lovers fails to understand - it's an outlining tool, another thing most other tools fails miserably to understand - it easily incorporate live things in other languages (org-babel) a thing no modern REPL-alike DocUI like Jupyter can't do Long story short I prefer the best tool depending on the job. HTML might be the least common denominator tool, making it the worst in essentially all cases. XML for machine usage, SGML in general, are good for machine usage, but they are very impractical in current usage, just see the actual crappy state of things for e-invoicing with XML/XADES docs + XSL to render them in the end as pdf for the human. They are a good too in some case, but again not the best for any specific case.
- amai 3y agoA lot has happened since 2013. Have a look at https://quarto.org/ https://quarto.org/, if you plan to publish in HTML. Quarto has already support for Typst: https://quarto.org/docs/output-formats/typst.html https://quarto.org/docs/output-formats/typst.html
- DominikPeters 3y agoAnother LaTeX-to-HTML tool is lwarp (https://github.com/bdtc/lwarp https://github.com/bdtc/lwarp) which starts from the idea that there only exists one program that can parse LaTeX: the LaTeX compiler itself. Implementing a new parser is almost futile. So instead, the lwarp package redefines all the macros to output HTML. Something like \renewcommand[1]{\textbf}{<b>#1</b>} This way, compiling LaTeX gives you a PDF whose text is HTML code, so now you can extract the plain text from it and you have an HTML file. The advantage is that it can easily deal with custom macros etc., because these are natively resolved by the LaTeX compiler. I use lwarp to make https://tikz.dev/ https://tikz.dev/, an HTML version of the TikZ manual, which is probably one of the most complicated LaTeX documents in existence.
- magnio 3y agoYou are the author of tikz.dev? I have always thought it was made by the tikz author. Mad props to you, the site is very functional and helpful to me. With it, using tikz feels a bit less like a chore.
- AlphaCerium 3y agoSeconding this, I had no idea the site wasn't the official manual until now!
- soegaard 3y agoNote that one can convert PDF to HTML using tools like: https://pdf2htmlex.github.io/pdf2htmlEX/ https://pdf2htmlex.github.io/pdf2htmlEX/ Example of a paper with equations: https://pdf2htmlex.github.io/pdf2htmlEX/demo/demo.html https://pdf2htmlex.github.io/pdf2htmlEX/demo/demo.html
- setgree 3y agoI learned LaTeX in grad school in 2013, starting with LyX. Yesterday, I compiled an Rmarkdown document into an APA6-conformant PDF with just a bit of YAML, with a tex file as an intermediate output. We're almost there for skipping LaTeX entirely, but in my experience, Google Docs and Overleaf still offer vastly superior collaborating tools. Now if we could just edit {.md; .rmd; .ipynb} files directly on Overleaf, with comments and track changes, we'd be in business...
- asimpletune 3y agoI love the author’s “if you want to leave a comment email me”. I saw this somewhere else and it motivated me to make an automated system that works like that: https://r3ply.com https://r3ply.com
- clbrmbr 3y agoWould be nice if this article included some equations!
- bluenose69 3y agoAlthough I use markdown (and similar) for memos, I turn to latex for longer and more complex material. A lot of this is just because latex has been a standard for publishers in my field since I started (approximately a thousand years ago). When writing for journals, latex saves a lot of work. Publishers provide latex templates that ensure that articles have a prescribed format and scope of content. Being able to see a good facsimile of the final published form is quite handy for authors. Oh, this paragraph is going on for over a column -- I'll break it up. That sort of thing. This still applies when writing for longer things, such as textbooks and course notes, but another factor (for me, the larger one) is that latex (more properly, the tex upon which latex sits) is a programming language. Macros can be written to do lots of things that would be a pain if done manually, and once a macro is written, altering an entire text is easy. I did this in a book I wrote a while back, writing macros to colourize text that would be indexed, add margin notes for things I wanted to return to, categorize paragraphs by function, and so on. I could turn all those macros on and off by uncommenting a line. This is really quite helpful in writing something that takes months to years to complete. Frankly, I use this macro approach even in memos written in markdown. Inside almost all of my markdown documents, there are latex commands. As for reading things on a small screen, which I guess is really the topic here, I must admit that this is something I rarely do within my own field. Sure, I do it if reading one of those 10-km overview articles in Science or Nature. But when it comes to my own field, things are technical and demand long periods of study. I don't try to read this stuff on the bus or in a coffee queue. I need time (hours or days) and I need to be able to take notes. Another reason I prefer PDF is that it is fixed. My brain puts information into a sort of spatial framework. Somehow, if I look at a paper I first read 40 years ago, I still know what information is on which page, which of the diagrams summarizes the whole thing, and which of the citations is key. This may be a flaw in my brain functioning, but I just don't find these sorts of memories forming when I read content that has a plastic format, with paragraph breaks changing if I adjust my view. But maybe this is just my age talking, I suppose.