From: Eric Schulte <schulte.eric@gmail.com>
To: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Org-mode extensions used to publish a dissertation
Date: Mon, 04 Aug 2014 20:23:58 -0400 [thread overview]
Message-ID: <87y4v3yeap.fsf@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1245 bytes --]
Hi List,
I thoroughly enjoyed using Org-mode to write my dissertation. I was
happy to be able to export (mostly) equivalent versions of the document
to HTML and PDF. I'd recommend using Org-mode for such a complex
writing task to those who are either willing to hack the exporter, or
are willing to accept an Org-mode document with inline LaTeX which only
/really/ works with the LaTeX backend.
As I fall in the former category, here are the small extensions to the
Org-mode exporter which I found necessary. Thanks to the new exporting
backend they were uniformly easy to implement. They are included in the
attached elisp file. Each pagefeed (^L) in the file marks a new section
of functionality, the sections are as follows...
1. Ignore Headlines and keep content (discussed here recently)
2. Multi-column Table Cells
3. Wide tables extend into the margins.
4. Wide tables squeezed within the margins
5. "sc" links for the \sc{} latex command
6. "gls" links for the \gls{} family of Glossary commands
7. color links
8. TIKZ figure links
9. Tie certain latex commands to the preceding word.
10. Fix emphasis in text export
A simplified version of my Makefile is also attached. I hope someone
finds this useful.
Best,
Eric
[-- Attachment #2: init.el --]
[-- Type: application/emacs-lisp, Size: 23705 bytes --]
[-- Attachment #3: Makefile --]
[-- Type: application/octet-stream, Size: 1217 bytes --]
EMACS=emacs
BATCH_EMACS=$(EMACS) --batch -Q -l init.el
PAPER:=replace-with-paper-file-name
all: $(PAPER).pdf $(FIG_SVG)
.PHONY: all publish clean
# Export
%.html: %.org init.el
$(BATCH_EMACS) $*.org -f org-html-export-to-html
%.tex: %.org init.el org-paper-class.tex
$(BATCH_EMACS) $*.org -f org-latex-export-to-latex
%.txt: %.org init.el
$(BATCH_EMACS) $*.org -f org-export-as-utf8
%.pdf: %.tex $(FIG_TEX)
rm -f dissertation.aux
pdflatex \\nonstopmode\\input $*.tex
# Uncomment if using Bibtex
# if [ -f $*.bib ];then bibtex --min-crossref=100 $*;fi
while grep "Rerun to get" $*.log; do \
pdflatex \\nonstopmode\\input $*.tex; \
done
# Uncomment if using a Glossary
# if [ -f glossary.tex ];then makeglossaries $*;fi
pdflatex \\nonstopmode\\input $*.tex;
%.ps: %.pdf
pdf2ps $*.pdf
%.svg: %.tex
./bin/tex2svg $<
# Publish
publish/index.html: $(PAPER).html
cp $< $@
publish/%: %
cp $< $@
publish: publish/index.html publish/$(PAPER).pdf
chmod a+r $<
clean:
rm -f *~ *.aux *.log *.dvi *.blg *.bbl *.toc *.out *.html *.vrb *.snm *.nav *.ps *.lof *.lol *.lot *.glg *.glo *.gls *.glsdefs *.xdy
rm -f $(PAPER).tex $(PAPER).pdf $(PAPER).html $(PAPER).txt publish/index.html publish/$(PAPER).pdf
[-- Attachment #4: Type: text/plain, Size: 90 bytes --]
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D (see https://u.fsf.org/yw)
next reply other threads:[~2014-08-05 0:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-05 0:23 Eric Schulte [this message]
2014-08-06 9:00 ` Org-mode extensions used to publish a dissertation Joseph Vidal-Rosset
2014-08-06 11:38 ` Eric Schulte
2014-08-06 9:43 ` Rasmus
2014-08-06 11:41 ` Eric Schulte
2014-08-06 10:05 ` Suvayu Ali
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y4v3yeap.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).