General ⇒ Line spacing problem
Line spacing problem
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 (72.48 KiB) Viewed 5651 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Line spacing problem
\\ 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}
Stefan
Re: Line spacing problem
Thank you, it work!
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Line spacing problem
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Line spacing problem
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}
Re: Line spacing problem
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 (83.05 KiB) Viewed 5547 times
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Line spacing problem
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}
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Line spacing problem
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}
Re: Line spacing problem
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
