bgschiller / latex-therefore

Tired of needing to come up with synonyms for 'Therefore,' in your mathematical writing? Ponder no longer! This LaTeX package provides a macro to carefully select one of a multitude of choices.
197 stars 13 forks source link

More phrases and citing random people #5

Open dalai4git opened 11 years ago

dalai4git commented 11 years ago

The following patch adds a couple more phrases and quotes random people.

Sorry for submitting a patch, I don't use git.

--- latex-therefore-master/therefore.sty    2013-06-22 08:55:20.000000000 +0200
+++ latex-therefore/therefore.sty   2013-06-26 16:48:45.754045544 +0200
@@ -28,18 +28,31 @@
 \ThereforePhrases(18)={As must be obvious to even the meanest intellect,}
 \ThereforePhrases(19)={The power of logic reveals the conclusion that}
 \ThereforePhrases(20)={This implies}
-\ThereforePhrases(21)={As Gauss proved,}
-\ThereforePhrases(22)={As Euler proved,}
+\ThereforePhrases(21)={As \TheGuru proved,}
+\ThereforePhrases(22)={According to \TheGuru,}
 \ThereforePhrases(23)={And it was handed down from the heavens that}
 \ThereforePhrases(24)={It pleases the symmetry of the world that}
 \ThereforePhrases(25)={Consequently,}
 \ThereforePhrases(26)={Accordingly,}
 \ThereforePhrases(27)={For this reason,}
 \ThereforePhrases(28)={If there is any justice in the world,}
+\ThereforePhrases(29)={As shown by \TheGuru,}
+\ThereforePhrases(30)={As previously demonstrated by \TheGuru,}
+\def\numphrases{30}
+
+\newarray\TheGurus
+\TheGurus(1)={Gauss}
+\TheGurus(2)={Laplace}
+\TheGurus(3)={Euler}
+\TheGurus(4)={Riemann}
+\TheGurus(5)={Euclid}
+\TheGurus(6)={Leibniz}
+\TheGurus(7)={von Neumann}
+\TheGurus(8)={Fermat}
+\TheGurus(9)={Newton}
+\def\numGurus{9}

-\def\numphrases{28}
-
 %allow user to set seed
 \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{lcg}}
 \ProcessOptions\relax
@@ -48,6 +61,13 @@

 \def\Therefore{%
-   \rand
+  \chgrand[last=\numphrases]%
+  \rand%
    \ThereforePhrases(\arabic{phraseIndex})
 }
+
+\def\TheGuru{%
+  \chgrand[last=\numGurus]%
+  \rand%
+  \TheGurus(\arabic{phraseIndex})%
+}
bgschiller commented 11 years ago

I've been thinking about this one. I'm worried it adds a lot of complexity without very much gain to the phrases.