rename everything hehe

This commit is contained in:
tavo-wasd 2023-09-28 21:14:30 -06:00
parent 795bb1dd9b
commit ab56c08ce5
13 changed files with 95 additions and 83 deletions

30
groff/apa.tmac Normal file
View file

@ -0,0 +1,30 @@
.\" Taken from /usr/share/groff/current/tmac
.\" Here is the specification of the five possible reference styles
.\" provided by 'refer'. The example entries are taken from the ms
.\" macro package.
.\"
.\" ref*spec!0 Q A T S V N P I C D O -- other
.\" ref*spec!1 Q A T J S V N P I C D O -- journal article
.\" ref*spec!2 Q A T S V P I C D O -- book
.\" ref*spec!3 Q A T B E S V P I C D O -- article within book
.\" ref*spec!4 Q A T R G P I C D O -- technical report
.\"
.\" Here I rearrrange items to match APA format
.ds ref*spec!0 Q A D T S V N P I C O
.ds ref*spec!1 Q A D T J S V N P I C O
.ds ref*spec!2 Q A D T S V P I C O
.ds ref*spec!3 Q A D T B E S V P I C O
.ds ref*spec!4 Q A D T R G P I C O
.
.\" This swaps a comma for a dot after the date
.ds ref*spec!T:0 ". " " "\fI" "" "\fP"
.ds ref*spec!T ". " " "\\*Q" "" "\\*U"
.
.\" Common options
.R1
label "(A.n|Q) ', ' (D.y|D)"; bracket-label " (" ) "; "
join-authors ", " ", "
no-label-in-reference
date-as-label
accumulate
.R2

View file

@ -1,30 +0,0 @@
\" Taken from /usr/share/groff/current/tmac
\" Here is the specification of the five possible reference styles
\" provided by 'refer'. The example entries are taken from the ms
\" macro package.
\"
\" ref*spec!0 Q A T S V N P I C D O -- other
\" ref*spec!1 Q A T J S V N P I C D O -- journal article
\" ref*spec!2 Q A T S V P I C D O -- book
\" ref*spec!3 Q A T B E S V P I C D O -- article within book
\" ref*spec!4 Q A T R G P I C D O -- technical report
\"
\" Here I rearrrange items to match APA format
.ds ref*spec!0 Q A D T S V N P I C O
.ds ref*spec!1 Q A D T J S V N P I C O
.ds ref*spec!2 Q A D T S V P I C O
.ds ref*spec!3 Q A D T B E S V P I C O
.ds ref*spec!4 Q A D T R G P I C O
\" This swaps a comma for a dot after the date
.ds ref*spec!T:0 ". " " "\fI" "" "\fP"
.ds ref*spec!T ". " " "\\*Q" "" "\\*U"
\" Common options
.R1
label "(A.n|Q) ', ' (D.y|D)"; bracket-label " (" ) "; "
join-authors ", " ", "
no-label-in-reference
date-as-label
accumulate
.R2

View file

@ -1,2 +0,0 @@
.ds CH
.ds CF -\En[PN]-

View file

@ -1,12 +1,10 @@
\" Redefinición de registros comunes
\" para títulos y fechas en español.
.ds DY \n[dy] de \*[MO] de \n[year]
.\" Redefinición de registros comunes
.\" para títulos y fechas en español.
.
.ds ABSTRACT RESUMEN
.ds TOC Tabla de contenido
.ds REFERENCES Referencias
.
.ds MONTH1 enero
.ds MONTH2 febrero
.ds MONTH3 marzo
@ -19,9 +17,9 @@
.ds MONTH10 octubre
.ds MONTH11 noviembre
.ds MONTH12 diciembre
.ds REFERENCES Referencias
.
.ds DY \n[dy] de \*[MO] de \n[year]
.
.EQ
define sen 'roman "sen"'
define senh 'roman "senh"'

View file

