Saturday, 9 February 2019

Why I Write My Patterns and Lay Them Out in LaTeX

Today's @yarnlovechallenge prompt is Draft, so I thought I would talk a little bit about my workflow here. If you are interested in any of the things I write about below, please get in touch via email

Separate Calculations from Text

Screenshot of pattern development workflow
I write my patterns and grade them at the same time.

But I keep them separate while working on them.

The numbers, including stitch counts, measurements, and yarn requirements are in a spreadsheet, and I have code that import the numbers into my pattern.

This means that I always have a one true source, and I never get them confused while changing stuff, and it saves me a great deal of time I would otherwise spend on checking.

Inspect Code, Not Output  

Screenshot of my editing workflow

I do not like visually inspecting things to see if it was done correctly, because my spatial skills are deficient. I cannot tell if the font size is correct by looking at it, but I can read my code and see if I formatted it correctly.

Program My Diagrams  

Screen grab from Australian Under Wrap

I am no artist, and struggling with spatial stuff means that I do not feel confident with drawing at all, whether with pen and paper or digitally.

In LaTeX, I use the TikZ library to develop my diagrams. I write some code, compile it, and I can reason about my code versus what was compiled, and iterate until it is perfect.

I can also reuse my code. It can be really awesome for modular designs, because you can perform shifts, flips, and rotations with math rather than drag and drop.

LaTeX Makes Sensible Decisions For Me 

I do not have any experience doing layouts or things like that, beyond being frustrated by Word or Powerpoint.

By using existing libraries, I can rely on decisions made by someone else who has thought long and hard about how to make documents look good, without giving up control of the document. I can still muck around and change stuff, but so far, most of the time the defaults look quite professional.

Reusing Text 

Screenshot from Australian Under Wrap

Even though I am just starting out, I find that there there are many chunks of text I would like to re-use across patterns, particularly in the Techniques and Abbreviations section that most patterns have.

I have put together a separate file that I use across patterns, so that my text for things like how to do different cast-offs remain the same. And, should I come up with a better way to write something, I can update all of them with a simple script to recompile all the patterns for me.

It was really useful when I was obsessing over my bio section too.

Tuesday, 5 February 2019

Happy Year of the Pig! Here's to more content!

I aim to produce more knitting and crafting related content this year, and I am kicking this off as the other New Year begins. 

Nodding piggie in a Grab Car. Picture taken by Husbear

I have been thinking for some time that I should be able to write more about knitting. I knit a lot, I think about knitting a lot, and therefore, I should have content.

And I do, I just have not been writing it out.

I had forgotten that the only way to write more is to write more.

Now that I am writing this post, I feel that I have so much to write about. The knitting software I have been working on, the patterns that I have finished, and most of all, the knitting I have been doing.

It feels so good to say that. In 2018, I barely knit at all. It was the first extended dry spell from knitting I have had in my (admittedly short) knitting career.

I have finished a shawl already. I will most likely finish a skirt this month, and hopefully a cardigan before Edinburgh Yarn Festival. That will be as many items as I finished last year.

I will be back in a few days with more, but this is a start.