diff --git a/paper/header.tex b/paper/header.tex index 604ae8d..121bd93 100644 --- a/paper/header.tex +++ b/paper/header.tex @@ -17,3 +17,5 @@ pdfkeywords = {Julia, Optimization, Game theory, Compiler}, } +\usepackage{draftwatermark} + diff --git a/paper/journal_dat.tex b/paper/journal_dat.tex index 47d823d..a925030 100644 --- a/paper/journal_dat.tex +++ b/paper/journal_dat.tex @@ -3,4 +3,4 @@ \def\@journalName{Proceedings of JuliaCon} \def\@volume{1} \def\@issue{1} -\def\@year{2019} +\def\@year{2021} diff --git a/paper/paper.tex b/paper/paper.tex index 1a905c5..fa61e81 100644 --- a/paper/paper.tex +++ b/paper/paper.tex @@ -3,10 +3,10 @@ \documentclass{juliacon} \setcounter{page}{1} -\begin{document} - \input{header} +\begin{document} + \maketitle \begin{abstract} diff --git a/paper/prep.rb b/paper/prep.rb index 6da32f4..4cbff2c 100644 --- a/paper/prep.rb +++ b/paper/prep.rb @@ -13,6 +13,7 @@ issue = ENV["JLCON_ISSUE"] === nil ? 1 : ENV["JLCON_ISSUE"] volume = ENV["JLCON_VOLUME"] === nil ? 1 : ENV["JLCON_VOLUME"] year = ENV["JLCON_YEAR"] === nil ? 2021 : ENV["JLCON_YEAR"] +draft = ENV["JLCON_DRAFT"] === nil ? true : ENV["JLCON_DRAFT"] == "true" journal_name = "Proceedings of JuliaCon" # hard-coded for now open('header.tex', 'w') do |f| @@ -40,6 +41,11 @@ keyword_list = metadata['keywords'].join(', ') f << "pdfkeywords = {#{keyword_list}},\n" f << "}\n\n" + + # draft mode + if draft + f << "\\usepackage{draftwatermark}\n\n" + end end open('journal_dat.tex', 'w') do |f|