Source: yosys
Followup-For: Bug #1093368
Control: tags -1 + patch

Dear Maintainer,

the problematic code is in PRESENTATION_ExAdv.tex

\hfil\begin{tikzpicture}
<snip>
\node at (1,-1.7) {\begin{lstlisting}[linewidth=5.5cm, frame=single, 
basicstyle=\ttfamily\fontsize{8pt}{10pt}\selectfont, langua
ge=ys]
techmap -map macc_xilinx_unwrap_map.v ;;
\end{lstlisting}};
\draw[-latex] (4,-0.7) .. controls (5,-1.7) .. (4,-2.7);
\end{tikzpicture}

That combination of tikz & lstlisting does not work together. The attached
patch replaces the lstlisting by verbatim. This does not give completely the
intended result, but at least a buildably TeX file.

Hilmar

-- System Information:
Debian Release: 12.9
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: arm64 (aarch64)
Foreign Architectures: armhf

Kernel: Linux 6.6.62+rpt-rpi-2712 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_DIE, TAINT_CRAP
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
--- yosys-0.23.orig/manual/PRESENTATION_ExAdv.tex
+++ yosys-0.23/manual/PRESENTATION_ExAdv.tex
@@ -791,9 +791,10 @@
 \hfil\begin{tikzpicture}
 \node at (0,0) {\includegraphics[width=11cm,trim=1.5cm 1.5cm 1.5cm 1.5cm]{PRESENTATION_ExAdv/macc_xilinx_test2d.pdf}};
 \node at (0,-4) {\includegraphics[width=8cm,trim=1.5cm 1.5cm 1.5cm 1.5cm]{PRESENTATION_ExAdv/macc_xilinx_test2e.pdf}};
-\node at (1,-1.7) {\begin{lstlisting}[linewidth=5.5cm, frame=single, basicstyle=\ttfamily\fontsize{8pt}{10pt}\selectfont, language=ys]
-techmap -map macc_xilinx_unwrap_map.v ;;
-\end{lstlisting}};
+%\node at (1,-1.7) {\begin{lstlisting}[linewidth=5.5cm, frame=single, basicstyle=\ttfamily\fontsize{8pt}{10pt}\selectfont, language=ys]%
+%techmap -map macc_xilinx_unwrap_map.v ;;
+%\end{lstlisting}};
+\node at (1,-1.7) {\verb+techmap -map macc_xilinx_unwrap_map.v ;;+};
 \draw[-latex] (4,-0.7) .. controls (5,-1.7) .. (4,-2.7);
 \end{tikzpicture}
 \end{frame}

Attachment: signature.asc
Description: PGP signature

Reply via email to