{Solved Thanks}

Would there be any interest? header tags are used to make table of contents, anchor tags create Index entries, all the formatting tags (tables, un-numbered and numbered lists etc) do basic print formatting. All the bold/underline/italic also render to paper. Sort of like a poor man’s TeX.

Has anyone done this?

15 points

This sounds like the CSS @media print with extra steps

permalink
report
reply
7 points
*

I used to write my papers in HTML and a custom print CSS file I made so it fits the school’s formatting requirements. It worked surprisingly well. Just write HTML, and then just print it, as basic as it gets. That was easier than bending LaTeX to the school’s template which was in MS Office format.

permalink
report
parent
reply
2 points

Always frustrates me how underutilized @media print is. Always liked crafting some good CSS for it on sites, especially ones that I worked on that were document heavy.

permalink
report
parent
reply
6 points

There’s a lot of libraries that convert html to markdown (and in the process get rid of all the javascript spyware).

The android app markdownr can do this on the fly, and I had an idea to create a markdown web browser using that as a base, but no time to work on it.

permalink
report
reply
5 points

Yes this is a thing and it’s been around for quite some time. If you’re trying to approximate TeX, you may also be interested in MathML.

I need to go lay down; I’m having flashbacks to the good old days of “XML everywhere for everything all the time”.

permalink
report
reply
4 points

I mean you can do HTML -> TeX -> PDF with Pandoc, or to any other format pretty much. I would say writing markdown and passing it to TeX or directly to PDF is the most practical.

permalink
report
reply
2 points

Thanks all - It seems there are many ways to do this, or perhaps just write the document in markdown and print it that way. I mean I guess I could always install and lear TeX (again) too.

permalink
report
reply

Technology

!technology@lemmy.ml

Create post

This is the official technology community of Lemmy.ml for all news related to creation and use of technology, and to facilitate civil, meaningful discussion around it.


Ask in DM before posting product reviews or ads. All such posts otherwise are subject to removal.


Rules:

1: All Lemmy rules apply

2: Do not post low effort posts

3: NEVER post naziped*gore stuff

4: Always post article URLs or their archived version URLs as sources, NOT screenshots. Help the blind users.

5: personal rants of Big Tech CEOs like Elon Musk are unwelcome (does not include posts about their companies affecting wide range of people)

6: no advertisement posts unless verified as legitimate and non-exploitative/non-consumerist

7: crypto related posts, unless essential, are disallowed

Community stats

  • 2.6K

    Monthly active users

  • 2.7K

    Posts

  • 41K

    Comments

Community moderators