Ten Probably Handy Sites

A brief summary of 10 Incredibly Useful Websites on Medium. Upword.AI (paid) summarise stuff Gamma (free trial for the moment) get professional slides in min, not open source IMGCreator (free, point-based) text/img → img, chatGPT powered Popsy (free to create, paid to publish) no-code website buider Visual Capitalist (free) explanatory charts TypeLit.io (free for some œuvres, paid for own book) type classics out to train typing Zorp.one (free for trial, paid for deploy) no-code app generator for businesses, e. [Read More]

Encrypt PDF on Command Line

Background On M$ Win*, I don’t have dedicated PDF readers like Adobe. During visioconference, one might want to share some downloaded PDFs. Those documents can be part of an ebook or notes. In some situations, they can provide context to a discussion. Problem Under the same folder, you might have downloaded_ebook.pdf personal_info.pdf other_personal_stuff.pdf that you don’t want to expose while streaming. However, each downloaded PDF usually comes with a name set by others. [Read More]
PDF  QPDF 

Adjust Git Bash Font and Window Size

Goal

Make the characters larger and more readable.

Solution

The option names might be found in the manual. Sometimes, I find opening MINGW’s settings through GUI helpful.

FontHeight=12
Columns=143
Rows=36

I’ve read Gerald Lee’s .minttyrc. I’ve enlarged the window size so that in the standard output, one line can contain more info.

Fujitsu LH532 Thermal Paste Application

Background My old laptop was bought ten years ago. I had never changed the thermal paste between its CPU and its fan. As a result, it had been getting hot during my online tutorials. Photos thermal paste on CPU displaced after ten years thermal paste on fan displaced after ten years dried thermal paste cleaned and removed with isopropyl and kitchen towel I had to look at a previous article written five years ago to confirm the part that I wanted to disconnect. [Read More]

Removed jQuery Dependency from My Math Editor

Background jQuery provides many handy functions to speed up the development, for example document.ready(), element.toggle(), element.hide(), etc. My math editor used some of them. However, I replaced them with Vanilla JavaScript at commit 4a35c45b. Goal Some users complained about the white background in the past versions of my editor. That had motivated me to refactor the code, so that it would be easier to maintain and to add in new features. [Read More]

Showdown KaTeX With mhchem

mhchem support for Showdown-KaTeX

Background I’ve written about bringing user-defined KaTeX macros into Hugo a few years ago. Looking back, I realized that I only knew how to copy code at that time. Goal To replace the current code for my math editor with Showdown-KaTeX. To bring mhchem into my LaTeX + Markdown sandbox. Motivation To get the benefits of the three free (as in “freedom”) technologies. Markdown syntax is (much) simple(r than its LaTeX equivalent, especially for tables, ordered/unordered lists, etc). [Read More]

Tikz to SVG in VS Code

My little LaTeX Workshop recipe

Goal View SVG graphics generated from TikZ code in VS Code. Compile TikZ code and preview SVG in VS Code with LaTeX Workship and SVG Preview Part I: generate SVG using LaTeX Workshop From the IDE’s parameters tab, I found the tools and recipes parameters. I clicked my user settings settings.json twice: once through the tools, and once through the recipes. Each click generated an array of default recipes or tools. [Read More]

dvisvgm Guide for TikZ Pictures with Pattern Filling

A quick note of the right commands for the conversion

Problem I had issues in getting a SVG from a TikZ picture containing a pattern filling: https://github.com/mgieseki/dvisvgm/issues/158. The reported issue was created last year, and it’s marked as fixed. Nonetheless, I had this issue even though my MikTeX was up-to-date. Discussion I wanted to confirm whether my dvisvgm.exe, which had been shipped with MikTeX, was latest. I first asked at https://github.com/mgieseki/dvisvgm/issues/184, but I was referred to MikTeX’s GitHub repository since it’s about the MikTeX-packaged version of this tool. [Read More]
LaTeX  dvisvgm  SVG 

Git Warning: LF Will Be Replaced by CRLF

I’m using Git Bash while writing this post. I’ve never tested the commands on *nix. Background Some of the tags and titles were written as “LateX”/“latex” in the source files. I batch corrected them with Git Grep and GNU Sed. git grep --name-only -IiE ^-\ latex$'\r'? content/{post,page} | \ xargs -n1 sed -i "s/^- latex/- LaTeX/I" I tried to match a leading - using ^- a whitespace \ escaped by a backslash to avoid wrapping the special character below with double quotes the string “latex” (case-insensitive) the carriage return \r, which is represented by $'\r' in bash, for at most once (? [Read More]
Git  sed 

LaTeX Table Background Color for TeXit

Problem In my previous post about LaTeX tables, I used \cellcolor{white} to override the \rowcolor{cyan} in a cell in the leftmost column, which was the column type name. On Discord, that cell became black because TeXit inverted black and white. Discussion I first tried blending black and white, and I found that black!27 and black!28 give a good approximation to Discord’s background color. Thanks to this Discord Color Palette and a bot command channel on a server, I’ve observed that the desired color is RGB(54,57,62). [Read More]
LaTeX  TeXit