# Tag Info

## Hot answers tagged paragraphs

7

Your feelings are right. With \begin{singlepar} Wrong.\endgraf Wrong. \end{singlepar} you'd get a paragraph break and no error. The LaTeX format does \let\endgraf\par so making \endgraf equivalent to the primitive \par. Also \@@par is equivalent to the primitive \par, but it shouldn't bother you because it has @ in its name. You could say ...

6

A simple solution with the everypar command: \documentclass{book} \usepackage{indentfirst} %make first para after title indented \setlength{\parindent}{2em} \newenvironment{poemcontent}{\everypar{\hangafter=1 \setlength{\hangindent}{4em}}}{\par} \newcommand{\text}{This is some content to be written as a single paragraph. This is some content to be ...

5

I don't think you want to hook in to \par that is the end of the first paragraph which really you want to allow, for a one para environment it is natural to allow \begin{singlepar} aaa \end{singlepar} which would not be allowed if you make \par an error. What you don't want to allow is a second paragraph to start and that's \everypar There are still ...

4

The troublesome parts in iiufrgs.cls are the lines 142 to 146. \vfuzz=30pt % prevent overfull \vbox while \output is active % prevent underfull \vbox while \output is active: \edef\orig@output{\the\output} \output{\setbox\@cclv\vbox{\unvbox\@cclv\vspace{0pt plus 50pt}}\orig@output} The first line, as David Carlisle pointed out in his comments, does not ...

4

If you are really typesetting poems, I strongly suggest looking at some of the packages which already support this. (Why reinvent the wheel?) For example, verse allows you to do something like this and is very configurable: \documentclass{book} \usepackage{indentfirst} %make first para after title indented \usepackage{verse} \setlength\vindent{4em} ...

4

Propagating the paragraph shape is exactly what latex list environments are designed to do. \documentclass{book} \usepackage{indentfirst,enumitem} %make first para after title indented \setlength{\parindent}{2em} \newlist{plist}{description}{1} \newenvironment{poemcontent}{% \plist}{% \endplist} \newcommand{\text}{\item This is some content to be written ...

3

The penalty for breaking before the \parskip glue inserted between paragraphs is 0, so one possibility is to redefine \par to add a \penalty node before that skip. One problem doing that in latex is that latex redefines \par all the time (after headings and list items, to control breaking and indentation, in parboxes and minipages (to restore the default ...

2

as i said in a comment, don't do it. if you are submitting this document to a well-edited math journal, it will be reversed. however, if you must, this should work: \documentclass{article} \usepackage{amsmath} \begin{document} some text \vfill So that abutting triangles do not double-paint pixels, a bias of 1 is subtracted from edges that are top'' or ...

2

Nowadays You can load enumitem and use its additional parameters. In older versions of the ieeetran-class it was not possible due to incompatibility issues, but it got fixed with the most recent version. Changelog: 10) Removed support for legacy IED list commands, legacy QED and proof commands and the legacy biography and biographynophoto ...

2

You have to add the necessary options to the itemize environment. It might be easier with enumitem, but I don't think the copy editors would be happy if you load it. \documentclass{IEEEtran} \usepackage{calc} \usepackage{showframe} % just for the example \usepackage{blindtext} % just for the example \begin{document} \blindtext \begin{itemize}[% ...

2

Unused global option(s) [english] probably means you have done something like \documentclass[english]{article} and that the global option [english] isn't doing anything. The underfull \hbox (badness 10000) warning is usually generated by abruptly ending a line of text using \\. To end a paragraph, you should use a blank line. There are probably lots of ...

2

This really depends on the class you're using and/or your document preamble, but you're probably calling \documentclass[...,english,...]{<class>} If the (global) option english is not used by the <class> it is passed to and package you might load along the way. If TeX reaches \begin{document} without the english option being used, it'll issue ...

1

Please always make your examples complete documents that reproduce the problem. If I make an example document from your fragment I get an indent as shown. \documentclass[11pt,a4paper,twoside,openright,titlepage, fleqn, headinclude,footinclude,BCOR5mm,% numbers=noenddot,cleardoublepage=empty,% ...

1

I found the answer here. Copied from above link: \makeatletter % Paragraph indentation and separation for normal text \renewcommand{\@tufte@reset@par}{% \setlength{\RaggedRightParindent}{1.0pc}% \setlength{\JustifyingParindent}{1.0pc}% \setlength{\parindent}{1pc}% \setlength{\parskip}{0pt}% } \@tufte@reset@par % Paragraph indentation and ...

1

In the interest of variety, there's also the hanging package (which is a part of the memoir class). The following command will hang one paragraph: \hangpara{ indent }{ afternum } The following environment will hang multiple paragraphs: \begin{hangparas}{ indent }{ afternum } <text> \end{hangparas} Note: indent must be a length (e.g., 2em), and a ...

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