When working from home, my preferred writing environment is to use a huge fixed-width font on a large monitor with a matte finish, and nothing else on the screen. I write my text using either Markdown or LaTeX, depending on what the output format is going to be. And Yoda and Meditating Guy make me feel a little less crazy when I’m talking to myself. ;)
As a brief note to self, when you need to control spacing at the top of the title page (titlepage) in a LaTeX document, use the
\vspace command, as shown in this example:
Sometimes I think working with LaTeX is like sitting at the controls of the Nebuchadnezzar in The Matrix.
This past week I started working on the index for my book on Scala and functional programming. In retrospect I wish I had written the book using LaTeX (or some other technology) rather than Markdown; I would have started this process long ago.
Note to self: When trying to use Pandoc to create a PDF on MacOS, you need to install MacTex separately. Install everything, because it will make things much easier later.
To generate a list of all fonts available available with XeTex and XeLaTeX, use this command at your Unix command line:
fc-list : family
I found that command at this tex.stackexchange.com URL.
That command may also work with Windows, but I don’t have a Windows system to test with. Note that it took a little while to run the first time, then it returns almost instantly after that.
Markdown FAQ: How do I create comments in Markdown? Especially comments that won’t appear in the generated output.
Part 1 of my answer is that technically there is no way — or at least no standard way — to create comments in Markdown documents, other than to use HTML comments like this:
I’m looking into producing my Scala/FP book as a PDF, and as part of that I have been looking into Pandoc. With the exception of converting HTML tables into other formats such as Markdown or LaTeX, Pandoc has been working well so far.
Here are a couple of Pandoc commands to show you how easy this is:
If you use MacTex to install
pdflatex and all other LaTeX commands, as of mid-2016, the MacTex installation path is:
This means that the
pdflatex commands will be at /usr/texbin/pdflatex, and so on.
I don’t remember where I first saw this, but I just ran across it yesterday.