@ -1,6 +1,6 @@
\" Quality of life utilities
\" for easier eqn usage.
.
.EQ
delim $$
define / 'over'
@ -18,7 +18,6 @@ define and '{~ \[AN] ~}'
define div '{~ \[di] ~}'
define <<< '{~ \[<<] ~}'
define >>> '{~ \[>>] ~}'
define sen 'roman "sen"'
define tan 'roman "tan"'
define sec 'roman "sec"'
@ -44,9 +43,9 @@ define arccosh 'roman "arccosh"'
define arccoth 'roman "arccoth"'
define arccsch 'roman "arccsch"'
.EN
\" From eqn manual, draws a diagonal
\" line through an expression
.
.\" From eqn manual, draws a diagonal
.\" line through an expression
.EQ
define cancel 'special Ca'
.EN
@ -57,9 +56,9 @@ define cancel 'special Ca'
\D'l \\n(0wu -\\n(0hu-\\n(0du'\
\v'\\n(0hu'
..
\" From eqn manual, draws a box
\" round an expression
.
.\" From eqn manual, draws a box
.\" round an expression
.EQ
define box 'special Bx'
.EN
@ -78,4 +77,3 @@ define box 'special Bx'
. nr 0d +1n
. nr 0h +1n
..

View file

@ -1,6 +1,6 @@
\" Markdown-like syntax for custom headings
\" and other text formatting options.
.
\" --- Headings ---
.de #
. nf
@ -65,7 +65,7 @@
\h'0n'\v'-1.2n'
. fi
..
.
\" --- Lists ---
.de *
. IP \(bu 2
@ -79,14 +79,14 @@
. IP \(bu 2
\\$1
..
.
\" --- Block quotes ---
.de >
. QP
. I
. ad b
..
.
\" --- Horizontal rule ---
.de ---
\l'\\n(.lu\(ul'

View file

@ -1,4 +0,0 @@
\# These lines set link text and border colours
.ds PDFHREF.COLOUR #193be5
.defcolor pdf:href.colour rgb \*[PDFHREF.COLOUR]
.ds PDFHREF.TEXT.COLOUR pdf:href.colour

View file

@ -1,7 +0,0 @@
\" Remove page headers and footers
.ds LH
.ds CH
.ds RH
.ds LF
.ds CF
.ds RF

View file

@ -1,17 +0,0 @@
\" Print a rule as long as specified
\" in the first argument
.de rule
\D'l \\$1 0'
..
\" Auto-numbered equation: \\n+[eqnnum]
\" Current equation: \\n[eqnnum]
.nr eqnnum 0 1
\" Auto-numbered figures: \\n+[fignum]
\" Current figure: \\n[fignum]
.nr fignum 0 1
\" Auto-numbered tables: \\n+[tblnum]
\" Current table: \\n[tblnum]
.nr tblnum 0 1

22
groff/utils.tmac Normal file
View file

@ -0,0 +1,22 @@
.\" These lines set link text and border colours
.ds PDFHREF.COLOUR #193be5
.defcolor pdf:href.colour rgb \*[PDFHREF.COLOUR]
.ds PDFHREF.TEXT.COLOUR pdf:href.colour
.
.\" Print a rule as long as specified
.\" in the first argument
.de rule
\D'l \\$1 0'
..
.
.\" Auto-numbered equation: \\n+[eqnnum]
.\" Current equation: \\n[eqnnum]
.nr eqnnum 0 1
.
.\" Auto-numbered figures: \\n+[fignum]
.\" Current figure: \\n[fignum]
.nr fignum 0 1
.
.\" Auto-numbered tables: \\n+[tblnum]
.\" Current table: \\n[tblnum]
.nr tblnum 0 1

24
scripts/snip Executable file
View file

@ -0,0 +1,24 @@
#!/bin/sh
# Snippets directory
snippets=~/Documents/snippets
# Navigate using fzf
fzf_nav() {
[ -d "$1" ] && cd "$1"
while true ; do
opt=$(/usr/bin/ls -AF1 --group-directories-first)
opt=$(printf "../\n$opt" | fzf --cycle --reverse --padding 2% --preview 'batcat --decorations never --color always {}')
[ -d "$opt" ] && cd "$opt" > /dev/null 2>&1 || break
done
[ -n "$opt" ] && echo "$opt"
}
# Select using menu
snippet=$(fzf_nav "$snippets")
# Exit if empty
[ -z "$snippet" ] && exit
# Copy to clipboard and notify
cat "$snippets"/"$snippet" | xsel -ib && notify-send "Snippet" "'$snippet' copied to clipboard!"
"$EDITOR" "$snippets"/"$snippet"