Home Software LaTex CV

Table of Contents

Module: texref noahprogs/texref.py
Imported modules   
import cPickle
import commands
import cp
import os
import re
import string
import sys
import time
Functions   
convertToBibtex
doCmd
main
moveToBackup
replaceCitations
  convertToBibtex 
convertToBibtex ( matchObj )

Converts [!Zhang, 1993, zhang1993-3345!] to \citestring{zhang1993-3345}; depends on the global citestring variable

  doCmd 
doCmd (
        cmd,
        v=1,
        exit=1,
        )

  main 
main ()

%(filename)s

Converts all citations enclosed by temporary citation markers in the format [!Author, Year, Label!] to BibTeX format citations (i.e., \cite{Label}).

{{out name of outfile. Replaces infile by default.}} {{h Prints documentation.}} {{v verbosity 1}} {{c command to precede citations (ie, \command{Label}) cite default bibtex citation command citep used with natbib package}} {{lis print a list of all refs and stop}} {{version print version info and exit}}

%(version)s

  moveToBackup 
moveToBackup ( infilename,  timeformat='%y%m%d-%H%M' )

  replaceCitations 
replaceCitations ( instring,  rexp=citationRexp )

Replaces citations enclosed by the specified tags with \cite{ref} style citations.


Table of Contents

This document was automatically generated on Thu Feb 27 16:52:00 2003 by HappyDoc version 2.1