Newer
Older
# README
This is the source repository for Open Tech Strategies' LaTeX
infrastructure. We use this to create headers for and add specific
commands to our LaTeX documents. We know that our LaTeX infrastructure
is set up imperfectly and welcome input on ways to improve it.
The expected audience for this repository are people who would like to
view or use the source for our published reports. Given the `.ltx` file
for a given report and these infrastructure files, you should be able to
re-create the published report. Please file an issue if you have
difficulty doing so.
## Usage
To use the OTS specific commands, include `\usepackage{ots}` in the
header of your document and make sure that your LaTeX doc can find
`ots.sty`. The easiest way to do this is by running the following
commands in this repository:
# create an environment variable pointing to the location of this
# repository
$ OTSLTXDIR={THIS_LOCATION}
$ export OTSLTXDIR
# add `otsltxsetup` to your PATH (optional, but makes things easier)
$ PATH=$PATH:$OTSLTXDIR
$ export PATH
# go to the directory where you want to `make` a ltx file
$ cd {YOUR LTX DIRECTORY}
# set up the OTS ltx infrastructure
$ otsltxsetup
# add \usepackage{ots} to the header of your .ltx document
# make the PDF
$ make {YOUR LTX FILE, NO ENDING}.pdf
Probable OTS-specific things:
- OTSDIR: This reference to our home Subversion directory is only
necessary to find the relevant revision for drafts. Not having an
OTSDIR will not break anything, but you won't see the revision number
in the name of your drafts.
Possible improvement: rename OTSDIR to REPOROOT and make the revision
work for either git or svn repos.
- VIEW option: A possible improvement here would be to replace the
reference to `utils/mailcap-open` with a variable that the user could
set to their preferred pdf viewer, like `$PDFVIEWER = /usr/bin/evince`