Documentation
¶
Index ¶
- Constants
- Variables
- func AddDir(dirname string) error
- func FindFile(filename string) (string, error)
- func FindFontFiles() []string
- func FontFolder() (string, error)
- func InitDirs(basedir string) error
- func RunXTS(cfg *XTSConfig) error
- type PublishingInfo
- type TypesettingError
- type VTrace
- type XTSConfig
Constants ¶
View Source
const ( // SDNAMESPACE is the speedata XTS layout rules namespace SDNAMESPACE string = "urn:speedata.de/2021/xts/en" // LevelNotice is used for messages from Message LevelNotice = slog.Level(2) )
Variables ¶
View Source
var ( // Version is a semantic version Version string )
Functions ¶
func FindFontFiles ¶
func FindFontFiles() []string
FindFontFiles returns a list of all font files (otf,ttf)
Types ¶
type PublishingInfo ¶ added in v0.0.19
PublishingInfo contains information about a previous publishing run.
type TypesettingError ¶ added in v0.0.3
A TypesettingError contains the information if it has been logged, so it does not appear more than once in the output.
func (TypesettingError) Error ¶ added in v0.0.3
func (te TypesettingError) Error() string
type XTSConfig ¶
type XTSConfig struct {
Datafile io.Reader
DumpFile io.Writer
FindFile func(string) (string, error)
Jobname string
Layoutfile io.Reader
Mode []string
Outfile io.WriteCloser
OutFilename string
SuppressInfo bool
Tracing []string
Variables map[string]any
Info PublishingInfo
}
XTSConfig is the configuration file for PDF generation.
Click to show internal directories.
Click to hide internal directories.