Skip to content

Commit

Permalink
fixes to new article template script
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Dec 31, 2013
1 parent bafb63e commit 9014740
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions tools/autorg-new-article
Expand Up @@ -35,7 +35,7 @@ editor=`rlwrap -S 'Name of editor > ' -H ~/.autorg-wizard -o cat`
cat <<EOF > $1
#+TITLE: $title
#+AUTHOR: $fullname
#+DATE: `date '+%e +%B +%Y`
#+DATE: `date '+%e %B %Y'`
#+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t f:t TeX:t
Expand All @@ -62,18 +62,16 @@ cat <<EOF > $1
#+LATEX_HEADER: \setlength{\headheight}{18pt}
#+LATEX_HEADER: \pagestyle{fancyplain}
#+LATEX: \fancyhf{}
#+LATEX: \fancyhead[L]{\rule[-2ex]{0pt}{2ex}\small $title}
#+LATEX: \fancyhead[R]{\rule[-2ex]{0pt}{2ex}\small $shortname}
#+LATEX: \fancyfoot[C]{-- \thepage\ --}
#+LATEX: \fancyfoot[R]{\small `date '+%e +%b +%Y`}
#+LATEX: \fancyfoot[R]{\small `date '+%e %b %Y'`}
#+LATEX: \fancyfoot[L]{\small $editor}
#+LATEX: \renewcommand{\headrulewidth}{0.4pt}
#+LATEX: \renewcommand{\footrulewidth}{0.4pt}
*Abstract*:
#+KEYWORDS:
Expand All @@ -95,30 +93,29 @@ $title
Author: $fullname
#+END_EXAMPLE
#+LATEX: \end{minipage}
#+LATEX: \newpage
* Introduction
: Write your article here
: Leave printindex as last
: Intex terms using #+INDEX:
: and nest index levels with
: #+INDEX: Term!subterm
* Conclusion
* Contributor details
* References
#+LATEX: \printindex
EOF
EOF

0 comments on commit 9014740

Please sign in to comment.