better doc, GIT var is used elsewhere
This commit is contained in:
parent
1f5b9b09f6
commit
026c44e9dd
2 changed files with 7 additions and 16 deletions
|
@ -1,30 +1,22 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Compiler script for groff
|
# Compiler script for groff
|
||||||
#
|
#
|
||||||
|
# TODO:
|
||||||
|
# Make groff auto-calculate image height (spacing below)
|
||||||
|
# based on given width and the image's aspect ratio
|
||||||
|
#
|
||||||
# [-k (preconv)] Convert encoding to something groff understands
|
# [-k (preconv)] Convert encoding to something groff understands
|
||||||
# [-e (eqn)] Format equations for troff or MathML
|
# [-e (eqn)] Format equations for troff or MathML
|
||||||
# [-t (tbl)] Format tables for troff
|
# [-t (tbl)] Format tables for troff
|
||||||
# [-p (pic)] Compile pictures for troff or TeX
|
# [-p (pic)] Compile pictures for troff or TeX
|
||||||
# [-G (grap)] Typesetting graphs, grap usually not installed by default
|
# [-G (grap)] Typesetting graphs, usually not installed by default and not available on termux repo
|
||||||
# [-j (chem)] Chemical structure diagrams
|
# [-j (chem)] Chemical structure diagrams, messes with spacing, crashes when using text inside eqn
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
BIB="$HOME/Documents/bibliography" # Bibliography file
|
BIB="$HOME/Documents/bibliography" # Bibliography file
|
||||||
MAC="$HOME/.config/groff/" # Macros dir
|
MAC="$HOME/.config/groff/" # Macros dir
|
||||||
PRE="-ketpG" # Preprocessors
|
PRE="-ketpG" # Preprocessors
|
||||||
|
|
||||||
# NOTE:
|
|
||||||
#
|
|
||||||
# I have had some truble using chem, keep in mind:
|
|
||||||
# - Messes with spacing
|
|
||||||
# - Crashes when writing text inside eqn, like:
|
|
||||||
# .EQ
|
|
||||||
# roman {"Text"}
|
|
||||||
# .EN
|
|
||||||
#
|
|
||||||
# Also, grap doesn't usually come pre-installed
|
|
||||||
# and I believe it is not packaged for termux.
|
|
||||||
|
|
||||||
# Takes a line with .IMG command, converts given image
|
# Takes a line with .IMG command, converts given image
|
||||||
# to pdf format and inserts properly formatted .PDFPIC
|
# to pdf format and inserts properly formatted .PDFPIC
|
||||||
auto_pdfpic() {
|
auto_pdfpic() {
|
||||||
|
@ -55,4 +47,3 @@ fi
|
||||||
# Enable custom macros | Bibliography | Generate PDF using preprocessors
|
# Enable custom macros | Bibliography | Generate PDF using preprocessors
|
||||||
soelim -I "$MAC" "$FILE" | refer -p "$BIB" | groff -mspdf -T pdf -U "$PRE"
|
soelim -I "$MAC" "$FILE" | refer -p "$BIB" | groff -mspdf -T pdf -U "$PRE"
|
||||||
rm -f "$TEMP"
|
rm -f "$TEMP"
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,8 @@ PATH="$HOME/.local/bin${PATH:+:${PATH}}"
|
||||||
|
|
||||||
# Common
|
# Common
|
||||||
export \
|
export \
|
||||||
|
GITLAB="ssh://git@gitlab.com/tavo-wasd" \
|
||||||
BOOKMARKS="$HOME/Documents/bookmarks" \
|
BOOKMARKS="$HOME/Documents/bookmarks" \
|
||||||
GIT="ssh://git@gitlab.com/tavo-wasd" \
|
|
||||||
BIB="$HOME/Documents/bibliography" \
|
BIB="$HOME/Documents/bibliography" \
|
||||||
WEEK=$(date '+%U') \
|
WEEK=$(date '+%U') \
|
||||||
DATE=$(date -I) \
|
DATE=$(date -I) \
|
||||||
|
|
Loading…
Reference in a new issue