initial content commit

This commit is contained in:
biglysmalls 2018-11-06 00:03:04 -05:00
parent 43d0f614d1
commit 920aa2d7b1
17 changed files with 457 additions and 0 deletions

8
ebook-storybook/compile Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
#This assumes you have some latex framework such as miktex or mactex or somesuch that uses xelatex as well as pandoc to convert markdown to latex
find . -iname *.md -exec ./md2tex.sh {} \;
latexmk -c
latexmk -pdf -e '$pdflatex=q/xelatex %O %S/' -outdir=outputs ebook.tex
# the -outdir option sets $outdir as well as $auxdir to be the outputs directory, except in miktex...so this will put auxiliary files in the output directory.
# the contents of the outputs directory can be safely deleted, as they will be generated each time this script is run.
#latexmk -pdf -e '$pdflatex=q/xelatex %O %S/' -outdir=outputs -auxdir=auxfiles ebook.tex

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB

170
ebook-storybook/ebook.tex Executable file
View File

@ -0,0 +1,170 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% eBook
% LaTeX Template
% Version 1.0 (29/12/14)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Luis Cobo (luiscobogutierrez@gmail.com) with extensive modifications by:
% Vel (vel@latextemplates.com)
%
% Adapted for use and inclusion in https://tildegit.org/biglysmalls/TildePublishingUnlimited by:
% biglysmalls (@ a tilde near you!)
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% DOCUMENT CONFIGURATIONS AND INFORMATION
%----------------------------------------------------------------------------------------
\documentclass[oneside,11pt]{memoir} % Font size
\input{structure} % Include the file that specifies the document structure and layout
\usepackage{lipsum} % for use of the \lipsum macro command to generate dummy text in the chapters.
\title{Compelling Title} % Book title
\author{Ghost Writer, Esq.} % Author
\newcommand{\edition}{Second Edition} % Book edition
%----------------------------------------------------------------------------------------
\begin{document}
%----------------------------------------------------------------------------------------
% TITLE PAGE
%----------------------------------------------------------------------------------------
\thispagestyle{empty} % Suppress page numbering
%\ThisCenterWallPaper{1.05}{cover/doodoobutt.jpg} % Add the background image, the first argument is the scaling - adjust this as necessary so the image fits the entire page
\ThisCenterWallPaper{1.12}{cover/littlered.jpg} % Add the background image, the first argument is the scaling - adjust this as necessary so the image fits the entire page
% You can supply your own .jpg by putting it in the 'cover' directory and change the filename above to reflect your cover image.
% Or you can remove it by deleting or commenting out the command above (insert % at the begining of the line)
% This tikzpicture code creates the overlay box on the cover page and populates it with author/title/edition info from the document information section above.
\begin{tikzpicture}[remember picture,overlay]
\node [rectangle, rounded corners, fill=white, opacity=0.75, anchor=south west, minimum width=3cm, minimum height=6cm] (box) at (-0.5,-10) (box){}; % White rectangle - "minimum width/height" adjust the width and height of the box; "(-0.5,-10)" adjusts the position on the page
\node[anchor=west, color01, xshift=-1.5cm, yshift=-0.4cm, text width=2.9cm, font=\sffamily\scriptsize] at (box.north){\edition}; % "Text width" adjusts the wrapping width, "xshift/yshift" adjust the position relative to the white rectangle
\node[anchor=west, color01, xshift=-1.5cm, yshift=-2cm, text width=2.9cm, font=\sffamily\bfseries\scshape\Large] at (box.north){\thetitle}; % "Text width" adjusts the wrapping width, "xshift/yshift" adjust the position relative to the white rectangle
\node[anchor=west, color01, xshift=-1.5cm, yshift=-5cm, text width=2.9cm, font=\sffamily\bfseries] at (box.north){\theauthor}; % "Text width" adjusts the wrapping width, "xshift/yshift" adjust the position relative to the white rectangle
\end{tikzpicture}
\newpage % Make sure the following content is on a new page
%----------------------------------------------------------------------------------------
% COPYRIGHT PAGE
%----------------------------------------------------------------------------------------
\newpage
~\vfill
\thispagestyle{empty}
\noindent Copyright \copyright\ 2019 John Smith\\ % Copyright notice
\noindent \textsc{Published by Tilde Publishing Unlimited}\\ % Publisher
\noindent \textsc{http://tilde.town}\\ % URL
\begin{tiny}
\noindent Licensed under the Creative Commons Attribution-NonCommercial 3.0 Unported License (the ``License''). You may not use this file except in compliance with the License. You may obtain a copy of the License at \url{http://creativecommons.org/licenses/by-nc/3.0}. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \textsc{``as is'' basis, without warranties or conditions of any kind}, either express or implied. See the License for the specific language governing permissions and limitations under the License.\\ % License information, replace this with your own license (if any)
\end{tiny}
\noindent \textit{First printing, March 2019} % Printing/edition date
%----------------------------------------------------------------------------------------
% TABLE OF CONTENTS
%----------------------------------------------------------------------------------------
\tableofcontents % Prints the table of contents
%----------------------------------------------------------------------------------------
% INTRODUCTION SECTION
%----------------------------------------------------------------------------------------
\chapter*{Introduction/Prologue} % Introduction chapter suppressed from the table of contents
% begin prologue
\begin{quote}
This is one of my finer quotations.\\
--John Smith
\end{quote}
This is a great place to write an introduction or prologue\footnote{You can even use a footnote to seem smarter}.
% end prologue
%You can move the intro/prologue to a separate file like with the subsequent chapters. To try it, comment out
% everything between the lines % begin prologue .. % end prologue and uncomment the following line:
%\include{inputs/prologue.md}
% The prologue.md file just contains those same six lines from above.
% test of being able to insert a chapter and book part before the main body of the work:
% we can do so by defining a new part, defining a new chapter, and including a body of text
% the compilation process will take care of the rest. Uncomment the following 3 lines to test it out.
%\part{The Interruption}
%\chapter{An Interruption in Parts and Chapters}
%\include{inputs/firstchap.md}
%----------------------------------------------------------------------------------------
% BOOK PART
%----------------------------------------------------------------------------------------
\part{The Word Salads}
%----------------------------------------------------------------------------------------
% CHAPTER ONE
%----------------------------------------------------------------------------------------
\chapter{Little Red Riding Hood}
\include{inputs/lrrh.md}
%----------------------------------------------------------------------------------------
% CHAPTER TWO
%----------------------------------------------------------------------------------------
\chapter{Hansel and Gretel}
\include{inputs/hng.md}
%----------------------------------------------------------------------------------------
% CHAPTER THREE
%----------------------------------------------------------------------------------------
\chapter{More Lipsum}
\include{inputs/thirdchap.md}
%----------------------------------------------------------------------------------------
% BOOK PART
%----------------------------------------------------------------------------------------
\part{The Verses}
%----------------------------------------------------------------------------------------
% SONG ONE
%----------------------------------------------------------------------------------------
% Test to demonstrate how to include poetry or lyrics into this kind of ebook
% Here it is just inserted before the first chapter
% Song and lyrics generated by www.song-lyrics-generator.org.uk
% using random inputs, in the style of Taylor Swift
% linebreaks in inputs/song.md produced with manual doublespacing.
% Some more options for working with poems and verses here: https://stackoverflow.com/questions/1236580/latex-memoir-the-verse-environment-and-poemtitle#1236727
\chapter{A song}
\begin{quote} % Using a quote block to insert a by-line for the verse. Remove/comment out if unnecessary (like in the next set of verses)
This Love is Super But It's Poor\\ % the \\ at the end of the line forces a linebreak before the by line:
by: skynet
\end{quote}
\settowidth{\versewidth}{This Love is Super But It's Poor} % The width of the verse lines is set by the text within the braces. Note the different width in the next song.
\begin{verse}[\versewidth]
\ldots \\*
\include{inputs/song.md}
\end{verse}
\chapter{This Love is Super But It's Poor} %Within the braces as this chapter name is the title of the poem/song/piece.
\settowidth{\versewidth}{A song, a song!}
\begin{verse}[\versewidth]
\ldots \\*
\include{inputs/song.md}
\end{verse}
\end{document}

View File

@ -0,0 +1,2 @@
\lipsum[5-12]

View File

@ -0,0 +1 @@
\lipsum[5-12]

View File

@ -0,0 +1 @@
\lipsum[12-17]

View File

@ -0,0 +1 @@
\lipsum[12-17]

View File

@ -0,0 +1,2 @@
\lipsum[5-12]

View File

@ -0,0 +1 @@
\lipsum[5-12]

View File

@ -0,0 +1,2 @@
\lipsum[5-12]

View File

@ -0,0 +1 @@
\lipsum[5-12]

View File

@ -0,0 +1,54 @@
We were both slender when I first saw you.
You get fitter and the flashback starts:
Japan is where I'm standing in the summer air.
What are you doing with that new lover?
Who wears that wet dress,
When I wear a bright t-shirt,
Dreaming about the day when you wake up and find
That what you're looking for is my ample spleen.
So this is me kicking,
Standing in front of you saying, "I'm thirsty!"
And I go back to summer all the time.
It turns out freedom ain't nothing but kissing gently,
Wishing I'd realised you were right for me.
I'd go back to summer, turn around and do some drinking.
I go back to summer quite often.
Baby, let's do some bouncing,
This love is super but it's poor.
It's a love story, baby,
Just be my beautiful tortoise.
We are never ever ever going to try smoking elegantly together,
We are never ever ever going to try smoking elegantly together,
You go talk to your great uncle, talk to my sister, talk to me,
But we are never ever ever ever going to try smoking elegantly together,
Just loving deftly forever.
I'm thirsty baby, I'm thirsty.

View File

@ -0,0 +1,49 @@
We were both slender when I first saw you.
You get fitter and the flashback starts:
Japan is where I'm standing in the summer air.
What are you doing with that new lover?
Who wears that wet dress,
When I wear a bright t-shirt,
Dreaming about the day when you wake up and find
That what you're looking for is my ample spleen.
So this is me kicking,
Standing in front of you saying, ``I'm thirsty!''
And I go back to summer all the time.
It turns out freedom ain't nothing but kissing gently,
Wishing I'd realised you were right for me.
I'd go back to summer, turn around and do some drinking.
I go back to summer quite often.
Baby, let's do some bouncing,
This love is super but it's poor.
It's a love story, baby,
Just be my beautiful tortoise.
We are never ever ever going to try smoking elegantly together,
We are never ever ever going to try smoking elegantly together,
You go talk to your great uncle, talk to my sister, talk to me,
But we are never ever ever ever going to try smoking elegantly together,
Just loving deftly forever.
I'm thirsty baby, I'm thirsty.

View File

@ -0,0 +1,6 @@
\begin{quote}
Lorem ipsum.\\ % the \\ at the end of the line forces a line break before the next line
--Cicero
\end{quote}
\lipsum[1-10]

View File

@ -0,0 +1,6 @@
\begin{quote}
Lorem ipsum.\\ % the \\ at the end of the line forces a line break before the next line
--Cicero
\end{quote}
\lipsum[1-10]

6
ebook-storybook/md2tex.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
#pandoc --natbib "$1" -o "$1".tex
#pandoc -f markdown+emoji --biblatex "$1" -o "$1".tex
pandoc --biblatex "$1" -o "$1".tex
echo "$1.tex created"

View File

@ -0,0 +1,147 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% eBook
% Structural Definitions File
% Version 1.0 (29/12/14)
%
% Created by:
% Vel (vel@latextemplates.com)
%
% This file has been downloaded from:
% http://www.LaTeXTemplates.com
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% REQUIRED PACKAGES
%----------------------------------------------------------------------------------------
\usepackage[utf8]{inputenc} % Required for inputting international characters
\usepackage[T1]{fontenc} % Output font encoding for international characters
\usepackage[osf]{libertine} % Use the Libertine font
\usepackage{microtype} % Improves character and word spacing
\usepackage{tikz} % Required for drawing custom shapes
\definecolor[named]{color01}{rgb}{.4,.4,.6} % Color used in the title page
\usepackage{wallpaper} % Required for setting background images (title page)
\usepackage[unicode=true,bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,breaklinks=false,pdfborder={0 0 1},backref=section,colorlinks=false]{hyperref} % PDF meta-information specification
%----------------------------------------------------------------------------------------
% PAPER, MARGIN AND HEADER/FOOTER SIZES
%----------------------------------------------------------------------------------------
\setstocksize{12.5cm}{9.4cm} % Paper size
\settrimmedsize{\stockheight}{\stockwidth}{*} % No trims
\setlrmarginsandblock{18pt}{18pt}{*} % Left/right margins
\setulmarginsandblock{30pt}{36pt}{*} % Top/bottom margins
%\setheadfoot{10pt}{8pt} % Header/footer height
\setheadfoot{14pt}{12pt} % Header/footer height
\setheaderspaces{*}{8pt}{*} % Extra header space
%----------------------------------------------------------------------------------------
% FOOTNOTE CUSTOMIZATION
%----------------------------------------------------------------------------------------
\renewcommand{\foottextfont}{\itshape\footnotesize} % Font settings for footnotes
\setlength{\footmarkwidth}{-.1em} % Space between the footnote number and the text
\setlength{\footmarksep}{.1em} % Space between multiple footnotes on the same page
\renewcommand*{\footnoterule}{} % Remove the rule above the first footnote
\setlength{\skip\footins}{1\onelineskip} % Space between the body text and the footnote
%----------------------------------------------------------------------------------------
% HEADER AND FOOTER FORMATS
%----------------------------------------------------------------------------------------
\makepagestyle{mio} % Define a new custom page style
\setlength{\headwidth}{\textwidth} % Header the same width as the text
\makeheadrule{mio}{\textwidth}{0.1mm} % Header rule height
\makeoddhead{mio}{\scriptsize{\theauthor\hskip.2cm\vrule\hskip.2cm\itshape{\thetitle}}}{}{} % Header specification
\makeoddfoot{mio}{}{\scriptsize {\thepage \quad \vrule \quad \thelastpage}}{} % Footer specification
\makeoddfoot{plain}{}{\footnotesize {\thepage \quad \vrule \quad \thelastpage}}{} % Pages of chapters
\pagestyle{mio} % Set the page style to the custom style defined above
%----------------------------------------------------------------------------------------
% PART FORMAT
%----------------------------------------------------------------------------------------
\renewcommand{\partnamefont}{\centering\sffamily\itshape\Huge} % Part name font specification
\renewcommand{\partnumfont}{\sffamily\Huge} % Part number font specification
\renewcommand{\parttitlefont}{\centering\sffamily\scshape} % Part title font specification
\renewcommand{\beforepartskip}{\null\vskip.618\textheight} % Whitespace above the part heading
%----------------------------------------------------------------------------------------
% CHAPTER FORMAT
%----------------------------------------------------------------------------------------
\makechapterstyle{Tufte}{ % Define a new chapter style
\renewcommand{\chapterheadstart}{\null \vskip3.5\onelineskip} % Whitespace before the chapter starts
\renewcommand{\printchaptername}{\large\itshape\chaptername} % "Chapter" text font specification
\renewcommand{\printchapternum}{\LARGE\thechapter \\} % Chapter number font specification
\renewcommand{\afterchapternum}{} % Space between the chapter number and text
\renewcommand{\printchaptertitle}[1]{ % Chapter title font specification
\raggedright
\itshape\Huge{##1}}
\renewcommand{\afterchaptertitle}{
\vskip3.5\onelineskip
}}
\chapterstyle{Tufte} % Set the chapter style to the custom style defined above
%----------------------------------------------------------------------------------------
% SECTION FORMAT
%----------------------------------------------------------------------------------------
\setsecheadstyle{\sethangfrom{\noindent ##1}\raggedright\sffamily\itshape\Large} % Section title font specification
\setbeforesecskip{-.6\onelineskip} % Whitespace before the section
\setaftersecskip{.3\onelineskip} % Whitespace after the section
%----------------------------------------------------------------------------------------
% SUBSECTION FORMAT
%----------------------------------------------------------------------------------------
\setsubsecheadstyle{\sethangfrom{\noindent ##1}\raggedright\sffamily\large\itshape} % Subsection title font specification
\setbeforesubsecskip{-.5\onelineskip} % Whitespace before the subsection
\setaftersubsecskip{.2\onelineskip} % Whitespace after the subsection
%----------------------------------------------------------------------------------------
% SUBSUBSECTION FORMAT
%----------------------------------------------------------------------------------------
\setsubsubsecheadstyle{\sethangfrom{\noindent ##1}\raggedright\sffamily\itshape} % Subsubsection title font specification
\setbeforesubsubsecskip{-.5\onelineskip} % Whitespace before the subsubsection
\setaftersubsubsecskip{.1\onelineskip} % Whitespace after the subsubsection
%----------------------------------------------------------------------------------------
% CAPTION FORMAT
%----------------------------------------------------------------------------------------
\captiontitlefont{\itshape\footnotesize} % Caption font specification
\captionnamefont{\footnotesize} % "Caption" text font specification
%----------------------------------------------------------------------------------------
% QUOTATION ENVIRONMENT FORMAT
%----------------------------------------------------------------------------------------
\renewenvironment{quotation}
{\par\leftskip=1em\vskip.5\onelineskip\em}
{\par\vskip.5\onelineskip}
%----------------------------------------------------------------------------------------
% QUOTE ENVIRONMENT FORMAT
%----------------------------------------------------------------------------------------
\renewenvironment{quote}
{\list{}{\em\leftmargin=1em}\item[]}{\endlist\relax}
%----------------------------------------------------------------------------------------
% MISCELLANEOUS DOCUMENT SPECIFICATIONS
%----------------------------------------------------------------------------------------
\setlength{\parindent}{1em} % Paragraph indentation
\midsloppy % Fewer overfull lines - used in the memoir class and allows a setting somewhere between \fussy and \sloppy
\checkandfixthelayout % Tell memoir to implement the above