\documentclass{article}
\usepackage[affil-it]{authblk}
\usepackage{graphicx}
\usepackage[space]{grffile}
\usepackage{latexsym}
\usepackage{textcomp}
\usepackage{longtable}
\usepackage{tabulary}
\usepackage{booktabs,array,multirow}
\usepackage{amsfonts,amsmath,amssymb}
\providecommand\citet{\cite}
\providecommand\citep{\cite}
\providecommand\citealt{\cite}
% You can conditionalize code for latexml or normal latex using this.
\newif\iflatexml\latexmlfalse
\AtBeginDocument{\DeclareGraphicsExtensions{.pdf,.PDF,.eps,.EPS,.png,.PNG,.tif,.TIF,.jpg,.JPG,.jpeg,.JPEG}}

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}

\usepackage{hyperref}


\begin{document}

\title{ResBaz Curriculum}


\author{Alberto Pepe}
\affil{Affiliation not available}

  
\author{Andrea Bedini}
\affil{Affiliation not available}
  



\date{\today}

\maketitle




Hello, welcome to the online curriculum for the Authorea hands-on session at \href{http://melbourne.resbaz.edu.au/}{ResBaz}! This curriculum is intended to walk you through the exercises and challenges that we will cover during the Authorea workshop. You can access it at \textbf{http://authorea.com/18566/}.

First things, first. \textbf{We will work in groups of 4-5 people.} Why? Because most article collaborations in science have become less and less single authored, and more collaborative. And, 4-5 author collaborations seem to be \href{http://arxiv.org/pdf/1410.8544v1.pdf}{a quickly growing trend in recent years}. 

\section{Create an article}
The purpose of this session is for your group to write a research paper together. So, each group should \textbf{nominate a person to create the new article}. If you are that person, go ahead and create an article! \textbf{Note}: If your group is for the most part social scientists or scholars for the humanities, make sure you create an article in \textbf{Markdown}. (You have to click on Advanced Settings).

\section{Add your coauthors}
The person who created the article is now the admin of the paper. They can (and should!) add coauthors to the paper (all the people in the group), so that you can all work on it together. Co-authors will be added by their email and they will receive an activation link to complete account registration.

\section{Explore!}
Now that you're all part of an article collaboration, go to it and play around! Let's spend a few minutes familiarizing ourselves with the platform. Can we edit together? Can we add new text?


\section{Simple writing challenge}
Let's write a few paragraphs together. You can find some text below. It is divided in four paragraphs. It is fairly simple text, but it is lightly formatted (bold, italic, lists). Your task is to reproduce what you see below in your Authorea article. You will have to use \href{https://www.authorea.com/users/3/articles/6868/_show_article}{web friendly LaTeX} or \href{https://help.github.com/articles/github-flavored-markdown/}{Github-flavored markdown} to input formatted text. \textbf{Hint:} since there are 4 paragraphs, try and split the work between all of you, i.e., create 4 different blocks.

\begin{quote}
When we look to the individuals of the same variety or sub-variety of our older cultivated plants and animals, one of the first points which strikes us, is, that \textbf{they generally differ much more from each other}, than do the individuals of any one species or variety in a state of nature. 

When we reflect on the vast diversity of the plants and animals which have been cultivated, and which have varied during all ages under the most different climates and treatment, I think we are driven to conclude that \textit{this greater variability is simply due to our domestic productions having been raised under conditions of life not so uniform as, and somewhat different from, those to which the parent-species have been exposed under nature}. 

There is, also, I think, some probability in the view propounded by Thomas Andrew Knight (\href{http://en.wikipedia.org/wiki/Thomas_Andrew_Knight}{Wikipedia}), that this variability may be partly connected with excess of food. It seems pretty clear that
\begin{enumerate}
\item organic beings must be exposed during several generations to the new conditions of life to cause any appreciable amount of variation; 
\item that when the organisation has once begun to vary, it generally continues to vary for many generations. 
\end{enumerate}

No case is on record of a variable being ceasing to be variable under cultivation. Our oldest cultivated plants, such as wheat, still often yield new varieties: our oldest domesticated animals are still capable of rapid improvement or modification.
\end{quote}

\section{Insert a figure}
Let's make this paper a bit more interesting and visual by adding an image. Nothing too complicated. How about adding an image like the one below? Learn how you can add images, resize them, replace them (by drag and drop), and write their caption.\selectlanguage{english}
\begin{figure}[h!]
\begin{center}
\includegraphics[width=1.00\columnwidth]{figures/charles-darwin-quotes/charles-darwin-quotes}
\caption{{\textbf{Figure 1}. This is the caption for the image of Darwin above.%
}}
\end{center}
\end{figure}

\section{Advanced writing challenge}
Ok, now we're getting good at this. Let's write something a bit more complex. Please include the text printed below in your article. Again, feel free to split the work with your colleagues. \textbf{Hint 1}: You will need LaTeX to input equations. Check out this  \href{https://www.authorea.com/users/3/articles/6868/_show_article}{web friendly LaTeX} cheatsheet. \textbf{Hint 2}: How do you add citations? There's an easy way. Look at the Help page and find out how... (Click on the plus button in the editor!).

\begin{quote}
There is a well-measured constraint on YMCs that we can apply to predict the \textit{upper limit radii} for the MPCs. Recent high resolution imagining and spectral studies of YMCs have shown these systems to be in or close to equilibrium at ages of $\sim 1.5 \leq 3 $ years. \cite{Darwin_1900}

This implies that the YMCs must have gone through at least one full crossing time before their presently observed age. Using the crossing time equation, $t_{cross} = (G M r_{vir}^{-3})^{-1/2}$, and fixing the crossing time to 1 Myr we can solve for $t$, which is only dependent on the mass. \cite{Arce_1999}

For the same clump mass range mentioned for $r_{\Omega}$ above, $r_{vir}$ spans from 5.1 to 23.8 pc. This is an important aspect to keep in mind as there is no evidence for YMCs to have a proportionality between mass and radius. \cite{Bedini_2013}

\begin{equation}
\int \eta = \frac{\pi^{1/2}m_e^{1/2}Ze^2 c^2}{\gamma_E 8 (2k_BT)^{3/2}}\ln\Lambda \approx 7\times10^{11}
\end{equation}
\end{quote}


\section{Comment!}
Now that the article is taking shape, it's time to talk about it and discuss it with your coauthors. Play around with the commenting feature. \textbf{Hint}: Have you tried highlighting text?


\section{Export your article in your format of choice}
Authorea can format your article to reflect the submission guidelines of your journal or conference of choice. Yes! No need to format your references and margins manually. We do that for you. \textbf{Export your paper in the Science format if you are a scientist and in the APA format otherwise.}

\section{Bonus points: Attach data to a figure}
Authorea is not only about writing text and images. It is about creating the next generation of scientific articles, articles you can "execute" just like you execute code! So, you can attach data/code to your figures and allow your readers to run the code and reproduce the image you included in your paper! At the moment, Authorea supports \textbf{IPython Notebooks} and \textbf{d3.js}. For example, if you hover on the figure below and click the "Launch IPython" button, you will be able to visualize and play with it!\selectlanguage{english}
\begin{figure}[h!]
\begin{center}
\includegraphics[width=0.70\columnwidth]{figures/prey/prey}
\caption{{\textbf{Figure 2}: Click on the Launch IPython button in the image above%
}}
\end{center}
\end{figure}

\section{Bonus points: work offline via Github}
Authorea is an online collaborative editor, but working offline is possible, as long as you get acquainted with the versioning control technologies we use to save and track your documents: Git and GitHub. Follow the easy steps on this how-to guide to \href{https://www.authorea.com/users/3/articles/17235/_show_article}{sync your Github repo and Authorea}.

\section{Bonus points: Create a table}
Reproduce the table below using LaTeX or Markdown.\selectlanguage{english}
\begin{table}
\begin{tabular}{lccccc}
\hline
\textbf{Phase}        & \textbf{Time} & \textbf{M$_1$}  & \textbf{M$_2$} &  \textbf{$\Delta M$} & \textbf{P} \\   
1 ZAMS           & 0      & 16     & 15    & --   & 5.0   \\            
2 Case B       & 9.89   & 15.92  & 14.94 & 0.14 & 5.1   \\
3 ECCB        & 11.30  &  3.71  & 20.86 & 6.44 & 42.7  \\
4 ECHB      & 18.10  & --     & 16.76 &  --  & --    \\
5 ICB       & 18.56  & --     & 12.85 &  --  & --    \\    
6 ECCB      & 18.56  & --     & 12.83 &  --  & --    \\
\hline
\end{tabular}
\caption{{\textbf{Fruit and vegetable consumption, U.S.}}}
\end{table}

\selectlanguage{english}
\FloatBarrier
\bibliographystyle{plain}
\bibliography{bibliography/converted_to_latex.bib%
}

\end{CJK}\end{document}

