Giter Site home page Giter Site logo

texer's Introduction

texer

Build Status Coverage Status bitHound Overall Score

Replaces macros in .tex files based on a set of rules you define

testing

To run the tests run

npm test

for coverage tests use

npm run-script coverage

texer's People

Contributors

physikerwelt avatar notjagan avatar

Watchers

James Cloos avatar Howard Cohl avatar

Forkers

notjagan

texer's Issues

Implement macro replacement for \pochhammer{a}{n}

From @HowardCohl on July 15, 2015 18:22

If you have some math in LaTeX such as

(a)_n this string should be replaced by \pochhammer{a}{n}.

Similarly

\left(a\right)_n 
\Biggl(a\Biggr)_n
(a)_{n}
(a)_{{n}}
(\mu)_\alpha

as well as

(\;a)_{\ n}

should also be replaced by \pochhammer{a}{n}

\left( and \Biggl( are all ways to represent parentheses.
; and \ are space delimiters and should be ignored.

Copied from original issue: DRMF/texvcjs#10

Replace sinh x with \sinh@@{x}

From @HowardCohl on August 11, 2015 20:3

There are also equivalents such as:

\sinh\alpha -> \sinh@@{\alpha}
\sinh\,x -> \sinh@@{x}
\sinh\!x ->\sinh@@{x}

(Claude is currently working on this, so we felt we should create an issue.)

Copied from original issue: DRMF/texvcjs#18

Generate test cases

We need to generate test cases for texer @notjagan

@physikerwelt could you clarify how this could be formatted/inputted in to the program (if that matters) and how we might implement this?

Parse lists in LaTeX macros

At the moment, we have macros that use lists of elements surrounded by parentheses and delimited by semicolons/commas. These elements are sometimes not covered by lit; for example, \cos\tha is not matched since it is two literals chained together.

As such, using lit in the auto-generated rule doesn't find occurrences of the macro when a case like this appears.

We attempted to create a new rule that accepted such lists and added it as an option to lit but the return types were radically different and the program was unable to handle the lists properly.

As of now, we aren't sure of how we should approach a fix to this problem.

@physikerwelt @HowardCohl

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.