Giter VIP home page Giter VIP logo

md4latex's Introduction

LaTeX to markdown compiler

convert extended markdown syntax to compilable latex file.

logo

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}

quick use

$ wget https://github.com/face9363/md4latex/releases/download/0.1/md4tex.jar
$ chmod 777 md4tex.jar
$ ./md4tex.jar path/to/yourfile

compile from source

$ javac -sourcepath ./ -d classes src/Main.java
$ jar cvfm md4tex.jar MATE-INFO/MANIFEST.MF -C classes .
$ java -jar md4tex.jar path/to/yourfile

usage

Headline

md tex
# \section{}
## \subsection{}
### \subsubsection{}
#### \paragraph{}
##### \subparagraph{}

Math

md tex
$f(x)$ $f(x)$
$$f(x)$$ \begin{gather} f(x) \end{gather}
$$$f(x)$$$ \begin{align} f(x) \end{align}

Quote

md tex
>Hello \begin{quote} Hello \end{quote}

Code

md tex
``` print("Hello") ``` \begin{lstlisting} print("Hello") \end{lstlisting}

Image

md tex
![great](img/src.jpg_lab) \begin{figure}[H] \centering \includegraphics[width=8cm]{img/src.jpg} \caption{great!} \label{lab} \end{figure}

Table

not been suppported 😢

Other function

  • auto dependency injection
  • auto include partial tex file(see example)

md4latex's People

Contributors

mu2chn avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.