Alinhamento de texto como alinhamento de números

Alinhamento de texto como alinhamento de números

Estou tentando alinhar de tal forma

Some_Text  1. Other Text       
           2. Other Text

eu usei

\begin{align*}
\text{Some_Text}&\text{Other Text}\\
&\text{Other Text}\\
\end{align*}

Mas não funcionou.

Aqui está meu preâmbulo:

\documentclass{book}
\usepackage[paperwidth=500mm,paperheight=50]{geometry}

Responder1

Aqui está minha primeira tentativa, não sou muito bom com tabelas, mas gostaria de tentar:

\documentclass{amsart}
\begin{document}
\begin{tabular}{lp{\linewidth}}
Some\_Text  & \vspace{-1em}
\begin{enumerate}
  \item Other text
  \item Other text
\end{enumerate}
\end{tabular}
More text.
\end{document}

eu

Aqui está outra possibilidade (para superar o truque de inserir negativo \vspace. Esta resposta foi tirada da resposta de Marco,aqui, usando enumitemo pacote:

\documentclass{amsart}
\usepackage[inline]{enumitem}
\begin{document}
\begin{tabular}{lp{\linewidth}}
Some\_Text&
\begin{enumerate*}[itemjoin={\newline}]
\item foo
\item bar
\end{enumerate*}
\end{tabular}
More text.
\end{document}

Obrigado a David por me ajudar com isso na sala de chat.

Responder2

Com uma coluna de largura fixa contendo a enumeração, é possível o seguinte:

insira a descrição da imagem aqui

\documentclass{article}
\newcommand{\myitem}{\par\refstepcounter{enumi}\theenumi.\ }
\begin{document}
\centering
\begin{tabular}{rp{0.5\linewidth}}
  Some\textunderscore text &
    \myitem Other text
    \myitem Other text
\end{tabular}
\end{document}

Se desejar ter um tipo diferente de exibição de enumeração, ajuste \myitemao seu gosto. Por exemplo,

\newcommand{\myitem}{\par\refstepcounter{enumi}(\theenumi)\ }

fornece colchetes em torno da numeração. A largura da segunda coluna ainda é um problema (se é suficiente ou ruim, digamos), mas não há muito mais que se possa fazer com a quantidade de detalhes disponíveis na questão.

informação relacionada