## Monday, August 31, 2009

### AJAE standard references in Latex and Puthesis

The package economic has a bibliography style based on AJAE standards:
The package is at:
http://www.ctan.org/tex-archive/biblio/bibtex/contrib/economic/
and should be easy to install using mike/live tex standard installers.
To use it with puthesis, add this line to puthesis.cls (I added it where all the bib styles are defined, I do not know if that matters):
\DeclareOption{ajae}{\set@@optionbibstyle{ajae}}.
Then, declare it in the document class:
\documentclass[agecon,ajae,dissertation]{puthesis} (thanks Todd for this hint) and be sure to declare it as bib style in the bibliography section:
\bibliographystyle{ajae}.

## Saturday, August 22, 2009

### Selectively removing objects in R

Suppose you have created a bunch of objects but want to keep only a, b, and c. You can do the following:
# Create an character vector with the objects to keep:keepthis<-c("a", "b","c")# Use the set operator setdiff() to delete only the difference# between the set objects() and the set keepthis.rm(list=c(setdiff(objects(), keepthis)))#You can progressively add objects to keepthis using append():keepthis<-append(keepthis,c("d", "e"))

## Friday, August 21, 2009

$sudo apt-get install dvipng Use the same command above:$ htlatex filename "html,word" "symbol/!" "-cvalidate"

And step 2 is unchanged.