Program Source

images/HaasBerkeley.png

Table of Contents

Main org-file

original file: index.org

# $Id: index.org,v 37:2e260faa2b95 2012/06/02 04:31:20 stanton $
#+title: Writing Finance Papers using LaTeX
# #+date: May, 2012
#+setupfile: setup
#+startup: indent
#+html:<div id="haas-frame"><a href="http://haas.berkeley.edu"><img src="images/HaasBerkeley.png" width="189px" height="120px"  alt="images/HaasBerkeley.png" /></a></div>

Richard Stanton \\
Professor of Finance and Real Estate \\
Kingsford Capital Management Chair in Business \\
Haas School of Business \\
University of California, Berkeley

file:images/rssmall2.gif

* Abstract
This document provides some recommendations for efficiently writing finance papers using LaTeX and related tools, based on techniques that have made me (at least slightly) more productive over the years. It also contains the LaTeX style files and  BibTeX format files (along with sample paper outlines) necessary for making your paper and bibliography match the formats required by the /Journal of Finance/, /Journal of Financial Economics/, and /Review of Financial Studies/. The source file, *texintro.tex*, and various additional included files are important parts of this document.

* Downloads

*The paper*
- *texintro.pdf*: Download this file if you just want to read the paper.

*Zip file containing the entire distribution (with figures, bibliography, this Web page, etc.)*
- *texintro.zip*: Allows you to build the paper and all examples, Web pages, etc. yourself.

*LaTeX source for paper* 
- *texintro.tex*: Useful to see how the examples in the paper were created.

*Non-standard LaTeX style files needed to compile the paper*
- texintro.sty: Contains a few definitions needed to compile the paper.
- versionPO.sty: Useful for including text conditionally.

*Journal-specific files*
- /Journal of Finance/
  - LaTeX style file (jf.sty)
  - LaTeX style file for JF Internet Appendix (jfIA.sty)
  - BibTeX format (jf.bst)
  - Sample paper (jfsample.tex)
    - PDF file
  - Sample Internet Appendix (jfIAsample.tex)
    - PDF file
- /Journal of Financial Economics/
  - LaTeX style file (jfe.sty)
  - BibTeX format (jfe.bst)
  - Sample paper (jfesample.tex)
- /Review of Financial Studies/
  - LaTeX style file (rfs.sty)
  - BibTeX format (rfs.bst)
  - Sample paper (rfssample.tex)

* org-mode

This page was created using org-mode in Emacs. org-mode is an extremely useful package, which can do almost everything from keeping track of your To Do list and notes to writing papers to editing web pages. The source for this page is available here: src. 

* Acknowledgments
I am grateful to Jennifer Carpenter and Johan Walden for helpful suggestions and valuable input (even if some of it was inadvertent). I am also grateful to Tobias Oetiker for writing the *example* environment, which I use liberally in this document, and to Stefan Vollmar, whose formatting I borrowed with only minor changes for this Web page. 

setup (Org-file)

original file: setup

# $Id: setup,v 0:e52cabd1f988 2012/05/29 21:55:57 stanton $
#+author: Richard Stanton
#+email: stanton@haas.berkeley.edu
#+options: toc:t num:nil author:t creator:t ^:nil
#+style: <link rel="stylesheet" type="text/css" href="css/org.css" />

#+macro: blue-frame #+html:<div id="blue-frame"><a href="http://haas.berkeley.edu"><img src="images/blueGlass4.png" width="189px" height="120px"  alt="images/blueGlass4.png" /></a></div>

#+macro: haas-frame #+html:<div id="haas-frame"><a href="http://haas.berkeley.edu"><img src="images/HaasBerkeley.png" width="189px" height="120px"  alt="images/HaasBerkeley.png" /></a></div>

CSS-file

original file: org.css (Cascading Style Sheet)

/* based on http://orgmode.org/org.css, changes are marked with !sv */
/* $Id: org.css,v 0:e52cabd1f988 2012/05/29 21:55:57 stanton $ */

