GeneralChange the space between paragraphs

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Multipas
Posts: 2
Joined: Thu Mar 29, 2007 10:24 pm

Change the space between paragraphs

Post by Multipas »

Dear guru!
Could you plase tell me how to change the blank space size? In the body of the document.

For example there is a text:
fjdkfhdj'gfd'gfgfgfdh fghygfh
gfdgdfgfdgdfgfgdfgdfgfdgdf

fdgfdgdgfdgdfd
dfgdfgdfgd

The blank space between those lines are too big.

I'm actually new and took this template but the person who gave me this template also does no know how to change this distance.

The preamble:

Code: Select all

\documentclass[10pt,a4paper]{book}

\newcommand{\figcaption}[2] {\caption{\label{#1}{\small #2}}}
\newcommand{\tabcaption}[2] {\caption{\label{#1}{\small #2}}}

\usepackage{epsf}
\usepackage{graphicx}
\usepackage{lineno}
\usepackage[papersize={17cm,24.5cm},top=2cm,bottom=2cm,left=2.5cm,right=1.5cm]{geometry}
\usepackage[a4,center]{crop}
\usepackage[nottoc]{tocbibind}

\newenvironment{smallabstract}{\begin{quote} \sl}{\end{quote}}

\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead[\fancyplain{}{\bfseries{\thepage}}]{\nouppercase{\fancyplain{}{\rightmark}}}
\chead{}
\rhead[\nouppercase{\fancyplain{}{\bfseries{\leftmark}}}]{\fancyplain{}{\bfseries\thepage}}
\lfoot{}
\cfoot{}
\rfoot{}


\makeatletter
\renewcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
                    \thispagestyle{plain}
                    \global\@topnum\z@
                    \@afterindentfalse
                    \secdef\@chapter\@schapter}

\def\@makechapterhead#1{%
  \vspace*{5\p@}%
  {\parindent \z@ \raggedright \normalfont
    \ifnum \c@secnumdepth >\m@ne
      \if@mainmatter
        \LARGE\scshape\flushright\@chapapp\space\thechapter\par\nobreak
        \vskip 10\p@
      \fi
    \fi
    \interlinepenalty\@M
    \LARGE
    \bfseries \scshape \flushright #1 \par\nobreak
    \vskip 40\p@
  }}


\def\@makeschapterhead#1{%
  \vspace*{50\p@}%
  {\parindent \z@ \raggedright
    \normalfont
    \interlinepenalty\@M
    \Large \bfseries \flushright #1\par\nobreak
    \vskip 40\p@
  }}
\makeatother

\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else%
    \hbox{}%
    \thispagestyle{empty}%              % Empty header styles
    \newpage%
    \if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother


\makeatletter
\renewcommand{\section}{\@startsection{section}{1}{0mm}{-1.5\baselineskip}{\baselineskip}{\normalfont\large\bf}}
\renewcommand{\subsection}{\@startsection{subsection}{2}{0mm}{-\baselineskip}{0.5\baselineskip}{\normalfont\bf}}
\makeatother

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

klumpp
Posts: 15
Joined: Mon Jan 15, 2007 11:01 am

Re: blank space size

Post by klumpp »

A very dirty trick is to use the command \vspace{} with negative values, like \vspace{-5mm} or \vspace{-10pt}. In this case you have to figure out the right values which fit your taste.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Change the space between paragraphs

Post by localghost »

You should ask yourself what you know and what you need. In my opinion everything you don't know is needless for you. And think about what kind of document you are going to write. Is the documentclass book really needed? It's always problematic to take code from others that you don't understand. In every case you should reduce the code of your preamble.

Code: Select all

\documentclass[10pt,a4paper]{book}
\usepackage[T1]{fontenc}            % switch to Cork Encoding
\usepackage[latin1]{inputenc}       % make possible national characters 
\usepackage[ngerman]{babel}         % put your language in here
\usepackage{graphicx}               % macros for graphics inclusion
\usepackage[papersize={17cm,24.5cm},top=2cm,bottom=2cm,left=2.5cm,right=1.5cm]{geometry}    % page geometry setup

\pagestyle{headings}                % simple headers for the document
Are the problems now the same? If you want the pagestyle back provided by the fancyhdr package, refer to it's manual or feel free to ask here. All about graphics inclusion can be read in epslatex or the grfguide. Think about buying literature for beginners, especially when you are going to work with LaTeX more intensive.
Multipas
Posts: 2
Joined: Thu Mar 29, 2007 10:24 pm

Re: blank space size

Post by Multipas »

Thank you for suggestions!

I like latex but unfortunately it is require qite time to understand it. Of course it worth it (the look of the document is amaizing and you save a lot of time on numbering etc.) But I do not have time :( my deadline is this month :(((


Anyway, I already wrote all document (it is the thesisis) but need some tunung (as I mentioned with blank space for example). The problem is that it is not clear in the code where is it.. Thank you for the code, but I cannot use it. Too many other things are gone if it try it.
Anyway, I appreciate your help, thank you!
Ledurt
Posts: 12
Joined: Tue Mar 27, 2007 7:05 pm

Change the space between paragraphs

Post by Ledurt »

If I understand your problem correctly, you need to decrease the space between the paragraphs? To do so, use the command:

Code: Select all

\addtolength{\parskip}{the_legth_you_want_to_add_here_with_unit}
If you add a negative value, it will decrease the space. Be careful with that because it will problably change a lot of things
Post Reply