Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 2.65 KB

how_to_edit_ohimanual.md

File metadata and controls

57 lines (39 loc) · 2.65 KB

How to edit ohimanual

You can edit and view this Markdown (.md) file in RStudio or in Atom. With Atom, you can render as you work. Open in Atom, and (on a Mac) type shift-control-M to view this document as it is rendered. The ohimanual will be rendered like this online so you will learn how to use Markdown.

ohimanual structure

Right now we are keeping the 5 phases (phases 1-4 plus phase 0) in separate folders within ohimanual:

  • 0_orientation
  • 1_learn_concguide
  • 2_plan
  • 3_conduct_manual
  • 4_communicate

And each has a make.r file that will combine all the files within each of the Phase folders:

  • make_communicate.R
  • make_conduct.R
  • make_learn.R
  • make_orientation.R
  • make_plan.R

Workflow

  • in Atom edit individual files, save, commit, push to GitHub.
  • in RStudio, run the appropriate make.r file to see the 'stitched' file. You will need pdflatex installed: do this at www.tug.org/mactex
  • In Preview: view the stitched file as a .pdf (you can also view the stitched .md in Atom)

(Note: currently 3_conduct_manual is the only folder that will be pushed online (to [http://ohi-science.org/manual]), but when we are ready, all will.

ohimanual is written in Markdown (.md)

From Wikipedia: 'Markdown is a lightweight markup language with plain text formatting syntax designed so that it can be converted to HTML and many other formats using a tool by the same name.'

To learn Markdown:

Other tips we've learned along the way:

  • spacing
  • carriage returns
    • if you have a carriage return but it doesn't render, add two spaces at the end of the line
    • to force a carriage return add <br /> stackoverflow
  • making notes that will not be rendered:
    <!---Anything between these symbols is a comment--->. See the raw .md file to see a secret message
  • subscripts A subscript written like this: B<sub>MSY</sub> renders like this: BMSY