@media all
{
  body {
    margin: 0px 6% 100px 210px;
    font-family: Lucida Grande, Verdana, Helvetica, sans-serif; /* !sv */
    font-size: 11pt;
    text-align: left;
    line-height:1.3em; /* !sv 1.2em -> 1.3em*/
  }

  .figure { margin-top:-1em; margin-bottom:-1em; }  /* !sv */
  li { margin-top:+0.5em; margin-bottom:+0.5em; }   /* !sv */
  dd { margin-bottom:+0.5em; }   /* !sv */  
  p {  margin-top:+0.7em; margin-bottom:+0.7em; }   /* !sv */

  h1 {font-size: 14pt;}

    .author {
        font-size: 75%; 
        line-height: 0.7em;
    }   
    .date {
        font-size: 75%; 
        line-height: 0.7em;
    }   
    .creator {
        font-size: 75%; 
        line-height: 0.7em;
    }   

#haas-frame {
    font-size: 85%;
    position: fixed;
    display: block;
    width: 191px; /* !sv */
    height: 125px;
    left: 0px; /* !sv */
    top: 0px; /* !sv */
    min-height:60px;
    max-height:85%; /* !sv */
    line-height: 1.4em;
    overflow:auto;
}

#blue-frame {
    font-size: 85%;
    position: fixed;
    display: block;
    width: 191px; /* !sv */
    height: 125px;
    left: 0px; /* !sv */
    top: 0px; /* !sv */
    min-height:60px;
    max-height:85%; /* !sv */
    line-height: 1.4em;
    overflow:auto;
}

