diff --git a/make-pdf.sh b/make-pdf.sh index 27643d4623096d229449543f77d4cc8957bc3e91..1164eabc4b340446edc928ba0f77bc7bbfc4fa13 100755 --- a/make-pdf.sh +++ b/make-pdf.sh @@ -4,10 +4,8 @@ do Rscript -e "library(rmarkdown); rmarkdown::render('$file', 'pdf_document')" done -pdflatex --shell-escape syncleus-white-example.tex - -#for file in *.tex -#do -# pdflatex --shell-escape "$file" -#done +for file in *.tex +do + pdflatex --shell-escape "$file" +done diff --git a/svm-rmarkdown-anon-ms-example.Rmd b/svm-rmarkdown-anon-ms-example.Rmd index 08ba8d2983a95fb262ff634d74ac47da6b56ac57..464d757aeb704883702c4e9066581e3a05e97bc8 100644 --- a/svm-rmarkdown-anon-ms-example.Rmd +++ b/svm-rmarkdown-anon-ms-example.Rmd @@ -18,7 +18,7 @@ date: "`r format(Sys.time(), '%B %d, %Y')`" geometry: margin=1in fontfamily: mathpazo fontsize: 11pt -bibliography: ~./syncleus-white.bib +bibliography: ~./syncleus-white-example.bib biblio-style: apsr indent: yes colorlinks: true @@ -28,6 +28,33 @@ colorlinks: true Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec felis placerat, suscipit risus eget, condimentum ex. Nunc laoreet mi nisi, eu volutpat orci porttitor at. Nunc a bibendum diam. Aenean condimentum, neque at gravida imperdiet, orci arcu laoreet risus, eu gravida erat leo et ante. Suspendisse tempor non eros nec vestibulum. Morbi cursus posuere nunc, semper dignissim mi lacinia non. Nunc sagittis ipsum in mattis volutpat. Morbi in mauris ut urna rhoncus pellentesque. Morbi hendrerit sodales metus, at placerat velit bibendum at. Etiam ut est id ligula hendrerit commodo et eget lorem. See my previous scholarship [@miller2013tdpi; @miller2016ieea; @miller2016etst]. +\digraph[scale=0.5]{MyGraph}{ + rankdir="LR"; + 4, 10 [color = pink, style = filled]; + 4->13 + 10->13 + 10->2 + 13, 2 [color = lightblue, style = filled]; + 13->6 + 13->1 + 2->8 + 1, 6, 8 [color = green, style = filled]; + 1->15 + 8->9 + 15, 9 [color = yellow, style = filled]; + 9->5 + 15->3 + 15->12 + 15->11 + 15->14 + 3, 5, 11, 12, 14 [color = orange, style = filled]; + 5->7 + 11->7 + 14->7 + 10->7 + 7 [color = magenta, style = filled]; +} + Proin vitae metus at turpis aliquet pulvinar. Suspendisse potenti. Interdum et malesuada fames ac ante ipsum primis in faucibus. Etiam tincidunt euismod mauris, pulvinar scelerisque nulla accumsan et. Praesent tempus ipsum varius enim eleifend, ut blandit arcu molestie. Vestibulum tempor est blandit ligula porta consequat. Praesent condimentum auctor ligula, ac pellentesque ante fringilla egestas. Praesent accumsan scelerisque eros nec mattis. Donec eget aliquet metus. Sed auctor, lacus mollis hendrerit lobortis, nisl felis vehicula libero, sed aliquet elit augue et eros. Etiam molestie augue ut dui vulputate, quis tempor augue pharetra. Pellentesque ac mauris eget nulla vestibulum ultrices. Sed hendrerit in tortor vitae aliquet. Sed vehicula pharetra interdum. Duis eget interdum diam, eget lacinia nunc. Duis viverra maximus euismod. Nulla interdum diam ac nisl laoreet sodales. Sed commodo diam ut massa gravida, id viverra neque semper. Vivamus vitae nibh suscipit, viverra mi convallis, posuere orci. Sed nec tempus dolor, ac facilisis quam. Aenean id diam semper leo pharetra elementum id eget justo. diff --git a/svm-rmarkdown-anon-ms-example.pdf b/svm-rmarkdown-anon-ms-example.pdf index 7fdfe497c0ad88ad5c32a5dafadf005f9f7fac20..5806ac16dc51dbc0f0f94f28976b11af89e8bcd7 100644 Binary files a/svm-rmarkdown-anon-ms-example.pdf and b/svm-rmarkdown-anon-ms-example.pdf differ diff --git a/svm-rmarkdown-article-example.Rmd b/svm-rmarkdown-article-example.Rmd index 503da877093f52724f850fc1ca347003806d26be..90f87d8ae1b6db17fd4ca2bb24b9551804764982 100644 --- a/svm-rmarkdown-article-example.Rmd +++ b/svm-rmarkdown-article-example.Rmd @@ -18,7 +18,7 @@ geometry: margin=1in fontfamily: mathpazo fontsize: 11pt # spacing: double -bibliography: ~./syncleus-white.bib +bibliography: ~./syncleus-white-example.bib biblio-style: apsr --- diff --git a/templates/svm-latex-anon-ms.tex b/templates/svm-latex-anon-ms.tex index fc67211d32db50399646800b819ea3a828c4cb86..e8422ead3c04547aa195a839dcc27352896408a8 100644 --- a/templates/svm-latex-anon-ms.tex +++ b/templates/svm-latex-anon-ms.tex @@ -126,8 +126,9 @@ $if(tables)$ % Fix footnotes in tables (requires footnote package) \IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{long table}}{} $endif$ +\usepackage[pdftex]{graphicx} $if(graphics)$ -\usepackage{graphicx,grffile} +\usepackage{grffile} \makeatletter \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi} \def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi} @@ -192,6 +193,7 @@ $if(dir)$ \newenvironment{LTR}{\beginL}{\endL} \fi $endif$ +\usepackage{./templates/graphviz} % set default figure placement to htbp \makeatletter diff --git a/templates/svm-latex-beamer.tex b/templates/svm-latex-beamer.tex index e9dca39b1cdbc250f19a785c7d4fc2bf809206d3..200397a53386bce2c62788038386d87a9c8cf3c9 100644 --- a/templates/svm-latex-beamer.tex +++ b/templates/svm-latex-beamer.tex @@ -108,8 +108,9 @@ $if(tables)$ \def\fnum@table{\tablename~\thetable} \makeatother $endif$ +\usepackage[pdftex]{graphicx} $if(graphics)$ -\usepackage{graphicx,grffile} +\usepackage{grffile} \makeatletter \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi} \def\maxheight{\ifdim\Gin@nat@height>\textheight0.8\textheight\else\Gin@nat@height\fi} @@ -119,6 +120,7 @@ $if(graphics)$ % using explicit options in \includegraphics[width, height, ...]{} \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} $endif$ +\usepackage{./templates/graphviz} % Comment these out if you don't want a slide with just the % part/section/subsection/subsubsection title: diff --git a/templates/svm-latex-cv.tex b/templates/svm-latex-cv.tex index 3f8cd143fb17194840ded59fe29d2b85382abf50..830fa66e9b5d698dcd36b95942959b090fc75902 100644 --- a/templates/svm-latex-cv.tex +++ b/templates/svm-latex-cv.tex @@ -97,8 +97,9 @@ $endif$ $if(tables)$ \usepackage{longtable,booktabs} $endif$ +\usepackage[pdftex]{graphicx} $if(graphics)$ -\usepackage{graphicx,grffile} +\usepackage{grffile} \makeatletter \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi} \def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi} @@ -117,6 +118,7 @@ $if(strikeout)$ % avoid problems with \sout in headers with hyperref: \pdfstringdefDisableCommands{\renewcommand{\sout}{}} $endif$ +\usepackage{./templates/graphviz} $if(indent)$ $else$ diff --git a/templates/svm-latex-ms.tex b/templates/svm-latex-ms.tex index 7dfe83a3f573a38d292c0c92e72a7e5b64de5a34..adb8ea97f4ac2f3c592d14cf0446f393b15f80ad 100644 --- a/templates/svm-latex-ms.tex +++ b/templates/svm-latex-ms.tex @@ -62,8 +62,8 @@ $if(tables)$ \usepackage{longtable,booktabs} $endif$ +\usepackage[pdftex]{graphicx} $if(graphics)$ -\usepackage{graphicx} % We will generate all images so they have a width \maxwidth. This means % that they will get their normal width if they fit onto the page, but % are scaled down if they would overflow the margins. @@ -74,6 +74,7 @@ $if(graphics)$ \let\Oldincludegraphics\includegraphics \renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}} $endif$ +\usepackage{./templates/graphviz} $if(title)$ \title{$title$$if(subtitle)$: $subtitle$$endif$ $if(anonymous)$$else$$if(thanks)$\thanks{$thanks$} $endif$$endif$ } diff --git a/templates/svm-latex-statement.tex b/templates/svm-latex-statement.tex index 64bf0d6568eec975acf3c49f6368a14a6dcf8e9e..9bd44de85b06d4656d7e6b76a9e029f803e63457 100644 --- a/templates/svm-latex-statement.tex +++ b/templates/svm-latex-statement.tex @@ -107,8 +107,8 @@ $if(tables)$ \usepackage{longtable} $endif$ +\usepackage[pdftex]{graphicx} $if(graphics)$ -\usepackage{graphicx} % We will generate all images so they have a width \maxwidth. This means % that they will get their normal width if they fit onto the page, but % are scaled down if they would overflow the margins. @@ -119,6 +119,7 @@ $if(graphics)$ \let\Oldincludegraphics\includegraphics \renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}} $endif$ +\usepackage{./templates/graphviz} $if(natbib)$ diff --git a/templates/svm-latex-syllabus.tex b/templates/svm-latex-syllabus.tex index d4ed89602a3836fd58c3f4b607ee43ec362f4648..13d2e38b6d68f6fc8543afd95c3878fe2353fdb2 100644 --- a/templates/svm-latex-syllabus.tex +++ b/templates/svm-latex-syllabus.tex @@ -106,8 +106,8 @@ $if(tables)$ \usepackage{longtable} $endif$ +\usepackage[pdftex]{graphicx} $if(graphics)$ -\usepackage{graphicx} % We will generate all images so they have a width \maxwidth. This means % that they will get their normal width if they fit onto the page, but % are scaled down if they would overflow the margins. @@ -118,6 +118,7 @@ $if(graphics)$ \let\Oldincludegraphics\includegraphics \renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}} $endif$ +\usepackage{./templates/graphviz} $if(natbib)$