Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractPDFPath ¶ added in v0.1.6
ExtractPDFPath attempts to extract the PDF path from the expected cache location
func VerifyPDFExists ¶ added in v0.1.6
VerifyPDFExists checks if the PDF file actually exists on disk This is the most reliable way to determine compilation success
Types ¶
type Issue ¶
type Issue struct {
Level IssueLevel
File string
Line int
Message string
}
Issue represents a compilation issue (error or warning)
type IssueLevel ¶ added in v0.1.6
type IssueLevel int
const ( LevelError IssueLevel = iota LevelWarning LevelInfo )
func (IssueLevel) String ¶ added in v0.1.6
func (l IssueLevel) String() string
type ParseResult ¶
type ParseResult struct {
Errors []Issue
Warnings []Issue
HasPDF bool
PDFPath string
CompletedOK bool // latexmk completed without fatal errors
}
ParseResult holds the parsing results
func ParseLatexOutput ¶
func ParseLatexOutput(output string) *ParseResult
ParseLatexOutput parses LaTeX/latexmk output comprehensively
func (*ParseResult) FormatIssues ¶ added in v0.1.6
func (pr *ParseResult) FormatIssues() string
FormatIssues returns a formatted string of all issues
func (*ParseResult) GetSummary ¶
func (pr *ParseResult) GetSummary() string
GetSummary returns a human-readable summary of the compilation
func (*ParseResult) IsFatalError ¶ added in v0.1.6
func (pr *ParseResult) IsFatalError() bool
IsFatalError returns true if there are critical errors that prevented PDF generation
func (*ParseResult) IsSuccess ¶
func (pr *ParseResult) IsSuccess() bool
IsSuccess returns true if compilation was successful (PDF exists)
Click to show internal directories.
Click to hide internal directories.