LaTex2Web logo

Documents Live, a web authoring and publishing system

If you see this, something is wrong

Table of contents

First published on Saturday, Jun 21, 2025 and last modified on Sunday, Feb 22, 2026

The Documents Live div

François Chaplais

1 Introduction

\begin{latexDiv}
\class{border border-2 border-black rounded}
\css{padding: 1rem; margin-top: 1rem; margin-bottom: 1rem}
\textcolor{red}{Hello everybody!}
\end{latexDiv}

2 Syntax

\begin{latexDiv}
\class{}
\css{}
\begin{style}

\end{style}
... content ...
\end{latexDiv}

3 CSS box model

\begin{latexDiv}
\class{border border-2 border-black rounded}
\css{padding: 1rem; margin-top: 1rem; margin-bottom: 1rem}
\textcolor{red}{Hello everybody!}
\end{latexDiv}

4 Analysis of the example code

5 Documents Live styling commands

6 Example

\begin{latexDiv}
\begin{style}
\width{70}
\border{blue 3}
\background{\includegraphics{bright-background-with-abstract-pattern-2025-01-28-02-47-36-utc.jpg}}
\overlay{black-0.7}
\textcolor{white}
\linkcolor{lightblue}
\padding{10}
\end{style}

We put some lorem text here.

Lorem ipsum exercitation consectetur incididunt, sint in nisi magna ullamco occaecat ea. Veniam consequat dolore, magna mollit est dolore in, in laborum amet. Nostrud sed consequat nulla, non deserunt veniam enim tempor nulla ut.

And an equation:

\begin{equation}
y=f(x)
\end{equation}

with a \ref{equation}[link to it].

\end{latexDiv}

7 Hierarchy

8 Styling layout components and chunks

9 Recycling styles

\newcommand{\borderStyle}{\begin{style}\border{black rounded 2}\end{style}}
\newcommand{\simpleBorder}{\border{black rounded 2}}

10 Summary