Kantlipsum on Ubuntu

Step-by-Step descriptions of how to do things.

Kantlipsum on Ubuntu

Postby peter_b » Thu Jul 18, 2019 4:03 am

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 [url]Pandoc[/url] 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:
  • 0

User avatar
peter_b
Chatterbox
 
Posts: 302
Joined: Tue Nov 12, 2013 2:05 am
Reputation: 3

Optional: some Kantlpsum markdown examples.

Postby peter_b » Thu Jul 18, 2019 4:30 am

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]
  • 0

User avatar
peter_b
Chatterbox
 
Posts: 302
Joined: Tue Nov 12, 2013 2:05 am
Reputation: 3


Return to HowTo's

Who is online

Users browsing this forum: No registered users and 3 guests

Who is online over last 24 hours

Users browsed this forum in the last 24 hours: No registered users and 21 guests

cron
Reputation System ©'