WordPress.org

Plugin Directory

wp-latex

Opened 5 years ago

#1581 new defect

wp-latex local dvipng conversion fails

Reported by: john_mcqueen Owned by: mdawaffe
Priority: highest Severity: blocker
Plugin: wp-latex Keywords: escape
Cc:

Description

The latex file that is produced for the dvipng method translates \e into an escape character causing latex to fail:

The lines in automattic-latex-dvipng.php in the wrap() function of class Automattic_Latex_DVIPNG that read:

if ( $this->size_latex )

$string .= "\n\end{{$this->size_latex}}";

$string .= "\n\end{document}";

should be:

if ( $this->size_latex )

$string .= "\n
end{{$this->size_latex}}";

$string .= "\n
end{document}";

Change History (0)

Note: See TracTickets for help on using tickets.