38 unsigned width()
const;
40 const std::vector<unsigned char>&
image()
const;
70 std::shared_ptr<TeXRequest>
checkin(
const std::string&,
71 const std::string& startwrap,
const std::string& endwrap);
72 std::shared_ptr<TeXRequest>
modify(std::shared_ptr<TeXRequest>,
const std::string&);
82 void checkout(std::shared_ptr<TeXRequest>);
90 std::set<std::shared_ptr<TeXRequest> >
requests;
99 void convert_set(std::set<std::shared_ptr<TeXRequest> >&);
std::string handle_latex_errors(const std::string &, int exit_code) const
Definition: TeXEngine.cc:112
unsigned width() const
Definition: TeXEngine.cc:92
std::string convert_unicode_to_tex(const std::string &) const
Definition: TeXEngine.cc:27
double scale_
Definition: TeXEngine.hh:95
std::string preamble_string
Definition: TeXEngine.hh:92
std::string end_wrap
Definition: TeXEngine.hh:44
std::shared_ptr< TeXRequest > checkin(const std::string &, const std::string &startwrap, const std::string &endwrap)
Definition: TeXEngine.cc:227
const std::vector< unsigned char > & image() const
Definition: TeXEngine.cc:102
Definition: TeXEngine.hh:28
~TeXEngine()
Definition: TeXEngine.cc:163
void convert_all()
Generate images for all TeXRequests which are labelled as needing conversion.
Definition: TeXEngine.cc:267
void erase_file(const std::string &) const
Definition: TeXEngine.cc:107
void set_scale(double)
Definition: TeXEngine.cc:209
TeXRequest()
Definition: TeXEngine.cc:222
bool needs_generating
Definition: TeXEngine.hh:45
void checkout_all()
Definition: TeXEngine.cc:246
void convert_one(std::shared_ptr< TeXRequest >)
Definition: TeXEngine.cc:283
Definition: TeXEngine.hh:33
int font_size_
Definition: TeXEngine.hh:94
std::set< std::shared_ptr< TeXRequest > > requests
Definition: TeXEngine.hh:90
TeXEngine is used to convert LaTeX strings into PNG images.
Definition: TeXEngine.hh:26
void convert_set(std::set< std::shared_ptr< TeXRequest > > &)
Definition: TeXEngine.cc:291
std::vector< unsigned char > image_
Definition: TeXEngine.hh:46
int horizontal_pixels_
Definition: TeXEngine.hh:93
std::vector< std::string > latex_packages
Definition: TeXEngine.hh:57
void set_geometry(int horizontal_pixels)
Definition: TeXEngine.cc:183
void invalidate_all()
Mark all TeXRequests as needing re-generating.
Definition: TeXEngine.cc:251
TeXException(const std::string &)
Definition: TeXEngine.cc:22
unsigned width_
Definition: TeXEngine.hh:47
unsigned height_
Definition: TeXEngine.hh:47
std::shared_ptr< TeXRequest > modify(std::shared_ptr< TeXRequest >, const std::string &)
Definition: TeXEngine.cc:260
void set_font_size(int font_size)
Definition: TeXEngine.cc:196
static double millimeter_per_inch
Definition: TeXEngine.hh:88
std::string start_wrap
Definition: TeXEngine.hh:44
unsigned height() const
Definition: TeXEngine.cc:97
void checkout(std::shared_ptr< TeXRequest >)
Mark a TeXRequest as no longer being needed.
Definition: TeXEngine.cc:239
TeXEngine()
Definition: TeXEngine.cc:167
std::string latex_string
Definition: TeXEngine.hh:43