Compare commits
13 Commits
2d6b0a0816
...
49786e0536
| Author | SHA1 | Date |
|---|---|---|
|
|
49786e0536 | |
|
|
782c08c41d | |
|
|
f018748bcb | |
|
|
98ffd80cf7 | |
|
|
ff4ade4659 | |
|
|
b10d675a9e | |
|
|
7350e7bfe0 | |
|
|
8451c5d98f | |
|
|
6b57b5104a | |
|
|
aa80095b7b | |
|
|
3970dea08f | |
|
|
4b54e732b3 | |
|
|
5ececac706 |
|
|
@ -1,4 +1,4 @@
|
||||||
;;; Directory Local Variables
|
;;; Directory Local Variables
|
||||||
;;; For more information see (info "(emacs) Directory Variables")
|
;;; For more information see (info "(emacs) Directory Variables")
|
||||||
|
|
||||||
((org-mode . ((org-list-allow-alphabetical . t))))
|
((org-mode . ((eval . (load-file "local.el")))))
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
all: pdf clean
|
||||||
|
pdf: ; emacs bylaws.org --batch -l local.el -f org-latex-export-to-pdf
|
||||||
|
clean: ; rm bylaws.tex
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
#+TITLE: Bylaws
|
||||||
|
|
||||||
|
* Generating PDFs
|
||||||
|
A PDF can be generated using the following command:
|
||||||
|
#+begin_src bash
|
||||||
|
guix shell -m manifest.scm -- make
|
||||||
|
#+end_src
|
||||||
|
Assuming that [[https://guix.gnu.org/][GNU Guix]] is installed, this command will handle downloading all
|
||||||
|
dependencies, generating PDF, and cleaning up temporary files.
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
\NeedsTeXFormat{LaTeX2e}
|
||||||
|
\ProvidesClass{bylaws}[]
|
||||||
|
|
||||||
|
\usepackage{titlepic}
|
||||||
|
\titlepic{\includegraphics[width=250]{Coat-of-Arms-Color.png}}
|
||||||
|
|
||||||
|
\LoadClass[12pt]{report}
|
||||||
|
\usepackage{geometry}[margin=1in]
|
||||||
|
|
||||||
|
\renewcommand{\itemize}{\enumerate}
|
||||||
|
|
||||||
|
\renewcommand{\thechapter}{Article \Roman{chapter}}
|
||||||
|
\renewcommand{\thesection}{\thechapter\ §\ \arabic{section}}
|
||||||
|
\renewcommand{\labelenumi}{(\alph{enumi})}
|
||||||
|
\renewcommand{\labelenumii}{(\arabic{enumii})}
|
||||||
|
\renewcommand{\labelenumiii}{(\Alph{enumiii})}
|
||||||
|
\renewcommand{\labelenumiv}{(\roman{enumiv})}
|
||||||
|
\renewcommand{\theenumi}{\thesection\labelenumi}
|
||||||
|
\renewcommand{\theenumii}{\labelenumii}
|
||||||
|
\renewcommand{\theenumiii}{\labelenumiii}
|
||||||
|
\renewcommand{\theenumiv}{\labelenumiv}
|
||||||
|
|
||||||
|
\usepackage{titletoc}
|
||||||
|
\renewcommand{\chaptername}{}
|
||||||
|
\renewcommand\numberline[1]{}
|
||||||
|
\usepackage{titlesec}
|
||||||
|
\titleformat{\chapter}[display]{\Huge\bfseries}
|
||||||
|
{Article \Roman{chapter}}{8pt}{\Huge\bfseries}
|
||||||
|
\titleformat{\section}[block]{\Large\bfseries}{§
|
||||||
|
\arabic{section}}{8pt}{\Large\bfseries}
|
||||||
1850
bylaws.org
1850
bylaws.org
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,25 @@
|
||||||
|
(require 'ox-latex)
|
||||||
|
(setq-local
|
||||||
|
org-latex-classes
|
||||||
|
'(("bylaws"
|
||||||
|
"\\documentclass{bylaws}"
|
||||||
|
("\\chapter{%s}" . "\\chapter*{%s}")
|
||||||
|
("\\section{%s}" . "\\section*{%s}"))))
|
||||||
|
|
||||||
|
(setopt org-latex-hyperref-template "
|
||||||
|
\\hypersetup{\n pdfauthor={%a},\n pdftitle={%t},\n pdfkeywords={%k},
|
||||||
|
pdfsubject={%d},\n pdfcreator={%c},\n pdflang={%L},\n colorlinks=true}\n")
|
||||||
|
|
||||||
|
(keymap-local-set
|
||||||
|
"C-c t"
|
||||||
|
(lambda nil
|
||||||
|
(interactive)
|
||||||
|
(save-match-data
|
||||||
|
(let ((string (buffer-string))
|
||||||
|
(pos 0)
|
||||||
|
(tag 0))
|
||||||
|
(while (string-match "<<tag:\\([0-9]+\\)>>" string pos)
|
||||||
|
(setq tag (max tag
|
||||||
|
(string-to-number (match-string 1 string)))
|
||||||
|
pos (match-end 0)))
|
||||||
|
(insert "<<tag:" (number-to-string (1+ tag)) ">>")))))
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
;; What follows is a "manifest" equivalent to the command line you gave.
|
||||||
|
;; You can store it in a file that you may then pass to any 'guix' command
|
||||||
|
;; that accepts a '--manifest' (or '-m') option.
|
||||||
|
|
||||||
|
(specifications->manifest
|
||||||
|
(list "emacs-next" "texlive" "make" "git"))
|
||||||
Loading…
Reference in New Issue