Detailed Description
parameter settings for visualization readers
tex file reader for writing decomposition details to LaTeX files
This file provides universally used parameters for visualizations.
This reader can write visualizations, family trees and reports of partialdecs to a .tex LaTeX file. The gp reader might be required for visualizations.
Definition in file reader_tex.h.
Go to the source code of this file.
Functions | |
| GCG_EXPORT SCIP_RETCODE | GCGincludeReaderTex (GCG *gcg) |
| GCG_EXPORT SCIP_RETCODE | GCGwriteTexVisualization (GCG *gcg, FILE *file, int partialdecid, SCIP_Bool statistics, SCIP_Bool usegp) |
| GCG_EXPORT SCIP_RETCODE | GCGwriteTexReport (GCG *gcg, FILE *file, int *partialdecids, int *npartialdecs, SCIP_Bool titlepage, SCIP_Bool toc, SCIP_Bool statistics, SCIP_Bool usegp) |
| GCG_EXPORT SCIP_RETCODE | GCGtexWriteMakefileAndReadme (GCG *gcg, FILE *file, SCIP_Bool usegp, SCIP_Bool compiletex) |
Function Documentation
◆ GCGincludeReaderTex()
| GCG_EXPORT SCIP_RETCODE GCGincludeReaderTex | ( | GCG * | gcg | ) |
Includes the tex file reader into SCIP
- Returns
- SCIP status
- Parameters
-
gcg GCG data structure
Definition at line 959 of file reader_tex.cpp.
References SCIP_ReaderData::gcg, GCGgetOrigprob(), NULL, READER_DESC, READER_EXTENSION, READER_NAME, SCIP_CALL, SCIP_OKAY, SCIPallocMemory, and SCIPincludeReader().
Referenced by GCGincludeGcgPlugins().
◆ GCGwriteTexVisualization()
| GCG_EXPORT SCIP_RETCODE GCGwriteTexVisualization | ( | GCG * | gcg, |
| FILE * | file, | ||
| int | partialdecid, | ||
| SCIP_Bool | statistics, | ||
| SCIP_Bool | usegp | ||
| ) |
Writes visualization LaTeX code for the given partialdec
- Returns
- SCIP status
- Parameters
-
gcg GCG data structure file file in which to write the LaTeX code partialdecid id of partialdec to visualize statistics additionally to picture show statistics usegp true if the gp reader should be used for the image generation (instead of tikz)
Definition at line 785 of file reader_tex.cpp.
References FALSE, GCGconshdlrDecompGetPartialdecFromID(), GCGgetOrigprob(), GCGgetVisualizationFilename(), GCGwriteGpVisualization(), SCIP_MAXSTRLEN, SCIP_OKAY, SCIPinfoMessage(), writeTexEnding(), writeTexHeader(), writeTexPartialdec(), and writeTexPartialdecStatistics().
Referenced by SCIP_DECL_READERWRITE().
◆ GCGwriteTexReport()
| GCG_EXPORT SCIP_RETCODE GCGwriteTexReport | ( | GCG * | gcg, |
| FILE * | file, | ||
| int * | partialdecids, | ||
| int * | npartialdecs, | ||
| SCIP_Bool | titlepage, | ||
| SCIP_Bool | toc, | ||
| SCIP_Bool | statistics, | ||
| SCIP_Bool | usegp | ||
| ) |
Writes a report for the given partialdecs
- Note
- *npartialdecs will be set to the number of actually written decompositions.
- Returns
- SCIP status
- Parameters
-
gcg GCG data structure file file in which to put the LaTeX code partialdecids ids of partialdecs to visualize npartialdecs number of partialdecs to visualize titlepage true if a title page should be included in the document toc true if an interactive table of contents should be included statistics true if statistics for each partialdec should be included usegp true if the gp reader should be used for the image generation
Definition at line 693 of file reader_tex.cpp.
References a, b, gcg::PARTIALDECOMP::buildDecChainString(), FALSE, GCGconshdlrDecompGetPartialdecFromID(), GCGgetFilePath(), GCGgetOrigprob(), GCGgetVisualizationFilename(), GCGreportGetMaxNDecomps(), GCGtexWriteMakefileAndReadme(), GCGwriteGpVisualization(), gcg::PARTIALDECOMP::getID(), gcg::PARTIALDECOMP::getNBlocks(), NULL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPinfoMessage(), SCIPsnprintf(), SCIPsplitFilename(), TRUE, writeTexEnding(), writeTexHeader(), writeTexPartialdec(), writeTexPartialdecStatistics(), writeTexTableOfContents(), and writeTexTitlepage().
Referenced by reportAllDecompositions().
◆ GCGtexWriteMakefileAndReadme()
| GCG_EXPORT SCIP_RETCODE GCGtexWriteMakefileAndReadme | ( | GCG * | gcg, |
| FILE * | file, | ||
| SCIP_Bool | usegp, | ||
| SCIP_Bool | compiletex | ||
| ) |
Makes a new makefile and readme for the given .tex file
- Returns
- SCIP status
- Parameters
-
gcg SCIP data structure file tex file for which the makefile & readme are generated usegp true if the gp reader was used for creation of images compiletex true if there are tex files to be compiled before main document
Definition at line 832 of file reader_tex.cpp.
References GCGgetFilePath(), GCGgetOrigprob(), NULL, SCIP_FILECREATEERROR, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPinfoMessage(), SCIPsnprintf(), and SCIPsplitFilename().
Referenced by GCGwriteTexReport().