I am compiling a text in Latin and need to have the pronunciation guide beneath each word. The actual word will be in a larger font size than the guide beneath it, so that the guide never is longer than the word above it. I want build an entire paragraph this way, matching each word with its pronunciation. I plan on building a \newcommand
so that I can enter two paragraphs of text, one in Latin and the other made up of the pronunciation guides, and zip them together - otherwise this project will take forever. I am trying to do something like the \underset
command.
Right now I am trying to use tabularx
and minipage
. I have two issues here:
- My minipages are not able to line up perfectly and automatically.
- The tables are adding too much space below the paragraphs, probably because of the
\raisebox
command.
Alternatively, is there a way to move a single word to its left the length of the word before it? There has to be something like this but I cannot find it.
This question is similar to what I want, but not exact, since I have to combine two paragraphs of text.
Here is what I have thus far:
\documentclass[11pt, twoside, notitlepage]{article}
\usepackage{geometry}
\geometry{letterpaper}
\usepackage{showframe}
\usepackage{libertine}
\usepackage{tabularx}
\usepackage{float}
\begin{document}
\begin{minipage}{0.18\textwidth}
\begin{tabularx}{\textwidth}{|@{}l@{}|}
\Large{\raisebox{-1ex}{juventútem}} \\
\small{\raisebox{3ex}{yoo-ven-too-tem}} \\
\end{tabularx}
\end{minipage}%
\begin{minipage}{0.18\textwidth}
\begin{tabularx}{\textwidth}{|X|}
\Large{\raisebox{-1ex}{juventútem}} \\
\small{\raisebox{3ex}{yoo-ven-too-tem}} \\
\end{tabularx}
\end{minipage}%
% ALTERNATIVE: move the \small{} to the left, inline with the \Large{}
\Large{juventútem}%
\small{\raisebox{-2ex}{yoo-ven-too-tem}}
% THIS IS NOT QUITE WHAT I NEED:
% $\underset{juventútem}{yoo-ven-too-tem}$
\end{document}
EDIT: This is what I am trying to achieve, but with a single function/command, rather than the 20 or so that this required, using Steven B. Segletes' solution. This isn't bad, just time consuming to write out:
Code:
\newcommand{\server}[1]{%
\noindent
#1
}
\newcommand{\subword}[2]{%
\noindent
\begin{justifying}
\stackunder{\Large\ #1}{\tiny\ #2}%
\end{justifying}
}
\server{\subword{Suscípiat}{Soo-shee´pee-ott} \subword{Dóminus}{Doh´mee-noos} \subword{sacrifícium}{sah-kree-fee´chee-oom} \subword{de}{day} \subword{mánibus}{mah´nee-boose} \subword{tuis,}{too-eese,} \subword{ad}{ahd} \subword{laudem}{lou´dem} \subword{et}{ett} \subword{glóriam}{gloh´ree-ahm} \subword{nominis}{noh´mee-neese} \subword{sui,}{soo´ee,} \subword{ad}{ahd} \subword{utilitátem}{oo-tee-lee-tah´tem} \subword{quoque}{quoh´quay} \subword{nostram,}{noh´strahm,} \subword{totiúsque}{tohd-see-oos´quay} \subword{Ecclésiæ}{at-clay´see-ay} \subword{suæ}{soo´ay} \subword{sanctæ.}{sahnk´tay.}}
\small{zzz}
makes the rest of the document small, not justzzz