klevasseur / ads

Applied Discrete Structures using PreTeXt
41 stars 14 forks source link

epub release + build instructions? #7

Open sat3ll opened 5 years ago

sat3ll commented 5 years ago

It would be good if there were instructions on how to build a .pdf or a .epub release for people who would like to use their e-readers. I've tried building ads.tex with Texmaker with {LuaLaTeX, XeLaTeX, PDFLaTeX} but without any success (already installed the texlive packages it requires).

klevasseur commented 5 years ago

The source code is all PreTeXt, so I think that you need to use PreTeXt converters. See https://pretextbook.org. All I've done so far is to convert to either pdf or html, so I don't know about details for .epub. For pdf, the command I use to convert to .tex is

xsltproc --xinclude ../../mathbook/xsl/mathbook-latex.xsl src/ads.xml > ads.tex

../../mathbook/xsl/mathbook-latex.xsl is the relative address of the latex converter src/ads.xml is the relative address of the top level of the book

In my case, I covert from in the ads project directory.