SciWriter

  • The native document format is a subset of XHTML and (presentation) MathML [5].
  • Employs XSLT translations into LaTeX (xhtml2latex.xslt).

[Picture]

LaTeX -> (XML->LaTeX):

\newcommand{\BeginPreamble}{}\newcommand{\EndPreamble}{}  
\BeginPreamble  
 
% Font Size (10pt, 11pt or 12pt)  
  \documentclass[12pt,a4paper]{article}  
 
% Use Sans Serif Font (Comment this line out to use  
% standard roman fonts)  
%  \renewcommand{\familydefault}{\sfdefault}  
% Origin  
%  \setlength{\hoffset} {0mm}  
%  \setlength{\voffset}{0mm}  
 
% Paper Size  
%  \setlength{\textwidth} {210mm}  
%  \setlength{\textheight}{297mm}  
 
% Text Size  
  \setlength{\textwidth} {160mm}  
  \setlength{\textheight}{230mm}  
 
% Left Margin  
  \setlength{\oddsidemargin} {0mm}  
  \setlength{\evensidemargin}{0mm}  
 
% Top Margin  
  \setlength{\topmargin}     {0mm}  
 
% Headings (Comment this line out to turn off headings  
  \pagestyle{headings}  
 
% Header Margins  
%  \setlength{\headheight}     {0mm}  
%  \setlength{\headsep}     {0mm}  
%  \setlength{\topskip}     {0mm}  
 
% Footer Margin  
  \setlength{\footskip}     {0mm}  
 
% Note Margins  
  \setlength{\marginparpush}     {0mm}  
  \setlength{\marginparwidth}     {0mm}  
  \setlength{\marginparsep}     {0mm}  
 
\setlength{\parindent}{1.5em}  
 
\setlength{\parskip}{0em}  
 
  %Equation Numbering within Sections  
  \makeatletter  
  \@addtoreset{equation}{section}  
  \makeatother  
  \renewcommand{\theequation}{\thesection.\arabic{equation}}  
 
    %Figure Numbering within Sections  
    \makeatletter  
    \@addtoreset{figure}{section}  
    \makeatother  
    \renewcommand{\thefigure}{\thesection.\arabic{figure}}  
 
    %Table Numbering within Sections  
    \makeatletter  
    \@addtoreset{table}{section}  
    \makeatother  
    \renewcommand{\thetable}{\thesection.\arabic{table}}  
\def\figurename{Figure}\def\tablename{Table}  
 
%............  Used Packages  ........................  
\usepackage[]{hyperref}  
\usepackage{color}  
\definecolor{SteelBlue}  {rgb}{0.275,0.51,0.706}  
 
\usepackage{etex}  
\usepackage{latexsym}  
\usepackage{ifthen}  
 
\usepackage{amsmath}  
\usepackage{amsthm}  
\usepackage{amscd}  
\usepackage{amsfonts}  
\usepackage{amssymb}  
\usepackage{esint}  
 
\usepackage{ucs}  
\usepackage[utf8]{inputenc}  
\usepackage{longtable}  
\usepackage{booktabs}  
\usepackage[normalem]{ulem}  
\usepackage{tabularx}  
\usepackage{float}  
 
\usepackage{colortbl}  
 
\setlength{\abovecaptionskip}{0.5cm}  
\setlength{\belowcaptionskip}{0.5cm}  
 
 \newtheoremstyle{TStyle_acknowledgement}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_acknowledgement}  
 \newtheorem*{acknowledgement}{Acknowledgement}  
 \newtheoremstyle{TStyle_algorithm}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_algorithm}  
 \newtheorem{algorithm}{Algorithm}[section]  
 \newtheoremstyle{TStyle_axiom}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_axiom}  
 \newtheorem{axiom}[algorithm]{Axiom}  
 \newtheoremstyle{TStyle_case}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_case}  
 \newtheorem*{case}{Case}  
 \newtheoremstyle{TStyle_claim}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_claim}  
 \newtheorem*{claim}{Claim}  
 \newtheoremstyle{TStyle_comment}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_comment}  
 \newtheorem*{comment}{Comment}  
 \newtheoremstyle{TStyle_conclusion}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_conclusion}  
 \newtheorem*{conclusion}{Conclusion}  
 \newtheoremstyle{TStyle_condition}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_condition}  
 \newtheorem*{condition}{Condition}  
 \newtheoremstyle{TStyle_conjecture}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_conjecture}  
 \newtheorem*{conjecture}{Conjecture}  
 \newtheoremstyle{TStyle_corollary}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_corollary}  
 \newtheorem{corollary}[algorithm]{Corollary}  
 \newtheoremstyle{TStyle_criterion}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_criterion}  
 \newtheorem*{criterion}{Criterion}  
 \newtheoremstyle{TStyle_definition}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_definition}  
 \newtheorem{definition}[algorithm]{Definition}  
 \newtheoremstyle{TStyle_example}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_example}  
 \newtheorem{example}[algorithm]{Example}  
 \newtheoremstyle{TStyle_exercise}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_exercise}  
 \newtheorem{exercise}[algorithm]{Exercise}  
 \newtheoremstyle{TStyle_lemma}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_lemma}  
 \newtheorem{lemma}[algorithm]{Lemma}  
 \newtheoremstyle{TStyle_notation}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_notation}  
 \newtheorem*{notation}{Notation}  
 \newtheoremstyle{TStyle_problem}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_problem}  
 \newtheorem{problem}[algorithm]{Problem}  
   \renewcommand{\proofname}{\itshape Proof}  
 \newtheoremstyle{TStyle_proposition}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_proposition}  
 \newtheorem{proposition}[algorithm]{Proposition}  
 \newtheoremstyle{TStyle_remark}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_remark}  
 \newtheorem*{remark}{Remark}  
 \newtheoremstyle{TStyle_solution}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_solution}  
 \newtheorem{solution}[algorithm]{Solution}  
 \newtheoremstyle{TStyle_summary}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_summary}  
 \newtheorem*{summary}{Summary}  
 \newtheoremstyle{TStyle_theorem}{1.25em}{1.25em}{\itshape}{}{\bfseries\upshape}{.}{ }{}  
 \theoremstyle{TStyle_theorem}  
 \newtheorem{theorem}[algorithm]{Theorem}  
 \renewcommand{\abstractname}{Abstract}  
 
