diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2021-03-17 23:30:52 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2021-03-17 23:30:52 -0400 |
commit | a0bf2535ff02070b290995ba985214b4cf9faace (patch) | |
tree | ab677e2b3556b5ed8210ab860f77fbab6d09cf6e /.local/bin | |
parent | 60c0561a1ab38b27c85fa73220a04d6dce36ca93 (diff) |
Updating to 2021-03-17 state
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/define | 3 | ||||
-rwxr-xr-x | .local/bin/gd2pdf | 3 | ||||
-rwxr-xr-x | .local/bin/groffdown | 54 | ||||
-rwxr-xr-x | .local/bin/opout | 2 | ||||
-rwxr-xr-x | .local/bin/texinit | 9 |
5 files changed, 8 insertions, 63 deletions
diff --git a/.local/bin/define b/.local/bin/define deleted file mode 100755 index ac3c61f..0000000 --- a/.local/bin/define +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -sdcv --color $1 | less diff --git a/.local/bin/gd2pdf b/.local/bin/gd2pdf deleted file mode 100755 index 057f13a..0000000 --- a/.local/bin/gd2pdf +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -groffdown "$1" | refer -PS -e -p"$REFERBIB" | groff -me -ms -kejpt -T pdf | zathura - diff --git a/.local/bin/groffdown b/.local/bin/groffdown deleted file mode 100755 index f2810a5..0000000 --- a/.local/bin/groffdown +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash - -file=$(readlink -f "$1") -dir=$(dirname "$file") -base="${file%.*}" - -output=$( sed -e '1,1d - s/title:/\.TL\n/ - s/author:/\.AU\n/ - s/date:/\.ND\n/ - s/institution:/\.AI\n/ - - s/\\begin{abstract}/\.AB/ - s/\\end{abstract}/\.AE/ - - s/^\#####.\(.*\)/\.NH 5\n\1\n\.PP/g - s/^\####.\(.*\)/\.NH 4\n\1\n\.PP/g - s/^\###.\(.*\)/\.NH 3\n\1\n\.PP/g - s/^\##.\(.*\)/\.NH 2\n\1\n\.PP/g - s/^\#.\(.*\)/\.NH 1\n\1\n\.PP/g - - s/\*\*\*\(.*\)\*\*\*$/\n\.BI\ \"\1\"\ /g - s/\*\*\*\(.*\)\*\*\*\(.\)$/\n\.BI\ \"\1\"\ \"\2\"/g - s/\*\*\*\(.*\)\*\*\*\(.\)/\n\.BI\ \"\1\"\ \"\2\"\n/g - - s/\*\*\(.*\)\*\*$/\n\.B\ \"\1\"\ /g - s/\*\*\(.*\)\*\*\(.\)$/\n\.B\ \"\1\"\ \"\2\"/g - s/\*\*\(.*\)\*\*\(.\)/\n\.B\ \"\1\"\ \"\2\"\n/g - - s/\*\(.*\)\*$/\n\.I\ \"\1\"\ /g - s/\*\(.*\)\*\(.\)$/\n\.I\ \"\1\"\ \"\2\"/g - s/\*\(.*\)\*\(.\)/\n\.I\ \"\1\"\ \"\2\"\n/g - - s/`\(.*\)`$/\n\.CW\ \"\1\"\ /g - s/`\(.*\)`\(.\)$/\n\.CW\ \"\1\"\ \"\2\"/g - s/`\(.*\)`\(.\)/\n\.CW\ \"\1\"\ \"\2\"\n/g - - s/^\ ...............-\ /.IP\ \\(bu\ 10\n/g - s/^\ ...........-\ /.IP\ \\(bu\ 8\n/g - s/^\ .......-\ /.IP\ \\(bu\ 6\n/g - s/^\ ...-\ /.IP\ \\(bu\ 4\n/g - s/^-\ /.IP\ \\(bu\ 2\n/g - s/^\ .*-\ /.IP\ \\(bu\ 12\n/g - - ' $1) -# echo "$output" | groff -me -ms -kejpt -T pdf > $base.pdf - -# echo "$output" > $base.ms -# groff -ms $base.ms -T pdf > $base.pdf - -echo "$output" - -# $output >> output.ms -# s/\*\*\*.*\*\*\*/Hi\1hi/g diff --git a/.local/bin/opout b/.local/bin/opout index 25a8aa0..7dd5d5a 100755 --- a/.local/bin/opout +++ b/.local/bin/opout @@ -8,4 +8,4 @@ case "$1" in *.tex|*.rnw|*.gd|*.md|*.rmd|*.ms|*.me|*.mom) setsid "$READER" "$basename".pdf >/dev/null 2>&1 & ;; *.html) setsid "$BROWSER" --new-window "$basename".html >/dev/null 2>&1 & ;; *.sent) setsid sent "$1" >/dev/null 2>&1 & ;; -esac && sleep 1 && dwmc rotatestack -1 && dwmc focusmaster & +esac && sleep 0.2 && dwmc rotatestack -1 && dwmc focusmaster & diff --git a/.local/bin/texinit b/.local/bin/texinit index 5568c99..8d5adf2 100755 --- a/.local/bin/texinit +++ b/.local/bin/texinit @@ -1,6 +1,11 @@ #!/bin/sh -cp $HOME/Dropbox/A/Scholar/All/Templates/Text/LaTeX/001personal/cegep-lanaudiere/article/* ./ -ln $BIB/citations.bib ./citations.bib +case form in "$1"; + rnw) + cp $HOME/Dropbox/A/Scholar/All/Templates/LaTeX/cegep/main.rnw ;; + *) + cp $HOME/Dropbox/A/Scholar/All/Templates/LaTeX/cegep/main.tex ;; +esac + mkdir archives |