New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Your LaTeX code has problems #48
Comments
I wonder, is your error message truncated? Is there anything after |
No, there's nothing after "RuntimeError: Your LaTeX code has problems:" |
I am getting the same error message.
I also tried to use install textext on my office computer. It also displays the same error message. Note: The error only occurs if |
@michaelhaar Thanks for the report! What is TexText version? Presumably pdflatex fails in unusual way, which makes (third-party) log parser fail to find the error to display. Newer version of TexText with a number of fixes is coming, but I think this issue may persist. |
@sizmailov TexText version is 0.8.1. The error doesn't depend on the text itself. It always gives the same error |
Can you create a tex file with following content and compile it from command line with pdflatex? one.tex: \documentclass{article}
\usepackage{amsmath,amsthm,amssymb,amsfonts}
\usepackage{color}
\pagestyle{empty}
\begin{document}
% ***Your code***
\end{document} two.tex: \documentclass{article}
\pagestyle{empty}
\begin{document}
% ***Your code***
\end{document}
Copy output here as markdown code blocks to avoid formatting. |
Output of one.tex (it wants to install the latex package
Output of two.tex:
|
Thanks! We are making progress. Default preamble file includes some packages which are not installed on your system. Presumably you may have them installed by compiling one.tex in MikTex GUI interface. It should have enough rights to do so. The file two.tex has no packages in preamble and goes well. If you choose empty preamble file in TexText it should produce the output. The parser fails to find any .tex file error, because there is no errors with tex file itself, its installation of package error. I think we get to the bottom of the problem. |
@michaelhaar Can you confirm next two points?
|
@jcwinkler Can we investigate it deeper? On the one hand we should not have in default preamble / .tex template anything beyond default installation. On another hand we can't remove the packages which are already here to maintain backward compatibility. Seems like something happened with tex distribution or packages. We probably should add functionality to show full latex log on demand. |
I can confirm the second statement 👍 |
@michaelhaar Good enough, thank you! |
@michaelhaar Did you install MiKTeX with the so-called "basic" installer or with the "net" installer?
returns the full path +filename to the package if it is installed and nothing if not. |
@jcwinkler I just downloaded the standard Miktex installer from here |
@michaelhaar Thank you. It explains why some packages are missing on your system. textext/extension/textext/__init__.py Lines 603 to 611 in 0935ae6
I suggest that we pass the full log file to |
Created #77, lets move discussion there. |
@JohnCovering Can you confirm the solution works for you too? |
Hello,
I tried to run TexText 0.8.1 with Inkscape 0.92.3 on Windows 10, but I got the following error when clicking on the Save button.$x$
The LaTeX code was :
With TexText 0.7.3 I don't have any error.
Your LaTeX code has problems:
Traceback (most recent call last):
File "asktext.py", line 599, in cb_ok
self._texcmd_cbox.get_active_text().lower())
File "textext.py", line 292, in callback
tex_cmd, original_scale=current_scale)
File "textext.py", line 393, in do_convert
new_svg_ele = converter.convert(text, preamble_file, scale_factor, tex_command)
File "textext.py", line 820, in convert
self.tex_to_pdf(tex_command, latex_text, preamble_file)
File "textext.py", line 763, in tex_to_pdf
raise RuntimeError("Your LaTeX code has problems:\n\n{errors}".format(errors=parsed_log))
RuntimeError: Your LaTeX code has problems:
The text was updated successfully, but these errors were encountered: