Tag Info

Hot answers tagged

16

LaTeX uses \everypar itself all over the place, to manage indentation (or not) after section headings, to preserve the paragraph shape of indented list structures, it is also reset in minipages and parboxes and tabular p columns so setting \everypar is tricky. Apart from the fact that the value can get over-written at any time section headings (as most ...


7

You have loaded the package ragged2e with the document option, that kills indents and typesets the document in raggedright fashion, which I don't think is what you want. I've also made some changes to your input, so that it's more easily manageable. Note that commands such as \Large don't take an argument, but set their action to continue until ...


7

In the absence of a better answer, here is my attempt. Some comments on my approach. I used the examples on Vincent Zoonekynd's webpage as a starting point. I set the ((sub)sub)section number in a box of a specific width, and then the ((sub)sub)section title to the right of it. Normally, there's just a \quad of horizontal space between the two, but ...


5

In addition to what was said in other answers and comments, \everypar is used at the beginning of each paragraph (or more precisely, when TeX changes from vertical to horizontal mode), so it is useless for the purpose you tried to achieve. For this purpose it is better to redefine \par, as in: \documentclass{article} \begin{document} \let\oldpar=\par ...


4

Paragraphs can be highlighted in two ways. (1) A paragraph has a small indent at the beginning. This is the default behaviour. The length is stored inside the dimension \parindent. (2) The other method is to have a skip between two paragraphs. These skip is saved in the skip register \parskip. Please note: Never combine these two methods. To setup the ...


2

\paragraph only marks the beginning of a paragraph; there is no way for it to be closed. I would recommend using an custom environment instead, because it allows you to control what is happening inside of it. For instance, to mimic the \paragraph{} command, you could define \newenvironment{para}[1] {%here comes what is processed before ...


2

Section titles might appear in the table of contents or in the headers. Both is unlikely for \subparagraph, but who knows. This can be solved by using the optional argument to avoid linked titles at the other locations: \subparagraph[My title]{\hypertarget{My target}{My title}} Or, if there is a \label for the \caption of the global table: ...


2

You could use conditionals. Here's a some (re)definitions using etoolbox: \usepackage{etoolbox} \providebool{nopar} \renewcommand{\rposition}[1]{% \rnote{#1}% % set 'nopar' = true \booltrue{nopar}} \renewcommand{\ritem}{% \ifbool{nopar}% % if nopar = true, do nothing except set 'nopar' false {\boolfalse{nopar}}% % if nopar = false, ...


1

You can use \vadjust to place the markers in the margin as follows: \documentclass{article} \usepackage{xcolor} \usepackage{lipsum} \parindent0pt % no paragraph indentation \newcommand*{\lparind}{\leavevmode\vadjust{\llap{\textcolor{gray}{\raisebox{0.5ex}[0pt][0pt]{\footnotesize \P\quad}}}}} \newcommand*{\rparind}{\leavevmode\vadjust{\hbox to ...


1

You can peek ahead and see whether there is an \ritem following an \rposition (using \@ifnextchar). If this is the case, just gobble it (using \@gobble). Of course, if it will always be followed by an\ritem, you can just gobble it regardless. Here's a way using the first (conditional) approach: \documentclass{article} % Short (i.e., one- to two-line) ...



Only top voted, non community-wiki answers of a minimum length are eligible