From: Craig Maloney Date: Sat, 23 May 2020 20:30:22 +0000 (-0400) Subject: Adding cover image X-Git-Tag: 20200523.01^2~1 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=c696e195d0bb40f46f41c021d3591d8c848ddfc5;p=themediocreprogrammer.git Adding cover image --- diff --git a/Pandoc/templates/cs-6x9-pdf.latex b/Pandoc/templates/cs-6x9-pdf.latex index 04c3b96..25087c5 100644 --- a/Pandoc/templates/cs-6x9-pdf.latex +++ b/Pandoc/templates/cs-6x9-pdf.latex @@ -104,6 +104,7 @@ \usepackage[bookmarks=true]{hyperref} + \hypersetup{pdfstartpage={}} \hypersetup{unicode=true, @@ -273,6 +274,13 @@ $endif$ \newfontfamily\normalfont[Ligatures=TeX, Numbers=OldStyle]{Linux Biolinum O} \newfontfamily\titlefont[Scale=1.75, Ligatures=TeX]{Linux Biolinum O} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%% Images +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Needed for images; used for cover +% \usepackage{incgraph,tikz} +\usepackage{pdfpages} + %\setmainfont %\renewcommand{\sfdefault}{URW Gothic} %\setmonofont @@ -323,6 +331,23 @@ $endif$ % These pages don't count for document page numbering \frontmatter +%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%% Create a cover page +%%%%%%%%%%%%%%%%%%%%%%%%%%% +% No headers or footers +\pagestyle{empty} + +% The image +\includepdf{$cover-image$} +% \incgraph[documentpaper] +% [height=\paperheight]{$cover-image$} % Fit to height + +%% Stretch image to fit page +% [width=\paperwidth,height=\paperheight]{$cover-image$} + +% End the page +\clearpage + %%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%% %% Create a titlepage diff --git a/gratitude.md b/gratitude.md index 01e96c4..0bab37c 100644 --- a/gratitude.md +++ b/gratitude.md @@ -4,7 +4,7 @@ This book would not exist without the folks who have accompanied me on my journe I also am grateful for the work of Leo Babauta of [Zen Habits][5] which provided me the ideas of mindfulness and focus containers. They have been transformative in my own work, as this book demonstrates. I committed to spending at least 10 minutes each morning writing each section, and the results are the work you see before you. -Thank you to those who helped me directly with this project. Thank you to my mom, Sharon Maloney, for help in my editing of this book. Any mist steaks what remain are an responsibilities of the author. Thank you to Beau Sheldon for reviewing the chapter on mental health and for helping me to better understand and highlight areas where folks struggle. Thank you to my friend, David Revoy, for his amazing cover art and for his inspiration throughout the project. Thank you to the beta readers for your valuable comments and feedback in the Framagit Repository, including (in alphabetical order by handle or first name): Brendan Kidwell, D. Joe Anderson, David Revoy, Jer Lance, Matthew Piccinato, Matthew Balch, Midgard, Nicholas Guarracino, RJ Quiralta, Valvin, and Wilhelm Fitzpatrick. +Thank you to those who helped me directly with this project. Thank you to my mom, Sharon Maloney, for help in my editing of this book. Any mist steaks what remain are an responsibilities of the author. Thank you to Beau Sheldon for reviewing the chapter on mental health and for helping me to better understand and highlight areas where folks struggle. Thank you to my friend, David Revoy, for his amazing cover art and for his inspiration throughout the project. Thank you to the beta readers for your valuable comments and feedback in the Framagit Repository, including (in alphabetical order by handle or first name): Brendan Kidwell, D. Joe Anderson, David Revoy, Eric Hallam, Jer Lance, Matthew Piccinato, Matthew Balch, Midgard, Nicholas Guarracino, RJ Quiralta, Valvin, and Wilhelm Fitzpatrick. My deepest gratitude goes to my wife JoDee and my parents for their support and belief in me. Words cannot express the love and thanks I have for you. diff --git a/images/cover.jpg b/images/cover.jpg deleted file mode 100644 index d92d4b8..0000000 Binary files a/images/cover.jpg and /dev/null differ diff --git a/images/cover.png b/images/cover.png new file mode 120000 index 0000000..4d4d4a3 --- /dev/null +++ b/images/cover.png @@ -0,0 +1 @@ +cover_ebook_1600x2400.png \ No newline at end of file diff --git a/images/cover_ebook_1600x2400.png b/images/cover_ebook_1600x2400.png index c7bb205..91f545d 100644 Binary files a/images/cover_ebook_1600x2400.png and b/images/cover_ebook_1600x2400.png differ diff --git a/metadata.yaml b/metadata.yaml index c13b150..0625d67 100644 --- a/metadata.yaml +++ b/metadata.yaml @@ -8,5 +8,6 @@ contributors: publisher: 'Craig Maloney' website: 'http://themediocreprogrammer.com' tags: [developer, programmer, mediocre] -year: 2019 +year: 2020 +cover-image: './images/cover.png' ---