{"id":22528,"date":"2026-02-07T16:05:28","date_gmt":"2026-02-07T15:05:28","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=22528"},"modified":"2026-02-07T17:10:58","modified_gmt":"2026-02-07T16:10:58","slug":"pandoc-unter-linux-texte-einfach-und-korrekt-konvertieren","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2026\/02\/07\/pandoc-unter-linux-texte-einfach-und-korrekt-konvertieren\/","title":{"rendered":"Pandoc unter Linux &#8211; Texte einfach und korrekt konvertieren"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Bei der t\u00e4glichen Arbeit mit Texten entstehen oft unterschiedliche Anforderungen: Notizen liegen als Markdown-Dateien vor, Kolleginnen und Kollegen ben\u00f6tigen Word-Dokumente, Ver\u00f6ffentlichungen verlangen PDF, und f\u00fcr Websites ist HTML gefragt.<br><strong>Pandoc<\/strong> l\u00f6st diese Aufgabe effizient. Das Open-Source-Werkzeug l\u00e4uft stabil unter Linux, wandelt Texte flexibel zwischen vielen Formaten um und funktioniert unabh\u00e4ngig von festen Arbeitsverzeichnissen.<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\">Was ist Pandoc?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pandoc ist ein universeller Dokumentenkonverter, der Textdateien zwischen verschiedenen Formaten \u00fcbersetzt.<br>Ein einziger Quelltext \u2013 meist in Markdown \u2013 gen\u00fcgt, um daraus automatisch eine PDF-Datei, ein Word-Dokument oder eine Webseite zu erzeugen. Die Bedienung erfolgt bequem \u00fcber einfache Terminalbefehle.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pandoc unterst\u00fctzt u.\u202fa.:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8211; Markdown (.md)<br>&#8211; HTML (Webseiten)<br>&#8211; LaTeX \/ PDF<br>&#8211; DOCX (Microsoft Word)<br>&#8211; ODT (LibreOffice)<br>&#8211; EPUB (E-Books)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Damit l\u00e4sst sich eine zentrale Textbasis f\u00fcr viele Zwecke nutzen.<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\">Installation<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pandoc ist den Repository von Debian, Ubuntu und darauf basierenden Distributionen verf\u00fcgbar und wird mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install pandoc<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">installiert.<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\">Markdown nach HTML<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Markdown bietet klare Struktur und einfache Lesbarkeit. Um daraus eine eigenst\u00e4ndige Webseite zu erzeugen, gen\u00fcgt:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pandoc artikel.md -f markdown -t html -s -o artikel.html<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Parameter im \u00dcberblick:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">-f markdown: Eingabeformat<br>-t html: Ausgabeformat<br>-s: Erstellt ein vollst\u00e4ndiges HTML-Dokument<br>-o: Bestimmt den Namen der Ausgabedatei<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Das Ergebnis ist eine sofort einsetzbare HTML-Datei, ideal f\u00fcr eigene Websites oder interne Dokumentationen.<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\">Markdown nach PDF<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Zur Erzeugung von PDFs nutzt Pandoc standardm\u00e4\u00dfig LaTeX im Hintergrund.<br>Das hei\u00dft: F\u00fcr den PDF-Export ist in der Regel eine LaTeX-Installation erforderlich. Falls noch nicht geschehen, l\u00e4sst sich das unter Debian\/Ubuntu einfach nachholen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install texlive texlive-latex-extra<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Diese Pakete gen\u00fcgen f\u00fcr die meisten Texte und enthalten alle wesentlichen Bausteine f\u00fcr Layout und Schriftarten.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Standardkonvertierung:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Markdown &gt; PDF<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_02.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"555\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_02-1024x555.png\" alt=\"\" class=\"wp-image-22529\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_02-1024x555.png 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_02-1536x832.png 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_02-150x81.png 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_02-300x163.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_02-768x416.png 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_02.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\">Original &#8211; Markdown *.md<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Befehl zum Konvertieren in PDF:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pandoc muster-text.md -o muster-text.pdf<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_03.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"554\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_03-1024x554.png\" alt=\"\" class=\"wp-image-22530\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_03-1024x554.png 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_03-1536x830.png 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_03-150x81.png 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_03-300x162.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_03-768x415.png 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_03.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\">Konvertiert in PDF<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Anpassung von Schrift und Format:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pandoc muster-text.md \\\n  -V fontsize=12pt \\\n  -V papersize=a4paper \\\n  -V documentclass=article \\\n  -o muster-text.pdf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Damit lassen sich Seitenr\u00e4nder, Schriftgr\u00f6\u00dfen und allgemeine Dokumenteigenschaften gezielt steuern.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">PDFs ohne LaTeX erzeugen<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Alternativ kann Pandoc PDFs auch ohne LaTeX erzeugen &#8211; ideal auf Systemen mit wenig Speicherplatz oder ohne grafische Oberfl\u00e4chen.<br>Dies gelingt, indem eine andere PDF-Engine angegeben wird:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pandoc bericht.md --pdf-engine=wkhtmltopdf -o bericht.pdf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Dabei erzeugt Pandoc zun\u00e4chst ein HTML-Dokument und wandelt es anschlie\u00dfend \u00fcber <em>wkhtmltopdf<\/em> in eine PDF-Datei um.<br>Das Ergebnis eignet sich besonders f\u00fcr einfache Layouts mit CSS-Steuerung.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Alternative PDF-Engines:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8211; wkhtmltopdf \u2013 HTML-basierte Umwandlung, ressourcenschonend<br>&#8211; weasyprint \u2013 CSS-Layout mit moderner Typografie<br>&#8211; prince \u2013 kommerzielle L\u00f6sung mit professionellem Satzbild<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Diese Varianten sind n\u00fctzlich, wenn keine LaTeX-Umgebung installiert werden soll oder ein web\u00e4hnliches Layout gew\u00fcnscht ist.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Faustregel f\u00fcr PDF-Konvertierung<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Wenn es um einfache PDFs geht (Notizen, kurze Anleitungen), kann eine HTML-basierte PDF-Engine ausreichend sein.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sobald Qualit\u00e4t, Formeln, umfangreiche Dokumente oder langfristige Workflows wichtig sind, lohnt sich der LaTeX-Weg \u00fcber Pandoc trotz der Einstiegsh\u00fcrde.<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\">Office-Formate: DOCX und ODT<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">F\u00fcr B\u00fcroumgebungen oder organisatorische Abl\u00e4ufe ist Pandoc ebenfalls praktisch.<br>Formate k\u00f6nnen in beide Richtungen umgewandelt werden:<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Markdown \u2192 DOCX<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pandoc muster-text.md -o muster-text.docx<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_01.png\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"556\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_01-1024x556.png\" alt=\"\" class=\"wp-image-22536\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_01-1024x556.png 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_01-1536x834.png 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_01-150x81.png 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_01-300x163.png 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_01-768x417.png 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/02\/pandoc_01.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">DOCX \u2192 Markdown<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pandoc muster-text.docx -t markdown -o muster-text.md<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">So entstehen schnell bearbeitbare Texte f\u00fcr gemeinsame Projekte oder strukturierte Archivierung.<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\">Ein Dokument, viele Formate<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ein einzelner Text kann parallel in mehreren Ausgabeformaten erstellt werden:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pandoc muster-text.md -s -o muster-text.html   # HTML\npandoc muster-text.md -s -o muster-text.pdf    # PDF\npandoc muster-text.md -s -o muster-text.epub   # E-Book<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Nach jeder Bearbeitung gen\u00fcgt eine kurze Terminalausf\u00fchrung, um alle Versionen aktuell zu halten.<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\">Pfade und Arbeitsverzeichnisse<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pandoc arbeitet flexibel mit Pfadangaben, unabh\u00e4ngig vom aktuellen Arbeitsverzeichnis.<br>Dies ist besonders hilfreich, wenn Dokumente auf verschiedenen Laufwerken oder in Netzpfaden gespeichert sind.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Innerhalb des Dokumentenordners:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd ~\/Dokumente\npandoc text.md -o text.pdf<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Mit absoluten Pfaden:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pandoc \/home\/user\/texte\/text.md -o \/home\/user\/pdf\/text.pdf<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Mit relativen Pfaden:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pandoc texte\/text.md -o export\/text.pdf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Somit l\u00e4sst sich ein Dokument immer dort erzeugen, wo es ben\u00f6tigt wird \u2013 unabh\u00e4ngig vom aktuellen Terminalstandort.<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\">Integration in Linux-Texteditoren<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pandoc arbeitet systemweit und l\u00e4sst sich flexibel erweitern.<br>Es besitzt keine eigene Benutzeroberfl\u00e4che, kann aber mit verschiedenen Editoren kombiniert werden:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8211; Vim, Emacs, VS Code, Kate: Plugins erm\u00f6glichen Exportfunktionen per Tastenk\u00fcrzel.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8211; Dateimanager wie Nautilus oder Dolphin: Konvertierung per Rechtsklick \u00fcber Skripte.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8211; Automatisierung: Regelm\u00e4\u00dfige Konvertierungen lassen sich \u00fcber Shell-Skripte, Makefiles oder Zeitsteuerungen (Cronjobs) realisieren.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So w\u00e4chst Pandoc mit dem pers\u00f6nlichen Workflow mit &#8211; von der einfachen Terminalkonvertierung bis zur vollautomatisierten Textpipeline.<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\">Fazit<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pandoc ist unter Linux ein universell einsetzbares Werkzeug f\u00fcr die Textverarbeitung.<br>Mit einer einzigen Markdown-Datei lassen sich problemlos PDFs, Word-Dokumente, Webseiten oder E-Books erzeugen.<br>Ob mit LaTeX im Hintergrund oder \u00fcber alternative PDF-Engines \u2013 Pandoc bietet f\u00fcr jeden Anspruch eine passende L\u00f6sung und l\u00e4sst sich sowohl in einfache als auch in komplexe Arbeitsumgebungen integrieren.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Titelbild: <a href=\"http:\/\/www.freepik.com\">Designed by Freepik<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bei der t\u00e4glichen Arbeit mit Texten entstehen oft unterschiedliche Anforderungen: Notizen liegen als Markdown-Dateien vor, Kolleginnen und Kollegen ben\u00f6tigen Word-Dokumente, Ver\u00f6ffentlichungen verlangen PDF, und f\u00fcr Websites ist HTML gefragt.Pandoc l\u00f6st diese Aufgabe effizient. Das Open-Source-Werkzeug l\u00e4uft stabil unter Linux, wandelt Texte flexibel zwischen vielen Formaten um und funktioniert unabh\u00e4ngig von festen Arbeitsverzeichnissen. Was ist Pandoc? [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":22538,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[602],"tags":[1506,520,1505,1507,1504,88],"class_list":["post-22528","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-konverter","tag-docx","tag-konvertieren","tag-markdown","tag-odt","tag-pandoc","tag-pdf"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/22528","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=22528"}],"version-history":[{"count":8,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/22528\/revisions"}],"predecessor-version":[{"id":22541,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/22528\/revisions\/22541"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/22538"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=22528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=22528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=22528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}