Convert to Html does not work due to 'mode'

Open
#671 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp, latex
Domain
desktop

Research direction

Start in src/webpublishdialog.cpp at the referenced lines around 518 and 665, then reproduce the Convert to HTML failure with a file named main.tex. Trace how the input filename becomes the LaTeX command argument and verify that conversion completes using the correct filename without the unexpected mode text.

Written by the indexing model from the issue text.

Description

Hi,

I'm trying to use the Convert to HTML function, but came across a "bug" which prevents the converter to find the correct file.

I named my latex file main.tex

Trying to convert gives me the following error:

Compiling input file. Please wait...
  Running this command: latex -src -interaction=nonstopmode "main_content".tex
Error : a process has failed
Fatal error : LaTeX errors detected.

Looking at the source code it seems that the name of the file is appended with a "mode" paramteter. i do not know why and what this is.

https://github.com/texstudio-org/texstudio/blob/5e45554eeabee2f6e39aa9a29b75ebc38d6fb156/src/webpublishdialog.cpp#L518

https://github.com/texstudio-org/texstudio/blob/5e45554eeabee2f6e39aa9a29b75ebc38d6fb156/src/webpublishdialog.cpp#L665

Dominant language
C++
Stars
3.6k
Forks
403
Avg merge
3h 14m
Merged PRs (30d)
12

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from texstudio-org/texstudio

All issues in texstudio-org/texstudio

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.