Re: Matrice che in realtà è testo

#93972
Up
0
Down
::

teomat” post=93525Buongiorno a tutti,
mi trovo alle prese con l’impaginazione di un reprint e devo rispettarne l’aspetto orginario.
In particolare, ho bisogno di un elenco puntato nel quale ogni item sia in realtà una parentesi graffa contenente due linee di testo.

Ho risolto un po’ artigianalmente così (texnicamente un orrore):

`\documentclass[notitlepage,11pt,a4paper]{book}
\usepackage[T1]{fontenc}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{italian}
\setmainfont[Ligatures=TeX,Numbers=OldStyle]{EB Garamond}
\usepackage{enumitem}

\usepackage{amsmath,amssymb}
\begin{document}
\begin{enumerate}
\item
$\left\{\begin{matrix}\mathit{Cercando}\\\mathit{Il~secol}\end{matrix}\right.$
\item
$\left\{\begin{matrix}\mathit{A~Lui}\\\mathit{Che}\mathit{~il}\mathit{~pino}\end{matrix}\right.$
\item
$\left\{\begin{matrix}\mathit{A~Quello}\\\mathit{Che}\mathit{~spiega}\end{matrix}\right.$
\item
$\left\{\begin{matrix}\mathit{E~voi}\\E\mathit{~come}\end{matrix}\right.$
\item
$\left\{\begin{matrix}\mathit{Risale}\\\mathit{Nel}\mathit{~pianto}\end{matrix}\right.$
\item
$\left\{\begin{matrix}\mathit{Non}\mathit{~sia}\\\mathit{Qual~}\mathit{fur}\end{matrix}\right.$
\item
$\left\{\begin{matrix}\mathit{Tu}\mathit{~sola}\\\mathit{Il}\mathit{~peso}\end{matrix}\right.$
\item
$\left\{\begin{matrix}\mathit{Santo} \mathit{~de'} \mathit{~Santi}\\\mathit{Osanna}\end{matrix}\right.$
\item
$\left\{\begin{matrix}\mathit{Osanna}\\\mathit{Ma}\end{matrix}\right.$
\item
$\left\{\begin{matrix}\mathit{Non} \mathit{~come}\\\mathit{La~luce}\end{matrix}\right.$
\end{enumerate}

\end{document}`

Il risultato è quasi quello sperato, l’unico problema è che vorrei che le parole fossere allineate, mentre ottengo degli spazi indesiderati.
Grazie in anticipo e a presto,
Matteo

Forse così?
`\documentclass[notitlepage,11pt,a4paper]{book}
\usepackage[T1]{fontenc}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{italian}
\setmainfont[Ligatures=TeX,Numbers=OldStyle]{EB Garamond}
\usepackage{enumitem}
\usepackage{amsmath,amssymb,array}

\newcommand{\graffe}[1]{%
$\left\{
\begin{tabular}{@{}>{\itshape}l@{}}
#1
\end{tabular}
\right.\kern-\nulldelimiterspace$%
}

\begin{document}
\begin{enumerate}
\item \graffe{Cercando\\Il secol}

\item \graffe{A Lui\\Che il pino}

\item \graffe{A Quello\\Che spiega}

\item \graffe{E voi\\E come}

\item \graffe{Risale\\Nel pianto}

\item \graffe{Non sia\\Qual fur}

\item \graffe{Tu sola\\Il peso}

\item \graffe{Santo de' Santi\\Osanna}

\item \graffe{Osanna\\Ma}

\item \graffe{Non come\\La luce}
\end{enumerate}

\end{document}`
Ciao
Enrico

Go to top