This project provides a LaTeX template for converting FB2 (FictionBook 2) files to a well-formatted PDF.
-
Convert FB2 to LaTeX
pandoc --from=fb2 --to=latex --output=karamazov.tex karamazov.fb2
-
Modify the LaTeX File
sed -i -e 's/subsection/section/g' karamazov.tex sed -i -e 's/--/โ/g' karamazov.tex
-
Build the Docker Image
docker build -t latex-env docker
-
Compile the LaTeX File
docker run --rm -v $(pwd)/tex:/work -w /work latex-env xelatex main.tex