
Estou tentando criar um ambiente simples que consiste em duas partes:
- texto em negrito seguido por uma seta para a direita
- (múltiplas) linhas de texto com recuo, abaixo do texto em negrito
O que tenho até agora:
\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}
Isso produz o seguinte:
Qual é o problema atualmente é:
- as condições devem estar abaixo do texto em negrito
- a segunda subfigura cai da página.
Responder1
Se você quiser evitar o list
ambiente, você pode criar apenas um ambiente para sua estrutura construída em torno de um arquivo minipage
. O problema com isso é que ele não quebra as páginas. Mas como você mencionou, subfig
presumo que esse ambiente não seja algo destinado a abranger várias 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}