Permalink
Browse files

first working version

  • Loading branch information...
1 parent 1892d1e commit 65e24e945e4f52e24c1239771884ced44b7a1a00 @armandofox committed May 12, 2012
Showing with 14 additions and 46 deletions.
  1. +1 −1 Makefile
  2. +12 −10 README.md
  3. +0 −34 ch_example/example.aux
  4. +1 −1 ch_example/example.tex
View
@@ -6,7 +6,7 @@ BIBTEX = bibtex
PERL = perl
RUBY = ruby
ERB = erb
-KINDLEGEN = kindlegen # MacOS: /Applications/kindlegen
+KINDLEGEN = /Applications/kindlegen
CONVERT = convert
AVCONVERT = avconvert
View
@@ -82,6 +82,18 @@ Setup
1. With Ruby 1.9.2+ installed, cd to the script/ subdirectory and run
'bundle install' to make sure the Nokogiri gem is available.
2. In Makefile, change KINDLEGEN to the path to your kindlegen script.
+3. In Makefile, change the paths to various other binaries as needed.
+4. In each of the following files, search for ::EDITME:: and edit the
+self-explanatory metadata:
++ common.tex
++ book_mobi.ncx.erb
++ book_mobi.opf
+5. Add a cover file for the Kindle version called cover.jpeg in the top
+level directory. Ideally, it should be 600 pixels wide by 800 pixels
+wide at 72 dpi. A sample is included.
+
+IMPORTANT: The .mobi ebook file WILL NOT BUILD unless you at least have
+dummy values/files for all of the above.
Adding LaTeX files and assets
=============================
@@ -92,16 +104,6 @@ you'll need to make substantial changes to the Makefile and to
common.tex. Unless you want to burn a lot of time on this, do it my
way.
-In each of the following files, search for ::EDITME:: and edit the
-self-explanatory metadata:
-+ common.tex
-+ book_mobi.ncx.erb
-+ book_mobi.opf
-
-Add a cover file for the Kindle version called cover.jpeg in the top
-level directory. Ideally, it should be 600 pixels wide by 800 pixels
-wide at 72 dpi.
-
Add your book chapters, each in its own subdirectory, organized as
follows for a chapter called mychap:
View
@@ -1,34 +0,0 @@
-\relax
-\@writefile{lof}{\addvspace {10\p@ }}
-\@writefile{lot}{\addvspace {10\p@ }}
-\newlabel{fig:example_figure}{{\rEfLiNK{x1-30011}{\csname\string :autoref\endcsname{\@captype }1.1}}{\rEfLiNK{x1-30011}{\csname\string :autoref\endcsname{\@captype }7}}{\rEfLiNK{x1-30011}{\csname\string :autoref\endcsname{\@captype }Images}}{section.1}{}}
-\newlabel{fig:code_example}{{\rEfLiNK{x1-60012}{\csname\string :autoref\endcsname{\@captype }1.2}}{\rEfLiNK{x1-60012}{\csname\string :autoref\endcsname{\@captype }10}}{\rEfLiNK{x1-60012}{\csname\string :autoref\endcsname{\@captype }Code}}{section.1}{}}
-\@setckpt{ch_example/example}{
-\setcounter{page}{13}
-\setcounter{equation}{0}
-\setcounter{enumi}{0}
-\setcounter{enumii}{0}
-\setcounter{enumiii}{0}
-\setcounter{enumiv}{0}
-\setcounter{footnote}{0}
-\setcounter{mpfootnote}{0}
-\setcounter{part}{0}
-\setcounter{chapter}{1}
-\setcounter{section}{11}
-\setcounter{subsection}{0}
-\setcounter{subsubsection}{0}
-\setcounter{paragraph}{0}
-\setcounter{subparagraph}{0}
-\setcounter{figure}{2}
-\setcounter{table}{0}
-\setcounter{NAT@ctr}{1}
-\setcounter{FancyVerbLine}{0}
-\setcounter{endnote}{0}
-\setcounter{lstnumber}{1}
-\setcounter{r@tfl@t}{0}
-\setcounter{screencast}{0}
-\setcounter{exercise}{0}
-\setcounter{checkyourself}{0}
-\setcounter{section@level}{0}
-\setcounter{lstlisting}{0}
-}
View
@@ -14,7 +14,7 @@
scaling to a resolution and size appropriate for ebook readers, and
more.
-\picfigure{ch_example/figs/example_figure}{fig:example_figure}{%
+\picfigure{ch_example/figs/example_figure.pdf}{fig:example_figure}{%
This is the caption of the figure. Note that you can reference the
label \texttt{fig:example\_figure} on your text, and that the filename
of the figure omits the \texttt{.pdf} extension.

0 comments on commit 65e24e9

Please sign in to comment.