Quantcast
Channel: How to create a paragraph that show the number of line it contains? - TeX - LaTeX Stack Exchange
Browsing all 3 articles
Browse latest View live

Answer by wipet for How to create a paragraph that show the number of line it...

You can do measurement of lines in the \setbox0=\vbox context:\newcount\linenum\def\linecount #1\par{% \linenum=0 \setbox0=\vbox{#1\par\global\linenum=\prevgraf}%...

View Article



Image may be NSFW.
Clik here to view.

Answer by egreg for How to create a paragraph that show the number of line it...

You can use \label and \ref, or an equivalent concept. Two passes are necessary, because \prevgraf is not available until the final \par closing the paragraph has been...

View Article

How to create a paragraph that show the number of line it contains?

Trying being brief...How can I create a paragraph that shows meta information, e.g., mentioning the number of lines or words it contains, using TeX primitives only? It's very important that such...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images