1
0
mirror of https://github.com/tiyn/wiki.git synced 2026-07-13 23:11:35 +02:00
Files
wiki/wiki/markup_language.md
2026-07-12 03:11:40 +02:00

3.1 KiB

Markup Language

A markup Language is way to encode text so that it has great amounts of structure and formatting. The most common markup languages are HTML, Markdown, LaTeX and XML. Markup languages can be used for note-taking. Adding to normal markdown files, there are also .mdx files which allows the usage of JavaScripts JSX in the markdown content for displaying charts and more.

Grammar Checking

An often used grammar and spell checking tool that supports many markup languages is LTeX.

Different languages

This section addresses various markup languages and their usages.

HTML

HTML is a markup language that is mostly used in the internet via the hypertext system and accessed via web browsers. For styling HTML accordingly CSS is used most of the time. HTML can be quite challenging to write, read and check for validity. An easy way to do the latter one is a validation service. One of the most used ones is the Markup Validation Service by W3C.

Due to HTML being famously used for emails, in email clients there is often an option to export or save mails to them. In certain situations it then can be useful to convert them to PDF.

A program, which works well for it, is Weasyprint, which being based on Python is cross-platform and available on Linux, Windows and macOS. The following command is an example conversion where an HTML-file <html> is converted to a PDF-file <pdf>.

weasyprint <html> <pdf>

XML

XML is a markup language often used together with RSS Feeds. Many other data formats are also based on XML. For example GPX, a file format for saving routes, points of interests and other navigation related things, is based on it.

LaTeX

LaTeX provides a high-level, descriptive markup language. It is mostly used in the scientific community but can be used for many things and as an alternative to Microsoft Word.

LaTeX also features many different packages. The following list contains some examples of it.

  • Awesome-CV is a package for creating job applications.
  • lettrine is a package to typeset dropped capitals.
  • (pgf)ornament is a package to add various ornaments.
  • ZUGFeRD is a package for creating invoices.

Usage

This section addresses the usage of LaTeX.

Set Background Color

The background color can be set using the xcolor package and the \pagecolor command. The following lines show a working example where the background color is set to the hexadecimal color <hexcol>. This needs to be changed (for example to E0D6C0 for a parchment like color).

\usepackage{xcolor}
\definecolor{background}{HTML}{<hexcol>}
\pagecolor{background}