Updated Makefile

This commit is contained in:
Philipp Homan yoga ubuntu 17.10 2018-04-04 11:51:27 +02:00
parent 63176e4382
commit 388c2bc76b
7 changed files with 72 additions and 41 deletions

View File

@ -60,5 +60,7 @@ Change to the org-mode-poster directory and run 'make poster'.
# Built With # Built With
Org-mode 9.1.7 . Ubuntu 17.10 on emacs
25.2.2 and org-mode
9.1.7.

View File

@ -116,4 +116,6 @@ Download the repository and run tar xvfz on the tarball.
Change to the org-mode-poster directory and run 'make poster'. Change to the org-mode-poster directory and run 'make poster'.
* Built With * Built With
Org-mode src_elisp{org-version} {{{results(9.1.7)}}} . 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)}}}.

View File

@ -168,7 +168,7 @@
% \vspace{-0.2ex} % \vspace{-0.2ex}
\begin{tabular}{rllrll} \begin{tabular}{rlrlrl}
%\textbf{Philipp Homan, MD, PhD} & & & & & \\ %\textbf{Philipp Homan, MD, PhD} & & & & & \\
\textbf{\auth} & & & & & \\ \textbf{\auth} & & & & & \\
\authemail & & \authemail & &

View File

@ -41,11 +41,14 @@
#+LATEX_HEADER: \newcommand{\Xoi}[1]{#1(i)} #+LATEX_HEADER: \newcommand{\Xoi}[1]{#1(i)}
#+LATEX_HEADER: \newcommand{\frakPQ}[2]{\frac{\Xoi{#1}}{\Xoi{#2}}} #+LATEX_HEADER: \newcommand{\frakPQ}[2]{\frac{\Xoi{#1}}{\Xoi{#2}}}
#+LATEX_HEADER: \newcommand{\DKLPQ}[3]{D_{\mathrm{KL}}(#1 #3 #2)} #+LATEX_HEADER: \newcommand{\DKLPQ}[3]{D_{\mathrm{KL}}(#1 #3 #2)}
#+LATEX_HEADER: \date{}
# ----------------------------------------------------------------------
** Latex macros :ignore:
# ----------------------------------------------------------------------
#+LATEX_HEADER: \newcommand{\auth}{Philipp Homan, MD, PhD} #+LATEX_HEADER: \newcommand{\auth}{Philipp Homan, MD, PhD}
#+LATEX_HEADER: \newcommand{\authemail}{phoman1@northwell.edu} #+LATEX_HEADER: \newcommand{\authemail}{phoman1@northwell.edu}
#+LATEX_HEADER: \newcommand{\authtwitter}{@philipphoman} #+LATEX_HEADER: \newcommand{\authtwitter}{@philipphoman}
#+LATEX_HEADER: \newcommand{\authgithub}{github.com/philipphoman} #+LATEX_HEADER: \newcommand{\authgithub}{github.com/philipphoman}
#+LATEX_HEADER: \date{}
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
** Authors and affiliations :ignore: ** Authors and affiliations :ignore:
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
@ -69,7 +72,28 @@
; Nicer formatting for code ; Nicer formatting for code
(setq org-latex-listings t) (setq org-latex-listings t)
(setq org-latex-listings 'minted) (setq org-latex-listings 'minted)
'(org-export-latex-listings-langs (quote ((emacs-lisp "Lisp") (lisp "Lisp") (clojure "Lisp") (c "C") (cc "C++") (fortran "fortran") (perl "Perl") (cperl "Perl") (python "Python") (ruby "Ruby") (html "HTML") (xml "XML") (tex "TeX") (latex "TeX") (shell-script "bash") (gnuplot "Gnuplot") (ocaml "Caml") (caml "Caml") (sql "SQL") (sqlite "sql") (R-mode "R")))) '(org-export-latex-listings-langs
(quote ((emacs-lisp "Lisp")
(lisp "Lisp")
(clojure "Lisp")
(c "C")
(cc "C++")
(fortran "fortran")
(perl "Perl")
(cperl "Perl")
(python "Python")
(ruby "Ruby")
(html "HTML")
(xml "XML")
(tex "TeX")
(latex "TeX")
(shell-script "bash")
(gnuplot "Gnuplot")
(ocaml "Caml")
(caml "Caml")
(sql "SQL")
(sqlite "sql")
(R-mode "R"))))
(setq org-latex-minted-options (setq org-latex-minted-options
'(("linenos=true") ("bgcolor=lightgray"))) '(("linenos=true") ("bgcolor=lightgray")))
; set timestamp format ; set timestamp format
@ -134,7 +158,7 @@
# #
# #
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
** End preamble :ignore: ** End preamble :ignore:
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
* The poster * The poster
@ -155,13 +179,14 @@
:BEAMER_env: block :BEAMER_env: block
:END: :END:
- Here we show how org-mode (version src_elisp{org-version} - Here we show how org-mode (version src_elisp{org-version}
{{{results(9.1.7)}}}) together with emacs (version {{{results(9.1.7)}}}) and emacs (version src_elisp{emacs-version}
src_elisp{emacs-version} {{{results(25.2.2)}}}) can be used to make {{{results(25.2.2)}}}) can be used to make decent looking scientific
decent looking scientific posters posters
- With org-mode we can populate the poster with code, graphs and numbers - 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 from inline code in languages such as R, python, Matlab and even shell
scripting scripting
- For example, this poster was created on {{{time(%Y-%m-%d %H:%M)}}} - For example, this poster was created on {{{time(%Y-%m-%d %H:%M)}}} on
src_bash{lsb_release -sd} {{{results(Ubuntu 17.10)}}}.
- Inline code could look like this (which will produce a graph; - Inline code could look like this (which will produce a graph;
Fig. [[figcode1]]): Fig. [[figcode1]]):

Binary file not shown.

View File

@ -1,4 +1,4 @@
% Created 2018-04-03 Tue 15:36 % Created 2018-04-03 Tue 16:20
% Intended LaTeX compiler: pdflatex % Intended LaTeX compiler: pdflatex
\documentclass[final]{beamer} \documentclass[final]{beamer}
\usetheme{ph} \usetheme{ph}
@ -23,11 +23,11 @@
\newcommand{\Xoi}[1]{#1(i)} \newcommand{\Xoi}[1]{#1(i)}
\newcommand{\frakPQ}[2]{\frac{\Xoi{#1}}{\Xoi{#2}}} \newcommand{\frakPQ}[2]{\frac{\Xoi{#1}}{\Xoi{#2}}}
\newcommand{\DKLPQ}[3]{D_{\mathrm{KL}}(#1 #3 #2)} \newcommand{\DKLPQ}[3]{D_{\mathrm{KL}}(#1 #3 #2)}
\date{}
\newcommand{\auth}{Philipp Homan, MD, PhD} \newcommand{\auth}{Philipp Homan, MD, PhD}
\newcommand{\authemail}{phoman1@northwell.edu} \newcommand{\authemail}{phoman1@northwell.edu}
\newcommand{\authtwitter}{@philipphoman} \newcommand{\authtwitter}{@philipphoman}
\newcommand{\authgithub}{github.com/philipphoman} \newcommand{\authgithub}{github.com/philipphoman}
\date{}
\author{ \author{
Philipp Homan$^{1}$ Philipp Homan$^{1}$
\\ \\
@ -37,25 +37,26 @@ Philipp Homan$^{1}$
\normalsize{Hempstead, NY} \normalsize{Hempstead, NY}
} }
\usetheme{default} \usetheme{default}
\date{2018-04-03 15:35} \date{2018-04-03 16:20}
\title{Using org-mode for scientific posters} \title{Using org-mode for scientific posters}
\begin{document} \begin{document}
\begin{frame}[fragile,label={sec:orge330f04}]{} \begin{frame}[fragile,label={sec:org4e5d9c1}]{}
\begin{columns} \begin{columns}
\begin{column}[t]{0.45\columnwidth} \begin{column}[t]{0.45\columnwidth}
\begin{block}{Background} \begin{block}{Background}
\begin{itemize} \begin{itemize}
\item Here we show how org-mode (version \item Here we show how org-mode (version
9.1.7) together with emacs (version 9.1.7) and emacs (version
25.2.2) can be used to make 25.2.2) can be used to make decent looking scientific
decent looking scientific posters posters
\item With org-mode we can populate the poster with code, graphs and numbers \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 from inline code in languages such as R, python, Matlab and even shell
scripting scripting
\item For example, this poster was created on 2018-04-03 15:35 \item For example, this poster was created on 2018-04-03 16:20 on
Ubuntu 17.10.
\item Inline code could look like this (which will produce a graph; \item Inline code could look like this (which will produce a graph;
Fig. \ref{fig:org646b9c5}): Fig. \ref{fig:orgd6095b3}):
\end{itemize} \end{itemize}
\begin{columns} \begin{columns}
@ -71,7 +72,7 @@ hist(x2, col="blue", add=TRUE)
\begin{figure}[htbp] \begin{figure}[htbp]
\centering \centering
\includegraphics[width=.9\linewidth]{3.png} \includegraphics[width=.9\linewidth]{3.png}
\caption{\label{fig:org646b9c5} \caption{\label{fig:orgd6095b3}
This is the output.} This is the output.}
\end{figure} \end{figure}
\end{column} \end{column}
@ -85,7 +86,7 @@ This is the output.}
capabilities capabilities
\item Some code to process the first vector from above to make a table out \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 of its summary could look like this, which would result in a little
table (Table \ref{tab:org2f8852f}) : table (Table \ref{tab:org6ea52bf}) :
\end{itemize} \end{itemize}
\begin{columns} \begin{columns}
@ -104,7 +105,7 @@ mutate(name=c("x1", "x2"))
\vspace{2cm} \vspace{2cm}
\begin{table}[htbp] \begin{table}[htbp]
\caption{\label{tab:org2f8852f} \caption{\label{tab:org6ea52bf}
A table summarizing the two distributions.} A table summarizing the two distributions.}
\centering \centering
\begin{tabular}{rrrrrrl} \begin{tabular}{rrrrrrl}
@ -125,7 +126,7 @@ minimum & q1 & median & mean & q3 & maximum & name\\
\begin{block}{Graphics} \begin{block}{Graphics}
\begin{itemize} \begin{itemize}
\item We can use shell scripting to grab an image with curl from the \item We can use shell scripting to grab an image with curl from the
internet (Fig. \ref{fig:org0ba80fb}): internet (Fig. \ref{fig:orgdecde0e}):
\end{itemize} \end{itemize}
\begin{columns} \begin{columns}
@ -142,7 +143,7 @@ curl -0 https://www.gnu.org/software/emacs/images/emacs.png
\begin{figure}[htbp] \begin{figure}[htbp]
\centering \centering
\includegraphics[page=9,width=0.2\textwidth]{emacs.png} \includegraphics[page=9,width=0.2\textwidth]{emacs.png}
\caption{\label{fig:org0ba80fb} \caption{\label{fig:orgdecde0e}
This is the downloaded image.} This is the downloaded image.}
\end{figure} \end{figure}
\end{column} \end{column}
@ -188,7 +189,7 @@ derived as follows:
\begin{figure}[htbp] \begin{figure}[htbp]
\centering \centering
\includegraphics[width=.9\linewidth]{4l.png} \includegraphics[width=.9\linewidth]{4l.png}
\caption{\label{fig:org9542cf7} \caption{\label{fig:orgad4a0e9}
This is the left figure of a two-column block, showing the density of \(x1\).} This is the left figure of a two-column block, showing the density of \(x1\).}
\end{figure} \end{figure}
\end{column} \end{column}
@ -198,7 +199,7 @@ This is the left figure of a two-column block, showing the density of \(x1\).}
\begin{figure}[htbp] \begin{figure}[htbp]
\centering \centering
\includegraphics[width=.9\linewidth]{4r.png} \includegraphics[width=.9\linewidth]{4r.png}
\caption{\label{fig:org3813d21} \caption{\label{fig:orga32513a}
This is the right figure. It shows the density of \(x2\).} This is the right figure. It shows the density of \(x2\).}
\end{figure} \end{figure}
\end{column} \end{column}

View File

@ -1,4 +1,4 @@
% Created 2018-04-03 Tue 15:32 % Created 2018-04-03 Tue 16:17
% Intended LaTeX compiler: pdflatex % Intended LaTeX compiler: pdflatex
\documentclass[final]{beamer} \documentclass[final]{beamer}
\usetheme{ph} \usetheme{ph}
@ -37,25 +37,26 @@ Philipp Homan$^{1}$
\normalsize{Hempstead, NY} \normalsize{Hempstead, NY}
} }
\usetheme{default} \usetheme{default}
\date{2018-04-03 15:31} \date{2018-04-03 16:17}
\title{Using org-mode for scientific posters} \title{Using org-mode for scientific posters}
\begin{document} \begin{document}
\begin{frame}[fragile,label={sec:org04c7cf4}]{} \begin{frame}[fragile,label={sec:orgcb59795}]{}
\begin{columns} \begin{columns}
\begin{column}[t]{0.45\columnwidth} \begin{column}[t]{0.45\columnwidth}
\begin{block}{Background} \begin{block}{Background}
\begin{itemize} \begin{itemize}
\item Here we show how org-mode (version \item Here we show how org-mode (version
9.1.7) together with emacs (version 9.1.7) and emacs (version
25.2.2) can be used to make 25.2.2) can be used to make decent looking scientific
decent looking scientific posters posters
\item With org-mode we can populate the poster with code, graphs and numbers \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 from inline code in languages such as R, python, Matlab and even shell
scripting scripting
\item For example, this poster was created on 2018-04-03 15:31 \item For example, this poster was created on 2018-04-03 16:17 on
Ubuntu 17.10.
\item Inline code could look like this (which will produce a graph; \item Inline code could look like this (which will produce a graph;
Fig. \ref{fig:orgbc6b6ab}): Fig. \ref{fig:org0e374d5}):
\end{itemize} \end{itemize}
\begin{columns} \begin{columns}
@ -71,7 +72,7 @@ hist(x2, col="blue", add=TRUE)
\begin{figure}[htbp] \begin{figure}[htbp]
\centering \centering
\includegraphics[width=.9\linewidth]{3.png} \includegraphics[width=.9\linewidth]{3.png}
\caption{\label{fig:orgbc6b6ab} \caption{\label{fig:org0e374d5}
This is the output.} This is the output.}
\end{figure} \end{figure}
\end{column} \end{column}
@ -85,7 +86,7 @@ This is the output.}
capabilities capabilities
\item Some code to process the first vector from above to make a table out \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 of its summary could look like this, which would result in a little
table (Table \ref{tab:org62ea45d}) : table (Table \ref{tab:orgd478dd5}) :
\end{itemize} \end{itemize}
\begin{columns} \begin{columns}
@ -104,7 +105,7 @@ mutate(name=c("x1", "x2"))
\vspace{2cm} \vspace{2cm}
\begin{table}[htbp] \begin{table}[htbp]
\caption{\label{tab:org62ea45d} \caption{\label{tab:orgd478dd5}
A table summarizing the two distributions.} A table summarizing the two distributions.}
\centering \centering
\begin{tabular}{rrrrrrl} \begin{tabular}{rrrrrrl}
@ -125,7 +126,7 @@ minimum & q1 & median & mean & q3 & maximum & name\\
\begin{block}{Graphics} \begin{block}{Graphics}
\begin{itemize} \begin{itemize}
\item We can use shell scripting to grab an image with curl from the \item We can use shell scripting to grab an image with curl from the
internet (Fig. \ref{fig:org45de491}): internet (Fig. \ref{fig:org0845f41}):
\end{itemize} \end{itemize}
\begin{columns} \begin{columns}
@ -142,7 +143,7 @@ curl -0 https://www.gnu.org/software/emacs/images/emacs.png
\begin{figure}[htbp] \begin{figure}[htbp]
\centering \centering
\includegraphics[page=9,width=0.2\textwidth]{emacs.png} \includegraphics[page=9,width=0.2\textwidth]{emacs.png}
\caption{\label{fig:org45de491} \caption{\label{fig:org0845f41}
This is the downloaded image.} This is the downloaded image.}
\end{figure} \end{figure}
\end{column} \end{column}
@ -188,7 +189,7 @@ derived as follows:
\begin{figure}[htbp] \begin{figure}[htbp]
\centering \centering
\includegraphics[width=.9\linewidth]{4l.png} \includegraphics[width=.9\linewidth]{4l.png}
\caption{\label{fig:org2b19bfd} \caption{\label{fig:orge5967c7}
This is the left figure of a two-column block, showing the density of \(x1\).} This is the left figure of a two-column block, showing the density of \(x1\).}
\end{figure} \end{figure}
\end{column} \end{column}
@ -198,7 +199,7 @@ This is the left figure of a two-column block, showing the density of \(x1\).}
\begin{figure}[htbp] \begin{figure}[htbp]
\centering \centering
\includegraphics[width=.9\linewidth]{4r.png} \includegraphics[width=.9\linewidth]{4r.png}
\caption{\label{fig:org03df045} \caption{\label{fig:orga7dbf2c}
This is the right figure. It shows the density of \(x2\).} This is the right figure. It shows the density of \(x2\).}
\end{figure} \end{figure}
\end{column} \end{column}