typos, better groff-compiler script and updated vimrc
This commit is contained in:
parent
0590012838
commit
7b597dc0fe
3 changed files with 14 additions and 7 deletions
|
@ -13,10 +13,10 @@ unzip -d amsfonts amsfonts.zip
|
|||
groff-install-font -F CM -f +R amsfonts/fonts/type1/public/amsfonts/cm/cmr10.pfb
|
||||
groff-install-font -F CM -f +I amsfonts/fonts/type1/public/amsfonts/cm/cmmi10.pfb
|
||||
groff-install-font -F CM -f +B amsfonts/fonts/type1/public/amsfonts/cm/cmbx10.pfb
|
||||
groff-install-font -F CM -f +SS amsfonts/fonts/type1/public/amsfonts/euler/eusm10.pfb \" Euler symbols
|
||||
groff-install-font -F CM -f +SE amsfonts/fonts/type1/public/amsfonts/symbols/msam10.pfb \" Euler extra
|
||||
groff-install-font -F CM -f +SB amsfonts/fonts/type1/public/amsfonts/symbols/msbm10.pfb \" Blackboard
|
||||
groff-install-font -F CM -f +SF amsfonts/fonts/type1/public/amsfonts/euler/eufm10.pfb \" Blackletter (Fraktur)
|
||||
groff-install-font -F CM -f +SS amsfonts/fonts/type1/public/amsfonts/euler/eusm10.pfb # Euler symbols
|
||||
groff-install-font -F CM -f +SE amsfonts/fonts/type1/public/amsfonts/symbols/msam10.pfb # Euler extra
|
||||
groff-install-font -F CM -f +SB amsfonts/fonts/type1/public/amsfonts/symbols/msbm10.pfb # Blackboard
|
||||
groff-install-font -F CM -f +SF amsfonts/fonts/type1/public/amsfonts/euler/eufm10.pfb # Blackletter (Fraktur)
|
||||
```
|
||||
|
||||
# Custom fonts & glyphs
|
||||
|
|
|
@ -12,7 +12,15 @@
|
|||
# [-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
|
||||
|
||||
FILE="$1"
|
||||
OUT="${FILE%%.ms}.pdf"
|
||||
|
||||
# Configuration
|
||||
|
||||
SOELIM="/usr/local/bin/soelim" # soelim PATH
|
||||
REFER="/usr/local/bin/refer" # refer PATH
|
||||
GROFF="/usr/local/bin/groff" # groff PATH
|
||||
|
||||
BIB="$HOME/Documents/bibliography" # Bibliography file
|
||||
MAC="$HOME/.config/groff/" # Macros dir
|
||||
PRE="-ketpG" # Preprocessors
|
||||
|
@ -29,7 +37,6 @@ auto_pdfpic() {
|
|||
|
||||
# If there is any .IMG command, replace with
|
||||
# auto_pdfpic output in a temp file.
|
||||
FILE="$1"
|
||||
if [ "$(grep '^.IMG\s' "$FILE")" ] ; then
|
||||
TEMP="${FILE%%.*}.tmp"
|
||||
echo $TEMP
|
||||
|
@ -56,6 +63,6 @@ s/í/\\\['i\]/g;
|
|||
s/ó/\\\['o\]/g;
|
||||
s/ú/\\\['u\]/g;
|
||||
" "$FILE" |
|
||||
soelim -I "$MAC" | refer -p "$BIB" | groff -mspdf -T pdf -U "$PRE"
|
||||
"$SOELIM" -I "$MAC" | "$REFER" -p "$BIB" | "$GROFF" -mspdf -T pdf -U "$PRE" > "$OUT"
|
||||
|
||||
rm -f "$TEMP"
|
||||
|
|
|
@ -50,7 +50,7 @@ noremap N /@@@<CR>
|
|||
|
||||
" groff
|
||||
autocmd FileType groff noremap <buffer> <silent> <F9> :!zathura --fork %:r.pdf<CR> & disown
|
||||
autocmd FileType groff noremap <buffer> <C-s> :w<CR> :!groff-compiler % > %:r.pdf<CR><CR>
|
||||
autocmd FileType groff noremap <buffer> <C-s> :w<CR> :!groff-compiler %<CR><CR>
|
||||
au BufNewFile,BufRead *.ms set filetype=groff
|
||||
|
||||
" LaTeX
|
||||
|
|
Loading…
Reference in a new issue