CbmRoot
|
Plain LaTeX document engine. More...
#include <CbmQaReportLatexEngine.h>
Public Member Functions | |
std::string | FigureBody (const Figure &figure) const override |
Creates a body for figure. | |
std::string | HeaderBody (const Header &header) const override |
Creates a body for header. | |
std::string | SectionBody (const Section §ion) const override |
Creates a body for section. | |
std::string | TableBody (const Table &table) const override |
Creates a body for table. | |
std::string | TailBody (const Tail &tail) const override |
Creates a body for tail. | |
std::string | ScriptExtention () const override |
Returns script extention. | |
std::string | MyName () const override |
Returns engine name. | |
void | Compile (const std::string &source) const override |
Compiles source. | |
void | SetLatexCompiler (std::string_view latexCompiler) |
Sets the LaTeX compilation program name. | |
Private Attributes | |
std::string | fsLatexCompiler = "pdflatex -interaction=nonstopmode" |
Static Private Attributes | |
static constexpr double | kFigureWidth = 1.0 |
Figure width [in textwidth]. | |
Plain LaTeX document engine.
Definition at line 21 of file CbmQaReportLatexEngine.h.
|
overridevirtual |
Compiles source.
source | Source path |
Reimplemented from cbm::qa::report::Engine.
Definition at line 257 of file CbmQaReportLatexEngine.cxx.
References fsLatexCompiler.
|
overridevirtual |
Creates a body for figure.
figure | Reference to figure |
Implements cbm::qa::report::Engine.
Definition at line 38 of file CbmQaReportLatexEngine.cxx.
References cbm::qa::report::LatexFormat::Apply(), cbm::qa::report::Figure::GetCaption(), cbm::qa::report::Element::GetLabel(), cbm::qa::report::Figure::GetPlotGrid(), cbm::qa::report::Figure::GetPlots(), and kFigureWidth.
|
overridevirtual |
Creates a body for header.
header | Reference to header |
Implements cbm::qa::report::Engine.
Definition at line 125 of file CbmQaReportLatexEngine.cxx.
References cbm::qa::report::LatexFormat::Apply(), cbm::qa::report::Header::GetAuthor(), cbm::qa::report::Header::GetPageHeader(), cbm::qa::report::Header::GetSetup(), cbm::qa::report::Header::GetSubtitle(), and cbm::qa::report::Header::GetTitle().
|
inlineoverridevirtual |
Returns engine name.
Implements cbm::qa::report::Engine.
Definition at line 52 of file CbmQaReportLatexEngine.h.
|
inlineoverridevirtual |
Returns script extention.
Implements cbm::qa::report::Engine.
Definition at line 49 of file CbmQaReportLatexEngine.h.
|
overridevirtual |
Creates a body for section.
section | Reference to section |
Implements cbm::qa::report::Engine.
Definition at line 181 of file CbmQaReportLatexEngine.cxx.
References cbm::qa::report::CollapsibleElement::GetDaughterElements(), cbm::qa::report::Section::GetLevel(), and cbm::qa::report::Element::GetTitle().
|
inline |
Sets the LaTeX compilation program name.
latexCompiler | A LaTeX compiler |
Definition at line 61 of file CbmQaReportLatexEngine.h.
References fsLatexCompiler.
|
overridevirtual |
Creates a body for table.
table | Reference to table |
Implements cbm::qa::report::Engine.
Definition at line 209 of file CbmQaReportLatexEngine.cxx.
References cbm::qa::report::LatexFormat::Apply(), cbm::qa::report::Table::GetCaption(), cbm::qa::report::Table::GetColumnTitle(), cbm::qa::report::Element::GetLabel(), cbm::qa::report::Table::GetNofCols(), and cbm::qa::report::Table::GetNofRows().
|
overridevirtual |
Creates a body for tail.
tail | Reference to tail |
Implements cbm::qa::report::Engine.
Definition at line 248 of file CbmQaReportLatexEngine.cxx.
|
private |
Definition at line 66 of file CbmQaReportLatexEngine.h.
Referenced by Compile(), and SetLatexCompiler().
|
staticconstexprprivate |
Figure width [in textwidth].
Definition at line 64 of file CbmQaReportLatexEngine.h.
Referenced by FigureBody().