Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pandoc MD->Tex Wrapper #1

Open
hupili opened this issue Aug 25, 2012 · 6 comments
Open

pandoc MD->Tex Wrapper #1

hupili opened this issue Aug 25, 2012 · 6 comments

Comments

@hupili
Copy link
Owner

hupili commented Aug 25, 2012

  • substitute \href with \url, which seems more wider deployed.
  • substitute verbatim with Verbatim, which reserves indent better.
@hupili
Copy link
Owner Author

hupili commented Aug 25, 2012

  • Add default preambles to make the output compile-able.
  • Pre-processing figures.

@hupili
Copy link
Owner Author

hupili commented Aug 26, 2012

The "\href" is a more powerful notation. Use package, "\usepackage{hyperref}".

pandoc leave an extra "" at the end of item list.

@hupili
Copy link
Owner Author

hupili commented Aug 26, 2012

Two more flaws detected:

  • If the list notation is supplemented by more than 4 blanks, pandoc will translate it to verbatim. e.g.
   *      <- there are more than 4 blanks before words. 
  • The ordered list is output as
%\begin{enumerate}[1.]

The "[1.]" seems extra and just do not compile at my side, by default. I don't want to waste time tweaking it. It seems pandoc is not a good baseline to start. The HTML output of markdown translator looks well structured. Probably translate it to latex is easier.

@hupili
Copy link
Owner Author

hupili commented Sep 4, 2012

More trials:

  • There are some general parsing issues. By imposing some writing conventions, they can be avoided. e.g. 3rd header + immediate code embedding.
  • pandoc can convert md to pdf smoothly at most times. The flawed intermediate result (.tex) is annoying...

@hupili
Copy link
Owner Author

hupili commented Sep 4, 2012

  • pandoc can automatically deal with formulae! Depending on the output, it uses different strategies. e.g. for pdf, fully parsing using tex facilities; for html, use special character set if possible, o/w show it literally.

@hupili
Copy link
Owner Author

hupili commented Sep 4, 2012

pandoc:

  • Can not handle remote figures.
  • Try to parse texts in html tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant