LaTeX to markdown compiler
convert extended markdown syntax to compilable latex file.
see example:
# hello!
>Hirkoki
Niceto Meet you!
$$
f(x) = x^2
$$
is converted to
\section{hello!}
\begin{quote}
Hirkoki
Niceto Meet you!
\end{quote}
\begin{gather}
f(x) = x^2
\end{gather}
$ wget https://github.com/face9363/md4latex/releases/download/0.1/md4tex.jar
$ chmod 777 md4tex.jar
$ ./md4tex.jar path/to/yourfile
$ javac -sourcepath ./ -d classes src/Main.java
$ jar cvfm md4tex.jar MATE-INFO/MANIFEST.MF -C classes .
$ java -jar md4tex.jar path/to/yourfile
md |
tex |
# |
\section{} |
## |
\subsection{} |
### |
\subsubsection{} |
#### |
\paragraph{} |
##### |
\subparagraph{} |
md |
tex |
$f(x)$ |
$f(x)$ |
$$f(x)$$ |
\begin{gather} f(x) \end{gather} |
$$$f(x)$$$ |
\begin{align} f(x) \end{align} |
md |
tex |
>Hello |
\begin{quote} Hello \end{quote} |
md |
tex |
``` print("Hello") ``` |
\begin{lstlisting} print("Hello") \end{lstlisting} |
md |
tex |
![great](img/src.jpg_lab) |
\begin{figure}[H] \centering \includegraphics[width=8cm]{img/src.jpg} \caption{great!} \label{lab} \end{figure} |
not been suppported 😢
- auto dependency injection
- auto include partial tex file(see example)