question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Toolchain doesn't support CJK path.

See original GitHub issue

A workaround is proposed in the comment (Jun. 16th). This problem is caused by LaTeX compilers who refuse to understand some of the excellent human languages.


When I configure the tool chain setting as:

// 将设置放入此文件中以覆盖默认设置
{
    "latex-workshop.latex.toolchain": [
    {
      "command": "xelatex",
      "args": [
        "-synctex=1",
        "-interaction=nonstopmode",
        "-file-line-error",
        "-pdf",
        "%DOC%"
      ]
    }
  ]
}

I faild to build the tex project. As a consequence I found the tex file is located in path containing chinese characters.

When I move it into pure english path, I got it works.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

8reactions
James-Yucommented, Jun 16, 2017

Confirmed @Hsins . pdflatex neither supports cjk path. Meanwhile, I’d recommend you replace all %DOC% in toolchain with %DOCFILE%, which only appends the relative path to the command. This point is noted in the readme, and I have tested it without problems.

Test screenshot: image

4reactions
shrinktofitcommented, Jun 1, 2017

Running the commands in cmd.exe gives right result 。

I found the path is actually messy code when I inspect output panel of Latex Workshop.

老铁你是中国人吗?用中文交流算了

Read more comments on GitHub >

github_iconTop Results From Across the Web

Supporting UTF-8 (and building R) on Windows
This experimental toolchain serves as a demonstration of this way to support UTF-8 on Windows. It may be used for experimenting with packages,...
Read more >
Java doesn't recognize Unicode character in path on Windows ...
Call javac passing the whole path like C:\Users\USERFOLER\PATH\TO\FILE\file.java. The error should appear. I've been stuck for days in this, if ...
Read more >
Standard Setup of Toolchain for Windows - ESP32
Limitation: the installation path of Python or ESP-IDF should not contain special characters (non-ASCII) unless the operating system is configured with “Unicode ......
Read more >
How to make XXXReader to support chinese file path under ...
Hello,this code: OBJReader reader=OBJReader::New(); reader->SetFileName(“c://user/用户/中文/model.obj”); //reader->SetFileName("/home/user/中文/model.obj"); ...
Read more >
67224 – UTF-8 support for identifier names in GCC
There is no "C99" character set in glibc libiconv (after all, it's not a character set at all). Converting extended characters to UCNs...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found