
Criei o seguinte tcolorbox:
\documentclass{article}
\usepackage{tcolorbox}
\usepackage{lineno}
\begin{document}
\begin{tcolorbox}[middle=0mm,boxsep=0mm]
Headers
\tcblower
\setlength\linenumbersep{-.1cm} %sets the distance of the line numbers from the margin
\setcounter{linenumber}{1}
\begin{internallinenumbers}
\begin{itemize}
\item bullet 1
\item bullet 2
\item bullet 3
\begin{equation}
a = b,
\end{equation}
\noindent where $a$ and $b$ are...
\end{itemize}
\end{internallinenumbers}
\end{tcolorbox}
\end{document}
No entanto, como você pode ver, os números das linhas na margem esquerda não estão aparecendo bem. Eu gostaria de não numerar as linhas vazias (mas apenas numerar os marcadores e a equação). Existe uma maneira de tornar o número da linha mais razoável?
Responder1
Com base em um comentário feito pelo OP, "se ajudar, ficarei feliz se as equações não forem numeradas", pode-se resolver o problema colocando a matemática como embutida, fingindo displaymath com deslocamentos de parágrafo e \hfil
s.
\documentclass{article}
\usepackage{tcolorbox}
\usepackage{lineno}
\begin{document}
\begin{tcolorbox}[middle=0mm,boxsep=0mm]
Headers
\tcblower
\setlength\linenumbersep{-.1cm} %sets the distance of the line numbers from the margin
\setcounter{linenumber}{1}
\begin{internallinenumbers}
\begin{itemize}
\item bullet 1
\item bullet 2
\item bullet 3
\hfil$%\begin{equation}
a = b,
$\hfil%\end{equation}
\noindent where $a$ and $b$ are...
\end{itemize}
\end{internallinenumbers}
\end{tcolorbox}
\end{document}