Creating a portfolio PDF from my blog
Firstly, touch up my blog articles to be suitable for PDF
Do this by automating vim with emacs.
Find blog articles without LATEX_HEADER
|
|
./aws-services.org
./rat.org
./music-playlists-in-emacs-lisp.org
./minor-mode-wrappers-for-shell-commands.org
./review-of-introduction-rust-by-example.org
Automate vim with emacs keyboard macros
I want to add the latex header to all the blog posts without one.
This is the header I’d like to add:
|
|
The find script will start vim with the output of a find command.
|
|
/tmp/nsfa-find-name-org-eipct-x-e-grep-q-latex-hea.sh
Start the find script inside emacs.
This puts vim inside emacs with the results.
|
|
Create a pdf for every blog post
Make the sort-blog-posts-by-date
script
This script scrapes dates from the contents of
each blog post using rosie lang
and then
generates a JSON
file using jq, sorted by
the date.
The jq
input
function is used to load lines two at a time into individual json
objects.
|
|
Here is an excerpt:
|
|
|
|
Make the e-org-latex-export-to-pdf
script
This script automates emacs using tcl/expect
to open a blog post and then export latex
code.
The tex
file is then converted to a pdf
.
|
|
Make the create-portfolio-from-blog
script
This script uses the above two scripts to
generate pdfs
for all of the blog posts.
|
|
Combine the pdfs into one
|
|
Completed portfolio file
Thanks for reading!
If this article appears incomplete, it may be intentional. Try prompting for a continuation.
If this article appears incomplete, it may be intentional. Try prompting for a continuation.