Text FormattingChanges the space between texts and equations

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
GenisToii
Posts: 19
Joined: Sat Nov 05, 2011 8:51 pm

Changes the space between texts and equations

Post by GenisToii »

Hi!

I wanna know how to modify the space between text and equation (above and below) but I can't find anything usefull in internet.

I find this topic http://www.latex-community.org/forum/vi ... =5&p=15679 but I'll tried the example in that topic and \abovedisplayskip and \belowdisplayskip doesn't work!

My actual project have the following preamble:

Code: Select all

\documentclass[11pt]{report}

\usepackage[catalan]{babel}
\usepackage[utf8]{inputenx}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{mathrsfs}
\usepackage{amsmath}
\usepackage{enumerate}    %Enumeraciones
\usepackage{makeidx}      %Crean indices personalizables
\usepackage{spverbatim}   %Verbatim que respecta las lineas (no poner junto a verbatim en un documento)
\usepackage{multicol}     %Espacios unidos en una tabla
\usepackage{titlesec}
\usepackage[pdftex]{graphicx}

%Formato de la hoja (Nadia)
%---------------------------------------------------------------------------------------------------
\evensidemargin -0.3cm \oddsidemargin -0.2cm \topmargin -2cm \textwidth 16.5truecm \textheight 24truecm
%---------------------------------------------------------------------------------------------------

\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
\titlespacing*{\chapter}{0pt}{0pt}{20pt}

%\usepackage[margin=2.5cm]{geometry}  %Este package adapta el formato en el documento

%%%%% COMMANDS %%%%%%%
\newcommand{\be}{\begin{equation}}
\newcommand{\ee}{\end{equation}}
\newcommand{\bes}{\begin{eqnarray*}}
\newcommand{\ees}{\end{eqnarray*}}
\newcommand{\beq}{\begin{eqnarray}}
\newcommand{\eeq}{\end{eqnarray}}
\newcommand{\bd}{\begin{displaymath}}
\newcommand{\ed}{\end{displaymath}}
\newcommand{\bgg}{\begin{gather*}}
\newcommand{\egg}{\end{gather*}}
\newcommand{\lc}{\left(}
\newcommand{\rc}{\right)}
\newcommand{\cc}[1]{\left( #1 \right)}

\newcommand{\no}{\noindent}
\newcommand{\tf}[1]{\textbf{#1}}
\newcommand{\lra}{\longrightarrow}
\newcommand{\hs}{\hspace}
\newcommand{\vs}{\vspace}
\newcommand{\bpm}{\begin{pmatrix}}
\newcommand{\epm}{\end{pmatrix}}
\newcommand{\bbm}{\begin{bmatrix}}
\newcommand{\ebm}{\end{bmatrix}}

\newcommand{\C}{{\Bbb C}}
\newcommand{\N}{{\Bbb N}}
\newcommand{\D}{{\Bbb D}}
\newcommand{\R}{{\Bbb R}}
\newcommand{\ZZ}{{\Bbb Z}}
\newcommand{\PPP}{\Bbb{P}}
\newcommand{\EE}{\Bbb{E}}
\newcommand{\rd}{\mathrm{d}}
\newcommand{\indic}{\mathrm{1}}
\newcommand{\FF}{{\cal F}}
\newcommand{\JJ}{{\cal J}}
\newcommand{\LL}{{\cal L}}
\newcommand{\BB}{{\cal B}}
\newcommand{\HH}{{\cal H}}
\newcommand{\GG}{{\cal G}}
\newcommand{\A}{{\cal A}}
\newcommand{\CC}{{\cal C}}
\newcommand{\va}{\varepsilon}
\newcommand{\TT}{{\cal T}}
\newcommand{\PP}{\mathscr{P}}
\newcommand{\dis}{\displaystyle}
\renewcommand{\baselinestretch}{1,25} %Interlineado

%%%%% CATALAN VERSION %%%%%%%
\newtheorem{teorema}{Teorema}[section]
\newtheorem{lema}[teorema]{Lema}
\newtheorem{defi}[teorema]{Definició}
\newtheorem{prop}[teorema]{Proposició}
\newtheorem{coro}[teorema]{Corol.lari}
\newtheorem{rema}[teorema]{Remarca}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%% ENGLISH VERSION %%%%%%%
%\newtheorem{theorem}{Teorema}[section]
%\newtheorem{lemma}[theorem]{Lemma}
%\newtheorem{prop}[theorem]{Proposition}
%\newtheorem{def}[theorem]{Definition}
%\newtheorem{co}[theorem]{Corolari}
%\newtheorem{remark}[theorem]{Remark}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\theequation}{\arabic{equation}}

\hyphenation{fortran sto-chas-ti-que}
\hyphenation{fortran ma-llia-vin}

\newcommand{\fracc}[2]{\displaystyle\frac{#1}{#2}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Last edited by GenisToii on Wed Jan 04, 2012 4:56 pm, edited 1 time in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

GenisToii
Posts: 19
Joined: Sat Nov 05, 2011 8:51 pm

Re: Changes the space between texts and equations

Post by GenisToii »

Oh they are the best! Thanks a lot Stefan!

Over all the third one, i'lll recommend to everyone :D
Post Reply