Text Formatting ⇒ memoir | Number selected Paragraphs
memoir | Number selected Paragraphs
I'm new in this forum, and quite new at using latex.
I'm currently writing my PhD thesis, with the help of lyx 2.0.3, using the class "Memoir".
I would like to be able to number some of my paragraphs (basically, one out of three or four) throughout the whole dissertation.
I spent a lot of time trying to find the answer on various websites. I didn't find anything.
I don't know whether it is simple to do. If, by any chance, one of you happen to know how to proceed, I would be extremely grateful.
Thanks a lot!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: memoir | Number selected Paragraphs
Thanks a lot!
[
- Attachments
-
- Exemple numérotation paragraphe.jpg (194.21 KiB) Viewed 3276 times
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
memoir | Number selected Paragraphs
welcome to the board!
You could use the standard
\paragraph
command, because this is directly supported by LyX. Just modify the command and its counter as desired, such as
- being numbered (raise
\secnumdepth
) - number throughout instead of by within subsubsection (using
chngcntr)
- add a dot by redefining
\theparagraph
Code: Select all
\documentclass{memoir}
\usepackage[english]{babel}
\usepackage{blindtext}
\setcounter{secnumdepth}{4}
\usepackage{chngcntr}
\counterwithout{paragraph}{subsubsection}
\renewcommand*{\theparagraph}{\arabic{paragraph}.}
\begin{document}
\setcounter{paragraph}{452}% simulate that some came before
\paragraph{} \blindtext
\paragraph{} Another paragraph with text. \blindtext
\end{document}