I want to simplify the writing of this content, which should appear tabulated.
I've written two macros to indent and colored ℣
and ℟
. And I want to avoid having to always write \par
at the end of each line.
How could I make the \par
to be inserted at the end of the macros ... and furthermore, at the end of the macro \sr
to insert two line breaks.
Or ... simplifying further, could I insert the colored ℣
and ℟
from a macro or environment, without having to type them in the text?
This is my code:
% !TeX program = lualatex
\documentclass[10pt,twoside,openany,showtrims]{memoir}
%\usepackage[T1]{fontenc}
%\usepackage[spanish]{babel}
\usepackage{fontspec}
\usepackage{polyglossia}
\setdefaultlanguage{spanish}
\usepackage{ucs}
\usepackage{csquotes}
\usepackage{xcolor}
\usepackage{needspace}
\usepackage{lipsum}
\setcounter{tocdepth}{4}
\settrimmedsize{6in}{9in}{*}
\setmainfont{FreeSerif}
\newfontfamily\fsfont{FreeSerif}
\newfontfamily\alterfont{FreeSans}
\newcommand{\txtred}[1]{\textcolor{red}{#1}}
\newcommand{\h}{\hspace{5mm}}
\newcommand{\hl}{\hspace{10mm}}
\newcommand{\sv}{\txtred}
\newcommand{\sr}{\txtred}
\newenvironment{readbody}{%
\alterfont
}%
\begin{document}
\mainmatter
\begin{readbody}
\sv ℣. \h Señor, enséñame tus caminos,\par
\hl instrúyeme en tus sendas: \par
\hl haz que camine con lealtad;\par
\hl enséñame, porque tú eres mi Dios y Salvador. \sr ℟.\par \par
%Need two lines skip here
\sv ℣. \h Recuerda, Señor, que tu ternura\par
\hl y tu misericordia son eternas;\par
\hl acuérdate de mí con misericordia,\par
\hl por tu bondad, Señor. \sr ℟.\par \par
%Need two lines skip here
\sv ℣. \h El Señor es bueno y es recto,\par
\hl enseña el camino a los pecadores;\par
\hl hace caminar a los humilles con rectitud,\par
\hl enseña su camino a los humildes. \sr ℟.
\end{readbody}
\end{document}
And the output:
I want simplify, writing this:
\begin{readbody}
\sv ℣. \h Señor, enséñame tus caminos,
\hl instrúyeme en tus sendas:
\hl haz que camine con lealtad;
\hl enséñame, porque tú eres mi Dios y Salvador. \sr ℟.
\sv ℣. \h Recuerda, Señor, que tu ternura
\hl y tu misericordia son eternas;
\hl acuérdate de mí con misericordia,
\hl por tu bondad, Señor. \sr ℟.
\sv ℣. \h El Señor es bueno y es recto,
\hl enseña el camino a los pecadores;
\hl hace caminar a los humilles con rectitud,
\hl enseña su camino a los humildes. \sr ℟.
\end{readbody}
And giving this:
I am starting with LaTeX. So I'm open to suggestions for better ways to do this, keeping in mind that one of my goals in this particular case is to simplify the writing.