Compare commits
20
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b51a94d5d9
|
||
|
|
880c3dde02
|
||
|
|
12601adc71
|
||
|
|
b065410146
|
||
|
|
e1a0a499cb | ||
|
|
a59ff8e616 | ||
|
|
73d273592b | ||
|
|
0405b9cba6 | ||
|
|
bb3450e6b5 | ||
|
|
332956b795 | ||
|
|
e1465ee3b5 | ||
|
|
876dc0b255 | ||
|
|
e976b6ff63 | ||
|
|
bbdd87f17f | ||
|
|
58ac7685a2 | ||
|
|
6e6022ed0d | ||
|
|
bb2d7a8555 | ||
|
|
42d3428d61 | ||
|
|
03b303a06f
|
||
|
|
b25d91ca0a |
@@ -1,4 +0,0 @@
|
|||||||
;;; Directory Local Variables
|
|
||||||
;;; For more information see (info "(emacs) Directory Variables")
|
|
||||||
|
|
||||||
((org-mode . ((eval . (load-file "local.el")))))
|
|
||||||
-23
@@ -1,23 +0,0 @@
|
|||||||
kind: pipeline
|
|
||||||
name: ccr
|
|
||||||
type: docker
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: generate-pdf
|
|
||||||
image: git.axpdsp.org/parliamentarian/bylaw-builder
|
|
||||||
commands:
|
|
||||||
- "make"
|
|
||||||
- "echo $DRONE_TAG > title"
|
|
||||||
- name: publish
|
|
||||||
image: plugins/gitea-release
|
|
||||||
settings:
|
|
||||||
base_url: https://git.axpdsp.org
|
|
||||||
api_key:
|
|
||||||
from_secret: api_key
|
|
||||||
files:
|
|
||||||
- bylaws.pdf
|
|
||||||
title: title
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
all: pdf clean
|
|
||||||
pdf: ; emacs bylaws.org --batch -l local.el -f org-latex-export-to-pdf
|
|
||||||
clean: ; rm bylaws.tex
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
#+TITLE: Bylaws
|
|
||||||
|
|
||||||
* Generating PDFs
|
|
||||||
A PDF can be generated using the following command:
|
|
||||||
#+begin_src bash
|
|
||||||
docker run --rm -v $PWD:/data -w /data git.axpdsp.org/parliamentarian/bylaw-builder make
|
|
||||||
#+end_src
|
|
||||||
-30
@@ -1,30 +0,0 @@
|
|||||||
\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}
|
|
||||||
+1100
-916
File diff suppressed because it is too large
Load Diff
@@ -1,25 +0,0 @@
|
|||||||
(require 'ox-latex)
|
|
||||||
(setq-local
|
|
||||||
org-latex-classes
|
|
||||||
'(("bylaws"
|
|
||||||
"\\documentclass{bylaws}"
|
|
||||||
("\\chapter{%s}" . "\\chapter*{%s}")
|
|
||||||
("\\section{%s}" . "\\section*{%s}"))))
|
|
||||||
|
|
||||||
(setq 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")
|
|
||||||
|
|
||||||
(local-set-key
|
|
||||||
(kbd "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)) ">>")))))
|
|
||||||
Reference in New Issue
Block a user