LyX(Win10) LyX and SumatraPDF: spaces in filename become underscores

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Stef Pillaert
Posts: 51
Joined: Sat Oct 22, 2016 3:43 pm

(Win10) LyX and SumatraPDF: spaces in filename become underscores

Post by Stef Pillaert »

Hello,
see the title of this topic. How can this be avoided?
Thanks,
Stef

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10343
Joined: Mon Mar 10, 2008 9:44 pm

(Win10) LyX and SumatraPDF: spaces in filename become underscores

Post by Stefan Kottwitz »

Hi Stef!

Can you tell more details? Does it happen in text, in captions, in verbatim text, or in listing environments?

Perhaps post a small LyX file here, that shows the issue, and a pdfLaTeX export file.

Stefan
LaTeX.org admin
Stef Pillaert
Posts: 51
Joined: Sat Oct 22, 2016 3:43 pm

(Win10) LyX and SumatraPDF: spaces in filename become underscores

Post by Stef Pillaert »

Sorry, I should have been more clear: when I have a file with the name "text version 1.lyx", and I use sumatraPFD as the viewer for LyX ("ctrl-R"), the output appears in sumatraPDF. But it appears as a file with the name "text_version_1.pdf". This is a bit annoying, esp. if I want to save the pdf from within sumatraPDF.
When I export directly from Lyx (via file menu->export in LyX, so without viewing in sumatrapdf), then this doesn't happen: I get a file "text version 1.pdf".
(Maybe Win10-related?)
Stef
Bruno2020
Posts: 1
Joined: Wed Dec 25, 2019 6:27 pm

(Win10) LyX and SumatraPDF: spaces in filename become underscores

Post by Bruno2020 »

Hello Stef,

you are not alone!

But this is neither Win10-related nor a problem of Sumatra: On my pc running Mint19.3 Cinnamon / texlive2019 / Lyx 2.3.3 (from ppa) / xreader, blanks and umlaut and "ß" in the name of a file are replaced by underscores - see attached Lyx-example and screenshot of the folder.

So it's either a bug in Lyx or an error in our settings.

Bruno2020
Attachments
screenshot.png
screenshot.png (15.32 KiB) Viewed 2404 times
Viele Grüße.lyx
(1.69 KiB) Downloaded 151 times
Post Reply