.. _f-latexfile: module ``homeblog.latex_file`` ============================== .. inheritance-diagram:: ensae_teaching_cs.homeblog.latex_file Short summary +++++++++++++ module ``ensae_teaching_cs.homeblog.latex_file`` Ths file contains some functions to extract pieces of codes from a latex file :githublink:`%|py|5` Classes +++++++ +--------------------------------------------------------------------------------------+------------------------------------------------------------------+ | class | truncated documentation | +======================================================================================+==================================================================+ | :class:`LatexCode ` | many latex contains examples of codes this describes one of them | +--------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :class:`LatexFile ` | Description of a latex file. | +--------------------------------------------------------------------------------------+------------------------------------------------------------------+ | :class:`LatexIncludedFile ` | Describes a file included a latex file. | +--------------------------------------------------------------------------------------+------------------------------------------------------------------+ Static Methods ++++++++++++++ +-----------------------------------------------------------------------------------------+-------------------------------------------------------------------+ | staticmethod | truncated documentation | +=========================================================================================+===================================================================+ | :meth:`dichotomy_find ` | find the greatest position which contains a value below ``value`` | +-----------------------------------------------------------------------------------------+-------------------------------------------------------------------+ Methods +++++++ +-------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+ | method | truncated documentation | +=================================================================================================+===============================================================================================================+ | :py:meth:`__init__ ` | constructor | +-------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+ | :py:meth:`__init__ ` | constructor | +-------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+ | :py:meth:`__init__ ` | | +-------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+ | :py:meth:`__str__ ` | usual | +-------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+ | :py:meth:`__str__ ` | usual | +-------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+ | :meth:`code_in_html ` | produces html format containing all the code example | +-------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+ | :meth:`enumerate_code ` | enumerate all pieces of code (in ``verbatim``, ``verbatimx`` or ``\inputcode`` sections | +-------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+ | :meth:`enumerate_code ` | Enumerates all pieces of code (in ``verbatim``, ``verbatimx`` or ``\inputcode`` sections. | +-------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+ | :meth:`init ` | Completes the contructor. | +-------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+ | :meth:`read ` | read the latex file and stores into ``self.content``, if the method is called a second time, the function ... | +-------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: ensae_teaching_cs.homeblog.latex_file :members: :special-members: __init__ :show-inheritance: