HertieDataScience / SyllabusAndLectures

Hertie School of Governance Introduction to Collaborative Social Science Data Analysis
MIT License
37 stars 60 forks source link

Markdown #95

Open Diegotab opened 8 years ago

Diegotab commented 8 years ago

Hi!

After playing around with Markdown for a bit, I have a couple more of questions.

  1. Is there any way to tell Markdown that I want to split a page in two?
  2. When the output is a word document, how do we go about formatting tables? Is there any code that we can use? Moreover, is there any way to add color scheme to tables?

Thanks in advance! Diego

christophergandrud commented 8 years ago

Do you mean split a page into two columns? Yes, though this would require formatting instructions in either CSS (for a website) or LaTeX for a PDF.

We'll do more table formatting in a future class. I know you can add a colour scheme to webpage and pdf tables, but actually don't know about Word.

Diegotab commented 8 years ago

Yes! I mean splitting a page into two columns.

christophergandrud commented 8 years ago

For pdf documents use classoption: twocolumn in the header, e.g.:

---
title: "Untitled"
date: "4 March 2016"
output: pdf_document
classoption: twocolumn
---

This adds the twocolumn option to the document class (which by default is something LaTeX calls article).

Diegotab commented 8 years ago

Cool! Thank you :)