Explore Org-mode in Emacs
The author of the original code is Rick Frankel.
I have referred to the tutorial on Org's Worg and another one by jcs.
I'm trying Org-mode in the Introduction to Theoretical Computer Science course, which teaches automata and how do they work. I need to create finite state diagrams and derivation trees; I think Org-mode might help with that instead of drawing them manually.
- Install Graphviz on your local machine;
- Install graphviz-dot-mode for your Emacs;
- Open this org file with Emacs in Org-mode to generate graphs.
Place cursor on #+CALL statement and press C-c C-c to run the script, the output will be an image file in specified format located in :file LOCATION.
Special characters can be used as label using UTF-8 encoding and the HTML UTF-8 character entities can be found on Graphviz.org or on Quackit.com.
Some LISP knowledge prove helpful.
In Formal Methods course, the assignment required a formal description of an efsm (Extended finite state machine). This description shall be translated into a state diagram and a Prolog database for logical queries.
Since the process for translating a formal description of automata into a diagram is defined above, its translation to Prolog language seems spontaneous.
So here it is, a simple script in emacs-lisp to transform Org table content into Prolog facts.
#+LATEX: \setlength\parindent{0pt}
\usepackage{geometry}
\geometry{left=1.0in,right=1.0in,top=1.2in,bottom=1.2in}
\usepackage{extsizes} in header
#+latex_class_options: [10pt] in org file
The sizes available are 8pt, 9pt, 10pt, 11pt, 12pt, 14pt, 17pt, and 20pt. - The extsizes classes
Using
* Section One
:PROPERTIES:
:CUSTOM_ID: sec:one
:END:
or
* Section One
  <<sec:one>>
* Section Two
  <<sec:two>>
then
I can reference Section One with  [[sec:one]] and [[sec:one][Custom Text]],
but I can get the actual section number (1) to resolve.
Using * SectionOne then [[*SectionOne][Custom Text]] (no space for the link).
After org-store-link, use org-insert-link.
| Key | Function | 
|---|---|
| M-S-← | (org-table-delete-column) | 
| M-S-→ | (org-table-insert-column) | 
| M-S-↑ | (org-table-kill-row) | 
| M-S-↓ | (org-table-insert-row) | 
https://orgmode.org/org.html#Advanced-features
| Keyword | Reference | 
|---|---|
| @< | 1st row | 
| @> | last row | 
| @>>> | 3rd row from bottom | 
| @0 | current row | 
| @+1 | next row | 
| @1 | row #1 | 
| @I | 1st hline | 
| @II+3 | 3rd line below the 2nd hline |