Skip to content
/ AniLaTeX Public

CLI to turn LaTeX document body into images.

Notifications You must be signed in to change notification settings

fzql/AniLaTeX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AniLaTeX logo

AniLaTeX

Test project.

Prerequisites

  1. Windows or Ubuntu
  2. Python 3
  3. XeLaTeX
  4. GhostScript

Install the prerequisites then add relevant directories to the system-wide Path (Windows) or $PATH (*nix)

Examples

Generate the logo:

anilatex.py "Ani\LaTeX" -D 600 -o anilatex

LaTeX support: One proof that pi is bounded upwards by 22/7

anilatex.py "$\displaystyle 0<\int_{0}^{1}\frac{x^{4}(1-x)^{4}}{1+x^{2}}\ dx=\frac{22}{7}-\pi$" -o pi-bound

CJK support: CJK support

anilatex.py "{\Chi 中文与}{\Jpn 日本語と}{\Kor 한국어}" -p cjk -o cjk

bclogo package wrapper:

bclogo example

anilatex.py "LaTeX is a document preparation system. When writing, the writer uses plain text as opposed to the formatted text found in WYSIWYG (``what you see is what you get'') word processors like Microsoft Word, LibreOffice Writer and Apple Pages. The writer uses markup tagging conventions to define the general structure of a document (such as article, book, and letter) to stylise text throughout a document (such as bold and italics), and to add citations and cross-references. A TeX distribution such as TeX Live or MikTeX is used to produce an output file (such as PDF or DVi) suitable for printing or digital distribution. Within the typesetting system, its name is stylised as \LaTeX. {\Kor 위 단락} {\Chi 节选自} {\Jpn ウイキペディア} on \today." --title "What is \LaTeX?" --option "logo={\bcattention}" -p cjk -t bclogo -D 72 -o bclogo

Directive to use packages -u package option1 ... optionN and preamble snippets -p preamble:

amsmath wrapper example

anilatex.py -o thm-iso "Let $\varphi:G\to H$ be a surjective homomorphism and let $N=\gpker{\varphi}$.  Then $H\cong G/N$.  In fact, there exists a unique isomorphism $\theta:G/N\to H$ such that $\pi\theta=\varphi$, where $\pi$ is the canonical homomorphism $G\to G/N$.\begin{figure}\centering\begin{tikzcd}G\arrow{rr}{\varphi}\arrow[rd,""\pi""']&&H\\&G/N\arrow[ru,dashed,""\theta""']&\end{tikzcd}\end{figure}" -D 72 -t amsthm -p math -u tikz-cd --name "Isomorphism" --boldname

About

CLI to turn LaTeX document body into images.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published