bugGNU TeXmacs - Bugs: bug #60499, LaTeX preview does not work (with...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #60499: LaTeX preview does not work (with paths that contain spaces)

Submitter:  Giovanni Piredda <pireddag>
Submitted:  Sun 02 May 2021 03:59:01 PM UTC
   
 
Category:  Conversion Priority:  5 - Normal
Item Group:  None Status:  Ready For Test
Privacy:  Public Assigned to:  vdhoeven
Originator Name:  Open/Closed:  Open
Release:  None Release:  1.99.19
Fixed Release:  None Fixed Release: 
Keywords: 

Thu 06 May 2021 07:14:57 PM UTC, comment #3: 


comment #2:

> Tentative fix in revision 13499.
>
> Please test ASAP.
>


It works in 1.99.20

Both the current and the previous version of the "preview LaTeX" command overwrite without prompting for confirmation the .tex exported file in the parent directory of the open file.
This is also the directory where one would export by default the LaTeX file with File->Export->LaTeX.
Would it be safer to make the LaTeX preview command act on temporary files in the .TeXmacs/system/tmp directory (like the File->Preview command)?

Giovanni Piredda <pireddag>
Wed 05 May 2021 11:31:03 AM UTC, comment #2: 

Tentative fix in revision 13499.

Please test ASAP.

Joris van der Hoeven <vdhoeven>
Group administrator
Sun 02 May 2021 04:09:09 PM UTC, comment #1: 

original submission:

> I am observing that no window with the pdf opens if I do Tools->LaTeX->Preview.
> I am guessing this happens with paths that contain spaces because:
> 1) The file gets converted to a LaTeX document that compiles
> 2) the debug output is
> TeXmacs] debug-shell, xdg-open: unexpected option '-'
> TeXmacs] debug-shell, Try 'xdg-open --help' for more information.
> 3) If I move a file to a path without spaces, then it works
>


Addition:
spaces tout-court are not interpreted well by xdg-open, which sees what comes after a space either as an option or as an argument.

Giovanni Piredda <pireddag>
Sun 02 May 2021 03:59:01 PM UTC, original submission:  

I am observing that no window with the pdf opens if I do Tools->LaTeX->Preview.
I am guessing this happens with paths that contain spaces because:
1) The file gets converted to a LaTeX document that compiles
2) the debug output is
TeXmacs] debug-shell, xdg-open: unexpected option '-'
TeXmacs] debug-shell, Try 'xdg-open --help' for more information.
3) If I move a file to a path without spaces, then it works

Giovanni Piredda <pireddag>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vdhoeven (Posted a comment)
  • -email is unavailable- added by pireddag (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-05-05 vdhoeven StatusNone Ready For Test
        Assigned toNone vdhoeven

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code