Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass[12pt, a4paper]{article}
- usepackage[utf8]{inputenc}
- usepackage{hyperref}
- hypersetup{
- colorlinks = true, %Colours links instead of ugly boxes
- urlcolor = blue, %Colour for external hyperlinks
- linkcolor = blue, %Colour of internal links
- citecolor = blue %Colour of citations
- }
- usepackage{caption}
- captionsetup[figure]{labelfont=bf, labelsep=period}
- captionsetup[table]{labelfont=bf, labelsep=period}
- setlength{parindent}{0pt}
- title{My very first LaTeX/knitr document!}
- date{April 2019}
- begin{document}
- maketitle
- begingroup
- hypersetup{linkcolor=black} % force independent link colours in table of contents
- tableofcontents
- endgroup
- newpage
- section{Basics}
- subsection{Using no options}
- First, let's try and a show a chunk of code along with a plot and print() message.
- <<first-chunk>>=
- # Make a simple dataframe:
- setwd("/home/user/Documents/testing-area/knitr/")
- df <- data.frame(A = c(1,2,3), B = c("A", "B", "C"))
- plot(df$A,df$B)
- print("hello")
- @
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement