[Tex/LaTex] Responsive design with LaTeX

paper-sizepdf

Is there any concept similar to responsive design, as in responsive web design, in TeX/LaTeX? That is, is it possible to include hints or directives that optimize layouts for different screens? PDFs are not suited to display well on small screens such as mobile phones and eBook readers. But with LaTeX is it as simple and changing the size of the document and exporting PDFs at different sizes for different devices? What if you want the final document to be resizable? Can you indicate at which point margins, font-sizes, and figures should change?

Best Answer

There is a new output format under development called HINT that would support reflowing of type-set TeX output, see these articles for more information:

https://www.tug.org/TUGboat/tb39-3/tb123ruckert-hint.pdf

https://www.tug.org/TUGboat/tb40-2/tb125ruckert-hint.pdf

Of course, using a new file format comes with all sorts of problems, like viewer support on all sorts of devices, so this is probably not a usable solution for now.