2

In my tex document I have an ungodly amount of \\ from when I first started writing tex files. (~5000 in total)

Right now I am trying to delete all of them. I want to just have a blank line between two lines when I create a blink line in the unpublished tex file. Right now I have to hit \\ in order to create a blank line between them.

For example:

Right now:

In tex

ABC

DEF

In pdf

ABC
DEF

When I really want:

In tex

ABC

DEF

In pdf

ABC

DEF

Is there something to put in the preamble to make this happen?

Thanks

11
  • 1
    A blank line between paragraphs starts a new one. Is that what you're looking for? – 1010011010 Aug 26 '15 at 6:33
  • Now I'm confused. Do you want paragraphs to be marked by a vertical space instead of indentation? – moewe Aug 26 '15 at 6:41
  • 2
    \usepackage{parskip} (documentation: ctan.cs.uu.nl/macros/latex/contrib/parskip/parskip-doc.pdf) or if you don't like packages: \parskip=<dimension> \parindent=0pt? – 1010011010 Aug 26 '15 at 6:43
  • 1
    It sounds like Concept 1 should be a list item (eg description list) or a sub*section heading. Certainly you don't want \\ But to answer the original question parskip package is what you are looking for. but Concept 1 on its own isn't really a paragraph – David Carlisle Aug 26 '15 at 7:16
  • 1
    @IllegalImmigrant tex.stackexchange.com/questions/154901/… – 1010011010 Aug 26 '15 at 8:18
1

You could try:

\documentclass{article}
% set space between paragraphs
\setlength{\parskip}{0.5cm}
% set indents for paragraphs
\setlength{\parindent}{0.0mm}
\begin{document}
    ABC

    DEF \vspace{2cm} % use vspace (vertical space) when a different spacing is needed.

    GHI
\end{document}
1
  • Thanks I applied this solution but it does not seem to affect the linespacing within {tcolorbox} do you know if there is a fix for that? – Rodrigo Amarante Aug 26 '15 at 8:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.