LaTeX writer: allow alt text in figure to wrap.

Closes #11924.
This commit is contained in:
John MacFarlane committed 2026-10-02 10:00:31 -07:00
1 parent dc8f449fc7
commit 2d244c7180
5 files changed
+14 -8

No files matched your search

+6 -3
View File
@@ -12,7 +12,8 @@
^D
\begin{figure}
\centering
\pandocbounded{\includegraphics[keepaspectratio,alt={This is a figure.}]{img.jpg}}
\pandocbounded{\includegraphics[keepaspectratio,alt={This is a
figure.}]{img.jpg}}
\caption{This is a figure.}
\end{figure}
@@ -50,7 +51,8 @@ Right & Left & Center & Default \\
\begin{figure}
\centering
\caption{This is a figure.}
\pandocbounded{\includegraphics[keepaspectratio,alt={This is a figure.}]{img.jpg}}
\pandocbounded{\includegraphics[keepaspectratio,alt={This is a
figure.}]{img.jpg}}
\end{figure}
\begin{longtable}[]{@{}rlcl@{}}
@@ -86,7 +88,8 @@ Right & Left & Center & Default \\
^D
\begin{figure}
\centering
\pandocbounded{\includegraphics[keepaspectratio,alt={This is a figure.}]{img.jpg}}
\pandocbounded{\includegraphics[keepaspectratio,alt={This is a
figure.}]{img.jpg}}
\caption{This is a figure.}
\end{figure}
+2 -1
View File
@@ -60,7 +60,8 @@
\begin{figure}
\centering
\pandocbounded{\includegraphics[keepaspectratio,alt={This is a test x = 5}]{test.png}}
\pandocbounded{\includegraphics[keepaspectratio,alt={This is a test x =
5}]{test.png}}
\caption{This is a test
\protect\VERB|\NormalTok{x }\OperatorTok{=} \DecValTok{5}|}
\end{figure}
+2 -1
View File
@@ -4,7 +4,8 @@
^D
\begin{figure}
\centering
\pandocbounded{\includegraphics[keepaspectratio,page=13,trim=1cm,clip,width=4cm,alt={Global frog population.}]{slides.pdf}}
\pandocbounded{\includegraphics[keepaspectratio,page=13,trim=1cm,clip,width=4cm,alt={Global
frog population.}]{slides.pdf}}
\caption{Global frog population.}
\end{figure}