pygacity.pythontex.monkeypatches.chemeqsystem module

Monkeypatches for ChemEqSystem class in sandler module (imported from sandlertools) to add LaTeX reporting capabilities.

pygacity.pythontex.monkeypatches.chemeqsystem.stoichiometrictable_as_tex(self, sig: int = 3)[source]

Generates LaTeX formatted stoichiometric table.

Parameters:

sig (int, optional) – number of significant figures for floating point numbers (default is 3)

Returns:

LaTeX formatted stoichiometric table

Return type:

str

pygacity.pythontex.monkeypatches.chemeqsystem.texgen_kacalculations(self, simplified=False, sig=5) str[source]

Generates LaTeX string for equilibrium constant calculations.

Parameters:
  • simplified (bool, optional) – whether to use simplified van’t Hoff equation (default is False)

  • sig (int, optional) – number of significant figures for formatting (default is 5)

Returns:

LaTeX formatted string of equilibrium constant calculations

Return type:

str

pygacity.pythontex.monkeypatches.chemeqsystem.thermochemicaltable_as_tex(self, sig: int = 3)[source]

Generates LaTeX formatted thermochemical data table for components.

Parameters:

sig (int, optional) – number of significant figures for floating point numbers (default is 3)

Returns:

LaTeX formatted thermochemical data table

Return type:

str