#+title: Minimal Working Example #+DATE: <2017-06-04 Tue> #+AUTHOR: Tuomas Pyyhtiä #+EMAIL: pyyhttu+org-mode@pm.me #+DESCRIPTION: Org mode syntax example #+KEYWORDS: org mode, syntax, quick reference, cheat sheet, html #+LANGUAGE: en # Don't show table of contents, export underscore as _ instead of subscript https://emacs.stackexchange.com/questions/10549/org-mode-how-to-export-underscore-as-underscore-instead-of-highlight-in-html #+OPTIONS: ^:{} # highlight in HTML (was: ^:nil), include priority cookies: #+OPTIONS: toc:nil ':t pri:t # Rest of options (as explained here: https://orgmode.org/manual/Export-Settings.html): #+OPTIONS: num:nil p:nil stat:t tags:t tasks:t tex:t timestamp:t #+BEGIN_COMMENT #+PROPERTY: header-args :eval never-export :exports both :results replace #+END_COMMENT # Include usable macros from https://github.com/fniessen/org-macros: #+INCLUDE: ../org-mode/macros/org-macros.setup #+BEGIN_COMMENT #+INFOJS_OPT: view:content ltoc:nil path:../org-mode/js/org-info.js # for more info see: https://orgmode.org/worg/code/org-info-js #+END_COMMENT #+HTML_HEAD: #+HTML_LINK_HOME: https://pyyhttu.kapsi.fi #+HTML_LINK_UP: https://pyyhttu.kapsi.fi/debian/org-mode * org-special-block-add-html-extra The following showcases what an emacs package called [[https://alhassy.com/org-special-block-extras][org-special-block-extras]], can do. It is required for the next few chosen examples. To install org-special-block-extras, define in your =init.el=: #+begin_src lisp ;; First install quelpa: (add-to-list 'load-path "~/.emacs.d/quelpa/") (require 'quelpa) ;; With it, download the org-special-block-extras.el by using quelpa: (quelpa '(org-special-block-extras :fetcher github :repo "alhassy/org-special-block-extras")) ;; Activate special-blocks in Org buffers: (add-hook #'org-mode-hook #'org-special-block-extras-mode) ;; Optionally, consider disabling the html-crap produced by: https://github.com/alhassy/org-special-block-extras/issues/45 (setq org-special-block-add-html-extra nil) #+end_src ** NEXT Also check https://alhassy.com/AlBasmala For CSS and arrows for the spoiler. ** #+begin_spoiler #+begin_spoiler aqua That is, [[color:magenta][we can ((apply)) a function to a list of arguments!]] #+end_spoiler #+begin_spoiler aqua ((Yusuf)) said to his father ((Yacoub)), /“O my father, indeed I have seen ((eleven stars)) and ((the sun and the moon)); I saw them prostrating to me.”/ #+end_spoiler #+begin_documentation Salamun Alayakum :label salam A form of Arabic greeting. It literally means “peace be upon you”. #+end_documentation ** [[rremark:] and #+begin_rremark The sum of the first $n$ natural numbers is $\sum_{i = 0}^n i = {n × (n + 1) \over 2}$. Note that $n × (n + 1)$ is even. [[rremark:Jasim Jameson][Why are you taking about “$\mathsf{even}$” here?]] #+begin_rremark Bobbert Barakallah :signoff "Thank-you for pointing this out!" :color green I was trying, uh ... Yeah, to explain that ${\large n × (n + 1) \over 2}$ is always an integer. #+end_rremark Hence, we only need to speak about whole numbers. [[rremark:][Then please improve your transition sentences.]] [[remark:Musa][Ain't that cool?]] ** Keyboard renditions ** #+begin_details and #+begin_box #+begin_details Answer link-here:solution Syntactically, ~(apply f '(x0 ... xN)) = (f x0 ... xN)~. #+end_details #+html:
#+begin_box octoicon:report Note that [[kbd:Alt-F4][Close window]] closes the window while kbd:C-w closes a tab. #+end_box #+html:
#+begin_details NAME :title-color "blue" #+begin_box name contents #+end_box #+end_details ** octoicons https://alhassy.com/org-special-block-extras ** badge links https://alhassy.com/org-special-block-extras/#Badge-Links ** :doc and [[margin:[]] Sometimes I say doc:salam, other times I say doc:hello, and other times I say doc:hi. /Allah [[margin:][The God of Abraham; known as Elohim in the Bible]] does not burden a soul beyond what it can bear./ --- Quran 2:286 ** #+begin_paraller #+begin_parallel [[color:orange][Are you excited to learn some Lisp?]] [[blue:Yes!]] Pop-quiz: How does doc:apply work? #+end_parallel ** #+begin_org-demo #+begin_org-demo :style seq /italics/ and _underline_ $e^{i \times \pi} + 1 = 0$ #+end_org-demo My glossary: show:GLOSSARY badge:Thanks|for_reading tweet:https://github.com/alhassy/org-special-block-extras badge:|buy_me_a coffee|gray|https://www.buymeacoffee.com/alhassy|buy-me-a-coffee ** Calc block https://alhassy.com/org-special-block-extras/#Equational-Proofs #+begin_calc :hint-format "\\left\\{ %s\\right." + x + y -- Explanation of why $x \;=\; y$ Actually, let me explain: * x * x′ -- hint 1 * y -- hint 2 No words can appear (in the export) *after* a nested calculation, for now. + [≤] z -- Explanation of why $y \;\leq\; z$ -- explain it more, this is ignored from export ;-) #+end_calc ** anohter headline - just ald asldk saldkas lkas dkdlkas laksd asldk kasldda sdkasdl ka ** a headline asdljasld aslkd lklkasldkl asdals ** a headline again asdsa dasd aslk dlask da adksdlsakd a ** a headline too asdaslk aslda sdkals ** One more aöslldöas dasd lasdk asda sk as ** and even one more asdaslkd laskd asldk asd