summaryrefslogtreecommitdiff
path: root/src/phplatex.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/phplatex.php')
-rw-r--r--src/phplatex.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/phplatex.php b/src/phplatex.php
index 4d2c60b..2b9f490 100644
--- a/src/phplatex.php
+++ b/src/phplatex.php
@@ -82,7 +82,7 @@ function texify($string,$dpi='90',$fore="",$back="",$extraprelude="",$trans=FALS
# check if image for that TeX in the cache, return img HTML if it exists
if (file_exists($heredir.'/lateximages/'.$hashfn.'.'.$imgfmt))
- return '<img style="'.$verticalalign.'" title="'.$stralt.'" alt="'.$stralt.'" src="/lateximages/'.$hashfn.'.'.$imgfmt.'">';
+ return '<img class="lateximage" style="'.$verticalalign.'" title="'.$stralt.'" alt="'.$stralt.'" srcset="/lateximages/'.$hashfn.'.'.$imgfmt.' 2x">';
# otherwise try to make and store:
@@ -134,6 +134,6 @@ function texify($string,$dpi='90',$fore="",$back="",$extraprelude="",$trans=FALS
copy($tfn.'.'.$imgfmt, $heredir.'/lateximages/'.$hashfn.'.'.$imgfmt);
# Clean up temporary files, and return link to just-created image
- return phplatex_cleantmp($tfn,$heredir).'<img style="'.$verticalalign.'" title="'.$stralt.'" alt="LaTeX formula: '.$stralt.'" src="/lateximages/'.$hashfn.'.'.$imgfmt.'">';
+ return phplatex_cleantmp($tfn,$heredir).'<img class="lateximage" style="'.$verticalalign.'" title="'.$stralt.'" alt="LaTeX formula: '.$stralt.'" srcset="/lateximages/'.$hashfn.'.'.$imgfmt.' 2x">';
}
?>