Latex export option does not work with images with dots in their filenames

Bug #1460453 reported by nesuribe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RedNotebook
Triaged
Medium
Unassigned

Bug Description

I'm running version 1.10.1. When exporting to latex, I get this type of output in the tex file:

\includegraphics[width=600px]{"[filename]".jpg}

which unfortunately does not work if [filename] contains dots, which is actually pretty usual in some situations (e.g. photo filename contains date and time it was taken).

As simple fix to make it work is to enclose the filename, not only in double quotes, but in curly braces as well:

\includegraphics[width=600px]{{"[filename]"}.jpg}

in this way pdflatex only looks for the extension AFTER the curly braces close. I think this should be a pretty benign fix. I would love to create a patch if I had some guidance (never done it before, not very knowledgeable in programming)

Tags: images latex
Revision history for this message
Jendrik Seipp (jendrikseipp) wrote :

Thanks for the report! If you want, have a look at https://answers.launchpad.net/rednotebook/+faq/1980 and https://answers.launchpad.net/rednotebook/+faq/1925 to find out how to create a patch. For this bug, you will have to edit the file rednotebook/util/markup.py.

Changed in rednotebook:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Rikard Edgren (rikard-edgren) wrote : Re: something cool

Hello!

I just wanted to show you something really cool, just take a look http://gymnalife.org/whom.php?1213

Good wishes, rikard.edgren

Revision history for this message
Rikard Edgren (rikard-edgren) wrote : Re: information

Greetings,

Here is information you may find worth thinking, it is very interesting, please read more here http://smartsem.no/vital.php?7978

Faithfully, rikard.edgren

From: Bug 1460453 [mailto:<email address hidden>]
Sent: Friday, April 28, 2017 9:50 PM
To: <email address hidden>
Subject: That is not a video

It's funny you say that, because that voice was exactly what pulled me into the "scare zone". I don't think I've ever been genuinely scared by a movie before (though admittedly, I don't watch horror movies often, and only went to the Babadook because a friend had an extra ticket to a midnight screening and I had heard good things), but that voice did it for me. One thing that everyone who went with us to see it agreed on was that while a lot of the things in the movie were pretty standard horror movie tropes, the beauty was in how well they were executed.

I also think immersion was key to the movie (I mean, immersion is key to pretty much every movie, but even moreso for this one, I think). The first time I saw it was in a pretty standard theater, but the second time was in a 14-seat room on a relatively small screen without surround sound, and it was underwhelming.

Sent from Mail for Windows 10

Revision history for this message
Rikard Edgren (rikard-edgren) wrote : don't miss that cool stuff

Hey!

look what I've just found on the web! This stuff is super cool, just check it out http://www.en.sarmadteb.com/wp-content/themes/silver-spot/hook.php?a1a0

Regards, rikard.edgren

Sent from Mail for Windows 10

Revision history for this message
Rikard Edgren (rikard-edgren) wrote : ❣simply the best place)

Hi!

I've visited a really nice place recently, honestly it's the best place I've ever been to! Please take a look http://step.lyingprophet.com

Bests, rikard.edgren

From: Bug 1460453 [mailto:<email address hidden>]
Sent: Wednesday, May 24, 2017 12:47 PM
To: <email address hidden>
Subject: Go Buckeyes

Personally, I just want everyone to get along and my views are flexible. I have friends who are atheist, jew, muslim, etc......if you're cool, we have intelligence in common, can talk over some good food and maybe a kraft beer, then we can be friends.

I'm just telling you the views of Europeans. They grow up in a certain way and see all these Muslims moving in and segregating themselves and they don't lime it. Euro countries tend to have some purist and strong nationalist tendencies, whereas in the states the whole setup there is constant immigration and all sorts of folks mixing, they're usedto it there

Sent from Mail for Windows 10

Revision history for this message
Rikard Edgren (rikard-edgren) wrote : ✈Re: this is simply the coolest stuff ever

Hi friend!

Just wanted to show that cool stuff I've just found, I'm simply amazed) take a look http://tk.ehipassikoschool.sch.id/frame.php?f0f1

Kristine Redman

Revision history for this message
Rikard Edgren (rikard-edgren) wrote : omg! extremely useful stuff

Dear!

I came across some extremely useful products and it was a genuine discovery for me, just test it out for! You might find more info here http://www.allfullcontact.com/sites/default/files/styles/rumor.php?UE8xNDYwNDUzQGJ1Z3MubGF1bmNocGFkLm5ldA--

Warm regards, Mable Coulter

-

Your use of any information or materials on this website is entirely at your own risk, for which we shall not be liable. It shall be your own responsibility to ensure that any products, services or information available through this website meet your specific requirements. This website contains material which is owned by or licensed to us. This material includes, but is not limited to, the design, layout, look, appearance and graphics.

Revision history for this message
Rikard Edgren (rikard-edgren) wrote : ☯wow an important piece of information

Dear friend!

Here is some important information I've picked specifically for you, you may read it here http://www.nieuwpapier.nl/drinking.php?UE8xNDYwNDUzQGJ1Z3MubGF1bmNocGFkLm5ldA--

Looking forward, Patrick Paul

From: Bug 1460453 [mailto:<email address hidden>]
Sent: Monday, October 30, 2017 1:26 PM
To: <email address hidden>
Subject: a severed finger.

$30 for software that is openly free?
Look up SoftPerfect RAM Disk its 100

Sent from Mail for Windows 10

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.