Formating Specific Sections

\addthumb{Second chapter}{\Huge{\textbf{2}}}{white}{gray}

\lettrine[nindent=0em, lines=2, lraise=0.1, slope=-.5em]{S}PECIAL Latex environments define the formating for research questions, hypotheses, propositions, equations, and quotes. Except for the latter, they are all numbered and automatically incremented. To insert then, use the function "inser_latex in a r code chunk."

\pagebreak

research Questions

To ask a research question, use the Latex environment "question":

writer::insert_latex(
  "What is your research question?",
  env = "question",
  space_before = "15pt",
  space_after = "15pt"
)

To insert a group of questions with the same number but a special increment, the synthax is the same except that the text is a now vector with one entry per question and you can specify an additional parameter for the space between each question:

writer::insert_latex(
  c("What is your first research question?",
    "What is your second research question?"),
  env = "question",
  space_before = "15pt",
  space_between = "5pt",
  space_after = "15pt"
)

Questions and subquestions cannot share a common number.

Hypotheses and propositions

The same rules govern hypotheses and propositions: just change the name of the Latex environment.

writer::insert_latex(
  "What is your research question?",
  env = "hypothesis",
  space_before = "15pt",
  space_after = "15pt"
)
writer::insert_latex(
  c("What is your first research question?",
    "What is your second research question?"),
  env = "hypothesis",
  space_before = "15pt",
  space_between = "5pt",
  space_after = "15pt"
)
writer::insert_latex(
  "What is your research question?",
  env = "proposition",
  space_before = "15pt",
  space_after = "15pt"
)
writer::insert_latex(
  c("What is your first research question?",
    "What is your second research question?"),
  env = "proposition",
  space_before = "15pt",
  space_between = "5pt",
  space_after = "15pt"
)

Quotes

Finally, a quote is announced by the latex tag "quotep" and is not numbered. You have to define an additional parameter for the author.

writer::insert_latex(
  "Indeed I have always been of the opinion that hard work is simply the refuge of people who have nothing to do.",
  env = "quote",
  space_before = "15pt",
  space_after = "15pt",
  author = "Oscar Wilde"
)

If the author is introduced as a bibtex key, use the following synthax:

writer::insert_latex(
  "Indeed I have always been of the opinion that hard work is simply the refuge of people who have nothing to do.",
  env = "quote",
  space_before = "15pt",
  space_after = "15pt",
  author = "Macintosh1987",
  bibkey = TRUE,
  pages = "p.34"
)

Equations

Equations are written in Latex and numbered as well:

\vspace{15pt}

\begin{equation} COMC = \beta_0 + \beta_1 FBKC + \beta_2 SATC + \beta_3 GEN + \beta_4 FBKC \times \beta_5 GEN + \beta_6 CENC + \epsilon \end{equation}

\vspace{15pt}



NicolasJBM/writer documentation built on Aug. 12, 2019, 2:36 p.m.