资源说明:A Django website for publishing a LaTeX book online in HTML.
PubMyBook ========= This is a Django site to publish a book online, converting LaTeX into HTML. Dependencies ------------ Django 1.3 or later python-plastex (to read LaTeX files) poppler-utils (to convert .pdf figures to images) Configuration ------------- Put your LaTeX source files in: books/mybook i.e.: books/mybook/book.tex (must be named book.tex) books/mybook/figure1.png Create the following files in this directory: settings_local.py: SECRET_KEY = "something long and random, see Django for details" DEFAULT_BOOK = "mybook" # root directory of book content HASHTAG = "myhashtag" # suggested hashtag, no #-sign TWEET = "What a great book." # suggested tweet RELATED_TWITTER_HANDLE = "YourHandle" # your twitter handle, no @-sign GOOGLE_GROUP_NAME = "mybookgroup" # name of your Google Group GOOGLE_ANALYTICS_ID = "UAXXXXXXXX1" # your Google Analytics ID FACEBOOK_APP_ID = "1133344455511" # your Facebook App ID You may also specify chapters to embargo (hide from the site) using the chapter numbers, e.g.: EMBARGO_CHAPTERS = { "mybook": (2, 3, 4) } metadata.html:Your Book Title header.html:My Book
Subtitle subtitle subtitle subtitle
By Your Name
footer.html:Copyright © 2012 Your Namehome.html:Running The Site ---------------- Check that the site works locally with: python manage.py runserver The first time a page is hit, the LaTeX source file will be processed. For large documents, this can take a little while.This book is the culmination of much work.
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。