From 03bf653c6a99aaa3c6fe734a9b1221cd1543d45a Mon Sep 17 00:00:00 2001 From: Jaimos Skriletz Date: Tue, 12 May 2026 16:01:35 -0600 Subject: [PATCH] Add amsmath to the list of TeX packages in Plots. This is package contains some common tools that many may expect to be present when displaying mathematical formulas in labels, such as `\dfrac`. --- lib/Plots/Tikz.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Plots/Tikz.pm b/lib/Plots/Tikz.pm index 611273f29..831be1ca4 100644 --- a/lib/Plots/Tikz.pm +++ b/lib/Plots/Tikz.pm @@ -20,7 +20,7 @@ sub new { $image->convertOptions(eval('$main::envir{latexImageConvertOptions}') // { input => {}, output => {} }); $image->ext($plots->ext); $image->tikzLibraries('arrows.meta,plotmarks,calc,spath3'); - $image->texPackages(['pgfplots']); + $image->texPackages([ 'amsmath', 'pgfplots' ]); # Set the pgfplots compatibility, add the pgfplots fillbetween library, define a save # box that is used to wrap the axes in a nice rectangle frame with a white background, and redefine