GDS-Render v1.2.1
latex-renderer.c File Reference

LaTeX Output Renderer. More...

#include <math.h>
#include <stdio.h>
#include <gds-render/output-renderers/latex-renderer.h>
#include <gdk/gdk.h>
#include <glib/gi18n.h>
Include dependency graph for latex-renderer.c:

Go to the source code of this file.

Data Structures

struct  _LatexRenderer
 Struct representing the LaTeX-Renderer object. More...
 

Macros

#define WRITEOUT_BUFFER(buff)   fwrite((buff)->str, sizeof(char), (buff)->len, tex_file)
 Writes a GString buffer to the fixed file tex_file. More...
 

Enumerations

enum  { PROP_STANDALONE = 1 , PROP_PDF_LAYERS , N_PROPERTIES }
 

Functions

static void write_layer_definitions (FILE *tex_file, GList *layer_infos, GString *buffer)
 Write the layer declarration to TeX file. More...
 
static gboolean write_layer_env (FILE *tex_file, GdkRGBA *color, int layer, GList *linfo, GString *buffer)
 Write layer Envirmonment. More...
 
static void generate_graphics (FILE *tex_file, GList *graphics, GList *linfo, GString *buffer, double scale)
 Writes a graphics object to the specified tex_file. More...
 
static void render_cell (struct gds_cell *cell, GList *layer_infos, FILE *tex_file, GString *buffer, double scale, GdsOutputRenderer *renderer)
 Render cell to file. More...
 
static int latex_render_cell_to_code (struct gds_cell *cell, GList *layer_infos, FILE *tex_file, double scale, gboolean create_pdf_layers, gboolean standalone_document, GdsOutputRenderer *renderer)
 
static int latex_renderer_render_output (GdsOutputRenderer *renderer, struct gds_cell *cell, double scale)
 
static void latex_renderer_init (LatexRenderer *self)
 
static void latex_renderer_get_property (GObject *obj, guint property_id, GValue *value, GParamSpec *pspec)
 
static void latex_renderer_set_property (GObject *obj, guint property_id, const GValue *value, GParamSpec *pspec)
 
static void latex_renderer_class_init (LatexRendererClass *klass)
 
LatexRenderer * latex_renderer_new ()
 Create new LatexRenderer object. More...
 
LatexRenderer * latex_renderer_new_with_options (gboolean pdf_layers, gboolean standalone)
 Create new LatexRenderer object. More...
 

Variables

static GParamSpec * latex_renderer_properties [N_PROPERTIES] = {NULL}
 

Detailed Description

LaTeX Output Renderer.

Author
Mario Hüttel mario.nosp@m..hue.nosp@m.ttel@.nosp@m.gmx..nosp@m.net

Definition in file latex-renderer.c.