Giter VIP home page Giter VIP logo

latextools's Introduction

Hi, I'm an engineer, architect, and artist. I currently build quantum computers at QuEra Computing and in my free time, I create computer-generated art and integrate interactive programming into everything I make.

I open source my projects and tools for other to use in their artwork, education, and other projects. Check them out below!

Featured Python and Julia packages

Art

  • drawsvg — Programmatically generate vector SVG drawings, animations, and interactive Jupyter widgets
  • hyperbolic — Construct, draw, and manipulate hyperbolic geometry
  • latextools — Conveniently build, render, and convert Latex documents and figures
  • alime — Fancy animated anti-bot email obfuscation for your website
  • InteractiveAudio.jl — Generate and play audio while dynamically changing the underlying code in real time

Quantum Computing

Education

and many more...

See also: my website, robotics projects

latextools's People

Contributors

cduck avatar dabacon avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

skylook dabacon

latextools's Issues

AttributeError: partially initialized module 'latextools' has no attribute 'render_snippet'

OS: Fedora 35
Python: 3.10

Attempting to run the first example yields

Traceback (most recent call last):
  File "/home/USER/scratch/latex2svg/latextools.py", line 1, in <module>
    import latextools
  File "/home/USER/scratch/latex2svg/latextools.py", line 4, in <module>
    latex_eq = latextools.render_snippet(
AttributeError: partially initialized module 'latextools' has no attribute 'render_snippet' (most likely due to a circular import)

"! I can't find file" at latex compilation on Windows

Dear Casey,

Thank you for providing latextools and drawSvg.

I have a functionnal install following the readme instructions:

  • pdflatex is functional
  • inkscape is in the path
  • svg.sty is installed and I can invoke inkscape extraction directly calling pdflatex from the command prompt

Neverthless, when running the examples, latex compilation fails on my machine. Here is the result with the first example on the readme page:

Traceback (most recent call last):
  File "C:\Users\arthur.lebee\ownCloud\Enseignement\MECST\MECST_Cours\Polycopie\Animations\EssaiLtools1.py", line 24, in <module>
    pad=1,
  File "C:\Users\arthur.lebee\AppData\Local\Continuum\anaconda3\lib\site-packages\latextools\shortcuts.py", line 42, in render_snippet
    '-shell-escape'])
  File "C:\Users\arthur.lebee\AppData\Local\Continuum\anaconda3\lib\site-packages\latextools\project.py", line 97, in compile_pdf
    **pdf_args)[0]
  File "C:\Users\arthur.lebee\AppData\Local\Continuum\anaconda3\lib\site-packages\latextools\project.py", line 108, in compile_pdf_batch
    **pdf_args)
  File "C:\Users\arthur.lebee\AppData\Local\Continuum\anaconda3\lib\site-packages\latextools\project.py", line 117, in compile_pdf_batch
    self.run_pdflatex(fpath, cwd=tmp_dir, options=options)
  File "C:\Users\arthur.lebee\AppData\Local\Continuum\anaconda3\lib\site-packages\latextools\project.py", line 185, in run_pdflatex
    raise LatexError(msg)
latextools.project.LatexError: This is pdfTeX, Version 3.141592653-2.6-1.40.24 (MiKTeX 22.3) (preloaded format=pdflatex.fmt)
 \write18 enabled.
entering extended mode
! I can't find file `C:/Users/ARTHUR'.
<to be read again>
                   \protect
<*> C:/Users/ARTHUR~
                    1.LEB/AppData/Local/Temp/tmpkfvlisip/main.tex
(Press Enter to retry, or Control-C to exit)
Please type another input file name
! Emergency stop.
<to be read again>
                   \protect
<*> C:/Users/ARTHUR~
                    1.LEB/AppData/Local/Temp/tmpkfvlisip/main.tex
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on texput.log.

I tried my best to find out if the temp directory and its files to be compiled are actually created or not. As everything is wiped out after execution, I could not figure out.

Any suggestion?

Best Regards

Arthur

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.