From a0e0133ed30f998fe9f08275cd3df6bd4ff3279e Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Tue, 25 Jun 2024 10:20:56 -0500 Subject: [PATCH] Switch the default svg method to dvisvgm. This corresponds to the similar change in webwork2. Note that this is not used by webwork2 though. --- conf/pg_config.dist.yml | 2 +- lib/LaTeXImage.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/pg_config.dist.yml b/conf/pg_config.dist.yml index 80e5c4a920..4ffd896676 100644 --- a/conf/pg_config.dist.yml +++ b/conf/pg_config.dist.yml @@ -110,7 +110,7 @@ specialPGEnvironmentVars: # Binary that the PGtikz.pl and PGlateximage.pl macros will use to create svg images. # This should be either 'pdf2svg' or 'dvisvgm'. - latexImageSVGMethod: pdf2svg + latexImageSVGMethod: dvisvgm # When ImageMagick is used for image conversions, this sets the default options. # See https://imagemagick.org/script/convert.php for a full list of options. diff --git a/lib/LaTeXImage.pm b/lib/LaTeXImage.pm index 8f44425dbb..d8ccef7313 100644 --- a/lib/LaTeXImage.pm +++ b/lib/LaTeXImage.pm @@ -41,7 +41,7 @@ sub new { texPackages => [], addToPreamble => '', ext => 'svg', - svgMethod => 'pdf2svg', + svgMethod => 'dvisvgm', convertOptions => { input => {}, output => {} }, imageName => '' };