Skip to content

Instantly share code, notes, and snippets.

@aishfenton
Last active December 18, 2015 03:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aishfenton/5716007 to your computer and use it in GitHub Desktop.
Save aishfenton/5716007 to your computer and use it in GitHub Desktop.
Knitr Stylesheet
body {
font-family: sans serif;
background-color: white;
font-family: georgia;
font-size: 15px;
margin: 20px;
}
ul {
list-style-type: square;
}
ul li {
padding: 8px;
}
tt, code, pre {
font-family: Monaco, Consolas, monospace;
font-size: 12px;
}
h1 {
font-size:2.2em;
font-style: italic;
color: #CD0021;
}
h2 {
font-style: italic;
font-size:1.8em;
line-height: 1.3em;
border-bottom: solid 2px #eee;
}
h3 {
font-style: italic;
font-size:1.4em;
}
h4 {
font-style: italic;
font-size:1.0em;
}
h5 {
font-style: italic;
font-size:0.9em;
}
h6 {
font-style: italic;
font-size:0.8em;
}
a:visited {
color: rgb(50%, 0%, 50%);
}
pre {
margin-top: 0;
max-width: 95%;
border: 1px solid #ccc;
white-space: pre-wrap;
}
pre code {
display: block; padding: 0.5em;
}
code.r, code.cpp {
background-color: #F8F8F8;
}
table, td, th {
border: none;
}
table, td {
margin: 8px;
padding: 12px;
}
table tbody tr:nth-child(even) {
background-color: #eee;
}
table tbody tr:nth-child(odd) {
background-color: white;
}
blockquote {
color:#666666;
margin:0;
padding-left: 1em;
border-left: 0.5em #EEE solid;
}
hr {
height: 0px;
border-bottom: none;
border-top-width: thin;
border-top-style: dotted;
border-top-color: #999999;
}
@media print {
* {
background: transparent !important;
color: black !important;
filter:none !important;
-ms-filter: none !important;
}
body {
font-size:12pt;
max-width:100%;
}
a, a:visited {
text-decoration: underline;
}
hr {
visibility: hidden;
page-break-before: always;
}
pre, blockquote {
padding-right: 1em;
page-break-inside: avoid;
}
tr, img {
page-break-inside: avoid;
}
img {
max-width: 100% !important;
}
@page :left {
margin: 15mm 20mm 15mm 10mm;
}
@page :right {
margin: 15mm 10mm 15mm 20mm;
}
p, h2, h3 {
orphans: 3; widows: 3;
}
h2, h3 {
page-break-after: avoid;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment