Created
March 24, 2018 06:14
-
-
Save lukewilson2002/1bf2ddcd1a9b071cae92731689477598 to your computer and use it in GitHub Desktop.
A test for a language im designing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Preprocessor --> | |
<!-- | |
In this form, the preprocessor presented is LaTeX code, | |
that is specific to the LaTeX backend only. | |
Every backend will have to have its own implementation for preprocessor. | |
The preprocessor can be used for things like scripting environment variables, page numbers, and more. | |
--> | |
@title Hello World | |
@author Johnny Appleseed | |
@maketitle | |
# What is Ox? | |
Ox is a Markdown derivative that makes meta easy. | |
# What is one use for Ox? | |
If you like LaTeX, but you think it could be more fun to write without much effort, then make yourself comfortable. | |
In other words: Ox was originally built to be translated directly to complex LaTeX code, without any effort. Your computer can handle the LaTeX, while you handle expressing your ideas. | |
# Ox makes big ideas simpler | |
For example, this is impossible in regular LaTeX, without packages: | |
```rs | |
Syntax highlighted code block support will be possible | |
by automatically adding a package include for syntax | |
highlighting in the LaTeX form. | |
``` | |
The LaTeX backend for Ox automatically includes a code syntax highlighting package called "listings". | |
# Backends | |
I plan to have a single frontend, being the Ox language, and many backends that it can produce. | |
The backends are ordered most important to least important; top to bottom. | |
* LaTeX | |
* HTML |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{listings} | |
\title{Hello World} | |
\author{Johnny Appleseed} | |
\maketitle | |
\begin{Document} | |
\header{What is Ox?} | |
\paragraph{Ox is a markdown derivative that makes meta easy.} | |
\header{What is one use for Ox?} | |
\paragraph{If you like LaTeX, but you think it could be more fun to write without much effort, then make yourself comfortable.} | |
\paragraph{In other words: Ox was originally built to be translated directly to complex LaTeX code, without any effort. Your computer can handle the LaTeX, while you handle expressing your ideas.} | |
\header{Ox makes big ideas simpler} | |
\paragraph{For example, this is impossible in regular LaTeX, without packages:} | |
\begin{lstlisting}[language=rs] | |
Syntax highlighted code block support will be possible | |
by automatically adding a package include for syntax | |
highlighting in the LaTeX form. | |
\end{lstlisting} | |
\paragraph{The LaTeX backend for Ox automatically includes a code syntax highlighting package called "listings".} | |
\header{Backends} | |
\paragraph{I plan to have a single frontend, being the Ox language, and many backends that it can produce. The backends are ordered most important to least important; top to bottom.} | |
\begin{itemize} | |
\item{LaTeX} | |
\item{HTML} | |
\end{itemize} | |
\end{Document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment