PhoenixLecture  2.0.0
Set of tools to make lectures
platexobj_formulae.h
Go to the documentation of this file.
1 /***************************************
2  Auteur : Pierre Aubert
3  Mail : pierre.aubert@lapp.in2p3.fr
4  Licence : CeCILL-C
5 ****************************************/
6 
7 #ifndef __PLATEXOBJ_FORMULAE_H__
8 #define __PLATEXOBJ_FORMULAE_H__
9 
10 #include <string>
11 #include <map>
12 
13 #include "PPath.h"
14 #include "dico_replace_var.h"
15 #include "PLatexObj.h"
16 
18 #define FORMULAE_RECOVER_FILE ".formulae_recover.map"
19 
21 typedef std::map<PString,PString> PMapFormula;
22 
24 struct POutoutMode{
53 };
54 
55 #include "platexobj_utils.h"
56 
57 void platexobj_loadFormulaeMap(PMapFormula & mapFormula);
58 void platexobj_saveFormulaeMap(const PMapFormula & mapFormula);
59 
60 PString platexobj_htmlStrLatex(POutoutMode & outputMode, const PLatexObj & obj, const PString & latexEnv);
61 PString platexobj_htmlStrInlineMath(POutoutMode & outputMode, const PLatexObj & obj);
62 
63 
64 void platexobj_update_theme(POutoutMode & outputMode, const PPath & themeBaseFile);
65 void platexobj_theme_set_var(POutoutMode & outputMode, const PString & varName, const PString & value);
66 void platexobj_theme_init_var(POutoutMode & outputMode);
67 void platexobj_theme_update_var(POutoutMode & outputMode, const PString & pageLink, const PString & pageTitle,
68  const PString & prevSecLink, const PString & prevSecTitle,
69  const PString & nextSecLink, const PString & nextSecTitle,
70  const PString & parentSecLink, const PString & parentSecTitle,
71  const PPath & currentSourceFile, size_t currentSourceLine);
73 
74 #endif
Full menu of all site.
Definition: PLatexObj.h:168
Describe a latex object.
Definition: PLatexObj.h:40
Class used to parse nested call variables.
Definition: PNestedCall.h:36
Path of a directory or a file.
Definition: PPath.h:17
Extends the std::string.
Definition: PString.h:16
std::map< PString, PString > PMapKnownVar
Map of known variables.
std::map< PString, PString > PMapFormula
Map of the formulae generated by the ptex2html which can be reused by other PLatexObj which have the ...
void platexobj_theme_init_var(POutoutMode &outputMode)
Initialise basic variables of POutoutMode.
PString platexobj_theme_createPage(POutoutMode &outputMode)
Create the page from variables in POutoutMode.
void platexobj_theme_update_var(POutoutMode &outputMode, const PString &pageLink, const PString &pageTitle, const PString &prevSecLink, const PString &prevSecTitle, const PString &nextSecLink, const PString &nextSecTitle, const PString &parentSecLink, const PString &parentSecTitle, const PPath &currentSourceFile, size_t currentSourceLine)
Update var of POutoutMode for current section.
PString platexobj_htmlStrLatex(POutoutMode &outputMode, const PLatexObj &obj, const PString &latexEnv)
Convert a PLatexObj into a string.
void platexobj_theme_set_var(POutoutMode &outputMode, const PString &varName, const PString &value)
Set a variable in the map of variable for theme (will take account the IS_XXX_BEGIN accordingly if th...
PString platexobj_htmlStrInlineMath(POutoutMode &outputMode, const PLatexObj &obj)
Convert a PLatexObj into a string.
void platexobj_loadFormulaeMap(PMapFormula &mapFormula)
Load the map file of all the formulae if it exists.
void platexobj_update_theme(POutoutMode &outputMode, const PPath &themeBaseFile)
Update the theme of the generated website.
void platexobj_saveFormulaeMap(const PMapFormula &mapFormula)
Save the map file of the formulae to avoid extra latex call.
Output mode of the html backend.
bool isEnableBookFeedback
True to enable feedback in book mode.
bool isMathJaxMode
True to use the MathJax backend, false to use the latex backend.
PFullMenu fullMenu
Full menu for book theme.
PString bookGitlabUrl
Gitlab url of the current sources of the project.
PMapFormula mapFormula
Map of the formula which are already saved as png files.
PMapKnownVar mapVar
Map of output var which are use to fill the output themes.
bool isBookTheme
True to activate the book theme.
PString bookMasterProjectUrl
Master project url in book mode.
PString bookMail
Mail to be used to contact authors in book mode.
bool isBibliography
True if the generated web site has a bibliography, false otherwise.
PString bookSideBarWidth
Witdh of the book side bar.
bool isRemoteMathjax
True to activate mathjax but in remote mode (so no need to have mathjax in the generated site)
PString currentStyle
Current style to be used for the generated pages of the site.
PNestedCall themeCall
Parsed theme to be used.