Dies ist der Code:
\documentclass{acmart}
\usepackage{listings}
\begin{document}
\begin{lstlisting}[frame=leftline]
Hello,
world!
\end{lstlisting}
\end{document}
So sieht es aus:
Ist es möglich, die linke Linie durchgezogen statt gestrichelt zu machen? Sie ist übrigens durchgezogen, wenn die Dokumentklasse article
statt ist acmart
.
Antwort1
Ich glaube, dass tcolorbox
es besser ist, Frames hinzuzufügen. Hier ist jedenfalls ein Patch, der funktionieren sollte.
\documentclass{acmart}
\usepackage{listings}
\makeatletter
\lst@AddToHook{Init}{\setlength{\lineskip}{0pt}}
\makeatother
\begin{document}
\begin{lstlisting}[frame=leftline]
Hello,
world!
\end{lstlisting}
\end{document}