Updates to «Coda»
This commit is contained in:
parent
54002ad6bc
commit
cdde9b661e
@ -898,7 +898,7 @@ Just substitute one of the counter variables from table \ref{tb:enumcountervar}
|
||||
|
||||
\subsection{the \texttt{ccicons} package}I release this zine under a Creative Commons license (which you can read about on page 2). I used to include a small image that summarizes that license, which I had downloaded from the Creative Commons website. As it turns out, the \texttt{ccicons} package will do this for you—no need to add that image.
|
||||
|
||||
(I actually learned about this while working on issue \#4, but it was very close to the end and I came across it accidentally—it wasn't something I was looking for. Serendipity is somethings a thing, so here we are.)
|
||||
(I actually learned about this while working on issue \#4, but I was very close to the end and I came across it accidentally—it wasn't something I was looking for. Serendipity is somethings a thing, so here we are.)
|
||||
|
||||
You can add icons individually, but it also has commands to typeset each license and its icons. Because it's basically just a font, you can do with it whatever you would normally do with other text. For example, these lines
|
||||
|
||||
@ -932,7 +932,7 @@ Notice that the built-in command includes a little bit of space between the icon
|
||||
|
||||
You'll notice that chapter \ref{dephell} has a lot of code samples that include code that you enter into the terminal. As such, they include a dollar sign (\$) to indicate the prompt.
|
||||
|
||||
While it's easy enough to include those in a \texttt{verbatim} environment, I'm using a GUI to create this (Texmaker,\footnote{See \kref{https://www.xm1math.net/texmaker/}{https://www.xm1math.net/texmaker/} for more information.} in fact) and anything in math mode—that is, anything that follows a dollar sign—is highlighted in green until it gets to another dollar sign. If it doesn't, then everything after that dollar sign is green, which kind of defeats the purpose of code highlighting.
|
||||
While it's easy enough to include those in a \texttt{verbatim} environment, I'm using a GUI to create this (Texmaker,\footnote{See \kref{https://www.xm1math.net/texmaker/}{https://www.xm1math.net/texmaker/} for more information.} in fact) and anything in math mode—that is, anything that follows a dollar sign—is highlighted in green until it gets to another dollar sign, even in a \texttt{Verbatim} environment. If it doesn't, then everything after that dollar sign is green, which kind of defeats the purpose of code highlighting.
|
||||
|
||||
The easy way around this is to write up those code samples in an independent \texttt{.tex} file, and then use the \texttt{input} command to add them at the appropriate point in my story. That keeps the source code in my GUI nice and clean looking, and means that the text highlighting actually means something.
|
||||
|
||||
@ -940,14 +940,14 @@ The \texttt{include} command works in a similar way, but adds a pagebreak before
|
||||
|
||||
\subsection{Ligatures and \LaTeX{} }
|
||||
|
||||
I have a table of basic Git commands on page \pageref{tb:gitcommsum}. One of the commands is \texttt{git -{}-version}. Notice that ``version'' has two hypens in front of it, as is typical with full-word bash options. But just typing two hypens didn't display two hypens, it displayed a single hyphen. I was momentarily confused.
|
||||
I have a table of basic Git commands on page \pageref{tb:gitcommsum}. One of the commands is \texttt{git -{}-version}. Notice that ``version'' has two hyphens in front of it, as is typical with full-word bash options. But just typing two hyphens didn't display two hyphens, it displayed a single hyphen. I was momentarily confused.
|
||||
|
||||
What I forgot is that \LaTeX{} has a habit of collapsing multiple hyphens into ligatures. Two hyphens get converted to an en-dash, and three hypens get converted to an em-dash. But because this was displaying in a monotype font, it looked like an ordinary hyphen, even though it was an en-dash.
|
||||
|
||||
The fix for this was to use the \texttt{\{\}} token between the two hyphens. Without it, \LaTeX{} sees the two hyphens as a single entity, whereas with it, it sees them as two separate entities. Using this in my file
|
||||
|
||||
\begin{Verbatim}[]
|
||||
git -\{\}-version
|
||||
git -{}-version
|
||||
\end{Verbatim}
|
||||
|
||||
\noindent{}gives me what I needed: \texttt{git -{}-version}.
|
||||
@ -973,7 +973,7 @@ Still, I applaud the work that went into this. If nothing else, it shows that yo
|
||||
|
||||
\subsection{A Git hosting Alternative}
|
||||
|
||||
When speaking about public Git repos earlier, I mentioned the only two that I knew of: GitHub and Gitlab. But I just recently found about about Codeberg\footnote{\kref{https://codeberg.org/}{https://codeberg.org/}}, which run by a non-profit in Germany. I'm going to sign up for an account and test it out. I'll get back to you on how it works out.
|
||||
When speaking about public Git repos earlier, I mentioned the only two that I knew of: GitHub and Gitlab. But I just recently found about about Codeberg\footnote{\kref{https://codeberg.org/}{https://codeberg.org/}}, which is run by a non-profit company in Germany. I'm going to sign up for an account and test it out. I'll get back to you on how it works out.
|
||||
|
||||
%\newpage % Use only to keep the afterword together if we end up with orphans
|
||||
\section{Afterword}
|
||||
@ -984,7 +984,7 @@ When speaking about public Git repos earlier, I mentioned the only two that I kn
|
||||
|
||||
What got me unstuck\footnote{I don't believe in writer's block. As Stephen King said, there's no such thing. After all, snow plow drivers don't get snow plow driver's block. That said, it is possible to adopt some unhealthy thinking patterns that make you get \textit{stuck}.}—that is, what turned this from a ``have to do'' back to a ``get to do''—was to focus on the process, and not the product. I let myself have fun with it, in other words. That's something I need to periodically remind myself of, even when the thing in front of me is an actual ``have to do'' like my job. Despite the fact that my job is boring me to death, there are still aspects to it that are quite enjoyable. I try to enjoy them as much as possible, and not let them be overshadowed by the parts I don't really like.
|
||||
|
||||
In old news, I do occasionally make other zines besides this one, and I have a website for all of them at \kref{https://just13.click/}{https://just13.\\click/}.
|
||||
In old news, I do occasionally make other zines besides this one, and I have a website for all of them at \kref{https://just13.click/}{https://just13.click/}.
|
||||
|
||||
I used to have a mailing list, but Mailchimp blew it up. If you want an email notification of when I produce a new zine, feel free to send me an email at \texttt{wolfgangswishlist@gmail.com} and let me know which zines you want to hear about.
|
||||
|
||||
@ -996,7 +996,7 @@ I also have a forum for this zine\footnote{\kref{https://forums.kjodle.net/forum
|
||||
|
||||
Also, I joined Mastodon a while ago, but am just now getting serious about it. You can find me at \kref{https://mastodon.social/@kjodle}{https://mastodon.social/@kjodle} where I will post updates, probably using the hashtag \texttt{\#thecodex}.
|
||||
|
||||
I've also included some Easter eggs in this issue. If you find them, I'd love to hear about it. As a former teacher, I'd be thrilled to know that you are reading to the bottom of the page.
|
||||
I've also included some Easter eggs in this issue. If you find them, I'd love to hear about it. As a former teacher, I'd be thrilled to know that you are reading all the way to the bottom of the page.
|
||||
|
||||
\medskip
|
||||
\begin{flushright}
|
||||
|
Loading…
Reference in New Issue
Block a user