latex

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package latex provides latex image generation for egen.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageGenerator

type ImageGenerator struct {
	// contains filtered or unexported fields
}

ImageGenerator is a latex image generator.

func NewImageGenerator

func NewImageGenerator(dirPath string) *ImageGenerator

NewImageGenerator creates a new latex image generator.

func (*ImageGenerator) SVGBlock

func (g *ImageGenerator) SVGBlock(math []byte) ([]byte, error)

SVGBlock generates a latex block svg image from math.

func (*ImageGenerator) SVGInline

func (g *ImageGenerator) SVGInline(math []byte) ([]byte, error)

SVGBlock generates an inline latex svg image from math.

func (*ImageGenerator) SetDirPath

func (g *ImageGenerator) SetDirPath(dirPath string) error

SetDirPath sets the path of the directory that will be used by the generator.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL