fn tex_pass(
        &mut self,
        rerun_explanation: Option<&str>,
        status: &mut dyn StatusBackend,
    ) -> Result<Option<&'static str>> {
        let result = {
            let mut stack = self.io.as_stack();
            if let Some(s) = rerun_explanation {
                status.note_highlighted("Rerunning ", "TeX", &format!(" because {} ...", s));
            } else {
                status.note_highlighted("Running ", "TeX", " ...");
            }

            TexEngine::new()
                .halt_on_error_mode(true)
                .initex_mode(self.output_format == OutputFormat::Format)
                .synctex(self.synctex_enabled)
                .semantic_pagination(self.output_format == OutputFormat::Html)
                .process(
                    &mut stack,
                    &mut self.events,
                    status,
                    &self.format_name,
                    &self.primary_input_tex_path,
                    &self.unstables,
                )
        };

        let warnings = match result {
            Ok(TexResult::Spotless) => None,
            Ok(TexResult::Warnings) =>
                    Some("warnings were issued by the TeX engine; use --print and/or --keep-logs for details."),
            Ok(TexResult::Errors) =>
                    Some("errors were issued by the TeX engine, but were ignored; \
                         use --print and/or --keep-logs for details."),
            Err(e) =>
                return Err(e.chain_err(|| ErrorKind::EngineError("TeX"))),
        };

        Ok(warnings)
    }
/// Run one pass of the TeX engine.
Run one pass of the TeX engine.
Run one pass of the TeX engine .
fn tex_pass(
        &mut self,
        rerun_explanation: Option<&str>,
        status: &mut dyn StatusBackend,
    ) -> Result<Option<&'static str>> {
        let result = {
            let mut stack = self.io.as_stack();
            if let Some(s) = rerun_explanation {
                status.note_highlighted("Rerunning ", "TeX", &format!(" because {} ...", s));
            } else {
                status.note_highlighted("Running ", "TeX", " ...");
            }
            TexEngine::new()
                .halt_on_error_mode(true)
                .initex_mode(self.output_format == OutputFormat::Format)
                .synctex(self.synctex_enabled)
                .semantic_pagination(self.output_format == OutputFormat::Html)
                .process(
                    &mut stack,
                    &mut self.events,
                    status,
                    &self.format_name,
                    &self.primary_input_tex_path,
                    &self.unstables,
                )
        };
        let warnings = match result {
            Ok(TexResult::Spotless) => None,
            Ok(TexResult::Warnings) =>
                    Some("warnings were issued by the TeX engine; use --print and/or --keep-logs for details."),
            Ok(TexResult::Errors) =>
                    Some("errors were issued by the TeX engine, but were ignored; \
                         use --print and/or --keep-logs for details."),
            Err(e) =>
                return Err(e.chain_err(|| ErrorKind::EngineError("TeX"))),
        };
        Ok(warnings)
    }
fn tex_pass ( & mut self , rerun_explanation : Option < & str > , status : & mut dyn StatusBackend , ) -> Result < Option < & ' static str > > { let result = { let mut stack = self . io . as_stack ( ) ; if let Some ( s ) = rerun_explanation { status . note_highlighted ( " " , " " , & format ! ( " " s ) ) ; } else { status . note_highlighted ( " " , " " , " " ) ; } TexEngine :: new ( ) . halt_on_error_mode ( true ) . initex_mode ( self . output_format == OutputFormat :: Format ) . synctex ( self . synctex_enabled ) . semantic_pagination ( self . output_format == OutputFormat :: Html ) . process ( & mut stack , & mut self . events , status , & self . format_name , & self . primary_input_tex_path , & self . unstables , ) } ; let warnings = match result { Ok ( TexResult :: Spotless ) => None , Ok ( TexResult :: Warnings ) => Some ( " " ) , Ok ( TexResult :: Errors ) => Some ( " \
 " ) , Err ( e ) => return Err ( e . chain_err ( | | ErrorKind :: EngineError ( " " ) ) ) , } ; Ok ( warnings ) }
Run one pass of the TeX engine.
Run one pass of the TeX engine .
&mut self
rerun_explanation
Option<&str>
status
&mut dyn StatusBackend