Background
I’d like to write a LuaLaTeX document for the Roman Catholic Liturgy of the Holy Week (from the Psalm Sunday through Easter Sunday). I do this in Slovak language (here’s a pdf that uses images for portions that include any kind of graphics, like scores or a cross; here’s somewhat English version of that document)
I created the cross from the Paschal candle (Slovak version: page 3; English version: page 4), however, I could not place it on the left side of the accompanying text. I did this using tikzpicture
.
What I have Tried
I tried to use multicols
, but this package does not support tikzpicture
to be in a column.
Then I found this question, so I tried to use wrapfigure
, but I could not make it work.
Problem Definition
When I use wrapfigure
, the text that should be on the left of the cross, is aligned left as if the tikzpicture
would not be there.
Also, the cross should be left-aligned (to the page left margin) and to the top margin.
The text’s first line should be moved to the top margin to let the top of the letter alpha be aligned with the top of the first line of the text.
Also, if the cross and text should be moved lower on the page (because the text before would end on the same page as the cross and its text), the cross and its text should be moved as low as needed, while the top of alpha and the top of the first line of the text should be still on the same ‘invisible line’
The placement of the text that should be on the right, might be connected with my custom commands which I use as paragraph styles, namely \rubrics
and prayer
.
Anyway, I don’t care how the problem is solved, however, the better the solution, the better.
Minimal Working Example
\documentclass[10pt]{book}
\usepackage[a4paper]{geometry}
\geometry{a4paper, left=1in, right=1in, top=1in, bottom=1in, portrait}
% Packages
\usepackage[slovak]{babel} % For the language-specific stuff
\usepackage{bookmark} % For bookmarks and to stop `hyperref` complaining
\usepackage{xcolor} % For font colour
\usepackage{enumitem} % For {enumerate} that can be resumed and referenced
\usepackage{tikz} % For drawing graphics
\usepackage{wrapfig} % For wraping figures/images/tikz
% Font family
\usepackage[math-style=ISO, bold-style=ISO, partial=upright, nabla=upright]{unicode-math}
\setmainfont{Libertinus Serif}
% Paragraph and line settings
\setlength{\parindent}{0em} % Set paragraph indentation
\setlength{\parskip}{0.08in} % Paragraph spacing
\renewcommand{\baselinestretch}{1.0} % Line \expandafter\selectlanguage\expandafter{\cvlang}
% Custom commands
\newcommand{\rubrics}[1]{\setlength{\parindent}{0em}\setlength{\parskip}{0.08in}\selectfont\renewcommand{\baselinestretch}{0}\color{red!100}\fontsize{12pt}{14pt}\selectfont{#1}\color{black!100}\normalsize\selectfont}%
\newcommand{\prayer}[1]{\setlength{\parindent}{0em}\setlength{\parskip}{0.16in}\renewcommand{\baselinestretch}{2.0}\color{black!100}\fontsize{20pt}{24pt}\selectfont{#1}\color{black!100}\normalsize\setlength{\parindent}{0em}\setlength{\parskip}{0.08in}\selectfont\renewcommand{\baselinestretch}{1.0}}%
\newcommand{\crossLetters}[1]{\fontsize{40}{48}\selectfont{\textbf{\color{black!100}{#1}}}}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{wrapfigure}{l}{0.01cm}
\begin{tikzpicture}
\draw[red, line width=1.6mm] (0,-9) node[below=10] {\crossLetters{Ω}} -- (0,0) -- (1,0) node[above=10] {\crossLetters{0}} node[below=10] {\crossLetters{0}} -- (3,0) -- (0,0) -- (0,3) node[above=10] {\crossLetters{Α}} -- (0,0) -- (-1,0) node[above=10] {\crossLetters{2}} node[below=10] {\crossLetters{2}} -- (-3,0);
\end{tikzpicture}
\end{wrapfigure}
\prayer{Kristus je ten istý včera i dnes.}
\rubrics{(celebrant vrýva zvislú čiaru kríža)}
\prayer{On je počiatok a koniec,}
\rubrics{(kňaz vrýva vodorovnú čiaru kríža)}
\prayer{Alfa}
\rubrics{(nad zvislú čiaru kríža vrýva písmeno alfa)}
\prayer{i Omega,}
\rubrics{(pod zvislú čiaru kríža vrýva písmeno omega)}
\prayer{Pán času}
\rubrics{(do ľavého horného uhla kríža vrýva prvú číslicu letopočtu)}
\prayer{i večnosti.}
\rubrics{(do pravého horného uhla kríža vrýva druhú číslicu letopočtu)}
\prayer{Jemu patrí sláva i moc}
\rubrics{(do ľavého spodného uhla kríža vrýva tretiu číslicu letopočtu)}
\prayer{po všetky veky vekov. Amen.}
\rubrics{(do spodného pravého uhla kríža vrýva štvrtú číslicu letopočtu)}
\end{document}
multicols
is: added\usepackage{multicols}
and instead of pair\begin{wrapfigure}{l}{0.01cm}
and\end{wrapfigure}
typed\begin{multicols}{2}
and\end{multicols}
. I get an error:! Arithmetic overflow.\n<recently read> \baselineskip\nl.70 \end{multicols}
. Anyway, if you know a solution, we are welcome to help me out. You could solve it withmulticols
too. ;)