Kantlipsum on Ubuntu

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
peter_b
Chatterbox
Posts: 378
Joined: Tue Nov 12, 2013 2:05 am

Kantlipsum on Ubuntu

Post 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:
User avatar
peter_b
Chatterbox
Posts: 378
Joined: Tue Nov 12, 2013 2:05 am

Optional: some Kantlpsum markdown examples.

Post 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]
Post Reply