How to change \ para formatting in LaTeX

This follows from How can I specify the number of paragraphs in LaTeX? which I already spoke about today:

Starting with a Brent.Longborough proposal to indicate the number of paragraphs in a document:

\setcounter{secnumdepth}{5}
...
\paragraph{If we want to}
\paragraph{do something}

This causes LaTeX to create something like:

0.0.0.1 If we want to 
0.0.0.2 do something

How to change the numbering scheme \ paragraph {} to create something like:

1. If we want to
2. do something

or alternatively

A. If we want to
B. do something

Thanks.

+3
source share
1 answer

To change the link number, referring to paragraphs, you want to change \theparagraph. Here is an example:

\documentclass[12pt]{article}
\setcounter{secnumdepth}{5}
\renewcommand\theparagraph{\roman{paragraph}}
\usepackage{lipsum}
\begin{document}
\paragraph{foo} \lipsum[1]
\paragraph{bar} \lipsum[2]
\end{document}

\roman \roman, \arabic, \alph, \alph. , , alphalph \alphalph 26 .

, \paragraph " ". , , , :

\newcommand\PARA{\paragraph{}}

, , ""; .. reset "1" . -

\usepackage{remreset}
\makeatletter
\@removefromreset{paragraph}{section}
\makeatother
+10

Source: https://habr.com/ru/post/1703151/


All Articles