emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org-mode extensions used to publish a dissertation
@ 2014-08-05  0:23 Eric Schulte
  2014-08-06  9:00 ` Joseph Vidal-Rosset
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Eric Schulte @ 2014-08-05  0:23 UTC (permalink / raw)
  To: Org Mode Mailing List

[-- 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)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-08-06 11:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-05  0:23 Org-mode extensions used to publish a dissertation Eric Schulte
2014-08-06  9:00 ` 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

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).