Wednesday, January 30, 2013

Using A Seed File

I went crazy trying to fine-tune the formatting on Seefer Elliot's ebook. Writing it in Microsoft Word was convenient, but when it came time to publish it as an HTML file, the code was virtually unusable.  I had to copy and paste chunks of data from one file to a brand new template. If you would like to publish a clean mobi file on Amazon (that can easily be converted to epub afterwards), copy and paste your work into this template:

<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Style-Type" content="text/css" />
  <meta name="keywords" content="KEYWORDS, KEYWORDS, KEYWORDS" />
  <title>[THE TITLE]</title>
 </head>
 <body>
  <div>
   <p style="margin:0.00% 0.00%; text-align:center; widows:0; orphans:0"><span style=" font-size:3.0rem">[THE TITLE]</span></p>
   <p style="margin:0.00% 0.00% 1.07%; text-align:center; widows:0; orphans:0"><span style=" font-size:3.0rem">&nbsp;</span></p>
   <p style="margin:0.00% 0.00% 1.07%; text-align:center; widows:0; orphans:0"><span style=" font-size:3.0rem">&nbsp;</span></p>
   <p style="margin:0.00% 0.00% 1.07%; text-align:center; widows:0; orphans:0"><span style=" font-size:1.5rem">[AUTHOR]</span></p>
  </div>
  <mbp:pagebreak />
<div>
   <p style="margin:0.00% 0.00% 2.14%; text-align:center; widows:0; orphans:0"><span style=" font-size:0.83rem">No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission of the author. For more information, visit <a href="http://www.patmallon.com">www.patmallon.com.</a></span></p>
   <p style="margin:0.00% 0.00% 2.14%; text-align:center; widows:0; orphans:0"><span style=" font-size:0.83rem">Copyright &copy; 2013 [THE AUTHOR]</span></p>
   <p style="margin:0.00% 0.00% 2.14%; text-align:center; widows:0; orphans:0"><span style=" font-size:0.83rem">All rights reserved.</span></p>
   <p style="margin:0.00% 0.00% 2.14%; text-align:center; widows:0; orphans:0"><span style=" font-size:0.83rem">Formatting made available by <a href="http://patmallon.blogspot.com">P.Mallon</a>.</span></p>
   <p style="margin:0.00% 0.00%; text-align:center; widows:0; orphans:0"><span style=" font-size:0.83rem">ISBN:</span><span style=" font-size:0.83rem">[ISBN]</span></p>
   <p style="margin:0.00% 0.00%; text-align:center; widows:0; orphans:0"><span style=" font-size:0.83rem">ISBN-13:</span><span style=" font-size:0.83rem">[ISBN-13]</span></p>
   <p style="margin:0.00% 0.00%; text-align:center; widows:0; orphans:0"><span style=" font-size:0.83rem">&nbsp;</span></p>
  </div>
  <mbp:pagebreak />


  <guide><reference title="table of contents" type="toc" href="toc.html"/></guide>
  <div id="toc">
  <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>
  <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>
  <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.3rem; text-transform:uppercase">Contents</span></p>
  <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>
  </div>
  <center>
  <p><span style=" font-size:1.0rem"><a href="#TOC01">1</a></span></p>
  <p><span style=" font-size:1.0rem"><a href="#TOC02">2</a></span></p>
  <p><span style=" font-size:1.0rem"><a href="#TOC03">3</a></span></p>
  <p><span style=" font-size:1.0rem"><a href="#TOC04">4</a></span></p>
  </center>
  </div>
  <mbp:pagebreak />
<div>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.3rem; text-transform:uppercase"><a name="TOC01">1</a></span></p>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>

[CHAPTER 1 TEXT]

</div>
  <mbp:pagebreak />
<div>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.3rem; text-transform:uppercase"><a name="TOC02">2</a></span></p>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>

[CHAPTER 2 TEXT]

</div>
  <mbp:pagebreak />
<div>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.3rem; text-transform:uppercase"><a name="TOC03">3</a></span></p>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>

[CHAPTER 3 TEXT]

</div>
  <mbp:pagebreak />
<div>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.3rem; text-transform:uppercase"><a name="TOC04">4</a></span></p>
   <p style="margin:0.00% 0.00% 0.21%; text-align:center; line-height:115%; widows:0; orphans:0; "><span style=" font-size:1.0rem">&nbsp;</span></p>

[CHAPTER 4 TEXT]

</div>
  <mbp:pagebreak />
 </body>
</html>

No comments:

Post a Comment