GeneralLine spacing problem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Vikthor
Posts: 7
Joined: Tue Sep 30, 2008 5:14 pm

Line spacing problem

Post by Vikthor »

I justified a quote to the right, preceding a verse which is flushed to the left. The problem is that no matter what I do, Latex will not put double space between the quote and the verse.

This is the code I used:

\addcontentsline{toc}{chapter}{\bf Siempre \dotfill}
\chapter*{Siempre}

\begin{raggedleft}
``Siempre llega mi mano\\
mas tarde que otra mano\\
que se mezcla a la m\'ia\\
y forman una mano''\\
\\
Dicotom\'ia Incruenta\\
Oliverio Girondo\\
\end{raggedleft}

\\
\\
\\
Siempre llega mi cuerpo\\
al cuerpo que te habita\\
antes de haber llegado\\


y en el preciso instante\\
en el que me presencias\\
reaparezco de negro\\
visitando tu cuarto\\
cargado de recuerdos\\
Attachments
siempre-sample.tiff
siempre-sample.tiff (72.48 KiB) Viewed 5441 times

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Line spacing problem

Post by Stefan Kottwitz »

Hi Vikthor,

\\ marks an end of line, don't use it to produce vertical space. A better way would be \vspace, for instance

Code: Select all

\vspace{\baselineskip}
or just some other length.

Stefan
LaTeX.org admin
Vikthor
Posts: 7
Joined: Tue Sep 30, 2008 5:14 pm

Re: Line spacing problem

Post by Vikthor »

Hi Stefan,
Thank you, it work!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Line spacing problem

Post by localghost »

Some additional information. Obviously you want to start chapters with a quote, called epigraph. Perhaps the epigraph package can help you in placing and formatting this quote.


Best regards
Thorsten¹
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Line spacing problem

Post by gmedina »

Hi Vikthor,

some additional recommendations (most of them included in the code below). The \bf command you are using is superfluous and, most important, is obsolete (refer to l2tabu for details):

Code: Select all

l\documentclass{book}

\begin{document}

\tableofcontents

\addcontentsline{toc}{chapter}{Siempre \dotfill}
\chapter*{Siempre}

\begin{raggedleft}
``Siempre llega mi mano\\
mas tarde que otra mano\\
que se mezcla a la m\'ia\\
y forman una mano''\\[1em]%to add some space between the poem and its name and author

Dicotom\'ia Incruenta\\
Oliverio Girondo\\
\end{raggedleft}

\vspace{2\baselineskip}%to add some vertical space

%use \noindent to prevent undesired indentations
\noindent Siempre llega mi cuerpo\\
al cuerpo que te habita\\
antes de haber llegado\vspace{\baselineskip}%to add some vertical space

\noindent y en el preciso instante\\
en el que me presencias\\
reaparezco de negro\\
visitando tu cuarto\\
cargado de recuerdos

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Vikthor
Posts: 7
Joined: Tue Sep 30, 2008 5:14 pm

Re: Line spacing problem

Post by Vikthor »

Hi Thorsten and Medina,

Thanks for your help. My knowledge of Latex is at best amateurish and certainly rudimentary. My approach is basically that of try and error-- I try commands until I obtain a desire visual effect. For instance I wanted to start my preface with a left flushed quote. Check what I did to get that effect.

\addcontentsline{toc}{preface}{\bf Pr\'ologo \dotfill}
\chapter*{Pr\'ologo}


\begin{raggedleft}

\emph{Me estremeci\'o la mujer\\
que pari\'o once hijos\\
en el tiempo de la harina\\
y un quilo de pan\\
y los mir\'o endurerce\\
mascando caritos\\
me estremeci\'o\\
por que era mi abuela ademas}\vspace{\baselineskip}

\emph{Me estremecieron mujeres\\
que la historia not\'o entre laureles\\
y otras desconocidas gigantes\\
que no hay libro que las aguante}\vspace{\baselineskip}

\emph{Me han estremecido\\
un mont\'on de mujeres\\
mujeres de fuego\\
mujeres de nieve}\vspace{\baselineskip}

\emph{Me han estremecido\\
un mont\'on de mujeres\\
mujeres de fuego\\
mujeres de nieve}\vspace{\baselineskip

Silvio Rodr\'iguez\\
Mujeres\\
\end{raggedleft}
\vspace{\baselineskip}
Attachments
prologo.tiff
prologo.tiff (83.05 KiB) Viewed 5337 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Line spacing problem

Post by localghost »

Have you already thought about using the verse environment? It makes typesetting of such structures much easier. Consider the following example.

Code: Select all

\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[spanish]{babel}
\usepackage{txfonts}

\parindent0em

\begin{document}
  \begin{verse}
    \itshape
    Me estremeci\'o la mujer\\
    que pari\'o once hijos\\
    en el tiempo de la harina\\
    y un quilo de pan\\
    y los mir\'o endurerce\\
    mascando caritos\\
    me estremeci\'o\\
    por que era mi abuela ademas

    Me estremecieron mujeres\\
    que la historia not\'o entre laureles\\
    y otras desconocidas gigantes\\
    que no hay libro que las aguante

    Me han estremecido\\
    un mont\'on de mujeres\\
    mujeres de fuego\\
    mujeres de nieve

    Me han estremecido\\
    un mont\'on de mujeres\\
    mujeres de fuego\\
    mujeres de nieve

%    \medskip
    \upshape
    Silvio Rodr\'iguez\\
    Mujeres\\
  \end{verse}
\end{document}
Put the verse environment with its contents wherever you want. The text will be a little bit indented, but ragged to the left.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Line spacing problem

Post by gmedina »

Hi Vikthor,

as localghost initially suggested, the epigraph package could be useful too:

Code: Select all

\documentclass[12pt,a4paper]{report}
\usepackage{epigraph}

\renewcommand\textflush{flushright}%the justification of the text
\setlength\epigraphwidth{6cm}%the width of the epigraph


\begin{document}
\tableofcontents

\chapter*{Pr\'ologo}
\addcontentsline{toc}{preface}{\bf Pr\'ologo \dotfill}
\addtocontents{toc}{\addvspace{10pt}}%add some vertical space before the next entry
                               %of the ToC 

\epigraph{\itshape Me estremeci\'o la mujer\\
  que pari\'o once hijos\\
  en el tiempo de la harina\\
  y un quilo de pan\\
  y los mir\'o endurerce\\
  mascando carijos\\
  me estremeci\'o\\
  por que era mi abuela adem\'as\vspace{\baselineskip}
  
  Me estremecieron mujeres\\
  que la historia anot\'o entre laureles\\
  y otras desconocidas gigantes\\
  que no hay libro que las aguante\vspace{\baselineskip}
  
  Me han estremecido\\
  un mont\'on de mujeres\\
  mujeres de fuego\\
  mujeres de nieve\vspace{\baselineskip}
  
  Me han estremecido\\
  un mont\'on de mujeres\\
  mujeres de fuego\\
  mujeres de nieve}{%
  Silvio Rodr\'iguez\\
  Mujeres}

\end{document}
P.S.: I took the liberty of changing some words in the lyrics that you posted: "anot\'o" intead of "not\'o" and "carijos" instead of "caritos". I think that those are the original words used by Silvio.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Vikthor
Posts: 7
Joined: Tue Sep 30, 2008 5:14 pm

Re: Line spacing problem

Post by Vikthor »

Hi there,
Thanks for the input. I will look into it. About the verse environment, I just don't like the initial indentation that comes with it. Medina, thanks for the grammatical correction I have not proof read my work yet :roll:
Post Reply