
Estoy intentando crear un entorno simple que consta de dos partes:
- texto en negrita seguido de una flecha hacia la derecha
- (múltiples) líneas de texto con sangría, debajo del texto en negrita
Lo que tengo hasta ahora:
\documentclass{article}
\usepackage{amsmath,amssymb}
\usepackage{subfig}
\newenvironment{myeventeq}[1]
{\textbf{#1} $\Rightarrow$\vspace{1ex}\par
\hspace*{2em}%%
\begin{minipage}{\dimexpr\columnwidth-2em}}
{\end{minipage}}
\begin{document}
\begin{figure}
\subfloat[piece1]{
\begin{myeventeq}{piece of bold text}
condition 1 to be satisfied\\
condition 2 to be satisfied
\end{myeventeq}
}
\subfloat[piece2]{
\begin{myeventeq}{piece of bold text}
condition 1 to be satisfied\\
condition 2 to be satisfied
\end{myeventeq}
}
\caption{dual caption}
\end{figure}
\end{document}
Esto produce lo siguiente:
El problema actual es el siguiente:
- las condiciones deben estar debajo del texto en negrita
- la segunda subfigura cae de la página.
Respuesta1
Si desea evitar el list
entorno, puede crear un entorno para su estructura construido alrededor de un archivo minipage
. El problema con esto es que no se dividirá entre páginas. Pero como mencionaste, subfig
supongo que este entorno no es algo destinado a abarcar varias páginas.
\documentclass{article}
\usepackage{amsmath,amssymb}
\newenvironment{myeventeq}[1]
{\textbf{#1} $\Rightarrow$\vspace{1ex}\par
\hspace*{2em}%%
\begin{minipage}{\dimexpr\columnwidth-2em}}
{\end{minipage}}
\begin{document}
Hello
\begin{myeventeq}{piece of bold text}
condition 1 to be satisfied\\
condition 2 to be satisfied
\end{myeventeq}
\end{document}