You are here

Adding content to site

Adding a figure with uniform style

<div class="figure"> 
   <img src="figure.png"/>
   <p>Caption</p>
</div>

figure.css

div.figure {
   border-width: thin;
   border-color: #0000FF;
   border-style: solid;
   box-shadow: 2px 2px #00FFFF;
   float: right;
   font-size: smaller;
   font-family: 'Bilbo', cursive;
   width: 45%;
   padding: 1em;
   margin-left: 1em;
}

div.figure > img {
   float: right;
   margin: 0em;
   width: 100%;
   max-width: 100%;
}

Add to garland.info

stylesheets[all][] = figure.css

Creating bibliography

bibtex2html -d -r -nolinks -nodoc -nodoi savedrecs.bib 
sed -i "s/ / /g" savedrecs.html 
xsltproc -html strip_jscss.xsl savedrecs.html | tidy -ashtml -q -w 9999 > clean-bibliography.html

XSL tranform file strip_jscss.xsl

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="@class|style|script|@style|@onclick"/>
</xsl:stylesheet>
Topics: