Typography on LaTeX2Web

Typography on LaTeX2Web

Text Size

Text-size can be specify inside of a style sheet (CSS file). To obtain good results, the text size should be specified in rem. Rem stands for "Relative EM", which means that this the default size of an "m" for the target device.

On the LaTeX2Web site, the paragraph font size is set to 1rem, on mobile. This does not render well on tablet, however; this is why, on devices which are more than 700 px wide, the paragraph size is set to 1.2rem. On computers, specifically devices larger than 1100px, the paragraph size is set to 1.3rem.

This is the result of a trial and error process executed by testing the web pages on actual devices. This targets the Expo Serif font, which is used to render documents. The sans serif font (Poppins) that I use on the other pages (for instance the landing page) has a small ascender, which makes is appear to be larger than it is. It is not very elegant, but I use this outside of document pages because it is very clear.

Also, the larger the device, the more distant the reader is from the screen. This motivates the use of larger font size on larger devices.

Margins

On small devices, this makes no sense to use margins. Suppressing them gives more flexibility on the size of the font, regarding the text readability and the number of words per line.

By contrast, this latter consideration justifies blocking the line width on computer devices, to prevent from having too many words per line. To achieve that, the width of the text content is be blocked to a maximum value beyond a certain device width.


要查看或添加评论,请登录

Fran?ois Chaplais, PhD的更多文章

  • Read Different

    Read Different

    Event after developing LaTeX2Web for several years, I realize I still have habits when reading a document that…

  • Beamer support comes to LaTeX2Web

    Beamer support comes to LaTeX2Web

    Beamer implementation LaTeX2Web supports Beamer documents, with the following caveats. Beamer is designed for a public…

  • Create publications

    Create publications

    It cannot be easier to assemble documents in LaTeX2Web to create a web publication. To create your publication, go to…

  • Control access to your documents

    Control access to your documents

    By default, documents are visible to everybody. This, however, can be tuned through the document options.

  • The Potrzebie system of weights and measures

    The Potrzebie system of weights and measures

    The story behind it In the late seventies, I traded with a school buddy a handful of paperbacks. They were a selection…

    1 条评论
  • LaTeX2Web supports the algorithmicx package

    LaTeX2Web supports the algorithmicx package

    LaTeX2Web supports the algorithmicx package, featuring indentation, code block coloring, line numbers and most common…

  • PDF files, algorithms and SEO images

    PDF files, algorithms and SEO images

    LaTeX2Web now accepts PDF and EPS image files It is well known the PDF and Postscript files are not standard Internet…

  • New search tools in documents and publications

    New search tools in documents and publications

    You can now search for text in LaTeX2Web documents with a twist. The search tools do not explore the text, they search…

  • Images for SEO and social media

    Images for SEO and social media

    Documents in LaTeX2Web are optimized for search engines and social media. The author of a document can provide the web…

  • Beamer import and PhD theses

    Beamer import and PhD theses

    I think that these are undervalued materials. As far as I know, they are not meant to be published in a journal.