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 ArticleAnswer 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 ArticleHow 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
More Pages to Explore .....