# Category Archives: drawing

## Story

• It’s time to make a smoothie!
• I pour blueberries into the blender.
• Mama blends it all with some water.
• I peel and add a banana.
• Mama blends it again.
• Yum yum!

## Process

• Prerequisites

• ImageMagick
• Texlive (probably)
• latex-beamer
• Org Mode and Emacs
• Set up Org Mode export to Beamer

(eval-after-load "ox-latex"
;; update the list of LaTeX classes and associated header (encoding, etc.)
;; and structure
("beamer"
,(concat "\\documentclass[presentation]{beamer}\n"
"[DEFAULT-PACKAGES]"
"[PACKAGES]"
"[EXTRA]\n")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))))


• Set up image directories

mkdir text-pages blank-spreads drawn drawn-pages


 text-pages Will contain one image per page of just the plain text. blank-spreads Will contain text spreads ready for drawing drawn Export one image per spread (without the text layers) from your drawing program drawn-pages Will contain one image per page combining text and drawing

This file gets included in the LaTeX file for the children’s book. Tweak it to change the appearance. In this example, I use black serif text at the bottom of the page.

\geometry{paperwidth=7in,paperheight=8.5in,left=0.5in,top=0.5in,right=0.5in,bottom=0.5in}
\setbeamercolor{normal text}{fg=black,bg=white}
\setbeamercolor{structure}{fg=black,bg=white}
\usefonttheme{serif}
\setbeamertemplate{frametitle}
{
\begin{center}
\vspace{0.7\textheight}
\noindent
\insertframetitle
\end{center}
}
\usepackage[noframe]{showframe}
\renewcommand{\maketitle}{}


• Write the story

I used Org Mode to make it easy to write the story.

Some considerations:

• Because we’re printing this as a saddle-stitched booklet, the number of lines should be a multiple of four. Sixteen is probably a good maximum.
• The first heading is actually for the last page.
• The second heading is for the cover page.
• The third heading is for the first inner page, the fourth heading is for the second inner page, and so on.
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc author:nil date:nil
#+OPTIONS: H:1
#+startup: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [20pt]
#+BEAMER_FRAME_LEVEL: 1

* Story

**
**
**
** It's time to make a smoothie!
** I pour blueberries into the blender.
** Mama blends it all with some water.
** I peel and add a banana.
** Mama blends it again.
** Yum yum!


• Make the tex, PDF, page PNGs, and spread PNGs

1. Go to the subtree for the story and use M-x org-export-dispatch (C-c C-e) with the subtree option (C-s) to export it as a Beamer file (option l b).
2. Use pdflatex to convert the .tex to PDF.

pdflatex index.tex


3. Create one PNG per text page with:

convert -density 300 index.pdf -quality 100 text-pages/page%02d.png


4. Create spreads to draw on with:

montage text-pages/page*.png -tile 2x1 -mode Concatenate blank-spreads/spread%d.png


5. Optionally, create a layered PSD with:

convert blank-spreads/spread*.png $$-clone 1,0 -background white -flatten -alpha off$$ -reverse spreads-for-drawing.psd


• Draw

I imported the PNG layers into MediBang Paint on a Samsung Note 8 Android phone, and then:

• imported photos
• traced them
• hid the text layers
• exported one PNG per spread to QuickPic, renamed them, and uploaded them to Dropbox, because I couldn’t figure out how to export to Dropbox directly

Layer folders were handy for organizing spread-related images. I couldn’t seem to move all of the layers in a layer folder together on Android, but the iPad was able to do so. If I didn’t have the iPad handy, I combined the layers by exporting a PNG and then importeing it back into MediBang Paint.

This was a decent setup that allowed me to draw and paint even when I was in bed nursing A- and waiting for her to fall asleep. I held the phone with one hand and rotated the canvas as needed so that it was easier for me to draw lines with my right. Because of the awkward position and the small screen size, the lines are not as smooth as I might like, but the important thing is that they’re there. Whee! =)

