Git Product home page Git Product logo

etex's Introduction

nxe (they/them) ๐Ÿณ๏ธโ€๐ŸŒˆ๐Ÿณ๏ธโ€โšง๏ธ

Hej

my name is nxe (pronounced nix). i study computers because i can and you cant stop me, and write a lot from scratch because i can and you cant stop me

ive moved to gitlab except when i have to use github

okay bye

etex's People

Contributors

rosiepuddles avatar

Watchers

 avatar

etex's Issues

Default class addition

When adding a thing, can it be made so if it's not a class that inherits from _main, default to make it text?

Code class docs

since the code class uses minted, and this has some pre-requisite installations, these need to be included in the code class documentation.
Possible also include a how to install the required things as well?

Text \text{} check

Need to check if there's a $ in the text input and if there is, check if there's a \text{} in there. If there is change the packages list

Can we turn it into/add a file interpreter?

Having been using it for some time, it's dawned on me that it's not that easy to use with brackets all over the place and very difficult to follow. So, could we instead have a file interpreter? Make a new file type .etex that's a raw text file just with a different extension, or just use a .txt file, and have specific syntax that generates latex code from it and compiles it?

plot tick spacings

For the plots, add a method that, given a numeric value and a range, will generate the tex code for the ticks. Same for minor ticks.

Control * imports

Need to find how to use __all__ to control what classes and variables get imported when from ETeX.main import * is called

generate_TeX optimisation

Since the generate_TeX method of the plot class starts by just adding string if a variable exists, see if you can loop through all the stored variables using dict(self.__dict__.items()) and check if a variable is in the keys of another dictionary, and if so get the tuple value of that variable and put the value of the variable in between them. For example:

plot_generate_TeX = {'title': ('title={', '}'), 'samples': ('samples=', ''), ... }

So when checking through dict(self.__dict__.items()).keys() if the current key is in plot_generate_TeX.keys() then:

for i in dict(self.__dict__.items()).keys()
    if i in plot_generate_TeX.keys():
        given += f'{plot_generate_TeX[i][0]}{dict(self.__dict__.items())[i]}{plot_generate_TeX[i][1]}'

It would also probably be quicker to assign dict(self.__dict__.items()) to a local single use variable so that the code doesn't have to constantly make the dictionary maybe. It would also look a bit neater.

Section contents entries

Each section and figure can have a certain title, and a table of contes entry such as below:
\section[Table of contents entry]{Heading title}
Add this as a option?

Add unique section labels

Add a \label part to the generate_TeX method of the _section class in the style:
\label{{sub*}sec:{section_name}}
The section_name used MUST be unique and if not unique add numbers on to the end. For example:

  • TestSection

  • TestSection001

  • TestSection002
    etc.
    The section_name must also not have any spaces or special characters that might break something:

  • \

  • /

  • %

  • $

Package handling

since the packages were updated to included conditions before the package name and commands after all packages were included there has been a large error made. If several packages are added to the document, if two are the same but contain different postPre text, then the postPre text from the second, and any subsequent packages of the same name, will be excluded since the package has already been added. This could lead to large errors and NEEDS fixing

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.