protected function fixLatexDpi() {
		$fix = false;
		if ( ! $fix && ! empty( $_GET['optimize-for-print'] ) ) {
			$fix = true;
		}
		if ( ! $fix && strpos( $this->url, 'optimize-for-print=1' ) !== false ) {
			$fix = true;
		}
		if ( ! $fix && stripos( get_class( $this ), 'print' ) !== false ) {
			$fix = true;
		}

		if ( $fix ) {
			$this->url .= '&pb-latex-zoom=3';
			$this->cssOverrides .= "\n" . 'img.latex { prince-image-resolution: 300dpi; }' . "\n";
		}
	}