It turns out to be possible to use the free MediBang Pro drawing program under Wine on Linux to import the PSD and save it to the cloud. I was also sometimes able to switch to drawing with iPad Pro with Pencil, but it was harder to find time to do that because that usually made A- want to draw too.

Anyway, after I drew and exported the PNGs, the next step was to…

• Convert the drawn spreads back to pages and combine them with the text

Here’s some code that combines the drawing and the text. Keeping the drawing and the text separate until this stage (instead of exporting the PNGs with the text) makes it easier to change the text later by recreating the text PNGs and running this step.

(defun my/combine-spread-drawing-and-text (page num-pages)
(let ((gravity (if (= (% page 2) 1) "West" "East"))
(spread (/ (% page num-pages) 2)))
(shell-command
(format
(concat "convert \$$" "drawn/spread%d.png -gravity %s " "-chop 50%%x0 +repage \$$ "
"text-pages/page%02d.png -compose darken "
"-composite drawn-pages/page%02d.png")

(cl-loop for i from 0 to (1- pages) do


This code pairs up the drawn pages into a PDF that can be printed duplex. Make sure to choose the option to flip along the short edge. I hard-coded the page orders for 4-, 8-, 12-, and 16-page booklets.

(let* ((page-order
'((0 1 2 3)   ; hard-coded page sequences
(0 1 2 7 6 3 4 5)
(0 1 2 11 10 3 4 9 8 5 6 7)
(0 1 2 15 14 3 4 13 12 5 6 11 10 7 8 9)))
(sequence
(mapconcat (lambda (d) (format "drawn-pages/page%02d.png" d))
(elt page-order (1- (/ pages 4))) " ")))
(shell-command
(format
"montage %s -tile 2x1 -mode Concatenate print-duplex-short-edge-flip.pdf"
sequence)))


• Print and bind

After printing and folding the book, I used tape to make the book hold together. Tada!

• Create on-screen PDF for reading

A little bit of manipulation so that the last page is in the right place:

(shell-command
(format "convert %s onscreen.pdf"
(mapconcat 'identity (cl-loop for i from 1 to pages
collect (format "drawn-pages/page%02d.png" (% i pages))) " ")))


(cl-loop
for i from 0 to (1- (/ pages 2)) do
(shell-command
(format
(concat "convert "
"\$$blank-spreads/spread%d.png " "drawn/spread%d.png " "-compose darken " "-resize %dx -flatten \$$ "
"\$$+clone -background black -shadow 50x1+%d+%d \$$ "
"+swap -compose src-over -composite "


• Ideas for next steps

• Better thumbnails for easy previews
• More layout possibilities (photos, verses, etc.)
• Smaller books:

• crop marks on a full-page print, or
• the right imposition rules to print more pages on a sheet

## Making books for A-

A- loves being read to. She picks up new words and ideas from the books we read, requests both favourites and new books again and again, and can identify objects in photographs and drawings. I borrowed a few children’s books from the library in case reading about upcoming changes or challenges helps her understand. The books were okay, but didn’t quite fit the words we use or the way we like to handle things. So this week, I decided to make my own books for A-, especially since there are few books that cover things like microphthalmia.

The first book I made was about night weaning, since we might have to do that in preparation for dental surgery under anaesthesia. I sketched it using ZoomNotes on my iPad, exported the SVG, tinkered with it in Inkscape, exported PNGs, combined the PNGs with ImageMagick, and created a 12-page PDF with 7″x8.5″ pages. That let me print the book out on legal-size paper (8.5″x14″), 2 pages per sheet, duplex printing set to flip on the short side, using this page order:
12, 1, 2, 11, 10, 3, 4, 9, 8, 5, 6, 7. I folded each sheet in half. Instead of hand-sewing the binding, I just taped the pages together. And just like that, I had a book that I could page through properly: “No More Nursing, Time to Sleep.”

I read the new book to A-. She asked me to reread it several times. She pointed to the book and said, “A-!” She pointed to the stick figure for me and said, “Mama!” Success!

The next thing I wanted to try was printing in colour. We recently replaced our printer with an HP M277dw colour laser printer that could print duplex, so I was looking forward to giving that a try. I wanted to make a book about the conformer in A-‘s little eye. This time, I drew the pages of the book using layers in Medibang Paint. I drew on the bus home from Riverdale Farm, working around a sleeping A- snuggled in my carrier. I exported each layer as a PNG, used ImageMagick to convert pairs of pages into what I needed to print (page order: 8, 1, 2, 7, 6, 3, 4, 5), combined those into a PDF. I couldn’t figure out how to get the HP app to properly scale the document and print in duplex, but printing from Linux worked fine. I quickly had another book in my hands: “My Conformer.”

She’s starting to echo phrases from the to books, and it’s been only a few days. Wow!

I’m working on a third book now. Time for something fun: “Let’s Make a Smoothie,” since she enjoys making and drinking them. She already knows all the words, so this is more about enjoyment. This time, I’m going to make a workflow that lets me draw on two-page spreads. I don’t have any wide drawings planned yet, but it could be handy for later. I made an Inkscape template to help me keep margins in mind. I learned how to use Medibang Paint’s folders to organize all the layers, and I’m getting the hang of digitally tracing and painting the photos I took.

I’m looking forward to making even more books and refining my workflow along the way. Here are a few things I want to try:

• Flat colour
• Painting
• Printing photos
• Two-page drawing
• Parametric templates
• Smaller format by cutting
• Heavier-weight paper
• Board book replacement
• Printing at Staples or similar
• Print-on-demand book
• Handstitching
• Binding with a cover
• Smaller format by folding and gluing
• Mobile workflow
• Vector drawing

And a few quick ideas for possible next books:

• Potty Time
• Brushing Teeth
• Feelings
• When I Feel Nervous
• Going to Sleep at the Dentist
• My Life
• My Day
• Going Out
• At Home
• I Can…
• I Can Draw
• Waiting
• Try Again
• Dressing Up
• Alimango sa Dagat
• Leron Leron Sinta

## Reflecting on my process for visual journaling

Over several nursing sessions, I flipped through all 750+ of my sketches from 2016 on my phone. It was a quick and wonderful overview of the past year. It’s amazing to see how much ground we’d covered one day at a time.

Taking 5-10 minutes at night to draw a visual journal worked out well. It was my second year with daily/weekly/monthly sketches, and my workflow held up to the demands of caring for a newborn. Some nights I fell asleep before A- let me sneak away, but the text notes I jotted throughout the day helped me reconstruct events even after several nights. I really liked having a record not just of what happened, but also what I was thinking about, and the little moments that would have been hard to capture in a picture. When we were dealing with lots of uncertainty, thinking out loud helped me untangle my thoughts and feel like things were manageable. Looking back over the past year, I think I like the person I was and the person I’ve grown to be.

I didn’t have much time or energy to dress up my sketches or go beyond a simple style. It was nice to see the sketches I spent some time colouring for presentation, though, and the drawing practice I occasionally indulged in. My copies of characters from the books I read to A- reminded me of those stories, and rough sketches of her (mostly sleeping, since that was the only time I could draw from life) made me smile. I think I’d like to make more time for drawing, not just capturing thoughts.

Still, it was so useful to have a tool for making sense of my fragmented thoughts. There was so much to figure out about parenting, time, uncertainty, anxiety, boundaries, philosophy, plans…
I found it easy to go through my sketches and remember what it was like at that point in time. Sometimes I wasn’t sure what a cryptic note on my sketch meant, especially if I didn’t cover it in my weekly review, but that’s okay.

I’m looking forward to continuing this habit in 2017. I’ve been experimenting with jotting down sketch ideas on my phone, so I can move more of the thinking out of my limited computer time. I’d like to make sure I play with more formats than just lists, though, since the nonlinearity of drawing can support thinking in a different way compared to writing. It would be nice to mix in more non-journal sketches, and more actual sketches and drawing exercises too. Maybe a daily cycle, to prompt me to expand…

I still haven’t finished my yearly review, but having all those weekly and monthly sketches sure made the process easier. Onward!

## Building a simple sketch navigator for myself

In 2015, I built the habit of drawing daily index-card-sized thoughts. Some days, I reached (or blew past!) my target of five index cards a day. Other days, I backfilled my daily journal entries based on fuzzy memories and my time logs. In February 2015, I started using a yyyy-mm-dd<letter> naming convention so that I could easily refer to individual cards. For a while, I tried to be fairly disciplined about organizing sketches into outlines and building up chunks into blog posts. That fell by the wayside when I found it difficult to concentrate, but I kept drawing anyway. I saved the images to my hard drive, started tagging them with keywords in the filenames, and uploaded my sketches to Flickr as a way to back up and share my files.

I’ve recently been exploring ways to take advantage of the Samsung tablet that W- bought some time ago. It works wonderfully as a second screen that I can use to review an old sketch while I draw another one. The FlickFolio app lets me do a random slideshow of the past 2000 images in my photostream or in an album. This turns out to be an excellent way to jog my memory and prompt me to revisit questions or decisions.

2016-01-22d What do I want from my idea pipeline – index card #zettelkasten #ideas #thinking #questions #index-cards.png

Now those fragmented thoughts are starting to pay off. Many of my old index cards are on topics I haven’t thought about in a while. It’s fun to see what I’ve learned in the meantime, or to follow up on things I’ve forgotten. It’s like I’d been filling an idea pipeline or seeding an idea garden. I get this steady stream of questions, decisions, observations, memories, ideas, and notes, and I can build on those prompts instead of having to start from scratch.

2016-01-18g How do I want my sketches to help me think – index card #drawing #sketches #zettelkasten #notes ref 2015-11-18a.png

I want these index cards to help me shuffle ideas and possibly see serendipitous combinations. They’re small, so capturing thoughts on them doesn’t require as much effort as, say, writing a blog post. They’re a good way to smooth out and organize thoughts, and I can chunk up those thoughts into longer posts. The sketches are easy to review, too, so they work well as digital footprints. I re-read the year’s blog posts as part of my annual review and sometimes I reread my posts on a monthly basis as well, but it’s not as immediate or as wide-ranging as flipping through a random selection of images.

A random slideshow is a good start, but I’ve been meaning to make a sketch browser that’s a little more tuned to what I want.

2016-01-18d What do I want in a sketch browser – index card #drawing #coding #plan.png

I wrote a simple NodeJS server that I can run on my laptop and access from the tablet (or other devices) while I’m on my home network. At first, I was trying to figure out an interface that would let me navigate by month/week/day, but then I realized that something simpler might be a more useful way to begin.

I started off by making it display random sketches:

Then I extended it to let me browse by tag:

And then to see a list of tags by frequency:

Or by alphabetic order, since that might be handier if I’m trying to look for something specific on a mobile device

I like distinguishing between daily/weekly/monthly/yearly reviews and non-journal sketches, too:

It’s nice to be able to build custom little tools like that. =)

Here’s the script on Github, in case you’re curious or you want to build on the idea.

## Working with fragmented thoughts

Some days it’s hard to hold a single thought and dive deeper into it. Sometimes it’s because I get distracted by other shiny thoughts. Sometimes my interest peters out. Sometimes I bump into the limit of what I can think about on my own, without experiments or research.

I’ve come to really like the way index cards let me capture ideas that aren’t quite blog-post-sized. Technically, I haven’t drawn a physical index card since early February, but the digital index cards I draw are calibrated to that scale.

Still, some days it takes me a really long time to draw five index cards. I catch myself wondering if I’ve picked a good question. Sometimes it takes a while to find the next step in the thought. Sometimes it’s easier to let my attention drift to other things.

On the other hand, there are some days when my mind is overflowing with little thoughts. It’s pretty easy for me to switch to another index card, scribble down part of a thought, and then come back to it later.

2015-06-01e Fragmented writing and drawing – index card #fuzzy #fatigue #writing #drawing #fragmentation

I’ve been figuring out a better way to work with fragmented thoughts. I tried flipping my habit by writing before drawing. Sometimes that’s a good way to clear my backlog, but sometimes it means I don’t get around to drawing.

Lately I’ve been experimenting with quickly capturing text fragments – a chunk even smaller than index cards. A few taps on my phone bring up a single-line prompt. Whatever I type into that dialog gets saved to a timestamped file named something like yyyy-mm-dd hh.mm timestamp - keyword.txt, and that’s synchronized over Dropbox to my computer. I have some code in Emacs to read those files and add them to a date-based outline, and I’ve included the code at the end of this blog post just in case it’s handy.

I’ve found myself capturing more and more of these snippets these days. When a possibly interesting thought occurs to me while I’m walking around, it’s easy enough to take a moment to unlock my phone and add a note. My Emacs-based workflow fits me a bit better than the Evernote-based one I used to use, but that’s the benefit of customization.

2015-05-24e Working with surface thoughts – index card #fuzzy #drawing #thinking

There’s still the challenge of bringing those thoughts together, of course. The text titles and fragment keywords are often enough to remind me of what I was thinking and how the different thoughts might be connected to each other, and I can always open the sketches in a new window if I want to refer to them. I have an ever-growing outline of sketches that haven’t yet been chunked into blog posts, and now I have a chronological tree of these little fragments. I have another bit of Emacs Lisp that lets me quickly get a montage of the sketches listed in part of my outline. Maybe I could use that more often – perhaps even randomly picking an outline node, coming up with a montage, and prompting me to either glue the chunks together into a blog post or draw whatever’s missing.

So this is what the index card workflow looks like as a whole:

2015-05-08b My index card management system – index card #zettelkasten #workflow #index-cards #drawing

and then the text fragments feed into the beginning of that thinking process.

It’s been almost six months of thinking with index cards. I sometimes feel pretty fragmented, but there are confounding factors so I don’t know whether that’s a side-effect of this way of thinking. But I think it’s unlikely that my past self was that much more coherent and better at concentrating. Remembering what it was like to write my notes before and what it’s like to write my notes now, I think I like this way a lot. I feel like I’m getting better at writing about the small things, not just the big things, and I’m gradually getting better at tying things together.

What might be some interesting next steps for this system?

2015-06-12h 6-month reflection on index cards – index card #index-cards #drawing #zettelkasten #chunking

It might be cool to visualize how much has been chunked and what’s still isolated, in a way that’s more engaging than my outline. I’m also curious about the time separation of thoughts. For example, this post brings together four cards spread over a little more than a month, a set of connections I probably wouldn’t have been able to follow without these notes.

The fragment code I mentioned:

(defun my/read-phone-entries ()
"Copy phone data to a summary Org file."
(interactive)
(mapc
(lambda (filename)
(let ((base (file-name-base filename)) contents timestamp category encoded-time date)
(when (string-match "^[^ ]+ [^ ]+ \$$[^ ]+\$$ - \$$.*\$$" base)
(setq time (seconds-to-time (/ (string-to-number (match-string 1 base)) 1000))
encoded-time (decode-time time)
date (list (elt encoded-time 4) (elt encoded-time 3) (elt encoded-time 5))
category (match-string 2 base))
(with-temp-buffer
(insert-file-contents filename)
(setq contents (s-trim (buffer-string))))
(with-current-buffer
(org-datetree-find-date-create date)
(unless (save-excursion (re-search-forward (regexp-quote base) nil t))
(goto-char (line-end-position))
(insert "\n")
(insert "**** " contents "  :" category ":\n" base "\n")
(insert (format-time-string "[%Y-%m-%d %a %H:%M]\n" time))

(if (member category '("Think" "Do"))
(save-excursion
(if (looking-at org-outline-regexp) (goto-char (1- (match-end 0))))
(unless (looking-at org-todo-regexp)
(org-todo "TODO"))))
(if (string-match "^Energy \$$[0-9]\$$" contents)
(org-set-property "ENERGY" (match-string 1 contents)))))
(delete-file filename))))
`

## How can I make better use of my index card drawing process?

I really like this practice of working with index cards, especially now that I’ve sorted out a sweet digital workflow for them.

2015-02-10 Evolution of my index card workflow – index card #drawing #workflow

I started with a straightforward workflow:

1. Think of a question.
2. Draw it on a paper index card.
3. After I complete 5+ index cards, scan the cards.
4. Convert and process the cards (colouring, etc.).
5. Rename the cards.
7. Add them to my Flickr set (and to blog posts and so on).

I replaced my Flickr uploading process with a script. Then I replaced the paper index cards with digital index cards. I wrote another script to make renaming files easier. Then I built an outline of questions and used that to create index card templates. So now my workflow looks like this:

1. I use Org Mode in Emacs to collect and organize questions. I use TODO states to track ones that need further research, ones that are ready to be drawn, and ones that are ready to be blogged.
2. When I switch to tablet mode, I can select questions to draw using a custom pen-friendly Emacs interface that sets up the template for me.

After I draft the blog post, I use another bit of code to move the relevant images out of my “To blog” directory and into another directory so that I can easily upload them (since I still haven’t tweaked the all-Emacs way of doing things the way I want them).

An index card is a good size for a chunk. It’s smaller than a blog post, so I can accelerate my learn-do-share-review cycle. If I invest more time into creating, organizing, and sharing them, I think they’ll pay off well. Other people report that their Zettelkasten (index card organization systems) become almost like conversational partners and collaborators. I already feel that way about my blog archive, and it will probably be even more

Hmm… Should I add a unique identifier to sketches so that I can refer to them more concisely than giving the full link? This mostly matters for referring to sketches in the drawing itself, since I can use links in text or metadata. For example, I can assign codes to each chunk, possibly differentiating between sketches (letters?) and blog posts (numbers?). So, maybe “2015-01-01a” for the first sketch on January 1, and “2015-01-01-1” for the first blog post? I could omit the dashes, but then searching requires that mental translation, so we’ll keep the dashes in there. The downside is that there’ll be a little additional clutter, but it might be interesting to experiment with – adding a reference line, and maybe even adding the info to the filename. It gives some linking capability that can survive the disparate systems I publish sketches to (my blog, Evernote, Flickr), even for sketches that don’t get turned into blog posts.

2015-02-08 Reflection on 5 index cards a day target – index card #drawing #reflection

Sometimes making five cards feels like a stretch, since I have to Think Interesting Thoughts. Using templates can help – I could make four cards and a journal entry, for example. I expect the awkwardness will subside as I build up my question store and do more research/experimentation.

Colour slows me down if I think about it too much or worry about becoming too repetitive. It might be fine to just quickly highlight things most of the time and save the development of colour sense for sessions of deliberate practice.

2015-02-09 How can I make better use of my index card drawing process – index card #drawing #index-cards #zettelkasten

In terms of thinking, spending the extra few minutes to think about and capture the next questions or actions for a card can make a big difference in my focus. I can also relax my chunking guidelines so that a single sketch can be fleshed out into a quick blog post instead of waiting until I accumulate several sketches related to the topic – taking my own advice to schedule Minimum Viable Posts. If I phrase my outline in terms of questions instead of keywords, I’ll probably find that more motivating and easier to scope.

2015-02-09 How can I make better use of my laptop – index card #tech

That will probably also help me with some of the bottlenecks I identified while contemplating how I can make better use of my laptop. I’m doing okay at generating questions and drawing index cards, but I can do better at translating those ideas into research, experiments, and blog posts. So, I can clear out more of my backlog of index cards that I want to share (probably ending up with two months of scheduled blog posts, or maybe even more!). Then I can research and try out more ideas, so I’m not just drawing questions that I can answer with what’s currently in my head. =)

Onward!