GithubHelp home page GithubHelp logo

latex_scripts's Introduction

Scripts

Some Python scripts to better work with TAMU Logic Daemon

Working definitions

Prerequisites

Regular expression module (embedded inside Python)

import re

Getting started

Howdy!

I started this as a fun way to save some time but found it to be quite valuable. I want to pass this on to anyone who is interested as there are several things that could be improved and added. I, unfortunately, do not have as much free time as I would like to work on this, so this is the perfect way to get some of those features added!

There are several files but I have mainly been working on the logic_to_latex.py as that is the most beneficial right now. I created a file for latex_to_logic.py which could be useful and the scripts.py which would be used as a command line interface with options.

The logic_to_latex.py opens the logic.txt file where I just copy and paste the logic text that I want to convert. It also imports logicDB.py which has the rules and conversions in it.

I'm sure there are better ways of doing almost all of this so I am excited to see what comes out of it. If you have any questions, let me know! My email is [email protected]

Known problems

  • Needs to be in correct form
    • No spaces in sentences (spaces are fine in first line)
      • TODO : leverage regex better to parse sentences and not have to remove spaces
    • Space between annotation set and annotation
      • TODO : this should be easy to split
    • Cannot have empty assumption set (e.g. axioms)
      • FIX: add a character place holder (e.g. 'x') and remove it later
      • TODO : find a fix for this
    • Top line should be: Premises (comma separated) |- Conclusion
P v Q, ~P v R |- Q v R
1       (1)   PvQ        A
2       (2)   ~PvR       A
1       (3)   ~Q->P      1 v->
2       (4)   P->R       2 v->
1,2     (5)   ~Q->R      3,4 HS
1,2     (6)   QvR        5 v->

latex_scripts's People

Contributors

philipritchey avatar

Stargazers

Luke Adams avatar

Watchers

James Cloos avatar Keaton Cheffer avatar

Forkers

philipritchey

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.