New answers tagged


If I understand you correctly you are searching for the primitive \inputlineno: \documentclass{article} \newcommand*\printLineNumberOfEmacsIntoPDF{Line \the\inputlineno} \begin{document} \printLineNumberOfEmacsIntoPDF \end{document}


The fancyvrb package lets you print line numbers along with verbatim material, and it lets you customize how the line numbers are formatted. \documentclass{article} \usepackage{fancyvrb} % for 'Verbatim' environment \begin{document} \renewcommand{\theFancyVerbLine}{{\scriptsize Line \arabic{FancyVerbLine}}} \begin{Verbatim}[numbers=left] Some text ... Some ...


You'll have to change the formatting of the numbers to be circled: \documentclass{article} \usepackage{algorithm,algorithmic} \usepackage{circledsteps}% \newcommand{\circlenum}[3]{\Circled{\small #1{#2}}} \algsetup{linenosize=\circlenum} \begin{document} \begin{algorithm} \caption{An algorithm} \begin{...


Since you don't want line numbers, the simplest method is to disable them altogether: \documentclass[journal,article,submit,moreauthors,pdftex]{Definitions/mdpi} \renewcommand{\linenumbers}{}


On 14th December 2020, MDPI has updated its LaTeX template. This command \preto{\abstractkeywords}{\nolinenumbers} is not working. In the new template, the page number starts after the template line \end{paracol} \nointerlineskip

Top 50 recent answers are included