Skip to content

Welcome to latextomd

Features

Easy to Use

latextomd was designed from the ground up to be easily installed and used to convert your latex files to markdown and running quickly.

TikZ and PsTricks

latextomd convert Tikz and PsTricks environnements in .jpg, and insert tags in markdown file.

Mkdocs admonition

latextomd can convert some LateX blocs in mkdocs admonition !

Install dependencies

latextomd need some externals dependencies

Install with PIP

pip install latextomd

Test your installation

  1. Create a latex file: sample-tikz.tex
\documentclass{article}
\usepackage{tikz}
\begin{document}
  \begin{tikzpicture}
  \draw[thick,rounded corners=8pt] (0,0) -- (0,2) -- (1,3.25)
   -- (2,2) -- (2,0) -- (0,2) -- (2,2) -- (0,0) -- (2,0);
  \end{tikzpicture}
\end{document}
  1. Then run in a terminal, in the previous file folder:
latextomd sample-tikz.tex
  1. It will produce sample-tikz.md and sample-tikz-0.jpg

sample-tikz.tex

\documentclass{article}
\usepackage{tikz}
\begin{document}
  \begin{tikzpicture}
  \draw[thick,rounded corners=8pt] (0,0) -- (0,2) -- (1,3.25)
   -- (2,2) -- (2,0) -- (0,2) -- (2,2) -- (0,0) -- (2,0);
  \end{tikzpicture}
\end{document}

sample-tikz.md

![image](./sample-tikz-0.jpg)

sample-tikz-0.jpg

image