From: groceryheist Date: Wed, 18 Jul 2018 20:23:34 +0000 (-0700) Subject: Merge branch 'groceryheist' X-Git-Url: https://code.communitydata.science/cdsc_tex.git/commitdiff_plain/d02648e69375636dbd26754833af438befaa54b4?hp=ba61988ec1c98967554b46396b7923d73dc804f6 Merge branch 'groceryheist' --- diff --git a/README b/README index d1e5fa9..2247df6 100644 --- a/README +++ b/README @@ -2,18 +2,19 @@ === LaTeX Custom Scripts ====== ================================ -Copyright (c) 2009 Benjamin Mako Hill +Copyright (c) 2009-2018 Benjamin Mako Hill This repository contains LaTeX configuration files that I use to format my papers. They are all released under the GNU GPL version 3 or later. -The latest version can be found at: http://mako.cc/scripts/ +The latest version can be found in git at: +https://projects.mako.cc/source/latex_mako/ As scripts and configuration files, I do not "release" these files. You can always check out the latest version with Git with the following command: - git clone http://projects.mako.cc/source/latex_mako/.git + git clone git://projects.mako.cc/latex_mako Bug reports, comments, questions, and patches can all be directed to: diff --git a/paper_template/mako-mem.sty b/paper_template/mako-mem.sty index d8f9fd7..95c0b7f 100644 --- a/paper_template/mako-mem.sty +++ b/paper_template/mako-mem.sty @@ -9,6 +9,7 @@ % available here: http://github.com/kjhealy/latex-custom-kjh/ \usepackage{lastpage} +\usepackage{datetime} % blank footnote % Use \symbolfootnote[0]{Footnote text} for a blank footnote. @@ -212,6 +213,27 @@ \makeevenfoot{mako-mem-git}{}{\texttt{\footnotesize{\textcolor{BrickRed}{git revision \VCRevision\ on \VCDateTEX}}}}{} \makeoddfoot{mako-mem-git}{}{\texttt{\footnotesize \textcolor{BrickRed}{git revision \VCRevision\ on \VCDateTEX}}}{} +%%% print a datestamp from ShareLaTeX +\makepagestyle{mako-mem-sharelatex} +\newcommand{\@slmarks}{% + \let\@mkboth\markboth + \def\chaptermark##1{% + \markboth{% + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \thechapter. \ % + \fi + \fi + ##1}{}} + \def\sectionmark##1{% + \markright{##1}} +} +\makepsmarks{mako-mem-sharelatex}{\@slmarks} +\makeevenhead{mako-mem-sharelatex}{}{}{\scshape\thepage} +\makeoddhead{mako-mem-sharelatex}{}{}{\scshape\thepage} +\makeevenfoot{mako-mem-sharelatex}{}{\texttt{\footnotesize{\textcolor{BrickRed}{Buildstamp/Version:~\pdfdate}}}}{} +\makeoddfoot{mako-mem-sharelatex}{}{\texttt{\footnotesize{\textcolor{BrickRed}{Buildstamp/Version:~\pdfdate}}}}{} + %% Create a command to make a note at the top of the first page describing the %% publication status of the paper. \newcommand{\published}[1]{% diff --git a/paper_template/text.tex b/paper_template/text.tex index ee3b2f3..ec7173d 100644 --- a/paper_template/text.tex +++ b/paper_template/text.tex @@ -32,7 +32,14 @@ \hypersetup{colorlinks=true, linkcolor=Black, citecolor=Black, filecolor=Blue, urlcolor=Blue, unicode=true} -% add bibliographic stuff +% list of footnote symbols for \thanks{} +\makeatletter +\renewcommand*{\@fnsymbol}[1]{\ensuremath{\ifcase#1\or *\or \dagger\or \ddagger\or + \mathsection\or \mathparagraph\or \|\or **\or \dagger\dagger + \or \ddagger\ddagger \else\@ctrerr\fi}} +\makeatother +\newcommand*\samethanks[1][\value{footnote}]{\footnotemark[#1]} + % add bibliographic stuff \usepackage[american]{babel} \usepackage{csquotes} @@ -58,6 +65,10 @@ % \input{vc} % \pagestyle{mako-mem-git} +% LATEX NOTE: this alternative line will just input a timestamp at the +% build process, useful for sharelatex +% \pagestyle{mako-mem-sharelatex} + \begin{document} \setlength{\parskip}{4.5pt}