Print.html 2.38 KB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>[% title %]</title>
	<meta name='Generator' content='[% generator.name %]'>
    <!-- ATTENTION Le template Print ne supporte pas les ressources,
	     Il faut mettre des chemins absolus sur les fichiers :( -->
    <link rel="stylesheet"
      href="file:////home/daniau/.local/share/zim/templates/html/common/zim-style.css" >
    <link rel="stylesheet"
      href="file:////home/daniau/.local/share/zim/templates/html/common/zim-table-style.css" >
    <link rel="stylesheet"
      href="file:////home/daniau/.local/share/zim/templates/html/common/zim-special.css" >
    <link rel="stylesheet"
      href="file:////home/daniau/.local/share/zim/templates/html/common/zim-hljs.css" >
    <style type='text/css'>

        *          { font-family: serif }
        
        /* Centre les images mais elles sont coupées aux sauts de page à l'impression */
        /*img {            
            display: block;
            margin-left: auto;
            margin-right: auto;
        }*/               

    </style>

    <!-- Themes clair :
	atom-one-light.css, vs.css
	     Themes sombres :
    agate.css, vs2015.css, atom-one-dark.css 
    Demo live : https://highlightjs.org/static/demo/ -->
	<link rel="stylesheet"
      href="file:////home/daniau/.local/share/zim/templates/html/common/hljs/styles/atom-one-light-wb.css" >
      
    <!-- hljs -->
    <script src="file:////home/daniau/.local/share/zim/templates/html/common/hljs/highlight.pack.js"></script>   

</head>
<body>

[% options.empty_lines = "default" %]

<!-- Wiki content -->

[% FOR page IN pages %]
	[% page.content %]
[% END %]

<!-- End wiki content -->

<script>
    /* on remplace octave par plaintext ou nohighlight ou matlab */
    var elements = document.getElementsByTagName("code");
    for (var i=0; i<elements.length; i++) {
        var el = elements[i]; 
        var cl = el.getAttribute("class");
        if (cl == "octave") {
            el.setAttribute( "class","matlab");
        }        
    }
    
    /* Si on utilise la fonction suivante, c'est execute avant le bout de code ci-dessus */
    /*hljs.initHighlightingOnLoad();*/
    document.querySelectorAll('pre code').forEach((block) => {
    hljs.highlightBlock(block);
  });
</script>

</body>

</html>