Skip to content
Lev135 edited this page Jun 5, 2022 · 11 revisions

Getting started with FineTeX

Instalation

First of all you need to have a translator of from FineTeX language format to LaTeX. This is a command tool called texgen. If you are using Windows operating system, you can download binary of the stable version from the release page. You can find an archieve with source code there too.

The most recent version can be downloaded from google drive. There are only ubuntu (texgen) and windows (texgen.exe) versions now.

Hello, LaTeX

Let's create our first FineTeX document!

Create the file hello-tex.ttex with the following code:

@Define
  @Environments
    Document = @TexBeginEnd "document"
    Tex      = @Verb

@Tex
  \documentclass{article}
  \usepackage[utf8]{inputenc}

@Document
  Hello, \LaTeX!

Copy texgen tool into the directory with the source file, open command line and run:

./texgen hello.ttex

In the same folder hello.tex file will appear. If you open it, you will see:

\documentclass{article}
\usepackage[utf8]{inputenc}

\begin{document}
  Hello, \LaTeX!
\end{document}

All you need now is to compile the resulting file in any way you like. For example, using pdflatex

pdflatex hello.tex

Then hello.pdf file will be created. If you open it, you will see:

image

What have we done?

Let's go through our first program. First of all there was the block of definitions.

@Define
  @Environments
    Document = @TexBeginEnd "document"
    Tex      = @Verb

It should be the first block (or, in more LaTeX terminology, environment) in the file. There are several types of definitions: Environments, Prefs and MathCommands. Here we have defined only two environments...

To be continued somewhere in the future...

Editors and extensions

It is recommended to use VSCode for working with .ttex. More about it you can find here

More examples

More examples may be found in Simple examples. Step by step and (in russian) in Простые примеры по шагам