I've got a question following from a previous post answers on numbering paragraphs (Automatically assign a number to every paragraph).
I used the code that Alan provided, however it seems that I can't get any of the subsubsections numbered. Another thing is that the table of contents contains not only numbered sections but also a string of all paragraphs in each section (or it displays an error and does not compile.)
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{latexsym}
\usepackage{fullpage}
\usepackage{amsmath}
\usepackage{float}
\usepackage{indentfirst}
\usepackage[font=footnotesize,format=plain,labelfont=bf,up,textfont=it,up]{caption}
\setlength{\parindent}{0cm}
\usepackage{subfig}
\usepackage{booktabs}
\usepackage{appendix}
\pagenumbering{arabic}
\usepackage{verbatim}
\usepackage{setspace}
\usepackage{rotating}
\usepackage{subfig}
\usepackage{array}
\usepackage[english]{babel}
\usepackage{multirow}
\usepackage{wrapfig}
\usepackage{subfig}
%to get para numbers in the margins
\usepackage{titlesec}
\usepackage{chngcntr}
\usepackage{lipsum} % for dummy text
\titleclass{\numpar}{straight}[\section]
\newcounter{numpar}
\renewcommand{\thenumpar}{\arabic{numpar}}
\counterwithout{numpar}{section} % from the chngcntr package
\titleformat{name=\numpar,page=odd}[leftmargin] {\normalfont %paragraph number for odd page
\bfseries\filleft}
{\thenumpar}{.5em}{}
\titleformat{name=\numpar,page=even}[leftmargin] {\normalfont %paragraph number for even page
\bfseries\filleft}
{\thenumpar}{.5em}{}
\titlespacing{\numpar}
{1pc}{0ex plus .1ex minus .2ex}{1pc}
\newcommand*{\np}{\numpar{}}
\usepackage[parfill]{parskip}
%evidence counter
\newcounter{evidence}
\newcommand{\ev}{%
\bf{EV\stepcounter{evidence}}%
\theevidence}
\begin{document}
\tableofcontents
\pagebreak
\section{A section}
\np \lipsum[1] \marginpar{\ev}
\np \lipsum[5]
\subsection{A subsection}
\np \lipsum[2]
\subsubsection{A subsubsection}
\np \lipsum[3]\marginpar{\ev}
\end{document}
amsmath,subfig(x3). also, setting\parindentto zero rather nullifies the intent ofindentfirst. – barbara beeton Jan 03 '14 at 15:35