Consider the following source :
\documentclass[a4paper,12pt]{article}
\begin{document}
\newcounter{categorycounter}
\setcounter{categorycounter}{0}
\newenvironment{categoryname}[1][]{\stepcounter{categorycounter}\S\thecategorycounter.{\bf{ #1}}}{}
\begin{categoryname}{First category}\end{categoryname}
First category consists of blah blah blah.\newline
\begin{categoryname}{Second category} \end{categoryname}
Second category consists of bluh bluh bluh.\newline
\end{document}
I get the following ouptut :
Now, I want the category name to be in bold face, as indicated by my \bf command above. Why is it ignored ? What can I do to fix this ?
Here is the output I want :


\textbf{#1}---\bfis deprecated (since 30 years!) and does not have any argument, it's just a switch. – Rmano Jan 11 '22 at 10:42\newlinein text... https://tex.stackexchange.com/questions/153506/insert-a-new-line-without-newline-command – Rmano Jan 11 '22 at 10:43