#table-of-contents {
    font-size: 85%;
    position: fixed;
    display: block;
    left: 4px; /* !sv */
    top: 160px; /* !sv */
    width: 200px; /* !sv */
    min-height:60px;
    max-height:85%; /* !sv */
    line-height: 1.4em;
    overflow:auto;
}

  #table-of-contents h2 {
    display:none;
  }

  #table-of-contents ul {
    list-style: none;
    margin: 7px 0px 7px 15px ;
    padding: 0px;
  }

  /*
 * {font-family:Lucida Grande,Helvetica,Arial,sans-serif; }
ORG-LIST-END-MARKER
 tt {font-family:Courier New;monospace;}
 pre {font-family:Courier New;monospace;}
 table tr.odd {background: #f0f0f0;color: black;}
 table tr.even {background: #e4e4e4;color: black;}
 tr.thead {font-family:Lucida Grande,Helvetica,Arial,sans-serif;
   background: #d5eedd;color: black;}
 */

  code {
      font-family:Courier New;monospace;
  }

  table {
      border-collapse: separate;
      border: 0;
      border-spacing: 3px;
      margin: 3px;
      font-size: 90%;
  }


  tr.tr-odd {
      background-color: #e4e4e4;
      margin-left: 5px;
  }

  tr.tr-even {
      background-color:  #f0f0f0;
  }

  th {
      font-family:Lucida Grande,Helvetica,Arial,sans-serif;
      font-size: 90%;
      background: #d5eedd;
      color: black;
  }

  .title {
    padding-bottom: 7px;
    margin-bottom: 20px;
    border-bottom: 1px solid #222;
  }

  sup {
        font-size: 10pt;
        line-height:9pt; /* !sv */
    }

  h2 {
    font-size: 14pt;  color: #a34d32;
    padding-bottom: 4px;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 1px solid #DDD;
  }

  h3 {font-size: 11pt; color: #a34d32;}
  h4 {
      font-size: 10.5pt;
      margin-top: 20px;
      margin-bottom: 0px;     
      color: #a34d32;
  }

  .figure {font-size: 9pt;}     

  /*a {text-decoration: none; color: #537d7b}*/
    a {text-decoration: underline;}

  /* a:visited {text-decoration: none; color: #98855b} */
    a:visited{text-decoration: underline; color: #98855b}
  a:hover {text-decoration: underline; color: #a34d32}

  .todo {color: #990000;}
  .done {color: #006666;}
  .timestamp-kwd {color: #444;}
  .tag {color: #DDD; font-size: 70%; font-weight: 500;}


  code {font-size: 11pt;line-height:11pt} /* !sv 10pt -> 11pt, added line-height */

  pre {
    border: 1px solid #555;
    background: #EEEEEE;
    font-size: 10pt; /* !sv 9pt -> 10pt */
    padding: 1em;
  }

  img {
    border: none;
  }

  img.centered {
    text-align: middle;
  }


  .org-info-search-highlight
  {
    background-color:#adefef; /* same color as emacs default */
    color:#000000;
    font-weight:bold;
  }

  .org-bbdb-company {
    /* bbdb-company */
    font-style: italic;
  }
  .org-bbdb-field-name {
  }
  .org-bbdb-field-value {
  }
  .org-bbdb-name {
    /* bbdb-name */
    text-decoration: underline;
  }
  .org-bold {
    /* bold */
    font-weight: bold;
  }
  .org-bold-italic {
    /* bold-italic */
    font-weight: bold;
    font-style: italic;
  }
  .org-border {
    /* border */
    background-color: #000000;
  }
  .org-buffer-menu-buffer {
    /* buffer-menu-buffer */
    font-weight: bold;
  }
  .org-builtin {
    /* font-lock-builtin-face */
    color: #da70d6;
  }
  .org-button {
    /* button */
    text-decoration: underline;
  }
  .org-c-nonbreakable-space {
    /* c-nonbreakable-space-face */
    background-color: #ff0000;
    font-weight: bold;
  }
  .org-calendar-today {
    /* calendar-today */
    text-decoration: underline;
  }
  .org-comment {
    /* font-lock-comment-face */
    color: #b22222;
  }
  .org-comment-delimiter {
    /* font-lock-comment-delimiter-face */
    color: #b22222;
  }
  .org-constant {
    /* font-lock-constant-face */
    color: #5f9ea0;
  }
  .org-cursor {
    /* cursor */
    background-color: #000000;
  }
  .org-default {
    /* default */
    color: #000000;
    background-color: #ffffff;
  }
  .org-diary {
    /* diary */
    color: #ff0000;
  }
  .org-doc {
    /* font-lock-doc-face */
    color: #bc8f8f;
  }
  .org-escape-glyph {
    /* escape-glyph */
    color: #a52a2a;
  }
  .org-file-name-shadow {
    /* file-name-shadow */
    color: #7f7f7f;
  }
  .org-fixed-pitch {
  }
  .org-fringe {
    /* fringe */
    background-color: #f2f2f2;
  }
  .org-function-name {
    /* font-lock-function-name-face */
    color: #0000ff;
  }
  .org-header-line {
    /* header-line */
    color: #333333;
    background-color: #e5e5e5;
  }
  .org-help-argument-name {
    /* help-argument-name */
    font-style: italic;
  }
  .org-highlight {
    /* highlight */
    background-color: #b4eeb4;
  }
  .org-holiday {
    /* holiday */
    background-color: #ffc0cb;
  }
  .org-info-header-node {
    /* info-header-node */
    color: #a52a2a;
    font-weight: bold;
    font-style: italic;
  }
  .org-info-header-xref {
    /* info-header-xref */
    color: #0000ff;
    text-decoration: underline;
  }
  .org-info-menu-header {
    /* info-menu-header */
    font-weight: bold;
  }
  .org-info-menu-star {
    /* info-menu-star */
    color: #ff0000;
  }
  .org-info-node {
    /* info-node */
    color: #a52a2a;
    font-weight: bold;
    font-style: italic;
  }
  .org-info-title-1 {
    /* info-title-1 */
    font-size: 172%;
    font-weight: bold;
  }
  .org-info-title-2 {
    /* info-title-2 */
    font-size: 144%;
    font-weight: bold;
  }
  .org-info-title-3 {
    /* info-title-3 */
    font-size: 120%;
    font-weight: bold;
  }
  .org-info-title-4 {
    /* info-title-4 */
    font-weight: bold;
  }
  .org-info-xref {
    /* info-xref */
    color: #0000ff;
    text-decoration: underline;
  }
  .org-isearch {
    /* isearch */
    color: #b0e2ff;
    background-color: #cd00cd;
  }
  .org-italic {
    /* italic */
    font-style: italic;
  }
  .org-keyword {
    /* font-lock-keyword-face */
    color: #a020f0;
  }
  .org-lazy-highlight {
    /* lazy-highlight */
    background-color: #afeeee;
  }
  .org-link {
    /* link */
    color: #0000ff;
    text-decoration: underline;
  }
  .org-link-visited {
    /* link-visited */
    color: #8b008b;
    text-decoration: underline;
  }
  .org-match {
    /* match */
    background-color: #ffff00;
  }
  .org-menu {
  }
  .org-message-cited-text {
    /* message-cited-text */
    color: #ff0000;
  }
  .org-message-header-cc {
    /* message-header-cc */
    color: #191970;
  }
  .org-message-header-name {
    /* message-header-name */
    color: #6495ed;
  }
  .org-message-header-newsgroups {
    /* message-header-newsgroups */
    color: #00008b;
    font-weight: bold;
    font-style: italic;
  }
  .org-message-header-other {
    /* message-header-other */
    color: #4682b4;
  }
  .org-message-header-subject {
    /* message-header-subject */
    color: #000080;
    font-weight: bold;
  }
  .org-message-header-to {
    /* message-header-to */
    color: #191970;
    font-weight: bold;
  }
  .org-message-header-xheader {
    /* message-header-xheader */
    color: #0000ff;
  }
  .org-message-mml {
    /* message-mml */
    color: #228b22;
  }
  .org-message-separator {
    /* message-separator */
    color: #a52a2a;
  }
  .org-minibuffer-prompt {
    /* minibuffer-prompt */
    color: #0000cd;
  }
  .org-mm-uu-extract {
    /* mm-uu-extract */
    color: #006400;
    background-color: #ffffe0;
  }
  .org-mode-line {
    /* mode-line */
    color: #000000;
    background-color: #bfbfbf;
  }
  .org-mode-line-buffer-id {
    /* mode-line-buffer-id */
    font-weight: bold;
  }
  .org-mode-line-highlight {
  }
  .org-mode-line-inactive {
    /* mode-line-inactive */
    color: #333333;
    background-color: #e5e5e5;
  }
  .org-mouse {
    /* mouse */
    background-color: #000000;
  }
  .org-negation-char {
  }
  .org-next-error {
    /* next-error */
    background-color: #eedc82;
  }
  .org-nobreak-space {
    /* nobreak-space */
    color: #a52a2a;
    text-decoration: underline;
  }
  .org-org-agenda-date {
    /* org-agenda-date */
    color: #0000ff;
  }
  .org-org-agenda-date-weekend {
    /* org-agenda-date-weekend */
    color: #0000ff;
    font-weight: bold;
  }
  .org-org-agenda-restriction-lock {
    /* org-agenda-restriction-lock */
    background-color: #ffff00;
  }
  .org-org-agenda-structure {
    /* org-agenda-structure */
    color: #0000ff;
  }
  .org-org-archived {
    /* org-archived */
    color: #7f7f7f;
  }
  .org-org-code {
    /* org-code */
    color: #7f7f7f;
  }
  .org-org-column {
    /* org-column */
    background-color: #e5e5e5;
  }
  .org-org-column-title {
    /* org-column-title */
    background-color: #e5e5e5;
    font-weight: bold;
    text-decoration: underline;
  }
  .org-org-date {
    /* org-date */
    color: #a020f0;
    text-decoration: underline;
  }
  .org-org-done {
    /* org-done */
    color: #228b22;
    font-weight: bold;
  }
  .org-org-drawer {
    /* org-drawer */
    color: #0000ff;
  }
  .org-org-ellipsis {
    /* org-ellipsis */
    color: #b8860b;
    text-decoration: underline;
  }
  .org-org-formula {
    /* org-formula */
    color: #b22222;
  }
  .org-org-headline-done {
    /* org-headline-done */
    color: #bc8f8f;
  }
  .org-org-hide {
    /* org-hide */
    color: #e5e5e5;
  }
  .org-org-latex-and-export-specials {
    /* org-latex-and-export-specials */
    color: #8b4513;
  }
  .org-org-level-1 {
    /* org-level-1 */
    color: #0000ff;
  }
  .org-org-level-2 {
    /* org-level-2 */
    color: #b8860b;
  }
  .org-org-level-3 {
    /* org-level-3 */
    color: #a020f0;
  }
  .org-org-level-4 {
    /* org-level-4 */
    color: #b22222;
  }
  .org-org-level-5 {
    /* org-level-5 */
    color: #228b22;
  }
  .org-org-level-6 {
    /* org-level-6 */
    color: #5f9ea0;
  }
  .org-org-level-7 {
    /* org-level-7 */
    color: #da70d6;
  }
  .org-org-level-8 {
    /* org-level-8 */
    color: #bc8f8f;
  }
  .org-org-link {
    /* org-link */
    color: #a020f0;
    text-decoration: underline;
  }
  .org-org-property-value {
  }
  .org-org-scheduled-previously {
    /* org-scheduled-previously */
    color: #b22222;
  }
  .org-org-scheduled-today {
    /* org-scheduled-today */
    color: #006400;
  }
  .org-org-sexp-date {
    /* org-sexp-date */
    color: #a020f0;
  }
  .org-org-special-keyword {
    /* org-special-keyword */
    color: #bc8f8f;
  }
  .org-org-table {
    /* org-table */
    color: #0000ff;
  }
  .org-org-tag {
    /* org-tag */
    font-weight: bold;
  }
  .org-org-target {
    /* org-target */
    text-decoration: underline;
  }
  .org-org-time-grid {
    /* org-time-grid */
    color: #b8860b;
  }
  .org-org-todo {
    /* org-todo */
    color: #ff0000;
  }
  .org-org-upcoming-deadline {
    /* org-upcoming-deadline */
    color: #b22222;
  }
  .org-org-verbatim {
    /* org-verbatim */
    color: #7f7f7f;
    text-decoration: underline;
  }
  .org-org-warning {
    /* org-warning */
    color: #ff0000;
    font-weight: bold;
  }
  .org-outline-1 {
    /* outline-1 */
    color: #0000ff;
  }
  .org-outline-2 {
    /* outline-2 */
    color: #b8860b;
  }
  .org-outline-3 {
    /* outline-3 */
    color: #a020f0;
  }
  .org-outline-4 {
    /* outline-4 */
    color: #b22222;
  }
  .org-outline-5 {
    /* outline-5 */
    color: #228b22;
  }
  .org-outline-6 {
    /* outline-6 */
    color: #5f9ea0;
  }
  .org-outline-7 {
    /* outline-7 */
    color: #da70d6;
  }
  .org-outline-8 {
    /* outline-8 */
    color: #bc8f8f;
  }
  .org-preprocessor {
    /* font-lock-preprocessor-face */
    color: #da70d6;
  }
  .org-query-replace {
    /* query-replace */
    color: #b0e2ff;
    background-color: #cd00cd;
  }
  .org-regexp-grouping-backslash {
    /* font-lock-regexp-grouping-backslash */
    font-weight: bold;
  }
  .org-regexp-grouping-construct {
    /* font-lock-regexp-grouping-construct */
    font-weight: bold;
  }
  .org-region {
    /* region */
    background-color: #eedc82;
  }
  .org-rmail-highlight {
  }
  .org-scroll-bar {
    /* scroll-bar */
    background-color: #bfbfbf;
  }
  .org-secondary-selection {
    /* secondary-selection */
    background-color: #ffff00;
  }
  .org-shadow {
    /* shadow */
    color: #7f7f7f;
  }
  .org-show-paren-match {
    /* show-paren-match */
    background-color: #40e0d0;
  }
  .org-show-paren-mismatch {
    /* show-paren-mismatch */
    color: #ffffff;
    background-color: #a020f0;
  }
  .org-string {
    /* font-lock-string-face */
    color: #bc8f8f;
  }
  .org-texinfo-heading {
    /* texinfo-heading */
    color: #0000ff;
  }
  .org-tool-bar {
    /* tool-bar */
    color: #000000;
    background-color: #bfbfbf;
  }
  .org-tooltip {
    /* tooltip */
    color: #000000;
    background-color: #ffffe0;
  }
  .org-trailing-whitespace {
    /* trailing-whitespace */
    background-color: #ff0000;
  }
  .org-type {
    /* font-lock-type-face */
    color: #228b22;
  }
  .org-underline {
    /* underline */
    text-decoration: underline;
  }
  .org-variable-name {
    /* font-lock-variable-name-face */
    color: #b8860b;
  }
  .org-variable-pitch {
  }
  .org-vertical-border {
  }
  .org-warning {
    /* font-lock-warning-face */
    color: #ff0000;
    font-weight: bold;
  }

}  /* END OF @media screen */


/* These style are only for IE: */

* html {
  overflow-y: hidden;
  padding-bottom:0px;
  margin:0px;
}
* html body
{
  height: 100%;
  overflow-y: auto;
  font-size: 100%;
  margin: 0px 0px 0px 250px;
  padding: 0px 10% 0px 0px;
}
* html #table-of-contents
{
  position: absolute;
  width:200px;
  /*
    The evil IE-JavaScript hack :-) depends on Picture and y-distance.
    Added to support small screens (Netbooks...).
    */
  height: expression((document.body.clientHeight - 210) + "px");
}

* html h1
{
  margin-top:10px;
}

Author: Richard Stanton (stanton@haas.berkeley.edu)

Date: 2012-06-02T00:11-0700

Generated by Org version 7.8.11 with Emacs version 24