# Tag Info

3

You get a warning: Package caption Warning: \captionsetup{type*=...} or \captionof (caption) outside box or environment on input line 24. See the caption package documentation for explanation. This is the cause of problem you are facing. As a remedy to this put minted inside a group \bgroup \begin{minted}{python} def foo(): ...

3

Tex makes overlapping hard, as it does not obey \baselineskip if it would require negative spacing and instead inserts \lineskip between each line, giving up a fixed space between each baseline. \documentclass{memoir} \setlength\textwidth{5cm} \begin{document} \huge{\large This paragraph has large text size, but has even huger line spread.} ...

5

Use after={\par\vspace{\baselineskip}\noindent} and then \end{code} which shows that Santa Claus \emph{does} exist,\ldots (no blank line after \end{code}) or \end{code} % which shows that Santa Claus \emph{does} exist,\ldots if you need that blank for readability. \documentclass{article} \usepackage{xcolor} \usepackage[many]{tcolorbox} ...

1

This uses flowfram to automatically switch the effective width of paragraphs after the first page. (This is a modification of my answer to your other question.) Note that you should not use flowfram without reading the manual as it performs major surgery on TeX's output routine and it is important to be aware of the implications of this. This is not ...

0


0

I ended up using something like the following. The solution was easier than I expected and the result was nice enough. \documentclass{article} \usepackage{amsthm} \usepackage{parskip} \theoremstyle{definition} \newtheorem{Def}{Definition}[section] \theoremstyle{remark} \newtheorem{Exm}{Example}[section] \theoremstyle{plain} ...

3

You actually chose a poor example, since \lipsum starts a new paragraph unless you call the lipsum package with the nopar option. As such, leaving an empty space between paragraphs is fine to separate paragraphs. Issuing a \paragraph{} to start a new paragraph is, however, not the best idea. You can "rectify" this by redefining what \paragraph means. In ...

5

If you don't want to change your document, deleting all \paragraph commands, you can load the titlesec package and issue \titlespacing*{\paragraph}{0pt}{0pt}{0cm} MWE: \documentclass[10pt,a4paper]{article} \usepackage{lipsum}% http://ctan.org/pkg/lipsum \setlength{\parindent}{1.25cm} \usepackage{titlesec} \titlespacing*{\paragraph}{0pt}{0pt}{0cm} ...

2

Don't use \\ for line spacings (they have application in places like tabular, but are not intended as a mechanism for line skip). If you want an inter-paragraph spacing, use \parskip and end the paragraph with a blank line or a \par. \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \setlength{\parindent}{0cm} ...

6

In most document classes a paragraph start should be clearly visible in the output, marked by a section heading or a paragraph indent. If this is not visually clear then essentially that is a failing in the typographic layout specified by the class. This is one of the objections to teh style of using no indentation and vertical separation for paragraphs as ...

0

The above responses were really helpful--so thanks. But it turns out that what I thought I wanted wasn't what I wanted really after all. What I'm after is something which causes each new line within a block of text to begin at a fixed left margin but to wrap around in an indented fashion. Hopefully the example below makes this clear? ...

3

Use a list, it's easier. I left your original code for comparison. Before the code, some explanations. In LaTeX almost all the specially formatted parts of text are obtained by means of a list: center, quote, quotation are all implemented as lists. This allows nesting lists in those special places, which hanging wouldn't allow, because lists use \parshape ...

7

The basic structural element of a typeset document is the paragraph. TeX separates paragraphs by \par command which is automatically inserted at each empty line in source document (when the common catcode settings are done). Thus, you can try two approaches: separate paragraphs by empty lines read some basics introduction to TeX, for example M. Doob: A ...

5

Use \par to start a new paragraph (or leave a blank line between text blocks): Hello, World! How are you. \bye or Hello, World!\par How are you. \bye Alternatively, but highly unlikely, use \obeylines: \obeylines Hello, World! How are you. \bye

0

I advise you to consult the introduction on Latex, see this post or directly The (not so) short introduction to LaTeX2e. The particular answer to your question is to use \\ or \newline.

1

This is a somewhat cleaner version of your code. At least it compiles without error. It uses changepage to adjust the margins on the first page. However, you must manage the page break and restore the margins in the body of your letter. At least, I cannot find a way to avoid that at the current time. The top/bottom margins don't need adjusting - we can just ...

5

This is a known bug in the latest (released) version 3.14 of KOMA script, see http://www.komascript.de/release3.14 (in German, search for "scrsize10pt.clo"). EDIT: The bug is fixed in the (released and in TeXLive as of 20/01/2015) version 3.15. One workaround (translated from the linked page) is to add \csname @listi\endcsname after loading a scr* document ...

1

You might consider adapting the verse and patverse environments provided by the verse package. For example: Text is from http://www.bartleby.com/108/01/1.html. \documentclass{article} \usepackage{url,verse} \begin{document} \noindent Text from \url{http://www.bartleby.com/108/01/1.html}. \setlength{\vindent}{0pt} \setlength{\vgap}{\parindent} ...

Top 50 recent answers are included