Giter Club home page Giter Club logo

pandoc-unicode-math's People

Contributors

ericphanson avatar fynnlyte avatar marhop avatar pilattebe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pandoc-unicode-math's Issues

posix_spawnp: does not exist using the plugin with pandoc on nixos

Hi,

I get this error when I try to run the plugin in nixos:

$ pandoc --from=markdown --to=pdf --filter pandoc-unicode-math -o test.pdf test.md 
Error running filter pandoc-unicode-math:
pandoc-unicode-math: createProcess: posix_spawnp: does not exist (No such file or directory)

I am using the last binary 1.23;

Enhancement: add whitespace

The plugin works great so far with xelatex and my Unicode input via Neo2. However, it requires some discipline that is not needed when working directly with xelatex, e.g. when typing:

$$
λe^{-λx}
$$

the output won't compile as it generates:

$$
\lambdae^{-\lamdbax}
$$

I'd suggest adding a whitespace after each replaced unicode symbol if it is followed by another letter / not followed by a whitespace or control symbol.

Add ≈ sign

This is:

  • Unicode Character 'ALMOST EQUAL TO' (U+2248)
  • Latex \approx

Confusion around Ω and Ω

Expected behavior

  • Ω should be translated to \Omega
  • Ω should be translated to \si{\ohm} BUT it would require the \usepackage{siunitx} package

Actual behavior

When outputting a pdf:

  • Ω OHM SIGN is translated to \Omega then to Ω GREEK CAPITAL LETTER OMEGA, which is wrong but acceptable.
  • But Ω GREEK CAPITAL LETTER OMEGA is not translated to \Omega then to Ω GREEK CAPITAL LETTER OMEGA, which is bad because it makes pandoc compilation fail.

Solution

I propose that we do not use \si{\ohm} to avoid unnecessary dependencies and that we instead map everything to \Omega Ω GREEK CAPITAL LETTER OMEGA.

Caveats

This will mean multiple characters map to one so the conversion will be lossy, so converting backward will be impossible for Ω OHM SIGN.

Expanded UnicodeMath support

Is there any possibility you might expand this plugin to support UnicodeMath syntax more broadly? I really prefer the nearly-plain-text syntax of Unicode, especially for things like fractions, to LaTeX.

Confusing documentation: '$$' sequence needed to make this work

A bit of a minor issue, but what wasn't clear from the documentation was that you need to envelop any unicode characters with $ <unicode goes here> $ before the plugin picks them up. Only after looking at the example file, did I realise the problem.

A suggestion would be to mention this in the Readme.

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.