LaTeXWriter(3pm)
hey bestie π welcome to LaTeXWriter(3pm), a page from LogReport's Lire Documentation. it's giving "Perl module with strong PDF/PS/DVI opinions," and honestly? obsessed.
β¨ NAME β¨
Lire::ReportParser::LaTeXWriter β a Lire::ReportParser processor that formats the report in LaTeX. periodt.
π SYNOPSIS π
okay so the synopsis is literally this, bestie. copy it exactly β including that one ); line that's just vibing there, iykyk π:
use Lire::ReportParser::LaTeXWriter;
use Lire::ReportParser::ReportBuilder;
my $writer = new Lire::ReportParser::LaTeXWriter(),
);
my $parser = new Lire::ReportParser::ReportBuilder();
my $report = $parser->parsefile( 'report.xml' );
$parser->write_report( $report, 'report.pdf', 'pdf',
'preamble' => 'myfont.tex' );
πΈ DESCRIPTION πΈ
this is a Lire::ReportParser processor that formats the XML report into PDF, PS or DVI format using LaTeX as the intermediary format. the way that LaTeX is doing middleman duty here is lowkey iconic. π₯
π METHODS π
π new()
returns a brand-new LaTeXWriter object. slay. β¨
π¦ write_report( $report, $outputfile, $format, [ $preamble ] )
this writes the Lire::Report report into $outputfile in the $format output format. vibe check on the parameters:
outputfileβ this mandatory parameter specifies the file where the file will be written. yes, that's the page's phrasing; the page also spells "mandatory" asmanadatoryin this spot, and we respect the icon. πformatβ this mandatory parameter may be one of'pdf','ps','dvi'or'latex'. all the formats ate. πpreambleβ this optional parameter specifies a file that will be included in the LaTeX preamble. it can be used to change the fonts, for example. cute font era unlocked. π
π SEE ALSO π
Lire::ReportParser::LaTeXDocBookFormatter(3pm)Lire::OutputFormat(3pm)Lire::OutputFormats::LaTeX(3pm)
go read those too, bestie, the lore is deep. π«Ά
π§ VERSION π§
$Id: LaTeXWriter.pm,v 1.17 2006/07/29 17:57:34 vanbaal Exp $
π COPYRIGHT π
legal text time β copying this part exactly because licenses are not a vibe to paraphrase, bestie: π«Ά
Copyright (C) 2004 Stichting LogReport Foundation LogReport@LogReport.org
This file is part of Lire.
Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html.
π AUTHOR π
Francis J. Lacoste <flacoste@logreport.org>
that's the whole page, bestie. stay slay and may your LaTeX compile on the first try β this is from Lire 2.1.1, dated 2025-09-28. periodt. πβ¨
π¦ where this page comes from
- arch rolling: lire 2.1.1-8 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms