35 unsigned width()
const;
37 const std::vector<unsigned char>&
image()
const;
40 std::string
latex()
const;
65 void set_scale(
double total_scale,
double device_scale);
83 std::shared_ptr<TeXRequest>
checkin(
const std::string&,
84 const std::string& startwrap,
const std::string& endwrap);
85 std::shared_ptr<TeXRequest>
modify(std::shared_ptr<TeXRequest>,
const std::string&);
95 void checkout(std::shared_ptr<TeXRequest>);
Definition: TeXEngine.hh:25
TeXException(const std::string &)
Definition: TeXEngine.cc:38
Definition: TeXEngine.hh:30
unsigned width_
Definition: TeXEngine.hh:48
std::string latex() const
Get the original LaTeX string.
Definition: TeXEngine.cc:118
bool needs_generating
Definition: TeXEngine.hh:45
std::string latex_string
Definition: TeXEngine.hh:43
const std::vector< unsigned char > & image() const
Definition: TeXEngine.cc:123
bool has_error
Definition: TeXEngine.hh:46
unsigned width() const
Definition: TeXEngine.cc:108
TeXRequest()
Definition: TeXEngine.cc:267
unsigned height_
Definition: TeXEngine.hh:48
unsigned height() const
Definition: TeXEngine.cc:113
std::string end_wrap
Definition: TeXEngine.hh:44
std::vector< unsigned char > image_
Definition: TeXEngine.hh:47
std::string start_wrap
Definition: TeXEngine.hh:44
TeXEngine is used to convert LaTeX strings into PNG images.
Definition: TeXEngine.hh:23
TeXEngine()
Definition: TeXEngine.cc:188
int get_font_size() const
Definition: TeXEngine.cc:238
double get_device_scale() const
Definition: TeXEngine.cc:262
std::set< std::shared_ptr< TeXRequest > > requests
Definition: TeXEngine.hh:103
~TeXEngine()
Definition: TeXEngine.cc:184
std::string handle_latex_errors(const std::string &, int exit_code) const
Definition: TeXEngine.cc:133
void set_scale(double total_scale, double device_scale)
Definition: TeXEngine.cc:243
std::string preamble_string
Definition: TeXEngine.hh:105
void invalidate_all()
Mark all TeXRequests as needing re-generating.
Definition: TeXEngine.cc:296
void erase_file(const std::string &) const
Definition: TeXEngine.cc:128
double total_scale_
Definition: TeXEngine.hh:108
void convert_set(std::set< std::shared_ptr< TeXRequest > > &)
Definition: TeXEngine.cc:355
void convert_one(std::shared_ptr< TeXRequest >)
Definition: TeXEngine.cc:347
void convert_all()
Generate images for all TeXRequests which are labelled as needing conversion.
Definition: TeXEngine.cc:312
void checkout_all()
Definition: TeXEngine.cc:291
int horizontal_pixels_
Definition: TeXEngine.hh:106
std::vector< std::string > latex_packages
Definition: TeXEngine.hh:70
double get_scale() const
Definition: TeXEngine.cc:257
void set_font_size(int font_size)
Definition: TeXEngine.cc:224
void checkout(std::shared_ptr< TeXRequest >)
Mark a TeXRequest as no longer being needed.
Definition: TeXEngine.cc:284
int get_geometry() const
Definition: TeXEngine.cc:219
static double millimeter_per_inch
Definition: TeXEngine.hh:101
std::string convert_unicode_to_tex(const std::string &) const
Definition: TeXEngine.cc:43
std::shared_ptr< TeXRequest > checkin(const std::string &, const std::string &startwrap, const std::string &endwrap)
Definition: TeXEngine.cc:272
int font_size_
Definition: TeXEngine.hh:107
void set_geometry(int horizontal_pixels)
Definition: TeXEngine.cc:206
double device_scale_
Definition: TeXEngine.hh:108
std::shared_ptr< TeXRequest > modify(std::shared_ptr< TeXRequest >, const std::string &)
Definition: TeXEngine.cc:305
Functions to handle the exchange properties of two or more symbols in a product.
Definition: Adjform.cc:83
void set(rset_t::iterator &num, multiplier_t fac)
Definition: Storage.cc:1044