Plain Text Story Formatting, Part Two

This is the nerdy one. I talked previously about how I use plain text to write these days, but left the final formatting out of that discussion.

The fact is you can do formatting in this manner as well, you don’t need to copy paste into Word. There are a few things you will need, however: Some basic HTML / CSS knowledge; a program called Pandoc and comfort with the command line; and an app called Marked.

To start, this is Macintosh centric, as that is what I have. Pandoc will work on Windows and Linux too, which is good, as it is very useful. Marked, however, is just for the Mac. While I suspect there are Windows and Linux equivalents, I can’t speak to how they work.

First lets look at Marked and take about what it does. When I write, I used a syntax called markdown. It uses things asterisks to designate italics and bold, pound signs (hashtags…) for headings, etc. It is very simple, and since for the most part the only real thing we use in fiction is italics and possibly headers, there are very few things to remember.

Now, in principle what Marked does is similar to what your browser does when you look at a web site. Websites are just text files as well, but when the browser gets it, it renders it into a webpage. Marked does the same thing with your markdown syntax.

So instead of *this* it looks like this, which is what you wanted.

Now Marked also has a large collection of style sheets. This lets you change how your file will look, and hey, one of them is even standard manuscript format. That’s nice.

With a simple click your story is all formatted, ready to go. Need it changed? Marked comes with 9 pre-set style sheets, and since they are just CSS, making your own (or tweaking what is there) is quite easy.

It isn’t an editor. You will need to still open up your text file in whatever application you were writing in (I may have suggested Byword once or twice…) to change things.

But, for those following along at home, you may have question. When I talked about my story format, I had all of these other sections, like Notes and Characters in my file. What happens to those sections?

The nice part about markdown is that it is open to HTML as well. We will take the “comment” tag from HTML and fix this right up. As you recall, the layout I use looks like this:

Title: (title here)
Author: (my name)

To-Do

Summary

Characters

Locations

Notes

Story

Archive

Now, we will add comment tags, which look like this:

<!--
comments go here
and you can’t see them
-->

Which, when rendered in HTML, looks like this:

(That was a programming joke.)

So, what do we do? We enclose the parts that we don’t want to show in the final version in those comment tags, like this:

<!--
Title: (title here)
Author: (my name)

# To-Do

# Summary

# Characters

# Locations

# Notes

# Story
-->
# Title
## By Me

Once upon a *time*...

~fin~
<!--
# Archive
-->

And, since we don’t show comments, Marked passes over all of that. All we will get is:

Title

By Me

Once upon a time

~fin~

Thus, allowing me to keep all that information where I want it: in the file with the story itself, AND also have a well formatted document. (that other stuff is still there, if you looked at the source code of this post you would see it)

Marked lets you change the CSS if you want, so you can adjust fonts, spacings, indents, etc. Simply export from Marked to quite a few formats, like DOCX, PDF, and RTF

Pandoc

Pandoc provides a more versatile set of tools for those comfortable with the command line. For me, the feature I use the most is converting files into ebooks. Pandoc will convert my mess above into a full epub with a table of contents.

It makes it quite easy to add things as well. So if your file was mystory.txt and you had a bio.txt file of your well crafted biography, you can make an ebook like this:

pandoc -o mystory.epub mystory.txt bio.txt 

Simple, no? The -o tag is for output file name, which is in this case mystory.epub. Pandoc can tell what the file is by the extension, but you can also designate, like this:

pandoc -o mystory.epub  mystory.txt bio.txt -t markdown -s

Now, if you want to be more hands on, you can be. Pandoc lets you change the stylesheets, set a cover, add in the metadata.

You can do something similar with DOCX files. If you make a Word file that is formatted the way you want yours to be, Pandoc will use the same styles for your file. like this:

pandoc -o mystory.docx mystory.txt bio.txt --reference-docx=myotherstory.docx

And now your new mystory.docx file will have the same styles as myotherstory.docx has.

And this is just a drop of what Pandoc can do. If you need a quick powerful tool to convert files, this one is worth looking at.

Why?

Why? why do this? Why not just have piles of Word documents? All of this was spawned from the need to have so many different file formats for one story. The story starts off any way you want, but once complete, you will need an ebook, a PDF, a print version, Kindle one, etc.

And then you find one mistake, and now have to make sure you fix it in all of those.

I’m in the process of incorporating this structure into the creation of LampLight as well, allowing me to format once, and produce four files at the push of a button. (well, a few because I have to type, but still).

It also allows for greater control over the epub output, and mades it easier to spin updates if needed.

But the important part–important to me, that is–is the file format. As plain text, I know those story files can always be opened up. The work done to format, to clean up the files, to make these things will not be lost simply because a new version of some other software comes out.

And that, the future proofing of these files, is worth the extra effort.

Looking Back, Looking Forward

Lately I have been using composition notebooks as my primary notebook. This was more a fallout from an after school sale than any other factor, buying a stack for the year at 50¢ a piece.

An investment well worth the cost.

These notebooks, for those who haven’t used one in a while, are stitched in the center, and folded. And here, on this center spread, I’ve formed a new habit.

When I get to these pages, I use both sides and write a journal that is themed ‘Looking Back, Looking Forward’. I write about my goals, how they are doing, how they are progressing, things like page counts and monthly challenges.

I write about the stories and poems themselves, which are working, which are falling behind. Which ones I should be focusing on, and which need to rest a while?

Then I look forward. Do I want to keep all the goals? Should I try something new, or return to something old? Which things are going to be my focus, and which things will wait?

I fill both pages of the spread with this self-reflection, taking just a few moments of time. But important moments.

The good thing about this reflection is that it comes not at a calendar moment, like the new year, or my birthday, but at an unplanned one, just when the center of the book is reached.

I reached the center of my notebook last night, a center that took longer than expected to reach. Still, a moment of reflection found that the time had been well spent, spread over several notebooks now, instead of one.

Realigned, reflected, ready to write.

After The Horror Show, with Brian Keene

I was on The Horror Show with Brian Keene this week. It was a great time, and (I hope) a good talk with Brian and Dave (and Phoebe!).

We talked the origins of Apokrupha and Lamplight, about new releases–LampLight Volume 3 and The Honey Mummy by E. Catherine Tobler— and about Samhain closing down, shark movies and more.

Here are some links and follow on discussions from the interview. (and maybe a link so you could subscribe to LampLight)

Dream Authors

Keene asked me about what my dream authors for LampLight would be… and I promptly stumbled over my words. Here is a short, and by no means complete, list of dream authors.

  • Elizabeth Hand
  • N. K. Jemisin
  • Livia Llewellyn
  • Laird Barron
  • Joyce Carol Oates

Presses

We spoke of other presses I admired and thought were doing a good job. Just wanted to list them again, and add one I forgot on air, Raw Dog Screaming Press.

And here is the blog post Keene talked about.

Poetry

I talked on three different poetry challenges I’ve been doing this year. Here is more info and links for all three!

1 in 12

I want you to write one poem in 2016, but write it 12 times, seeing what time brings to the process.

Monday Poems

I want you to take a moment every Monday morning and write a poem.

April Poems

Write one poem a day for all of April

My Books

Volume 3 of LampLight is out, which I edited. Check it out, there are some amazing stories in this one.

cover-extrospections-frontaprilpoems_cover_ebook

 

 

 

 

 

 

My poetry collections, Extrospections and April Poems 2011.

April Poems, 2015 will be out in April, AND come join us on Facebook if you want to do your own April Poems.

If you use Smile.Amazon.Com, they donate a portion of your purchase to charity, and I suggests Scares That Care!

Thanks for listening, I hope you enjoyed it.