-
Exporting Org files as DocTeX
org-latex-export-as-doctex2e
org-latex-export-as-doctex3
Probably would be much easier to work with for large codebases.
-
ctan-upload.el
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\DeclareObjectType { name } | |
{ | |
first : tokenlist , | |
middle : tokenlist , | |
last : tokenlist , | |
first : .required , | |
last : .required , | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun get-word-at-point () | |
"Get the word at point." | |
(interactive) | |
(let (pos1 pos2 meat) | |
(if (and transient-mark-mode mark-active) | |
(setq pos1 (region-beginning) | |
pos2 (region-end)) | |
(setq pos1 (car (bounds-of-thing-at-point 'symbol)) | |
pos2 (cdr (bounds-of-thing-at-point 'symbol)))) | |
(buffer-substring-no-properties pos1 pos2))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% arara: xelatex | |
\documentclass{article} | |
\usepackage{fontspec} | |
\setmonofont{Courier} | |
\usepackage{listings} | |
\lstset{ | |
basicstyle=\ttfamily, | |
language=bash, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% arara: xelatex | |
\documentclass{article} | |
\usepackage{fontspec} | |
\setmonofont{Courier} | |
\usepackage{listings} | |
\lstset{ | |
basicstyle=\ttfamily, | |
language=bash, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[a5paper]{memoir} | |
\usepackage[margin=1in]{geometry} | |
\usepackage{gmverse} | |
\usepackage{parallel} | |
\usepackage{fontspec} | |
% for unicode glyphs; I'm not actually using this :) | |
\setmainfont[Ligatures=TeX]{Arial Unicode MS} | |
\usepackage{xparse} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tkinter as tk | |
def construct_tree_from_lisp(lisp): | |
""" | |
Creates a Tree object from a LISP-style list: | |
[1, 2, [3, 4, 5], [6, 7], 8] | |
""" | |
if isinstance(lisp, list): | |
v = lisp[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ColorBank import ColorBank | |
class BasicNode: | |
default_radius = 25 | |
default_color = (0,0,0) | |
default_data = None | |
default_position = (0, 0) | |
def __init__(self, position=None, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ListeyTree = [1,[2,3,4],5,6,[7,8,[9,10],11,12,[13,14],15]] | |
import pygame | |
import networkx as nx | |
from ColorBank import ColorBank | |
from BasicNode import BasicNode | |
def construct_tree_from_lisp(lisp): | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://stackoverflow.com/a/16532192/1443496 | |
from tkinter import * | |
from ttk import * # sudo pip3 install pyttk | |
import ssa.final as core | |
import time | |
class Test: | |
count = 0 |