README.md 3.89 KB
Newer Older
Martín del Río's avatar
Martín del Río committed
1 2
![alt version number](https://img.shields.io/badge/version-3.0-green.svg)

Martín del Río's avatar
Martín del Río committed
3
# ✒️ Lartype 3 ✒️
Lartu's avatar
Lartu committed
4
Lightweight, LaTeX inspired markup document editor.
Lartu's avatar
Lartu committed
5

Martín del Río's avatar
Martín del Río committed
6
## Why Lartype?
Martín del Río's avatar
Martín del Río committed
7
While undoubtedly LaTeX is the best tool for the task, when you need to write simpler essays, texts or documents it's somewhat of an overkill. And it is **huge**, more than 3GB for the whole package! As that was too much for me and my tasks at hand, I decided to write Lartype. I've been using it and I hope you find an use for it too. It also allows to write highly modular documents, with each section written in a different file, so if many people are working on a single document, each should be able to edit a different part without this causing merge problems.
Martín del Río's avatar
Martín del Río committed
8

Martín del Río's avatar
Martín del Río committed
9 10 11
## What can Lartype do?
[Judge by yourself](https://lartu.net/projects/lartype/informe.pdf). That's an essay we wrote for an assignment, completely on Lartype. Lartype can generate tables, style text, embed images, align and position sections and more.

Martín del Río's avatar
Martín del Río committed
12
## System Requirements
Martín del Río's avatar
Martín del Río committed
13
A 64 bit, x86 compatible system is required to compile Lartype projects, as a 64 bit version of ![wkhtmltopdf](https://wkhtmltopdf.org/) is used to render the PDF files. Python 2 is also required. Any modern Linux system should cover this requirements without having to do anything at all.
Martín del Río's avatar
Martín del Río committed
14

Lartu's avatar
Lartu committed
15
## How to install
Martín del Río's avatar
Martín del Río committed
16
Download, clone or pull (`--depth 1` recommended!) and run `install_lartype`. Lartype will be installed to $HOME/bin and added to your path. No privileges required!
Lartu's avatar
Lartu committed
17 18

## How to run
Martín del Río's avatar
Martín del Río committed
19
* Run `lartype -init` to initialize a new Lartype project on the current directory. All the required folders and files will be created, along with a demo project.
Martín del Río's avatar
Martín del Río committed
20 21 22
* Run `lartype` to compile your project to a PDF file.
* If you update Lartype -by installing a new version-, run `lartype -update` on your project directory to update the Lartype interpreter. Until you do this, you'll still be using the previous version of Lartype.

Martín del Río's avatar
Martín del Río committed
23 24 25 26
## How to write a Lartype Document

**Initializing a Lartype Project**

Martín del Río's avatar
Martín del Río committed
27 28 29
When you initialize a new Lartype project, three folders (*images*, *lartype* and *sources*) and a file (*lartype_sources.cfg*) are automatically generated for you.

![alt Files Generated](https://lartu.net/projects/lartype/files_generated.png)
Martín del Río's avatar
Martín del Río committed
30

Martín del Río's avatar
Martín del Río committed
31
The *images* folder is where you should put pictures that you want to use in your Lartype document. 
Martín del Río's avatar
Martín del Río committed
32 33 34 35 36 37 38

The *lartype* folder shouldn't be messed with, as it contains the Lartype interpreter. You may, though, modify the *footer.html* and *header.html* located within, in case you want to add or change your document header or footer, respectively. 

The *sources* folder contains all the Lartype sources that make up your document. When it's first created, this last folder contains one single file: **main.lty**.

The *lartype_sources.cfg* file contains all the Lartype sources that you want to be compiled on your project. Each line should contain the name of a single file located inside the *sources* folder, without the *.lty* extension. When this file is first created, the first line says `main`, for *main.lty*. If you add more files to *sources*, you should add them to this file so they are added to the document once it's generated. Also, the files are compiled in the order they are listed in *lartype_sources.cfg*, so bear that in mind. You can even safely delete *main.lty* and replace it by any other *.lty* file and everything will work fine if you replace the filename accordingly in *lartype_sources.cfg*.

Martín del Río's avatar
Martín del Río committed
39 40 41
**Writing Your First Lartype Page**

(TODO)
Martín del Río's avatar
Martín del Río committed
42 43 44

**Styling Text**

Martín del Río's avatar
Martín del Río committed
45 46
(TODO)

Martín del Río's avatar
Martín del Río committed
47 48
**Text Location and Alignment**

Martín del Río's avatar
Martín del Río committed
49 50
(TODO)

Martín del Río's avatar
Martín del Río committed
51 52
**Lists**

Martín del Río's avatar
Martín del Río committed
53 54
(TODO)

Martín del Río's avatar
Martín del Río committed
55 56
**Adding Pictures to Your Document**

Martín del Río's avatar
Martín del Río committed
57 58
(TODO)

Martín del Río's avatar
Martín del Río committed
59 60
**Adding References**

Martín del Río's avatar
Martín del Río committed
61 62
(TODO)

Martín del Río's avatar
Martín del Río committed
63 64
**Left and Right Blocks**

Martín del Río's avatar
Martín del Río committed
65 66
(TODO)

Martín del Río's avatar
Martín del Río committed
67 68
**Parallel Sections**

Martín del Río's avatar
Martín del Río committed
69 70
(TODO)

Martín del Río's avatar
Martín del Río committed
71 72
**Creating Tables**

Martín del Río's avatar
Martín del Río committed
73 74
(TODO)

Martín del Río's avatar
Martín del Río committed
75 76
**Breaks, Lines and Page Breaks**

Martín del Río's avatar
Martín del Río committed
77 78
(TODO)

Martín del Río's avatar
Martín del Río committed
79 80
**Inline Code Fragments and Code Blocks**

Martín del Río's avatar
Martín del Río committed
81 82
(TODO)

Martín del Río's avatar
Martín del Río committed
83 84
**Adding New Files to Your Document**

Martín del Río's avatar
Martín del Río committed
85 86
(TODO)

Martín del Río's avatar
Martín del Río committed
87 88
**TODOs and Comments**

Martín del Río's avatar
Martín del Río committed
89 90
(TODO)

Martín del Río's avatar
Martín del Río committed
91 92
**Alternate Image Sizes**

Martín del Río's avatar
Martín del Río committed
93 94
(TODO)