Hello,
I try to achieve what the lineno LaTeX package does.
(1) Is it possible to number lines (which are not pre-wrapped, of course)?
(2) If yes, is it possible to reference a line? For instance: The author uses the word Etiam (see line 13), which is quite surprising here, etc.
IMO it is not possible to achieve this with Prince & HTML/CSS. There is a "::first-line" pseudo element in CSS 2.1 (not supported yet by Prince), but we would need a "::line(nth)" selector and a line counter. But maybe you know some trick to number lines? Any suggestion is welcome.
Thomas
I try to achieve what the lineno LaTeX package does.
(1) Is it possible to number lines (which are not pre-wrapped, of course)?
1 Lorem ipsum dolor sit amet, <p>Lorem ipsum...</p>
consectetuer adipiscing elit. Etiam
eros. Donec gravida pede a mauris.
Etiam sem eros, tempus a, accumsan
5 pharetra, lacinia aliquam, nibh.
Conubia nostra, per inceptos
hymenaeos.
A SECTION <h2>A SECTION</h2>
Phasellus bibendum nonummy <p>Phasellus bibendum...</p>
10 lorem. Fusce nibh. Mauris lacinia
et pellentesque elementum, pede
augue ut libero. Aenean consequat
arcu. Etiam non nulla eget diam
tempus fermentum. Cras vel velit.
15 blandit pulvinar lectus
(2) If yes, is it possible to reference a line? For instance: The author uses the word Etiam (see line 13), which is quite surprising here, etc.
IMO it is not possible to achieve this with Prince & HTML/CSS. There is a "::first-line" pseudo element in CSS 2.1 (not supported yet by Prince), but we would need a "::line(nth)" selector and a line counter. But maybe you know some trick to number lines? Any suggestion is welcome.
Thomas