mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-09 06:21:13 +00:00
New posts
This commit is contained in:
parent
2eb3effb87
commit
c743dd70a2
4 changed files with 367 additions and 0 deletions
24
content/blog/latexlistlabels.md
Normal file
24
content/blog/latexlistlabels.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
title: "LaTex List Labels"
|
||||
date: 2022-01-16T23:17:51-05:00
|
||||
draft: false
|
||||
tags: ["LaTex"]
|
||||
math: false
|
||||
---
|
||||
|
||||
A quick tip that I recently learned is that the symbols in a LaTex list item is changeable. In fact, the following technique works for both the `enumerate` and `itemize` environments.
|
||||
|
||||
```latex
|
||||
\begin{itemize}
|
||||
\item[$\square$] Item 1
|
||||
\item[$\triangle$] Item 2
|
||||
\end{itemize}
|
||||
|
||||
\begin{enumerate}
|
||||
\item[$\rho_1$] Property 1
|
||||
\item[$\rho_2$] Property 2
|
||||
\item[$\rho_3$] Property 3
|
||||
\end{enumerate}
|
||||
```
|
||||
|
||||

|
55
content/blog/termtosvg.md
Normal file
55
content/blog/termtosvg.md
Normal file
|
@ -0,0 +1,55 @@
|
|||
---
|
||||
title: "Term To SVG"
|
||||
date: 2022-01-17T10:14:22-05:00
|
||||
draft: false
|
||||
tags: []
|
||||
math: false
|
||||
---
|
||||
|
||||
With [`termtosvg`](https://github.com/nbedos/termtosvg) made by Nicolas Bedo we can make SVG animations from terminal output in the style of [asciinema](https://asciinema.org/). To install use [pipx](http://localhost:1313/blog/managepythonapps/).
|
||||
|
||||
```bash
|
||||
pipx install termtosvg
|
||||
```
|
||||
|
||||
To start recording, run the command `termtosvg`
|
||||
|
||||
```bash
|
||||
termtosvg
|
||||
```
|
||||
|
||||
It first outputs:
|
||||
|
||||
```
|
||||
Recording started, enter "exit" command or Control-D to end
|
||||
```
|
||||
|
||||
At "exit", by default it will save the animation to a random filename in the tmp folder.
|
||||
|
||||
```
|
||||
Rendering ended, SVG animation is /tmp/termtosvg_xmadgf9y.svg
|
||||
```
|
||||
|
||||
To control the default save location, pass in a filename after `termtosvg`
|
||||
|
||||
```bash
|
||||
termtosvg /path/to/savefile.svg
|
||||
```
|
||||
|
||||
To record only the execution of a particular command, use the flag `-c`
|
||||
|
||||
```bash
|
||||
termtosvg -c neofetch
|
||||
```
|
||||
|
||||
I recommend that you resize the terminal window so that the frames generated match the desired width and height. You can instead use the `-g` flag to pass in a geometry. ("100x30" creates a screen with 100 colums and 30 rows)
|
||||
|
||||
Lastly, if you don't want an animation, you can pass in `-s` and the result will be a folder of SVG files representing each frame.
|
||||
|
||||
```bash
|
||||
termtosvg -s
|
||||
```
|
||||
|
||||
Here is an example of an animation I made with this tool:
|
||||
|
||||

|
Loading…
Add table
Add a link
Reference in a new issue