Page 1 of 1

Kantlipsum on Ubuntu

Posted: Thu Jul 18, 2019 4:03 am
by peter_b
In the past, I've used an online Python generator for creating random text in Immanuel Kant style, every now and then.

Here's how to include this so called "Kant Lipsum" text in e.g. Markdown - generated by Pandoc when rendering to an output format! :shock: 8)

First, here's the LaTeX template code.
Save this to "kant.tex":

Code: Select all

\documentclass{article}
\usepackage{kantlipsum}

\begin{document}

$body$

\end{document}
Second, here's the Markdown template.
Save this to "kant.md":

Code: Select all

# Testing Kant

\kant

Command to generate the output:

Code: Select all

$ pandoc kant.md --template=kant.tex --latex-engine=xelatex -s -o kant.pdf

The "\kant" command can be parametrized and there are other commands available too.
See Kantlipsum package documentation "Commands" for details.



Related links:

Optional: some Kantlpsum markdown examples.

Posted: Thu Jul 18, 2019 4:30 am
by peter_b
Some optional Markdown input examples:

Code: Select all

# Only certain paragraphs

## First paragraph only:

\kant[1]

## Second to fourth:

\kant[2-4]


# Same. Without paragraphs:

\kant*[2-4]