\usepackage{sectsty}  
 
   \allsectionsfont{\setlength{\parindent}{0em}\textcolor{SteelBlue}}  
 
%................................. Graphics (choose package )  
\ifx\pdfoutput\undefined % NOT pdftex  
% ........................................... NOT PDF ...........  
  \usepackage[dvips]{graphicx}  
\else  
% ........................................... PDF ...............  
  \usepackage{graphicx}  
\fi  
%................................. Graphics (max width = textwidth )  
\newcommand{\includegraphicsX}[2]{  
\newdimen\imgwidth  
\setbox0=\hbox{\includegraphics[#1]{#2}}  
\imgwidth=\wd0  
\ifthenelse{\lengthtest{\imgwidth > \textwidth}}  
  {  
     {\includegraphics[width=\textwidth]{#2}}  
  }  
  {  
     {\includegraphics[#1]{#2}}  
  }  
}  
 
 
%................................. Tables (max width = textwidth )  
\newcommand{\tableX}[3]{  
\newdimen\tablewidth  
\setbox1=\hbox{\begin{tabular}{#1}#3\end{tabular}}  
\tablewidth=\wd1  
\ifthenelse{\lengthtest{\tablewidth > \textwidth}}  
  {  
     \begin{tabularx}{\textwidth}{#2}  
     #3  
     \end{tabularx}  
  }  
  {  
     \begin{tabular}{#1}  
     #3  
     \end{tabular}  
  }  
}  
 
\newcommand{\EmptyParagraph}{ $\phantom{X}$}  
 
\setcounter{secnumdepth}   {5}  
 
\makeatletter  
\let\new@ifnextchar\@ifnextchar  
\let\new@ifnch\@ifnch  
\makeatother  
 
\def\thebibliography#1{  
 \list  
 {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth  
 \advance\leftmargin\labelsep  
 \usecounter{enumi}}  
 \def\newblock{\hskip .11em plus .33em minus -.07em}  
 \sloppy\clubpenalty4000\widowpenalty4000  
 \sfcode`\.=1000\relax}  
\let\endthebibliography=\endlist  
 
%...... xleftrightarrows  
 
\makeatletter  
\newcommand{\xleftrightarrows}[2][]{\mathrel{%  
 \raise.40ex\hbox{$  
       \ext@arrow 3095\leftarrowfill@{\phantom{#1}}{#2}$}%  
 \setbox0=\hbox{$\ext@arrow 0359\rightarrowfill@{#1}{\phantom{#2}}$}%  
 \kern-\wd0 \lower.40ex\box0}}  
 
\newcommand{\xrightleftarrows}[2][]{\mathrel{%  
 \raise.40ex\hbox{$\ext@arrow 3095\rightarrowfill@{\phantom{#1}}{#2}$}%  
 \setbox0=\hbox{$\ext@arrow 0359\leftarrowfill@{#1}{\phantom{#2}}$}%  
 \kern-\wd0 \lower.40ex\box0}}  
\newcommand{\xleftrightarrow}[2][]{%  
     \ext@arrow 0055{\leftrightarrowfill@}{#1}{#2}%  
}  
\def\leftrightarrowfill@{%  
 \arrowfill@\leftarrow\relbar\rightarrow%  
}  
\makeatother  
 
\usepackage{moreverb}  
 
\EndPreamble  
 
\begin{document}  
 
   \noindent Hello World! $ \frac {{\sqrt{{{a}^{{2}} + {b}^{{2}}}}}}{{2}} $  
 
   \EmptyParagraph  
   \EmptyParagraph  
 
\end{document}  

18, next, prev, up, toc , doc7.tex