src/Pdf/Engine/TexToPdfEngine.php
protected function _cleanUpTexFiles($texFile)
    {
        $extensions = ['aux', 'log', 'pdf'];
        foreach ($extensions as $extension) {
            $texFile = $texFile . '.' . $extension;
            if (file_exists($texFile)) {
                unlink($texFile);
            }
        }
    }
protected function _cleanUpTexFiles($texFile)
    {
        $extensions = ['aux', 'log', 'pdf'];
        foreach ($extensions as $extension) {
            $texFile = $texFile . '.' . $extension;
            if (file_exists($texFile)) {
                unlink($texFile);
            }
        }
    }
protected function _cleanUpTexFiles ( $ texFile ) { $ extensions = [ 'aux' , 'log' , 'pdf' ] ; foreach ( $ extensions as $ extension ) { $ texFile = $ texFile . '.' . $ extension ; if ( file_exists ( $ texFile ) ) { unlink ( $ texFile ) ; } } }
Clean up the files generated by tex.

@param string $texFile Tex file name.
@return void
Clean up the files generated by tex .