Giter Club home page Giter Club logo

latex-therefore's Introduction

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.

As an example, please see sqrt_two.pdf.

This project was inspired by the thread at http://www.reddit.com/r/math/comments/1gov71/mathematical_writing_synonyms_for_therefore/ particularly

lucasvb: Someone should collect these into a macro.
    perpetual_motion: We need a command that would just insert one at random.

If you have suggestions for more phrases to include or want to write another example proof, feel free to fork/pull the repo. If you're not on GitHub, feel free to email me your additions at [email protected].

Usage

Download the file therefore.sty to the directory where your LaTeX file is. In the preamble, put

\usepackage{therefore}

Wherever you would otherwise laboriously choose a synonym for 'Therefore', simply type

\Therefore there are an infinite number of primes

Notice that there is no trailing comma after \Therefore. This is because some of the transitions, such as 'And verily it goes that', do not require commas. If one is needed, it will be part of the expansion.

The macro will expand differently with each compile. The choice of seed used each time is documented in your_file.log. For example,

many lines of output here
...
Random number generator initialized to 379457
...
more lines of output here

If there is a result you particularly like, you can choose it by passing a seed=379457 option to the package:

\usepackage[seed=379457]{therefore}

latex-therefore's People

Contributors

bgschiller avatar vundicind avatar timdcrain avatar

Stargazers

Tyson Caul avatar d-rens avatar SeniorMars avatar  avatar F. Y. avatar  avatar Anakin Dey avatar Aaron Hill avatar Martha Dimgba avatar 北䑓如法 avatar  avatar Arya Kumar avatar John Meyer avatar Hayden T. Brown avatar Abigail McHugh avatar David Jacobson avatar  avatar Stepan Usatiuk avatar Jona Abdinghoff avatar Landry avatar Alec Minchington avatar Viktor Gjurovski avatar Dirk van den Bekerom avatar Jacob Zhong avatar Jonas Frede avatar Martin Deegan avatar Robert Monden avatar Gabriel Romon avatar Seungjoon Lee avatar Mpheng avatar  avatar Aakash Patel avatar Shadab Zafar avatar  avatar nsendoda avatar Matthew Bernstein avatar  avatar Ryan Lahfa avatar Antonin Delpeuch avatar Philipp G. Haselwarter avatar  avatar  avatar Michael Vessia avatar Rob avatar Tobias avatar Sudo avatar Kelly L. Rowland avatar  avatar Dominic Bauer avatar Vincent Barrielle avatar Jannek Bossen avatar  avatar David Haberthür avatar  avatar Rosa Richter avatar lm avatar Gabriel Radanne avatar Ben Congdon avatar Austin Rochford avatar  avatar jinyu li avatar Jiahui avatar Daniel Augusto avatar Alex Singh avatar Andres Gomez Vidal avatar  avatar Claire Rebello avatar Joshua Tan avatar Niklas Kirk Mouritzsen avatar Hidde-Jan Jongsma avatar  avatar Tommaso Urli avatar Shuhao Wu avatar yuhki50 avatar KOSUGI Tomo avatar OMOTO Tsukasa avatar Yohei Kuga avatar Shinichi Goto avatar  avatar Andrew Nanton avatar Hans Kristian Flaatten avatar Aleks L.T avatar D. Bohdan avatar Vijay Krishna Palepu avatar Vasanth Rajendran avatar Paul English avatar Emerson A. Azarbakht avatar Eon Jeong avatar Dmitry Kalinkin avatar 정 경훈 (Kyung-hown Chung) avatar Daniel Luna avatar Miguel Eduardo Gil Biraud avatar Henning Dickten avatar Xianjie avatar Eric Gallager avatar Mike Gerasymenko avatar Billy Sierra-Lenhart avatar  avatar  avatar Chris A. avatar

Watchers

evandrix avatar José Manuel Torres avatar Aleks L.T avatar Dennis avatar Philipp G. Haselwarter avatar  avatar  avatar  avatar  avatar

latex-therefore's Issues

More phrases and citing random people

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})%
+}

Make it suitable for humanities

As much as I'd love seeing something like

As Gauss proved, the First Ammendment ...

in any paper, it might be wise to have an option to exclude those.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.