Skip to content

Instantly share code, notes, and snippets.

@ucaiado
Created March 15, 2016 13:58
Show Gist options
  • Save ucaiado/aba9fca765af72ee14f5 to your computer and use it in GitHub Desktop.
Save ucaiado/aba9fca765af72ee14f5 to your computer and use it in GitHub Desktop.
Ipython stylesheet
<style>
@font-face {
font-family: "Computer Modern";
src: url('http://9dbb143991406a7c655e-aa5fcb0a5a4ec34cff238a2d56ca4144.r56.cf5.rackcdn.com/cmunss.otf');
}
@font-face {
font-family: "Computer Modern";
font-weight: bold;
src: url('http://9dbb143991406a7c655e-aa5fcb0a5a4ec34cff238a2d56ca4144.r56.cf5.rackcdn.com/cmunsx.otf');
}
@font-face {
font-family: "Computer Modern";
font-style: oblique;
src: url('http://9dbb143991406a7c655e-aa5fcb0a5a4ec34cff238a2d56ca4144.r56.cf5.rackcdn.com/cmunsi.otf');
}
@font-face {
font-family: "Computer Modern";
font-weight: bold;
font-style: oblique;
src: url('http://9dbb143991406a7c655e-aa5fcb0a5a4ec34cff238a2d56ca4144.r56.cf5.rackcdn.com/cmunso.otf');
}
div.cell{
width:800px;
margin-left:16% !important;
margin-right:auto;
}
h1 {
font-family: Helvetica, serif;
}
h4{
margin-top:12px;
margin-bottom: 3px;
}
div.text_cell_render{
font-family: Computer Modern, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
line-height: 145%;
font-size: 130%;
width:800px;
margin-left:auto;
margin-right:auto;
}
.CodeMirror{
font-family: "Source Code Pro", source-code-pro,Consolas, monospace;
}
.prompt{
display: None;
}
.text_cell_render h5 {
font-weight: 300;
font-size: 22pt;
color: #4057A1;
font-style: italic;
margin-bottom: .5em;
margin-top: 0.5em;
display: block;
}
.warning{
color: rgb( 240, 20, 20 )
}
</style>
<style>
table {
overflow:hidden;
font-family: Computer Modern, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
font-size: 12px;
margin: 10px;
width: 480px;
text-align: left;
border-collapse: collapse;
border: 1px solid #d3d3d3;
-moz-border-radius:5px; FF1+;
-webkit-border-radius:5px; Saf3-4;
border-radius:5px;
-moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.01);
}
th
{
padding: 12px 17px 12px 17px;
font-weight: normal;
font-size: 14px;
border-bottom: 1px dashed #69c;
}
td
{
padding: 7px 17px 7px 17px;
}
tbody tr:hover th
{
background: #E9E9E9;
}
tbody tr:hover td
{
background: #E9E9E9;
}
</style>
<script>
MathJax.Hub.Config({
TeX: {
extensions: ["AMSmath.js"]
},
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ]
},
displayAlign: 'center', // Change this to 'center' to center equations.
"HTML-CSS": {
styles: {'.MathJax_Display': {"margin": 4}}
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment