diff --git a/Makefile b/Makefile index 764699e..e47239d 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,8 @@ LIB = lib POSTER = $(SRC)/$(PROJ)_poster.pdf +README = README.md + # executables RM = rm -Rf TEX = xelatex -interaction nonstopmode -shell-escape @@ -29,6 +31,7 @@ EMACSINIT = $(EXT)/$(PROJ)_dotemacs EMACS = emacs -l ../$(EMACSINIT) EMACSMSARGS = --batch -f org-latex-export-to-latex --kill EMACSPARGS = --batch -f org-beamer-export-to-latex --kill +EMACSRARGS = --batch -f org-md-export-to-markdown --kill VIEWBIN = pdfview PDFMERGEBIN = ext/pdfmerge CPBIN = cp @@ -53,7 +56,7 @@ PDFTEXFILES = $(TEXOUTFILES:$(SRC)/%.aux=$(SRC)/%.pdf) # Rule for $(TEXFILES) # Convert every org file to LaTeX this is done from within the subfolder # so be careful with relative paths -$(SRC)/%.tex: $(SRC)/%.org $(PDFLIB) $(SRC)/beamerthemeph.sty +$(SRC)/%.tex: $(SRC)/%.org $(PDFLIB) $(SRC)/beamerthemeph.sty $(EMACSINIT) @if [ "$(notdir $<)" = "$(PROJ)_poster.org" ]; then \ echo "Exporting poster from org to LaTeX" \ && cd $(SRC) && $(EMACS) $(PROJ)_poster.org $(EMACSPARGS); \ @@ -67,13 +70,19 @@ $(SRC)/%.aux: $(SRC)/%.tex $(PDFLIB) cd $(SRC) && $(TEX) $(notdir $<) # Default entry -all: poster +all: poster readme + +$(README): README.org $(EMACSINIT) + emacs -l $(EMACSINIT) README.org $(EMACSRARGS); # make poster -poster: tex +poster: tex # run tex files -tex: $(TEXOUTFILES) $(TEXFILES) +tex: $(TEXOUTFILES) $(TEXFILES) + +# convert the readme file +readme: $(README) viewposter: poster pdfview $(POSTER) @@ -87,4 +96,4 @@ texclean: $(RM) $(TEXOUT)/$(PROJ)*.aux test: - @echo $(POSTER) $(TEXFILES) $(ORGFILES) + @echo $(POSTER) $(README) diff --git a/README.md b/README.md index c5487d5..b525d02 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,8 @@ Philipp Homan # Getting Started This is a simple template to produce a scientific poster with emacs and -org-mode. +org-mode. It includes a Makefile so that the poster can be created from +the command line by running the 'make' command. ## Prerequisites @@ -53,7 +54,7 @@ are required: Download the repository and run tar xvfz on the tarball. -# Producing the poster +# Creating the poster Change to the org-mode-poster directory and run 'make poster'. diff --git a/README.org b/README.org index c38af0b..038204d 100644 --- a/README.org +++ b/README.org @@ -88,7 +88,8 @@ Philipp Homan * Getting Started This is a simple template to produce a scientific poster with emacs and -org-mode. +org-mode. It includes a Makefile so that the poster can be created from +the command line by running the 'make' command. ** Prerequisites This was developed and tested on a Linux Ubuntu 17.04 machine. To @@ -112,10 +113,12 @@ are required: * Installing Download the repository and run tar xvfz on the tarball. -* Producing the poster +* Creating the poster Change to the org-mode-poster directory and run 'make poster'. * Built With src_bash{lsb_release -sd} {{{results(Ubuntu 17.10)}}} on emacs src_elisp{emacs-version} {{{results(25.2.2)}}} and org-mode src_elisp{org-version} {{{results(9.1.7)}}}. + + diff --git a/ext/org-mode-poster_dotemacs b/ext/org-mode-poster_dotemacs index 02c9d50..d7d787e 100644 --- a/ext/org-mode-poster_dotemacs +++ b/ext/org-mode-poster_dotemacs @@ -222,4 +222,3 @@ (require 'org-ref-scopus) (setq reftex-default-bibliography '("master.bib")) (setq org-ref-default-bibliography '("master.bib")) - diff --git a/src/org-mode-poster_poster.pdf b/src/org-mode-poster_poster.pdf index 7cdfa05..dda6a02 100644 Binary files a/src/org-mode-poster_poster.pdf and b/src/org-mode-poster_poster.pdf differ diff --git a/src/org-mode-poster_poster.tex b/src/org-mode-poster_poster.tex index f375f02..f48e0b5 100644 --- a/src/org-mode-poster_poster.tex +++ b/src/org-mode-poster_poster.tex @@ -1,4 +1,4 @@ -% Created 2018-04-03 Tue 16:20 +% Created 2018-04-04 Wed 12:21 % Intended LaTeX compiler: pdflatex \documentclass[final]{beamer} \usetheme{ph} @@ -37,11 +37,11 @@ Philipp Homan$^{1}$ \normalsize{Hempstead, NY} } \usetheme{default} -\date{2018-04-03 16:20} +\date{2018-04-04 12:21} \title{Using org-mode for scientific posters} \begin{document} -\begin{frame}[fragile,label={sec:org4e5d9c1}]{} +\begin{frame}[fragile,label={sec:org954d466}]{} \begin{columns} \begin{column}[t]{0.45\columnwidth} \begin{block}{Background} @@ -53,10 +53,10 @@ posters \item With org-mode we can populate the poster with code, graphs and numbers from inline code in languages such as R, python, Matlab and even shell scripting -\item For example, this poster was created on 2018-04-03 16:20 on +\item For example, this poster was created on 2018-04-04 12:21 on Ubuntu 17.10. \item Inline code could look like this (which will produce a graph; -Fig. \ref{fig:orgd6095b3}): +Fig. \ref{fig:org8e3f41e}): \end{itemize} \begin{columns} @@ -72,7 +72,7 @@ hist(x2, col="blue", add=TRUE) \begin{figure}[htbp] \centering \includegraphics[width=.9\linewidth]{3.png} -\caption{\label{fig:orgd6095b3} +\caption{\label{fig:org8e3f41e} This is the output.} \end{figure} \end{column} @@ -86,7 +86,7 @@ This is the output.} capabilities \item Some code to process the first vector from above to make a table out of its summary could look like this, which would result in a little -table (Table \ref{tab:org6ea52bf}) : +table (Table \ref{tab:orgd66dcb7}) : \end{itemize} \begin{columns} @@ -105,7 +105,7 @@ mutate(name=c("x1", "x2")) \vspace{2cm} \begin{table}[htbp] -\caption{\label{tab:org6ea52bf} +\caption{\label{tab:orgd66dcb7} A table summarizing the two distributions.} \centering \begin{tabular}{rrrrrrl} @@ -126,7 +126,7 @@ minimum & q1 & median & mean & q3 & maximum & name\\ \begin{block}{Graphics} \begin{itemize} \item We can use shell scripting to grab an image with curl from the -internet (Fig. \ref{fig:orgdecde0e}): +internet (Fig. \ref{fig:orga7f94bb}): \end{itemize} \begin{columns} @@ -143,7 +143,7 @@ curl -0 https://www.gnu.org/software/emacs/images/emacs.png \begin{figure}[htbp] \centering \includegraphics[page=9,width=0.2\textwidth]{emacs.png} -\caption{\label{fig:orgdecde0e} +\caption{\label{fig:orga7f94bb} This is the downloaded image.} \end{figure} \end{column} @@ -189,7 +189,7 @@ derived as follows: \begin{figure}[htbp] \centering \includegraphics[width=.9\linewidth]{4l.png} -\caption{\label{fig:orgad4a0e9} +\caption{\label{fig:org0b56e4b} This is the left figure of a two-column block, showing the density of \(x1\).} \end{figure} \end{column} @@ -199,7 +199,7 @@ This is the left figure of a two-column block, showing the density of \(x1\).} \begin{figure}[htbp] \centering \includegraphics[width=.9\linewidth]{4r.png} -\caption{\label{fig:orga32513a} +\caption{\label{fig:org5983ee2} This is the right figure. It shows the density of \(x2\).} \end{figure} \end{column} diff --git a/src/org-mode-poster_poster.tex~ b/src/org-mode-poster_poster.tex~ index 03a9d41..3e7b496 100644 --- a/src/org-mode-poster_poster.tex~ +++ b/src/org-mode-poster_poster.tex~ @@ -1,4 +1,4 @@ -% Created 2018-04-03 Tue 16:17 +% Created 2018-04-04 Wed 12:05 % Intended LaTeX compiler: pdflatex \documentclass[final]{beamer} \usetheme{ph} @@ -23,11 +23,11 @@ \newcommand{\Xoi}[1]{#1(i)} \newcommand{\frakPQ}[2]{\frac{\Xoi{#1}}{\Xoi{#2}}} \newcommand{\DKLPQ}[3]{D_{\mathrm{KL}}(#1 #3 #2)} +\date{} \newcommand{\auth}{Philipp Homan, MD, PhD} \newcommand{\authemail}{phoman1@northwell.edu} \newcommand{\authtwitter}{@philipphoman} \newcommand{\authgithub}{github.com/philipphoman} -\date{} \author{ Philipp Homan$^{1}$ \\ @@ -37,11 +37,11 @@ Philipp Homan$^{1}$ \normalsize{Hempstead, NY} } \usetheme{default} -\date{2018-04-03 16:17} +\date{2018-04-04 12:05} \title{Using org-mode for scientific posters} \begin{document} -\begin{frame}[fragile,label={sec:orgcb59795}]{} +\begin{frame}[fragile,label={sec:org2d306a8}]{} \begin{columns} \begin{column}[t]{0.45\columnwidth} \begin{block}{Background} @@ -53,10 +53,10 @@ posters \item With org-mode we can populate the poster with code, graphs and numbers from inline code in languages such as R, python, Matlab and even shell scripting -\item For example, this poster was created on 2018-04-03 16:17 on +\item For example, this poster was created on 2018-04-04 12:05 on Ubuntu 17.10. \item Inline code could look like this (which will produce a graph; -Fig. \ref{fig:org0e374d5}): +Fig. \ref{fig:org1e6e9a8}): \end{itemize} \begin{columns} @@ -72,7 +72,7 @@ hist(x2, col="blue", add=TRUE) \begin{figure}[htbp] \centering \includegraphics[width=.9\linewidth]{3.png} -\caption{\label{fig:org0e374d5} +\caption{\label{fig:org1e6e9a8} This is the output.} \end{figure} \end{column} @@ -86,7 +86,7 @@ This is the output.} capabilities \item Some code to process the first vector from above to make a table out of its summary could look like this, which would result in a little -table (Table \ref{tab:orgd478dd5}) : +table (Table \ref{tab:org79ade92}) : \end{itemize} \begin{columns} @@ -105,7 +105,7 @@ mutate(name=c("x1", "x2")) \vspace{2cm} \begin{table}[htbp] -\caption{\label{tab:orgd478dd5} +\caption{\label{tab:org79ade92} A table summarizing the two distributions.} \centering \begin{tabular}{rrrrrrl} @@ -126,7 +126,7 @@ minimum & q1 & median & mean & q3 & maximum & name\\ \begin{block}{Graphics} \begin{itemize} \item We can use shell scripting to grab an image with curl from the -internet (Fig. \ref{fig:org0845f41}): +internet (Fig. \ref{fig:orgf5c409c}): \end{itemize} \begin{columns} @@ -143,7 +143,7 @@ curl -0 https://www.gnu.org/software/emacs/images/emacs.png \begin{figure}[htbp] \centering \includegraphics[page=9,width=0.2\textwidth]{emacs.png} -\caption{\label{fig:org0845f41} +\caption{\label{fig:orgf5c409c} This is the downloaded image.} \end{figure} \end{column} @@ -189,7 +189,7 @@ derived as follows: \begin{figure}[htbp] \centering \includegraphics[width=.9\linewidth]{4l.png} -\caption{\label{fig:orge5967c7} +\caption{\label{fig:orgd7d362e} This is the left figure of a two-column block, showing the density of \(x1\).} \end{figure} \end{column} @@ -199,7 +199,7 @@ This is the left figure of a two-column block, showing the density of \(x1\).} \begin{figure}[htbp] \centering \includegraphics[width=.9\linewidth]{4r.png} -\caption{\label{fig:orga7dbf2c} +\caption{\label{fig:orgb7b3a82} This is the right figure. It shows the density of \(x2\).} \end{figure} \end{column}