Start with the sample book produced with softcover new --latex mybook and extend the chapters while compiling regularly. The Kindle file formats. There is no way to generate Kindle eBooks directly, instead, the recommended procedure for KDP distribution is to generate an ePub file and let KDP take care of the conversion to their proprietary formats. So for distribution on Kindle devices through KDP, the key is to generate a good quality, standards-compliant ePub.
Early versions of the Amazon Kindle used mobi format internally, so the mobi format is still supported on Kindle devices. Luckily there is an excellent command-line tool for this ebook-convert that comes with every installation of Calibre. Using ebook-convert is really simple. If you have a source file book. This is the most widely-supported format for ebooks and the main focus of our efforts here.
The use of HTML for content is—in principle—a good thing. In practice, different readers have different levels of support for markup, styling, and media playback, and very few ePub readers support the possibility of running scripts. For this reason, we take a conservative approach and target the basic ePub v3 format, without taking advantage of modern features of the web platform like SVG images, audio playback, and interactive elements.
So how do you build an ePub? Well, not quite. Additionally, a standards-compliant. See this blog post for example. Statement of the problem : Generate a good-looking ePub file from LaTeX source files that include equations, figures, tables, and custom macros for exercises and problems. In order of importance these tools are softcover , calibre , TexSoup , and fab-classic. We start with the most important parts first: the tools that are broadly reusable in any context; we defer the technical details about the specific transformations we perform until the second half of this blog post.
Enter the first protagonist, the softcover project. Softcover is a framework for producing eBooks from markdown or LaTeX source files. You run a single command softcover build to build all kinds of book formats including PDF, ePub, and Mobi. It is a beautiful thing written in Ruby. As soon as I learned about this project I knew it was the way forward. I had previously tried several other tools for generating ePub files form LaTeX, which worked well for short articles and blog posts, but failed on longer texts like the No Bullshit Guide textbooks.
All the other approaches I tried before softcover were inferior in one way or another, and none of them supported all the markup needed for the No Bullshit Guide textbooks. What is a gem? What is a bundle? What am-I supposed to rake exactly? But softcover is so good, that—prior Ruby knowledge or not—I knew this was the tool for the job.
Restatement of the problem : learn enough Ruby to use softcover and customize the code to support LaTeX macros used in the books for figures, exercises, and problems. Sounds simple, right? None of these prior attempts worked well, since parsing LaTeX with regexes is inherently a lost battle. What more can one ask for than a Python library that does exactly what you need to do! When I discovered the TexSoup library, I immediately recognized it as the right tool for the task of transforming the book source files to softcover-compatible format.
The combination of TexSoup for transformations and Softcover for generating eBooks is the right way to do this. All I had to do is write some scripts to combine these two tools. There is an unspoken strategic objective that motivates this entire effort.
I want the eBook production pipeline to be fully automated: from. Having an automated pipeline is essential to support the process of continuous improvement Kaizen textbooks which is a central ethos of the Minirefrence Publishing Co. If producing ePub from the source files required any time-consuming manual steps, then the ePub files will be second-class citizens, since they will not be updated regularly like the print books, which is something we want to avoid.
The tool I used to automate the process of. Any other automation library could be used to achive the same results, but I chose Fabric because I have the most experience with this zero-magic Python scripting framework. So this is where I was on October I had the tools ready and the plan figured out, but I still needed to do the work…. The first step of the pipeline requires processing all the LaTeX macros and styles used in the Minireference books see the tex header file , and transforming them to the softcover-compatible PolyTex format.
There is a common header file called The Minireference header file also defines some custom environments for the exercises and problems sets in the book, which are stored in separate files that get included in appropriate locations of the main text. Each problem consists of a question, an answer, and a solution.
These three parts get treated differently: the question appears in the main text, while answers and solutions are sent to special files e.
These files get included in the Answers and Solutions appendix. The answers LaTeX package and these custom macros enable this. It features step-by-step instructions, illustrations and very informative diagrams to help you digest the technical elements behind a healthy, consensual BDSM relationship. You name it—bondage techniques, impact play, SM roleplay—this book has it all.
For more stories like this, including celebrity news, beauty and fashion advice, savvy political commentary, and fascinating features, sign up for the Marie Claire newsletter subscribe here. Hana Hong is the beauty assistant at Marie Claire, where she covers skincare, makeup, and haircare, and is identifiable by her signature cateye. Luxury fashion has long been a focus of collectors, but thanks to inflation, average shoppers are diving into the secondary market—and Gen Z is investing heavily.
New episodes will drop weekly until the end of February. The viscount and his new love interest will hit your queue in March. Just in case you needed something to look forward to. Get a sneak preview of Jean Chen Ho's debut novel, here, then dive in with us throughout the month. Marie Claire US is part of Future plc, an international media group and leading digital publisher.
Visit our corporate site. All rights reserved. England and Wales company registration number Marie Claire US. As this example shows, the colorbox and the fcolorbox commands are not compatible with latex2html , which produced this text. The example again shows the effect of the linethickness command on horizontal or vertical lines, and of the thinlines and thicklines commands on oblique line segments.
The intermediate control point is then given by the equations 1 The Java program qbezier. In order to get the control points of an arc of radius marking the angle , one has to translate and rotate the angle in order to move the vertex to the origin and have the bisector point in the direction of the axis transformation , reduce the vectors and to length , let the intermediate control point be equal to , and being the coordinates of point after transformation and reduction to length , apply the transformation to points , , and.
If the Java program arc. As can be seen from the above input file, the obtuse angle is marked in parts: by consequtively marking the angles and. Ovals are a combination of horizontal and vertical lines, and arcs. Line thickness again: thinlines and thicklines Source file As the comparison of the lower half of the picture with the upper half shows, the thinlines and the thicklines commands apply to all line segments and curves, but the effect cannot said to be very striking.
The name argument refers to a L A T E X storage bin and therefore is of a command nature which accounts for the backlashes in the current example. See 1 for details. Clocks in gravitational field Source file Line of simultaneousness Source file The inserts in the input file drawing the angle markings are produced, according to Marking angles with the Java program arc. They turn out to be and. Or, using the Java program qbezier. The red crosses indicate points of the real catenary.
The error is barely noticeable, being less than one percent. Forces on the catenary Source file Catenaries of constant length Source file From the equation. Or we can, by using the Java program qbezier.
Circles and ellipses can then be obtained by rotating, scaling and translating. From this, we get: 3. Enhancing the picture Environment with Packages epic and eepic The packages epic and eepic enhance the picture environment. As this example shows, not all the pixels always make it into the final picture. The two files datafile1 and datafile2 contain one coordinate pair on each line.
Overview The picture Environment The pstricks Package. Line segments Source file. The line command has two arguments: a direction vector, a length. The components of the direction vector have to be coprime no common divisor except 1 , and they are restricted to the integers The picture illustrates all 25 possible slope values in the first quadrant.
0コメント