Skip Navigation

HTML to Print anyone?

{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?

9 comments
  • This sounds like the CSS @media print with extra steps

    • 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.

    • 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.

  • 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.

  • 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.

9 comments