For this, I would use the alltt
-package together with \normalfont
as mentioned in the documentation of the verse
-package:
% arara: pdflatex
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{verse}
\usepackage{alltt}
\begin{document}
\begin{verse}
Blessed are the poor in spirit, for theirs is the kingdom of heaven.\\
Blessed are those who mourn, for they shall be comforted.\\
Blessed are the meek, for they shall inherit the earth.\\
Blessed are those who hunger and thirst for righteousness, for they shall be satisfied.
\end{verse}
\begin{alltt}\normalfont
Blessed are the poor in spirit, for theirs is the kingdom of heaven.
Blessed are those who mourn, for they shall be comforted.
Blessed are the meek, for they shall inherit the earth.
Blessed are those who hunger and thirst for righteousness, for they shall be satisfied.
\end{alltt}
\noindent This is the regular text that is not indented.
\end{document}
This will even safe you from typing \\
behind every line and will yield the following.
Update
In order to still be able to use the features of verse
, you will have to redefine the left margin for the poems. If you want to do this globally, you could just write \setlength{\leftmargini}{<some value>}
.
In my following MWE, I will just change for one verse and change it back to default afterwards.
% arara: pdflatex
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{verse}
\begin{document}
\newlength{\saveleftmargini} % define a temp variable for the original margin
\setlength{\saveleftmargini}{\leftmargini} % write the original margin in this variable
\setlength{\leftmargini}{0em} % set the left margin to zero
\begin{verse}
Blessed are the poor in spirit, for theirs is the kingdom of heaven.\\
Blessed are those who mourn, for they shall be comforted.\\
Blessed are the meek, for they shall inherit the earth.\\
Blessed are those who hunger and thirst for righteousness, for they shall be satisfied.
\end{verse}
\setlength{\leftmargini}{\saveleftmargini}% restore original value in case you do not want to change this thing globaly.
\begin{verse}
Blessed are the poor in spirit, for theirs is the kingdom of heaven.\\
Blessed are those who mourn, for they shall be comforted.\\
Blessed are the meek, for they shall inherit the earth.\\
Blessed are those who hunger and thirst for righteousness, for they shall be satisfied.
\end{verse}
\noindent This is the regular text that is not indented.
\end{document}
Use \hphantom{\mathrm{GC_{sp}}}\llap{$\mathrm{WL}$}
in the first row and GC_{sp}
in the second. The \hphantom
produces a space that is as wide as GC_{sp}
, and the \llap
typesets $\mathrm{WL}$
into that space, right-aligned.
Using \rlap{$\mathrm{WL}$}\hphantom{\mathrm{GC_{sp}}}
in the first row instead will make it left-aligned.
Addendum: The following works:
fisher_1.name = '\\rlap{$\\mathrm{WL}$}\\hphantom{\\mathrm{GC_{sp}}} - FoM=47.05'
fisher_2.name = 'GC_{sp} - FoM=60.49'
The challenge is that cosmicfish
compiles the rows separately (one LaTeX run per row), therefore \halign
or a table package cannot be used.
Best Answer
Standard TeX has one way to measure the last line in a partial paragraph, it is a bit sneaky but there you go. At least it makes coding inside the document then nice and easy: normal line breaks with
\\
and special ones with\magicom
. This allows even for some lines to be automatically broken.This then gives us:
If we uncomment the
verse
environment above and usewe get the following:
What does the code do?
\predisplaysize
away (that is the width of the last line before the display + 2em) ... everything else was just done to get this variable set, i.e., doing the measurement for us\prevgraf
by 3 as a display takes up 3 lines (nominally in TeX's counting). This can be needed in some case when a\parshape
is in effect\magicomadjust
(which I used for theverse
example