Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revised to use eLyxer instead of latex2html

  • Loading branch information...
commit f926865f6bced07583573f4d36cb609715e2e4c9 1 parent 1f42e11
Derek Chen-Becker dchenbecker authored
34 .latex2html-init
View
@@ -1,34 +0,0 @@
-# -*- perl -*-
-package main;
-
-sub do_env_lstlisting {
- local($liststyle,$listcaption,$listlabel,$listlang);
-
- $liststyle = "style=\"border: 2px solid #ddd;\"";
-
- if (/label=(.*?),/) {
- $listlabel = "<div $liststyle id=\"$1\">";
- } else {
- $listlabel = "<div $liststyle>";
- }
-
- if (/caption=(.*?),/) {
- $listcaption = "<div style=\"text-align: center; font-weight: bold\">$1</div>";
- } else {
- $listcaption = "";
- }
-
- if (/language=XML/) {
- $listlang = "class=\"brush: xml\"";
- } else {
- $listlang = "class=\"brush: scala\"";
- }
-
- $result = join('',"$listlabel$listcaption<pre $listlang>","@_","</pre></div>");
-
- $result =~ s/\[.*\]//;
-
- $result;
-}
-
-1; # Must be last line
10 Makefile
View
@@ -2,10 +2,14 @@ RSYNCFLAGS = "-rv --delete"
all : master.pdf
-html : master.tex master.aux
+html : master.lyx
@echo [Building HTML]
- latex2html -split 3 -local_icons -no_antialias_text -no_antialias -white master.tex
- ./highlightHtml.sh
+# latex2html -split 3 -local_icons -no_antialias_text -no_antialias -white master.tex
+# ./highlightHtml.sh
+ rm -rf master/
+ mkdir master/
+ cp -R templates/* master/
+ python elyxer.py --splitpart 1 master.lyx master/index.html
tar cvzf master.html.tgz master/
pdf : master.pdf
16 apdx-code_listings.lyx
View
@@ -1,4 +1,4 @@
-#LyX 1.6.5 created this file. For more info see http://www.lyx.org/
+#LyX 1.6.7 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
@@ -92,7 +92,6 @@ Author Entity
\begin_layout Standard
\begin_inset listings
-lstparams "numbers=left,numberstyle={\tiny},stepnumber=2"
inline false
status open
@@ -244,9 +243,9 @@ orm.xml
\begin_layout Standard
\begin_inset listings
-lstparams "basicstyle={\scriptsize},breaklines=true,language=XML,numbers=left,numberstyle={\tiny}"
+lstparams "basicstyle={\scriptsize},breaklines=true,language=XML"
inline false
-status collapsed
+status open
\begin_layout Plain Layout
@@ -429,9 +428,9 @@ Enumv Trait
\begin_layout Standard
\begin_inset listings
-lstparams "basicstyle={\scriptsize},breaklines=true,firstline=5,numbers=left,numberstyle={\tiny}"
+lstparams "basicstyle={\scriptsize},breaklines=true,firstline=5"
inline false
-status collapsed
+status open
\begin_layout Plain Layout
@@ -632,9 +631,9 @@ EnumerationType
\begin_layout Standard
\begin_inset listings
-lstparams "basicstyle={\scriptsize},breaklines=true,firstline=15,lastline=35,numbers=left,numberstyle={\tiny}"
+lstparams "basicstyle={\scriptsize},breaklines=true,firstline=15,lastline=35"
inline false
-status collapsed
+status open
\begin_layout Plain Layout
@@ -954,6 +953,7 @@ This shows the LiftFilter setup as well as the persistence-context-ref.
\begin_layout Standard
\begin_inset listings
+lstparams "language=XML"
inline false
status open
101 apdx-helpers.lyx
View
@@ -1,4 +1,4 @@
-#LyX 1.6.3 created this file. For more info see http://www.lyx.org/
+#LyX 1.6.7 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
@@ -172,16 +172,12 @@ i
, we received None.
\end_layout
-\begin_layout LyX-Code
-
-\end_layout
-
\begin_layout Standard
\begin_inset listings
inline false
status open
-\begin_layout LyX-Code
+\begin_layout Plain Layout
\begin_inset Caption
@@ -201,51 +197,47 @@ name "lst:Option-and-Map"
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
scala> val cap = Map("a" -> "A", "b" -> "B")
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
cap: scala.collection.immutable.Map[java.lang.String,java.lang.String] =
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
Map(a -> A, b -> B)
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
scala> cap.get("a")
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
res1: Option[java.lang.String] = Some(A)
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
scala> cap.get("i")
\end_layout
-\begin_layout LyX-Code
-
-res2: Option[java.lang.String] = None
-\end_layout
-
\begin_layout Plain Layout
+res2: Option[java.lang.String] = None
\end_layout
\end_inset
@@ -277,7 +269,7 @@ reference "lst:Fetch-value-from"
inline false
status open
-\begin_layout LyX-Code
+\begin_layout Plain Layout
\begin_inset Caption
@@ -297,51 +289,55 @@ name "lst:Fetch-value-from"
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
def prettyPrint(foo: Option[String]): String = foo match {
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
case Some(x) => x
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
case None => "Nothing found."
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
}
\end_layout
\begin_layout Plain Layout
- Which would be used in conjunction with the previous code:
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
+
+// Which would be used in conjunction with the previous code:
+\end_layout
+
+\begin_layout Plain Layout
scala> prettyPrint(cap.get("a"))
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
res7: String = A
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
scala> prettyPrint(cap.get("i"))
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
res8: String = Nothing found.
\end_layout
@@ -610,7 +606,8 @@ name "lst:Scala-nested-operations"
\begin_layout Plain Layout
- y <- getSomeOtherValue() if x > 10) yield compute(x, y)
+ y <- getSomeOtherValue() if x > 10) yield compute(x,
+ y)
\end_layout
\begin_layout Plain Layout
@@ -793,7 +790,7 @@ reference "lst:Box-example"
inline false
status open
-\begin_layout LyX-Code
+\begin_layout Plain Layout
\begin_inset Caption
@@ -813,79 +810,79 @@ name "lst:Box-example"
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
a match {
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
Full(author) => Text("I found the author " + author.niceName)
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
Empty => Text("No author by that name.")
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
// message may be something like "Database disconnected."
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
Failure(message, _, _) => Text("Nothing found due to " + message)
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
}
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
def confirmDelete {
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
(for (val id <- param("id"); // get the ID
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
val user <- User.find(id)) // find the user
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
yield {
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
user.delete_!
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
notice("User deleted")
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
redirectTo("/simple/index.html")
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
}) getOrElse {error("User not found"); redirectTo("/simple/index.html")}
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
}
\end_layout
@@ -930,7 +927,7 @@ reference "lst:openOr-example"
inline false
status open
-\begin_layout LyX-Code
+\begin_layout Plain Layout
\begin_inset Caption
@@ -950,22 +947,22 @@ name "lst:openOr-example"
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
lazy val UserBio = UserBio.find(By(UserBio.id, id)) openOr (new UserBio)
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
def view (xhtml: NodeSeq): NodeSeq = passedAuthor.map({ author =>
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
// do bind, etc here and return a NodeSeq
\end_layout
-\begin_layout LyX-Code
+\begin_layout Plain Layout
}) openOr Text("Invalid author")
\end_layout
6 apdx-i18n.lyx
View
@@ -1,4 +1,4 @@
-#LyX 1.6.5 created this file. For more info see http://www.lyx.org/
+#LyX 1.6.7 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
@@ -55,8 +55,7 @@ name "cha:Internationalization"
status open
\begin_layout Plain Layout
-Internationalization | see
- I18N
+Internationalization | see I18N
\end_layout
\end_inset
@@ -1179,7 +1178,6 @@ Locale
\begin_layout Standard
\begin_inset listings
-lstparams "numbers=left"
inline false
status open
22 chap-JPA.lyx
View
@@ -1,4 +1,4 @@
-#LyX 1.6.1 created this file. For more info see http://www.lyx.org/
+#LyX 1.6.7 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
@@ -645,7 +645,7 @@ named queries
\begin_layout Standard
\begin_inset listings
-lstparams "float,language=XML"
+lstparams "language=XML"
inline false
status open
@@ -816,7 +816,6 @@ status open
\begin_inset Caption
\begin_layout Plain Layout
-
Passing Detached Instances Around an Application
\begin_inset CommandInset label
LatexCommand label
@@ -1205,7 +1204,7 @@ LocalEMF
\begin_layout Standard
\begin_inset listings
-lstparams "breaklines=true,firstline=1,float,lastline=8,numbers=left,numberstyle={\tiny}"
+lstparams "breaklines=true,firstline=1,lastline=8,numbers=left,numberstyle={\tiny}"
inline false
status open
@@ -1353,7 +1352,7 @@ transaction-type
\begin_layout Standard
\begin_inset listings
-lstparams "float,language=XML"
+lstparams "language=XML"
inline false
status open
@@ -1489,7 +1488,7 @@ If you'll be deploying into a JEE container, such as JBoss or GlassFish,
\begin_layout Standard
\begin_inset listings
-lstparams "breaklines=true,float,language=XML,numbers=left,numberstyle={\tiny}"
+lstparams "breaklines=true,language=XML,numbers=left,numberstyle={\tiny}"
inline false
status open
@@ -2617,13 +2616,7 @@ Model.remove(container.widget)
\begin_layout Plain Layout
-container.widget = new Widget(
-"
-
-Foo!
-"
-
-)
+container.widget = new Widget("Foo!")
\end_layout
\begin_layout Plain Layout
@@ -3180,7 +3173,7 @@ EnumvType
\begin_layout Standard
\begin_inset listings
-lstparams "breaklines=true,firstline=3,float,numbers=left,numberstyle={\tiny}"
+lstparams "breaklines=true,firstline=3,numbers=left,numberstyle={\tiny}"
inline false
status open
@@ -3326,7 +3319,6 @@ unknown
\begin_layout Standard
\begin_inset listings
-lstparams "float"
inline false
status open
4 chap-demoapp.lyx
View
@@ -1,4 +1,4 @@
-#LyX 1.6.5 created this file. For more info see http://www.lyx.org/
+#LyX 1.6.7 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
@@ -2508,7 +2508,7 @@ lly update our Expense table when you set the start or end dates!
\begin_layout Standard
\begin_inset listings
-lstparams "float,tabsize=4"
+lstparams "tabsize=4"
inline false
status open
7,353 elyxer.py
View
7,353 additions, 0 deletions not shown
9 highlightHtml.sh
View
@@ -1,9 +0,0 @@
-#!/bin/bash
-
-mkdir -p master/scripts master/css
-cp highlighter/*.css master/css
-cp highlighter/*.js master/scripts
-
-for fl in master/node*.html; do
- sed -i -e 's:</HEAD>:<script type="text/javascript" src="scripts/shCore.js"></script><script type="text/javascript" src="scripts/shBrushXml.js"></script><script type="text/javascript" src="scripts/shBrushScala.js"></script><link href="css/shCore.css" rel="stylesheet" type="text/css" /><link href="css/shThemeDefault.css" rel="stylesheet" type="text/css" /></HEAD>:' -e 's:</BODY>:<script type="text/javascript">SyntaxHighlighter.all()</script></BODY>:' $fl
-done
50 master.lyx
View
@@ -75,7 +75,7 @@ numberstyle=\tiny}
\pdf_bookmarksnumbered true
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
-\pdf_breaklinks false
+\pdf_breaklinks true
\pdf_pdfborder true
\pdf_colorlinks true
\pdf_backref false
@@ -280,20 +280,8 @@ mainmatter
\end_layout
-\begin_layout Standard
-\begin_inset ERT
-status open
-
-\begin_layout Plain Layout
-
-
-\backslash
-part{The Basics}
-\end_layout
-
-\end_inset
-
-
+\begin_layout Part
+The Basics
\end_layout
\begin_layout Standard
@@ -376,20 +364,8 @@ filename "chap-record_and_mapper.lyx"
\end_layout
-\begin_layout Standard
-\begin_inset ERT
-status open
-
-\begin_layout Plain Layout
-
-
-\backslash
-part{Advanced Topics}
-\end_layout
-
-\end_inset
-
-
+\begin_layout Part
+Advanced Topics
\end_layout
\begin_layout Standard
@@ -462,20 +438,8 @@ filename "chap-web_services.lyx"
\end_layout
-\begin_layout Standard
-\begin_inset ERT
-status open
-
-\begin_layout Plain Layout
-
-
-\backslash
-part{Appendices}
-\end_layout
-
-\end_inset
-
-
+\begin_layout Part
+Appendices
\end_layout
\begin_layout Standard
829 templates/css/lyx.css
View
@@ -0,0 +1,829 @@
+/*
+* Styles for lyx document.
+*/
+body {
+ font: 90% sans-serif;
+ background: #f9f9f9;
+ color: black;
+ margin: 0;
+ padding: 0;
+}
+
+#globalWrapper {
+ margin: 10px 80px 10px 80px;
+ padding: 20px;
+ background: #ffffff;
+ line-height: 1.5em;
+}
+a {
+ text-decoration: none;
+ background: none;
+}
+a:link {
+ color: #0030c0;
+}
+a:visited {
+ color: #603090;
+}
+a:active {
+ color: #ffa000;
+}
+a:hover {
+ text-decoration: underline;
+}
+h1 {
+ margin-top: 1em;
+ line-height: 1.5em;
+}
+h1.Part {
+ text-align: center;
+}
+h1.Part- {
+ text-align: center;
+}
+sup {
+ font-size: 0.75em;
+ line-height: 0.5em;
+ vertical-align: text-top;
+}
+sub {
+ font-size: 0.75em;
+ line-height: 0.5em;
+ vertical-align: text-bottom;
+}
+div.Standard {
+ margin: 1em 0;
+}
+div.Unindented {
+ margin: 0;
+}
+div.Indented {
+ text-indent: 30pt;
+ margin: 0;
+}
+div.Indented * {
+ text-indent: 0pt;
+}
+p.dir {
+ float: right;
+}
+p.printindex {
+ font-size: 0.90em;
+}
+a.printindex {
+ color: black;
+}
+img.embedded {
+ width: 100%;
+ _width: auto;
+}
+div.float {
+ margin-top: 1ex;
+ margin-bottom: 1ex;
+ text-align: center;
+}
+span.float {
+ margin-top: 1ex;
+ margin-bottom: 1ex;
+ text-align: center;
+}
+div.figure {
+ display: inline-block;
+ text-align: left;
+ padding: 1ex;
+ margin-left: auto;
+ margin-right: auto;
+ border: thin solid #c0c0c0;
+}
+div.table {
+ display: inline-block;
+ text-align: left;
+ padding: 1ex;
+ margin-left: auto;
+ margin-right: auto;
+ border: thin solid #c0c0c0;
+}
+div.algorithm {
+ display: inline-block;
+ text-align: left;
+ padding: 1ex;
+ margin-left: auto;
+ margin-right: auto;
+ border: thin solid #c0c0c0;
+}
+div.caption {
+ text-align: center;
+ font-family: sans-serif;
+ margin-left: auto;
+ margin-right: auto;
+ padding: 0.5ex;
+}
+img.figure {
+ width: 100%;
+ _width: auto;
+}
+div.multifigure {
+ padding: 1ex;
+ width: 100%;
+}
+div.multitable {
+ display: inline-block;
+ padding: 1ex;
+ margin-left: auto;
+ margin-right: auto;
+ border: thin solid #c0c0c0;
+}
+div.multialgorithm {
+ display: inline-block;
+ padding: 1ex;
+ margin-left: auto;
+ margin-right: auto;
+ border: thin solid #c0c0c0;
+}
+table {
+ display: inline-table;
+ text-align: center;
+ border-collapse: collapse;
+ margin-top: 1em;
+ margin-bottom: 1em;
+}
+tr.header {
+ border-bottom: thin solid #c0c0c0;
+ background: #ffffff;
+ font-weight: bold;
+}
+td {
+ padding: 1ex;
+ border: thin solid #f0f0f0;
+}
+td div.Standard {
+ margin: 0ex;
+ padding: 0ex;
+}
+div.caption div.Standard, div.table div.Standard {
+ margin: 0ex;
+ padding: 0ex;
+}
+td.numeric {
+ text-align: right;
+}
+td.empty {
+ text-align: center;
+}
+div.right {
+ text-align: right;
+}
+div.center {
+ text-align: center;
+ margin-left: auto;
+ margin-right: auto;
+}
+p.biblio {
+}
+div.Paragraph, div.Paragraph- {
+ font-weight: bold;
+ font-size: 103%;
+}
+span.versalitas {
+ font-variant: small-caps;
+}
+span.sans {
+ font-family: sans-serif;
+}
+span.mathsf {
+ font-family: sans-serif;
+ font-style: normal;
+}
+span.red {
+ color: #c00000;
+}
+span.blue {
+ color: #0000c0;
+}
+span.green {
+ color: #00c000;
+}
+span.magenta {
+ color: #c000c0;
+}
+span.cyan {
+ color: #00c0c0;
+}
+span.yellow {
+ color: #c0c000;
+}
+span.white {
+ color: #ffffff;
+}
+.formula {
+ text-align: center;
+ font-family: serif;
+ margin: 1.2em 0;
+}
+div.formula {
+ padding: 0.5ex;
+ margin-left: auto;
+ margin-right: auto;
+}
+span.overline {
+ text-decoration: overline;
+}
+span.bar {
+ text-decoration: overline;
+}
+.fraction {
+ display: inline-block;
+ vertical-align: middle;
+ text-align: center;
+}
+.fraction .fraction {
+ font-size: 80%;
+ line-height: 100%;
+}
+.fullfraction {
+ display: inline-block;
+ vertical-align: middle;
+ text-align: center;
+}
+span.numerator {
+ display: block;
+}
+span.numerator-l {
+ display: block;
+ text-align: left;
+}
+span.numerator-r {
+ display: block;
+ text-align: right;
+}
+span.numeratorl {
+ display: block;
+ text-align: left;
+}
+span.numeratorr {
+ display: block;
+ text-align: right;
+}
+span.denominator {
+ display: block;
+ padding: 0;
+ border-top: thin solid;
+}
+span.sqrt {
+ display: inline-block;
+ vertical-align: middle;
+}
+span.radical {
+ display: inline-block;
+ padding: 0;
+ font-size: 150%;
+ vertical-align: top;
+}
+span.root {
+ display: inline-block;
+ border-top: thin solid;
+ padding: 0;
+ vertical-align: middle;
+}
+span.symbol {
+ font-size: 125%;
+}
+span.bigsymbol {
+ font-size: 150%;
+}
+span.largesymbol {
+ font-size: 175%;
+}
+span.hugesymbol {
+ font-size: 200%;
+}
+span.limits {
+ display: inline-table;
+ vertical-align: middle;
+}
+sub.bigsymbol {
+ display: table-row;
+ text-align: left;
+ line-height: 150%;
+}
+sup.bigsymbol {
+ display: table-row;
+ text-align: left;
+ line-height: 150%;
+}
+span.symbolover {
+ display: inline-block;
+ text-align: center;
+ position: relative;
+ float: right;
+ right: 100%;
+ bottom: 0.5em;
+ width: 0px;
+}
+span.withsymbol {
+ display: inline-block;
+}
+span.symbolunder {
+ display: inline-block;
+ text-align: center;
+ position: relative;
+ float: right;
+ right: 80%;
+ top: 0.3em;
+ width: 0px;
+}
+span.dotted {
+ border-top: thin dotted;
+}
+span.FootMarker {
+ color: #0030c0;
+ font-size: 0.75em;
+ line-height: 0.5em;
+ vertical-align: text-top;
+}
+span.Foot {
+ margin: 0.2ex;
+ border: thin solid #c0c0c0;
+ background: #ffffff;
+ padding: 0.5ex;
+ font-size: small;
+ font-weight: normal;
+ line-height: 1.5em;
+ text-align: left;
+}
+span.FootOuter .Foot {
+ display: none;
+ position: absolute;
+}
+span.FootOuter:hover .Foot {
+ display: inline;
+ float: none;
+}
+span.Marginal {
+ float: right;
+ clear: right;
+ margin: 0.2ex;
+ border: thin solid #c0c0c0;
+ background: #ffffff;
+ width: 30%;
+ padding: 0.5ex;
+ font-size: small;
+ font-weight: normal;
+ line-height: 1.5em;
+ text-align: left;
+}
+span.Note {
+ display: none;
+}
+span.code {
+ font-family: monospace;
+}
+div.Plain {
+ display: inline;
+ width: auto;
+}
+h1.title {
+ text-align: center;
+}
+h2 {
+ line-height: 1.4em;
+}
+h2.author {
+ text-align: center;
+}
+h2.Date {
+ text-align: center;
+}
+span.mathrm {
+ font-family: serif;
+}
+span.mathsf {
+ font-family: sans-serif;
+}
+span.text {
+ font-style: normal;
+}
+span.textnormal {
+ font-style: normal;
+}
+span.textipa {
+ color: #008080;
+}
+span.textrm {
+ font-style: normal;
+ font-family: serif;
+}
+span.textsf {
+ font-style: normal;
+ font-family: sans-serif;
+}
+span.Description-entry {
+ font-weight: bold;
+}
+span.List-entry {
+ display: inline-block;
+ width: 25%;
+ vertical-align: text-top;
+}
+span.List-contents {
+ display: inline-block;
+ width: 75%;
+ vertical-align: text-top;
+}
+div.Space {
+ display: none;
+}
+span.fraktur {
+ font-family: "Lucida Blackletter", eufm10, blackletter;
+}
+span.blackboard {
+ font-family: Blackboard, msbm10, serif;
+}
+span.script {
+ font-family: "Monotype Corsiva", "Apple Chancery", "URW Chancery L", cursive;
+}
+span.arraydef {
+ display: none;
+}
+span.appendix {
+ display: none;
+}
+h1.biblio {
+}
+table.formula {
+ display: inline-block;
+ text-align: center;
+ border-collapse: collapse;
+ margin: 0em;
+ vertical-align: middle;
+}
+td.formula-l {
+ text-align: left;
+ padding: 0.2ex;
+ border: 0ex;
+}
+td.formula-c {
+ text-align: center;
+ padding: 0.2ex;
+ border: 0ex;
+}
+td.formula-r {
+ text-align: right;
+ padding: 0.2ex;
+ border: 0ex;
+}
+table.cases {
+ display: inline-block;
+ text-align: center;
+ border-collapse: collapse;
+ margin: 0.2em;
+ border-left: thin solid;
+ vertical-align: middle;
+}
+table.cases tr td {
+ padding-left: 1ex;
+ padding-right: 1em;
+}
+table.environment {
+ display: inline-block;
+ text-align: right;
+ margin: 0;
+ vertical-align: middle;
+}
+table.environment tr td {
+ padding: 0 1em;
+}
+span.greyedout {
+ color: #808080;
+}
+div.Description, div.List, li {
+ margin: 1em 0;
+}
+li.nested {
+ list-style-type: none;
+}
+span.Info {
+ background: #f0f0f0;
+ border: thin solid #c0c0c0;
+}
+pre {
+ padding: 0em;
+ margin: 0em;
+ width: auto;
+ font-family: monospace;
+ line-height: 1.5em;
+}
+pre.LyX-Code {
+ margin: 0.5em 3em;
+}
+a.Label {
+ text-decoration: none;
+ color: #000000;
+}
+div.wrap-l, div.wrap-o, div.wrap-i {
+ margin: 2ex;
+ float: left;
+}
+div.wrap-r {
+ margin: 2ex;
+ float: right;
+}
+div.abstract {
+ margin: 1em 3em;
+ text-align: left;
+ font-size: 0.95em;
+}
+p.abstract-message {
+ text-align: center;
+ font-weight: bold;
+}
+div.listing {
+ display: inline-block;
+ text-align: left;
+ margin-left: auto;
+ margin-right: auto;
+ padding: 0.5ex;
+ border: thin solid #c0c0c0;
+}
+div.framed {
+ outline-style: solid;
+}
+div.frameless {
+}
+div.Frameless {
+}
+div.Boxed {
+ outline-width: thin;
+ outline-style: solid;
+}
+div.Framed {
+ outline-width: thin;
+ outline-style: solid;
+ line-height: 200%;
+}
+div.Doublebox {
+ outline-style: double;
+}
+div.Shadowbox {
+ outline-style: outset;
+}
+div.Shaded {
+ outline-style: inset;
+}
+div.ovalbox {
+ outline-style: groove;
+}
+div.Ovalbox {
+ outline-style: ridge;
+}
+span.number-left {
+ float: left;
+ background: #f0f0f0;
+ width: 3em;
+ text-align: right;
+ margin-right: 1em;
+}
+span.number-right {
+ float: right;
+ background: #f0f0f0;
+ width: 3em;
+ text-align: right;
+ margin-left: 1em;
+}
+a.eqnumber {
+ display: inline-block;
+ float: right;
+ clear: right;
+ font-weight: bold;
+}
+span.unknown {
+ color: #800000;
+}
+span.phantom {
+ color: #ffffff;
+}
+div.tocheader {
+ margin: 1em 0;
+ font-size: large;
+}
+a.toc {
+ color: black;
+}
+a.biblioentry {
+ color: black;
+}
+div.tocindent {
+ padding: 0 0 0 2em;
+}
+div.toc {
+ margin: 0.5em 0;
+ font-size: 0.95em;
+}
+div.fulltoc {
+ padding: 1em;
+}
+span.hspace {
+ display: inline-block;
+}
+span.vspace {
+ display: inline-block;
+}
+span.hfill {
+ display: inline-block;
+ margin-left: auto;
+ margin-right: auto;
+ min-width: 20mm;
+ background: #fff0f0;
+}
+span.binom {
+ display: inline-block;
+ vertical-align: middle;
+ text-align: center;
+ font-size: 80%;
+}
+span.fullbinom {
+ display: inline-block;
+ vertical-align: middle;
+ text-align: center;
+}
+span.upbinom {
+ display: block;
+ padding: 0em;
+}
+span.downbinom {
+ display: block;
+ padding: 0em;
+}
+div.defskip {
+ display: block;
+ height: 1em;
+}
+div.smallskip {
+ display: block;
+ height: 0.5em;
+}
+div.medskip {
+ display: block;
+ height: 1em;
+}
+div.bigskip {
+ display: block;
+ height: 2em;
+}
+div.vfill {
+ display: block;
+ height: 30em;
+}
+span.menuitem {
+ font-size: 105%;
+}
+div.chunk {
+ width: auto;
+}
+span.chunkleft {
+ font-style: normal;
+}
+span.chunkright {
+ font-style: normal;
+}
+span.chunkdecl {
+ font-style: italic;
+ padding: 0em 2em;
+}
+span.chunkref {
+ font-style: italic;
+}
+span.normal {
+ font-style: normal;
+}
+span.overbrace {
+ border-top: 2pt solid;
+}
+span.underbrace {
+ border-bottom: 2pt solid;
+}
+div.warning {
+ font-size: 120%;
+ color:#cc0000;
+}
+div.PlainVisible {
+ width: auto;
+}
+div.splitheader {
+ margin: 0em;
+ text-align: center;
+ background: #f9f9f9;
+}
+span.next {
+ float: right;
+ width: 15em;
+ text-align: right;
+}
+span.up {
+ display: inline-block;
+ text-align: center;
+}
+span.prev {
+ float: left;
+ width: 15em;
+ text-align: left;
+}
+hr.footer {
+ margin-top: 2em;
+}
+div.footer {
+ font-size: 0.90em;
+ margin: 1em 0;
+}
+div.Institute {
+ text-align: center;
+}
+div.indexgroup {
+ margin-left: 2em;
+}
+span.stackrel {
+ display: inline-block;
+ text-align: center;
+}
+span.upstackrel {
+ display: block;
+ padding: 0em;
+ font-size: 80%;
+ line-height: 64%;
+ position: relative;
+ top: 0.15em;
+
+}
+span.downstackrel {
+ display: block;
+ vertical-align: bottom;
+ padding: 0em;
+}
+span.colorbox {
+ display: inline-block;
+ padding: 5px;
+}
+span.fbox {
+ display: inline-block;
+ border: thin solid black;
+ padding: 2px;
+}
+span.boxed {
+ display: inline-block;
+ border: thin solid black;
+ padding: 5px;
+}
+span.framebox- {
+ display: inline-block;
+ border: thin solid black;
+ text-align: center;
+ padding: 5px;
+}
+span.framebox-l {
+ display: inline-block;
+ border: thin solid black;
+ text-align: left;
+ padding: 5px;
+}
+span.framebox-r {
+ display: inline-block;
+ border: thin solid black;
+ text-align: right;
+ padding: 5px;
+}
+/* CSS section for print */
+@media print {
+body {
+ font: 90% serif;
+ background: #ffffff;
+ color: black;
+ margin: 0;
+ padding: 0;
+}
+#globalWrapper {
+ width: 100%;
+ margin: 0px;
+ padding: 0px;
+ background: #ffffff;
+ line-height: 1.5em;
+}
+span.FootOuter .Foot {
+ display: block;
+ position: relative;
+ float: right;
+ clear: right;
+ margin: 0.2ex;
+ border: thin solid #c0c0c0;
+ background: #ffffff;
+ width: 30%;
+ padding: 0.5ex;
+ font-size: small;
+ font-weight: normal;
+ line-height: 1.5em;
+ text-align: left;
+}
+a:visited {
+ color: #0030c0;
+}
+/* end of print CSS */
+}
0  highlighter/shCore.css → templates/css/shCore.css
View
File renamed without changes
0  highlighter/shThemeDefault.css → templates/css/shThemeDefault.css
View
File renamed without changes
30 templates/scripts/shBrushBash.js
View
@@ -0,0 +1,30 @@
+SyntaxHighlighter.brushes.Bash = function()
+{
+ var keywords = 'if fi then elif else for do done until while break continue case function return in eq ne gt lt ge le';
+ var commands = 'alias apropos awk bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' +
+ 'cksum clear cmp comm command cp cron crontab csplit cut date dc dd ddrescue declare df ' +
+ 'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' +
+ 'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' +
+ 'free fsck ftp gawk getopts grep groups gzip hash head history hostname id ifconfig ' +
+ 'import install join kill less let ln local locate logname logout look lpc lpr lprint ' +
+ 'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' +
+ 'mv netstat nice nl nohup nslookup open op passwd paste pathchk ping popd pr printcap ' +
+ 'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' +
+ 'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' +
+ 'sleep sort source split ssh strace su sudo sum symlink sync tail tar tee test time ' +
+ 'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' +
+ 'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' +
+ 'vi watch wc whereis which who whoami Wget xargs yes'
+ ;
+
+ this.regexList = [
+ { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
+ { regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' } // commands
+ ];
+}
+
+SyntaxHighlighter.brushes.Bash.prototype = new SyntaxHighlighter.Highlighter();
+SyntaxHighlighter.brushes.Bash.aliases = ['bash', 'shell'];
+
0  highlighter/shBrushScala.js → templates/scripts/shBrushScala.js
View
File renamed without changes
2  highlighter/shBrushXml.js → templates/scripts/shBrushXml.js
View
@@ -60,7 +60,7 @@
};
Brush.prototype = new SyntaxHighlighter.Highlighter();
- Brush.aliases = ['xml', 'xhtml', 'xslt', 'html'];
+ Brush.aliases = ['xml', 'xhtml', 'xslt', 'html', 'XML'];
SyntaxHighlighter.brushes.Xml = Brush;
0  highlighter/shCore.js → templates/scripts/shCore.js
View
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.