Giter Club home page Giter Club logo

Comments (7)

wanglongqi avatar wanglongqi commented on May 29, 2024

Please share a screenshot on the input.

from writetex.

haohaoxiao avatar haohaoxiao commented on May 29, 2024

default
default

from writetex.

wanglongqi avatar wanglongqi commented on May 29, 2024

If you remove the preamble, what will happen?

You can also comment out these lines and check the temporary folder to see what happened.

from writetex.

haohaoxiao avatar haohaoxiao commented on May 29, 2024

The problem is the variable tmp_dir passed to command xelatex.
The user name of my computer exceeds 8 characters. So the 'username' in the tmp_dir variable uses the short format "haohao~1" insteadly.

However, for some reason, the variable tmp_dir passed to xelatex contains some spaces between ~ and 1. That's why xelatex throwed an error when reading the 'writetex.tex' file.

I changed the system's temp varible to another directory for the time being and writetex works again.

from writetex.

wanglongqi avatar wanglongqi commented on May 29, 2024

Thanks for updating. Do not know how xelatex handles the short format path. If you find a solution for this issue, please make a PR. Thanks!

from writetex.

haohaoxiao avatar haohaoxiao commented on May 29, 2024

It's not the problem of xelatex. I have tried the command "xelatex c:\user\haohao~1.......writetex.tex", and xelatex works well.

The problem is the variable 'tmp_dir' passed to xelatex seems like:
`c:\user\haohao~
1......writetex.tex'

So xelatex just got the contents before 1.

from writetex.

wanglongqi avatar wanglongqi commented on May 29, 2024

I cannot find similar issue on internet. Python's mkstemp seems working correctly. If you have time, please try to find out a valid command by using custom latex command function.

from writetex.

Related Issues (20)

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.