Skip to content

Commit

Permalink
Save the full HTML version
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasAuriel authored Apr 6, 2017
1 parent 17b0c88 commit 130a047
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 21 deletions.
15 changes: 10 additions & 5 deletions Notes With Volumes.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<body title='A Simple Note'
author='Thomas Auriel'>

<meta charset="UTF-8">

<link rel="stylesheet" type="text/css" href="./css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="./css/customCSS.css">

Expand All @@ -27,6 +25,12 @@
<script src="./js/katex/katex.min.js"></script>
<script src="./js/katex/contrib/auto-render.min.js"></script>

<!-- Auto render equations -->
<script type="test/x-mathjax-config">
MathJax.Hub.Config({ TeX: { equationNumbers: {autoNumber: "AMS"} } }); //Autonumbering
</script>
<script type="text/javascript" src="./js/MathJax/MathJax.js?config=TeX-AMS_HTML"></script>

<script type="text/javascript">

$(document).ready(function()
Expand All @@ -49,6 +53,10 @@
formatSection(section)
sectionFoot(section)
})
//Update solo tags
$('.tag').each(function(index, soloTag){
formatSoloTags(soloTag)
})
//Update the general ToC
formatGeneralToC($(this))

Expand All @@ -57,9 +65,6 @@
value.innerHTML = value.innerHTML.autoLink()
})

//render equations
renderMathInElement(document.body);

//Format tables
$('.csv-table').each(function(index, value){
convertCSVtoHTML(value)
Expand Down
12 changes: 7 additions & 5 deletions Notes Without Volume.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<body title='A Simple Note'
author='Thomas Auriel'>

<meta charset="UTF-8">

<link rel="stylesheet" type="text/css" href="./css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="./css/customCSS.css">

Expand All @@ -25,6 +23,9 @@
<script src="./js/katex/katex.min.js"></script>
<script src="./js/katex/contrib/auto-render.min.js"></script>

<!-- Auto render equations -->
<script type="text/javascript" src="./js/MathJax/MathJax.js?config=TeX-AMS_SVG"></script>

<script type="text/javascript">

$(document).ready(function()
Expand All @@ -47,6 +48,10 @@
formatSection(section)
sectionFoot(section)
})
//Update solo tags
$('.tag').each(function(index, soloTag){
formatSoloTags(soloTag)
})
//Update the general ToC
formatGeneralToC($(this))

Expand All @@ -55,9 +60,6 @@
value.innerHTML = value.innerHTML.autoLink()
})

//render equations
renderMathInElement(document.body);

//Format tables
$('.csv-table').each(function(index, value){
convertCSVtoHTML(value)
Expand Down
35 changes: 24 additions & 11 deletions css/customCSS.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,33 +78,28 @@ a[level='4'] {
}

/*Volume*/

.volume {
margin: 30% 0px 0px 0px;
page-break-before: always;
}

/*Chapter*/

.chapter {
margin: 20% 0px 0px 0px;
page-break-before: always;
}

/*Section*/

.section{
margin: 10% 0px 0px 0px;
page-break-before: always;
}

/*Section tags*/

.section-tags ul {
margin: 0px 0px 0px 0px;
padding: 0px;
}

.section-tags-list li {
margin: 0px 0px 0px 0px;
display: inline;
Expand All @@ -119,11 +114,35 @@ a[level='4'] {
color: #333333;
}

/* Tags */
.tag {
margin: 2px 2px 2px 2px;
padding: 0px 10px 0px 10px;
background-color: #EECC66;
border-radius: 25px;
color: #333333;
white-space: pre-line;
}

/*Body text*/
.text-body {
white-space: pre-line;
}

.text-body h1{
font-size: 25px;
margin: 0px;
}
.text-body h2,
.text-body h3,
.text-body h4,
.text-body h5,
.text-body h6 {
font-size: 20px;
margin: 0px;
margin-bottom: -10px;
}

/* Quote */
.quote {
display: block;
Expand All @@ -140,7 +159,6 @@ a[level='4'] {
}

/*Source*/

.source {
font-style: italic;
white-space: pre-line;
Expand All @@ -163,11 +181,6 @@ iframe {
text-align: center;
}

/* Katex : Math equations*/
.katex-html {
visibility: hidden;
}

/* Define CSV table */
.csv-table table{
width: 100%;
Expand Down

0 comments on commit 130a047

Please sign in to comment.