37 template <
typename... Arguments_>
40 Argument(arguments...);
43 template <
typename... Arguments_>
45 options_.emplace_back(argument);
46 Argument(arguments...);
49 template <
typename... Arguments_>
50 void Argument(
char const* argument, Arguments_... arguments) {
51 options_.emplace_back(argument);
52 Argument(arguments...);
55 template <
typename... Arguments_>
56 void Argument(
int argument, Arguments_... arguments) {
57 options_.emplace_back(std::to_string(argument));
58 Argument(arguments...);
61 template <
typename... Arguments_>
63 optional_.emplace_back(option.
Get());
64 Argument(arguments...);
67 template <
typename... Arguments_>
68 void Argument(
bool add_line, Arguments_... arguments) {
70 Argument(arguments...);
73 template <
typename... Arguments_>
75 optional_.emplace_back(argument);
93 std::vector<std::string> options_;
95 std::vector<std::string> optional_;
99 bool add_line_ =
false;
110 template <
typename... Arguments_>
112 Command(
"usepackage", package) {
113 Argument(arguments...);
132 template <
typename Value>
143 template <
typename... Arguments_>
145 Command(
"documentclass", document_class, true) {
155 template <
typename... Arguments_>
176 template <
typename... Arguments_>
178 return (new_line_ ?
'\n' :
'\0') +
Command(
"begin", name_,
true, arguments...).
str();
200 template <
typename Value_>
211 Command(
"multicolumn", number, alignment, name) {}
std::string Macro(std::string const &string)
Definition: Command.cpp:21
void Argument(int argument, Arguments_...arguments)
Definition: Command.hh:56
RenewCommand(std::string const &command, Value value)
Definition: Command.hh:133
void Argument(Optional const &option, Arguments_...arguments)
Definition: Command.hh:62
MultiColumn(std::string const &name, int number, std::string const &alignment="c")
Definition: Command.hh:210
Article(Arguments_...arguments)
Definition: Command.hh:156
void Argument()
Definition: Command.hh:87
DocumentClass(const std::string &document_class, Arguments_...arguments)
Definition: Command.hh:144
Definition: Command.hh:105
void Argument(std::string const &argument, Arguments_...arguments)
Definition: Command.hh:44
void Argument(char const *argument, Arguments_...arguments)
Definition: Command.hh:50
UsePackage(std::string const &package, Arguments_...arguments)
Definition: Command.hh:111
void Argument(bool add_line, Arguments_...arguments)
Definition: Command.hh:68
std::string Begin(Arguments_...arguments)
Definition: Command.hh:177
Unit(std::string const &unit)
Definition: Command.hh:197
Definition: Command.hh:16
Definition: Command.hh:138
Caption(const std::string &caption)
Definition: Command.hh:165
std::ostream & operator<<(std::ostream &stream, Command const &tex)
Definition: Command.cpp:38
std::string str() const
Definition: Command.cpp:26
Boosted Collider Analysis.
Definition: Analysis.hh:15
std::string Get() const
Definition: Command.cpp:16
Definition: Command.hh:192
Definition: Command.hh:32
cmake CMakeConfig cmake option(BUILD_TESTING"Build testing"OFF) if(BUILD_TESTING) enable_testing() find_package(Boost 1.56 COMPONENTS unit_test_framework REQUIRED) add_libraries($
Definition: CMakeLists.txt:18
Definition: Command.hh:169
Definition: Command.hh:127
Command(std::string const &command, Arguments_...arguments)
Definition: Command.hh:38
Definition: Command.hh:205
void Optional(std::string const &argument, Arguments_...arguments)
Definition: Command.hh:74
Definition: Command.hh:118
Definition: Command.hh:160
Definition: Command.hh:150
Unit(std::string const &unit, Value_ value)
Definition: Command.hh:201
Optional(std::string const &option)
Definition: Command.cpp:11