46 if(labelName ==
""){
return "";}
47 PString body(
"\\label{"+labelName+
"}");
100 PString body(
"\\spaceparagraph{}\n");
192 PString body(
"\\includegraphics");
194 body +=
"["+option+
"]";
196 body +=
"{" + obj.
getName() +
"}\n";
209 PString body(
"\n\n" + indentation);
224 body += indentation +
"\n\\end{" + obj.
getName() +
"}";
248 body +=
"\\end{"+obj.
getName()+
"}";
262 PString body(
"\\begin{"+baliseName+
"}\n");
264 body +=
"\\end{"+baliseName+
"}";
276 PString body(
"\\begin{tabular}\n");
316 PString body(indentation +
"\\begin{"+envName+
"}\n");
329 PString body(indentation +
"\\begin{columns}\n");
331 body += indentation +
"\\end{columns}\n";
342 PString body(
"\n\n\\" + latexFunction +
"{");
344 for(PVecLatexObj::const_iterator it(vecObj.begin()); it != vecObj.end(); ++it){
366 if(title ==
""){
return "";}
367 PString body(
"\\" + latexFunction +
"{"+title+
"}\n");
384 for(PVecLatexObj::const_iterator it(vecObj.begin()); it != vecObj.end(); ++it){
396 PString body(
"\\begin{"+latexEnvName+
"}\n");
420 PString body(indentation +
"\\begin{itemize}\n");
422 body += indentation +
"\\end{itemize}\n";
433 PString body(indentation +
"\\begin{enumerate}\n");
435 body += indentation +
"\\end{enumerate}\n";
459 body +=
"[" + obj.
getText() +
"]";
461 body +=
"{" + fileName +
"}\n";
555 for(PVecLatexObj::const_iterator it(vecObj.begin()); it != vecObj.end(); ++it){
570 std::cerr <<
"platexobj_tex : can't save file '"<<indexTex<<
"'" << std::endl;
573 std::cerr <<
"platexobj_tex : save file '"<<indexTex<<
"'" << std::endl;
const std::vector< PLatexObj > & getVecContent() const
Gets the vecContent of the PLatexObj.
const std::vector< PLatexObj > & getComplexTitle() const
Gets the complexTitle of the PLatexObj.
const PString & getLabelName() const
Gets the labelName of the PLatexObj.
const PString & getSubTitle() const
Gets the subTitle of the PLatexObj.
const PLatexType::PLatexType & getType() const
Gets the type of the PLatexObj.
const PString & getName() const
Gets the name of the PLatexObj.
const PString & getLink() const
Gets the link of the PLatexObj.
const PString & getAuthor() const
Gets the author of the PLatexObj.
const PString & getText() const
Gets the text of the PLatexObj.
const PString & getDate() const
Gets the date of the PLatexObj.
Path of a directory or a file.
bool saveFileContent(const PString &content) const
Save a PString in a file.
PString eraseFirstLastChar(const PString &vecChar) const
Erase first and last char in a string.
PLatexType
Type of the PLatexObj.
bool platexobj_tex(POutputTex &outputMode, const PLatexObj &obj)
Save the main PLatexObj.
PString platexobj_texStrColumns(POutputTex &outputMode, const PLatexObj &obj, const PString &indentation)
Convert a PLatexObj into a string.
PString platexobj_texStrExtraParser(const PLatexObj &obj)
Convert a PLatexObj into a string.
PString platexobj_texStrMathEnv(POutputTex &outputMode, const PLatexObj &obj, const PString &latexEnvName)
convert fomulae env into latex
PString platexobj_texStrEnumerate(POutputTex &outputMode, const PLatexObj &obj, const PString &indentation)
Convert an itemize environement in tex.
PString platexobj_texStrVideo(const PLatexObj &obj)
Convert a video call in tex.
PString platexobj_texStrItemize(POutputTex &outputMode, const PLatexObj &obj, const PString &indentation)
Convert an itemize environement in tex.
PString platexobj_texStrTextDebug(const PLatexObj &obj)
Convert a PLatexObj into a string.
PString platexobj_texCreateLabelSearchLink(const PString &labelName)
Create the link to the label of the current PLatexObj if it exist.
PString platexobj_texStrText(const PLatexObj &obj)
Convert a PLatexObj into a string.
PString platexobj_texStrTextIt(const PLatexObj &obj)
Convert a PLatexObj into a string.
PString platexobj_texStrTabCell(POutputTex &outputMode, const PLatexObj &obj, const PString &indentation)
Convert a cell into a tex string.
PString platexobj_texStrUrl(const PLatexObj &obj)
Convert a PLatexObj into a string.
PString platexobj_texStrComment(const PLatexObj &obj)
Convert a PLatexObj into a string.
PString platexobj_texStrAllPart(POutputTex &outputMode, const PLatexObj &obj, const PString &latexFunction, const PString &indentation)
Convert a PLatexObj into a string.
PString platexobj_texStr(POutputTex &outputMode, const PLatexObj &obj, const PString &indentation, bool allowText)
Convert a PLatexObj into a string.
PString platexobj_texStrTextFootnote(POutputTex &outputMode, const PLatexObj &obj)
Convert a PLatexObj into a string.
bool isPLatexObjInline(const PLatexObj &obj)
Say if the given PLatexObj is inlined.
PString platexobj_texStrImage(const PLatexObj &obj)
Convert a PLatexObj into a string.
PString platexobj_texStrItem(POutputTex &outputMode, const PLatexObj &obj, const PString &indentation)
Convert an itemize environement in tex.
POutputTex defaultPOutputTex()
Create a default POutputTex.
PString platexobj_texStrCitation(const PLatexObj &obj)
Convert a PLatexObj into a string.
PString platexobj_indexTex(POutputTex &outputMode, const PLatexObj &obj)
Save the index.tex file.
PString platexobj_texStrRef(const PLatexObj &obj)
Convert a PLatexObj into a string.
PString platexobj_texStrTextBf(const PLatexObj &obj)
Convert a PLatexObj into a string.
PString platexobj_texStrTabRow(POutputTex &outputMode, const PLatexObj &obj, const PString &indentation)
Convert a row into a tex string.
PString platexobj_texStrSpaceParagraph(const PLatexObj &obj)
Convert a PLatexObj into a string.
PString platexobj_texStrGetenv(const PLatexObj &obj)
Convert a PLatexObj into a string.
PString platexobj_texStrInlineMath(POutputTex &outputMode, const PLatexObj &obj)
convert inline fomulae into latex
PString platexobj_texMainTitle(const PString &title, const PString &latexFunction)
Convert a PLatexObj into a string.
PString platexobj_texStrExtraEnvironement(POutputTex &outputMode, const PLatexObj &obj, const PString &indentation)
Convert a PLatexObj into a string.
PString platexobj_texStrWip(POutputTex &outputMode, const PLatexObj &obj)
Convert a PLatexObj into a string.
PString platexobj_texStrExtraFunction(POutputTex &outputMode, const PLatexObj &obj, const PString &indentation)
Convert a PLatexObj into a string.
PString platexobj_texStrBasicEnv(POutputTex &outputMode, const PLatexObj &obj, const PString &baliseName, const PString &indentation, bool allowText)
Convert a basic environement into a string.
PString platexobj_texStrSection(POutputTex &outputMode, const PLatexObj &obj, const PString &latexFunction)
Save a section in tex.
PString platexobj_texStrCaption(POutputTex &outputMode, const PLatexObj &obj)
Convert a PLatexObj into a string.
PString platexobj_texStrTabular(POutputTex &outputMode, const PLatexObj &obj, const PString &indentation)
Convert a tabular into a tex string.
PString platexobj_texStrHref(const PLatexObj &obj)
Convert a PLatexObj into a string.
std::vector< PLatexObj > PVecLatexObj
Vector of obj.
Output mode for tex backend.
bool isLastObjInline
True if the last used PLatexObj was inlined, false if it was a block.
bool splitPart
True to split parts in separates files.
bool splitSection
True to split sections in separates files.
bool splitChapter
True to split charpters in separates files.
bool splitSubSubSection
True to split subsubsections in separates files.
bool splitSubSection
True to split subsections in separates files.