Git Product home page Git Product logo

org-math's Introduction

About

A simple repository to place my math study notes.

Exported page: http://www.idryman.org/org-math/

Emacs Setup

You can either use my github config https://github.com/dryman/felix-emacs-config or use the following snippet in your .emacs

(org-babel-do-load-languages
 'org-babel-load-languages
 '((gnuplot . t))
   (python . t))
(setq org-startup-with-inline-images t)
(setq org-pretty-entities t)
(add-hook 'org-babel-after-execute-hook 'org-redisplay-inline-images)

The setup is mainly for using gnuplot in orgmode. Below is a minimal demo.

Example plot

To plot a math function in org, you can use gnuplot in org-babel section. Here is the snippet for drawing a sin(x) function and embed the plot in emacs. You have to view the snippet in raw format from github, or in emacs. You can also change the gnuplot snippet in emacs and type C-c C-c to update the plot.

reset
plot sin(x)

img/demo.png

In the raw snippet, I set the options

:file img/demo.png :term png small size 480,320 :exports both

The default terminal output size is 640,480 and is too large for me. If you are fine with that you can omit the :term setting.

You can change the :export setting to get just the plot by result, only code code, both both (which I used in this example), or nothing none. This changes the behavior of how it shows up on github page. The default is code only.

Math example

Greek characters

\alpha \beta

α β

Formulas

\sum_{n=0}^\infty 1/n

n=0^∞ 1/n

Nope, it cannot render both the subscript and superscript. Complicated latex expressions can be written in org-mode and output as latex document, but it doesn’t work well in html output.

LICENSE

Copyright (c) 2016 Felix Chern

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled “GNU Free Documentation License”.

org-math's People

Contributors

dryman avatar

Watchers

 avatar  avatar

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.