Responsive Design and Automatic Typesetting with LuaLaTeX

Michal Hoftich

Zpravodaj Československého sdružení uživatelů TeXu (2024)

  • Issue: 1-4, page 28-38
  • ISSN: 1211-6661

Abstract

top
This article focuses on the use of responsive design techniques to display web pages on devices with different display sizes, such as mobile phones, tablets, large monitors and printers. These methods allow optimizing the readability of a document on all devices by using different font sizes, individual page elements, and margins. We present how similar functionality can be achieved using LaTeX. Specifically, it focuses on the use of LuaLaTeX for automated typesetting, using packages Responsive for setting font size and line spacing according to page size, Luavlna to prevent the occurrence of single-letter prepositions at line breaks, Lua-widow-control to reduce orphan lines at page breaks and page starts, and Linebreaker to prevent line overflow. With these methods, a single source document can be used for different outputs, such as print versions, e-book readers, and web pages, and achieve optimal document display on all devices.

How to cite

top

Hoftich, Michal. "Responzivní design a automatická sazba s LuaLaTeXem." Zpravodaj Československého sdružení uživatelů TeXu (2024): 28-38. <http://eudml.org/doc/299634>.

@article{Hoftich2024,
abstract = {Tento článek představuje využití metod responzivního designu a pokročilých vlastností LuaLaTeXu pro automatickou sazbu dokumentů určených pro různé cílové výstupy, jak tištěné, tak elektronické, například mobilní telefony, tablety nebo čtečky e-knih. Konkrétně se zaměřuje na využití LuaLaTeXu pro automatizovanou sazbu s pomocí balíčků Responsive pro nastavení velikosti písma a řádkování podle velikosti stránky, Luavlna pro zamezení výskytu jednopísmenných předložek na koncích řádků, Lua-widow-control pro omezení osamocených řádků na koncích a začátcích stránek a Linebreaker, který brání přetečení řádků.},
author = {Hoftich, Michal},
journal = {Zpravodaj Československého sdružení uživatelů TeXu},
language = {cze},
number = {1-4},
pages = {28-38},
publisher = {Československé sdružení uživatelů TeXu},
title = {Responzivní design a automatická sazba s LuaLaTeXem},
url = {http://eudml.org/doc/299634},
year = {2024},
}

TY - JOUR
AU - Hoftich, Michal
TI - Responzivní design a automatická sazba s LuaLaTeXem
JO - Zpravodaj Československého sdružení uživatelů TeXu
PY - 2024
PB - Československé sdružení uživatelů TeXu
IS - 1-4
SP - 28
EP - 38
AB - Tento článek představuje využití metod responzivního designu a pokročilých vlastností LuaLaTeXu pro automatickou sazbu dokumentů určených pro různé cílové výstupy, jak tištěné, tak elektronické, například mobilní telefony, tablety nebo čtečky e-knih. Konkrétně se zaměřuje na využití LuaLaTeXu pro automatizovanou sazbu s pomocí balíčků Responsive pro nastavení velikosti písma a řádkování podle velikosti stránky, Luavlna pro zamezení výskytu jednopísmenných předložek na koncích řádků, Lua-widow-control pro omezení osamocených řádků na koncích a začátcích stránek a Linebreaker, který brání přetečení řádků.
LA - cze
UR - http://eudml.org/doc/299634
ER -

References

top
  1. Hoftich, Michal, The Responsive package, [online]. 2023. Ver. 0.1 [cit. 2023-03-30]. Dostupné z: https://www.ctan.org/pkg/responsive. (2023) 
  2. Hoftich, Michal, The Luavlna package: Prevent line breaks after single letter words, units, or academic titles, [online]. 2023. 0.1k [cit. 2023-03-30]. Dostupné z: https://ctan.org/pkg/luavlna. (2023) 
  3. Chernoff, Max, The Lua-widow-control package: Automatically remove widows and orphans from any document, [online]. 2022. Ver. 3.0.0 [cit. 2023-03-30]. Dostupné z: https://ctan.org/pkg/lua-widow-control. (2022) 
  4. Hoftich, Michal, The Linebreaker package: Prevent overflow boxes with LuaLaTeX, [online]. 2023. Ver. 0.1c [cit. 2023-03-30]. Dostupné z: https://ctan.org/pkg/linebreaker. (2023) 
  5. Cavazza, Edoardo, Modern CSS Techniques To Improve Legibility, [online]. 2020 [cit. 2023-03-30]. Dostupné z: https://www.smashingmagazine.com/2020/07/css-techniques-legibility/. (2020) 
  6. Mortensen, Spencer, The Typographic Scale, [online]. 2011. [cit. 2023-03-30]. Dostupné z: https://spencermortensen.com/articles/typographic-scale/. (2011) 
  7. Chernoff, Max, 10.5300/2022-1-4/49, Dostupné z DOI: 10.5300/2022-1-4/49. (2022) DOI10.5300/2022-1-4/49

NotesEmbed ?

top

You must be logged in to post comments.

To embed these notes on your page include the following JavaScript code on your page where you want the notes to appear.

Only the controls for the widget will be shown in your chosen language. Notes will be shown in their authored language.

Tells the widget how many notes to show per page. You can cycle through additional notes using the next and previous controls.

    
                

Note: Best practice suggests putting the JavaScript code just before the closing </body> tag.