From 026c44e9dd49a284044275789909980ef999534b Mon Sep 17 00:00:00 2001
From: tavo-wasd <gustavo@gustavocalvo.xyz>
Date: Sat, 30 Sep 2023 08:46:56 -0600
Subject: [PATCH] better doc, GIT var is used elsewhere

---
 scripts/groff-compiler | 21 ++++++---------------
 shell/envvar           |  2 +-
 2 files changed, 7 insertions(+), 16 deletions(-)

diff --git a/scripts/groff-compiler b/scripts/groff-compiler
index c1e895e..165af4e 100755
--- a/scripts/groff-compiler
+++ b/scripts/groff-compiler
@@ -1,30 +1,22 @@
 #!/bin/sh
 # 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
 # [-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, grap usually not installed by default
-# [-j (chem)]    Chemical structure diagrams
+# [-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
 
 # Configuration
 BIB="$HOME/Documents/bibliography" # Bibliography file
 MAC="$HOME/.config/groff/"         # Macros dir
 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
 # to pdf format and inserts properly formatted .PDFPIC
 auto_pdfpic() {
@@ -55,4 +47,3 @@ fi
 # Enable custom macros   | Bibliography    | Generate PDF using preprocessors
 soelim -I "$MAC" "$FILE" | refer -p "$BIB" | groff -mspdf -T pdf -U "$PRE"
 rm -f "$TEMP"
-
diff --git a/shell/envvar b/shell/envvar
index 0965842..84ee81e 100644
--- a/shell/envvar
+++ b/shell/envvar
@@ -10,8 +10,8 @@ PATH="$HOME/.local/bin${PATH:+:${PATH}}"
 
 # Common
 export \
+    GITLAB="ssh://git@gitlab.com/tavo-wasd" \
     BOOKMARKS="$HOME/Documents/bookmarks" \
-    GIT="ssh://git@gitlab.com/tavo-wasd" \
     BIB="$HOME/Documents/bibliography" \
     WEEK=$(date '+%U') \
     DATE=$(date -I) \