{{
* Table of Content[[v]](#table_of_contents_1)
* References%%ref1%%
* \\( \LaTeX \\)
*
<div> $$ g_{\mu \nu} = \left( \begin{array}{cccc} - \alpha^{2} & \beta & 0 & 0 \\ \beta & a^{2} & 0 & 0 \\ 0 & 0 & r^{2} & 0 \\ 0 & 0 & 0 & r^{2} \sin^{2} \theta \end{array} \right) \;\;\; \int_{-1}^{1} \frac{1}{\sqrt{1-x^{2}}} dx = \pi \;\;\;\; 1 < 2 \;\;\; 3 > 2 $$ </div>which will be transformed to:
{{This is the caption of the image. A plot of a function in Python!}}((img/surface.png)){{This is the caption of the image. A plot of a function in Python!}}((img/surface.png)) An example is the image you are seeing on the right. Paragraphs in Markdown are separated with an empty line, similar to \\( \LaTeX \\). For instance, each word of this sentence are in separate lines in the [source file](Template.txt), but they all appear on the same paragraph. This is a new paragraph to fill up some space. So I will keep typing until I created a long paragraph. So far I don't think it is long enough. Let me find something from Wikipedia and copy paste it here. A paragraph (from the Greek paragraphos, "to write beside" or "written beside") is a self-contained unit of a discourse in writing dealing with a particular point or idea. A paragraph consists of one or more sentences. Though not required by the syntax of any language, paragraphs are usually an expected part of formal writing, used to organize longer prose. The oldest classical Greek and Latin writing had little or no spaces between words or other ones, and could be written in boustrophedon (alternating directions). Over time, text direction (left to right) became standardized, and word dividers and terminal punctuation became common. The first way to divide sentences into groups was the original paragraphos, similar to an underscore at the beginning of the new group.[3] The Greek paragraphos evolved into the pilcrow), which in English manuscripts in the Middle Ages can be seen inserted inline between sentences. The hedera leaf has also been used in the same way. There should be an image on the right side of this text. An empty line separates the paragraphs. ### Center Floating Image Another way to insert images with center floating is to use syntac:
{{Images with center floating are a bit larger allowing for more content in the caption.}}[[img/HTML.jpg]]which produces: {{Images with center floating are a bit larger allowing for more content in the caption.}}[[img/HTML.jpg]] Images (centered or right floating) can be inserted without caption as well, by simply leaving the caption part completely empty:
{{}}[[img/HTML.jpg]]{{}}[[img/HTML.jpg]] ### Right Floating Object
For example this %% myref1 %% is going to appear in the references and this %%my ref5%% as well. This %% my ref5 %% is the same reference. {myref1: This is an example of references.} { my ref5: Another reference.} The reference description can appear anywhere in the text. Below is the source file of the example above:*** ## Code Highlighting This template is using [code2html[>]](https://www.palfrader.org/code/code2html/) to highlight source codes that are being inserted in the plain text file. All you need to do is simply put the source code between <C> </C> tags (for C code). See below for the list of supported languages. Following source code shows how you can highlight Perl, C++ and Python code: ### Perl
<PERL> #!/usr/bin/perl use strict; use warnings; use IO::Handle; #Perl comment my ( $remaining, $total ); $remaining = $total = shift(@ARGV); STDOUT->autoflush(1); while ( $remaining ) { printf ( "Remaining %s/%s \r", $remaining--, $total ); sleep 1; } print "\n"; </PERL>Which will be highlighted as:
<CPP> #include<iostream> #include<vector> int main() /* Multiple line comment */ try { std::vector<int> vec{3,4,3,1}; int i{vec.at(4)}; } //An exception handler, catches std::out_of_range catch(std::out_of_range& e) { std::cerr<<"Accessing a non-existent element:"<<e.what()<<'\n'; } catch(std::exception& e) { std::cerr<<"Exception thrown: "<<e.what()<<'\n'; } </CPP>And the highlighted version is:
<PYTHON> from pylab import * t = arange(0.0, 2.0, 0.01) s = sin(2*pi*t) plot(t, s) xlabel('time (s)') ylabel('voltage (mV)') title('About as simple as it gets, folks') grid(True) savefig("test.png") show() </PYTHON>which is highlighted here:
<FILE="myfile.html">**** ##Requirements * [Perl[>]](http://www.perl.org/) and [Python[>]](https://www.python.org/). (Usually installed on most of the Linux machines.) * Linux Make facility (Usually installed on most of the Linux machines.) * [Markdown[>]](http://daringfireball.net/projects/downloads/Markdown_1.0.1.zip), (the modified Perl script included in the tarball) * [Code2Html[>]](https://www.palfrader.org/code/code2html/)(the Perl script included in the tarball) * [PyHat[>]](http://www.ferg.org/pyhat/pyhat.zip)(the modified python scripts included in the tarball) * All the required scripts are included in the [**download package**](../theme11.tar.gz)[dl] **** ## Credit * [Mathjax[>]](http://www.mathjax.org/) * [Markdown[>]](http://daringfireball.net/projects/markdown/) * [Code2Html[>]](https://www.palfrader.org/code/code2html/) * [PyHat[>]](http://www.ferg.org/pyhat/) **** ## Live Preview This page itself is a preview of the template. **** ## Download and Getting Started You can download the template and all the required scripts, fonts, CSS sheet, etc. from [[here]](../theme11.tar.gz). Extract the tarball to your public_html directory on the web server, execute ``make``, and you should see a website similar to this page. You can start with editing the ``README.txt`` file and re-executing the ``make`` command.