nerdicons

This commit is contained in:
tavo-wasd 2024-05-13 10:39:36 -06:00
parent 1b32e0e6b8
commit cf3c7d5cb9
4 changed files with 34 additions and 2 deletions

View file

@ -3,6 +3,12 @@
.
.EQ
delim $$
define l( ' left ( '
define r) ' right ) '
define l[ ' left [ '
define r] ' right ] '
define l| ' left | '
define r| ' right | '
define / 'over'
define pow 'sup'
define . '{ \[md] }'
@ -18,7 +24,7 @@ define )> '{ \[ra] }'
define ok '{ \[OK] }'
define in '{ \[mo] }'
define deg '{ \[de] }'
define vel '{ roman v }'
define vel '{ upsilon }'
define freq '{ nu }'
define and '{ \[AN] }'
define grad '{ \[gr] }'

25
scripts/grofftex Executable file
View file

@ -0,0 +1,25 @@
#!/bin/sh
# Compiler script for groff
# [-k (preconv)] Convert encoding to something groff understands
# [-e (eqn)] Format equations for troff or MathML
# [-t (tbl)] Format tables for troff
# [-p (pic)] Compile pictures for troff or TeX
# [-G (grap)] Typesetting graphs, usually not installed by default and not available on termux repo
# [-j (chem)] Chemical structure diagrams, messes with spacing, crashes when using text inside eqn
BIN="$0"
# Configuration
BIB="$HOME/Documents/bibliography" # Bibliography file
MAC="$HOME/.config/groff/" # Macros dir
PRE="-ketpG" # Preprocessors
FILE="$1"
sed "
s/Á/\\\['A\]/g; s/É/\\\['E\]/g; s/Í/\\\['I\]/g; s/Ó/\\\['O\]/g; s/Ú/\\\['U\]/g; s/Ý/\\\['Y\]/g; s/Ć/\\\['C\]/g;
s/á/\\\['a\]/g; s/é/\\\['e\]/g; s/í/\\\['i\]/g; s/ó/\\\['o\]/g; s/ú/\\\['u\]/g; s/ý/\\\['y\]/g; s/ć/\\\['c\]/g;
s/Ë/\\\[:E\]/g; s/Ÿ/\\\[:Y\]/g; s/Ü/\\\[:U\]/g; s/Ï/\\\[:I\]/g; s/Ö/\\\[:O\]/g; s/Ä/\\\[:a\]/g;
s/ë/\\\[:e\]/g; s/ÿ/\\\[:y\]/g; s/ü/\\\[:u\]/g; s/ï/\\\[:i\]/g; s/ö/\\\[:o\]/g; s/ä/\\\[:a\]/g;
" "$FILE" | soelim -I "$MAC" | refer -p "$BIB" | groff -ms -T dvi -U "$PRE" > "${FILE%.ms}.dvi"
dvipdf "${FILE%.ms}.dvi" && rm -f "${FILE%.ms}.dvi"

View file

@ -17,7 +17,7 @@ alias \
# Common
alias \
ls="exa -al --group-directories-first" \
ls="exa -al --icons --group-directories-first --no-permissions --no-user --time-style=iso --git" \
fzf="fzf --cycle --reverse" \
diff="diff --color=auto" \
grep="grep --color=auto" \

View file

@ -112,6 +112,7 @@ Plug 'vim-airline/vim-airline-themes'
Plug 'norcalli/nvim-colorizer.lua'
Plug 'vim-scripts/AutoComplPop'
Plug 'vim-airline/vim-airline'
Plug 'ryanoasis/vim-devicons'
Plug 'jiangmiao/auto-pairs'
Plug 'tpope/vim-commentary'
Plug 'Yggdroot/indentLine'