suttacentral / publications

SuttaCentral books: make HTML, EPUB, PDF
Creative Commons Zero v1.0 Universal
2 stars 1 forks source link

add map #164

Closed sujato closed 1 year ago

sujato commented 1 year ago

We now have a nice map for the PDFs. (Don't add to HTML or EPUB, too much hassle.)

https://github.com/suttacentral/publications/tree/main/sutta_publisher/src/sutta_publisher/images

Code for adding the map was committed here:

https://github.com/suttacentral/publications/commit/36059386fbec43883fc001a378b1edd2a1378107

The map code is added to the epigraph template, so if there is an epigraph there is also a map. Maybe we will want to split these out later, but this should be fine for now.

The Latex code imports the image and splits it over two pages so that it is seen as a double spread. Like this:

Screenshot from 2023-05-21 17-59-49

Here are the pdf and tex files.

map-demo.zip

Hopefully the committed code will work, but we need to test it. Especially we need to check that the path for the image is correct:

/tmp/jambudipa_map.png
sujato commented 1 year ago

Done, map is go