Inclusion of external files doesn't work properly

Bug #186137 reported by Gianluca Borello
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
texmaker (Debian)
Fix Released
Unknown
texmaker (Ubuntu)
Fix Released
Medium
Luca Falavigna

Bug Description

Binary package hint: texmaker

When I click on one of the three functions to include a file (Latex Menu/ include-input-includegraphics), a file chooser window is opened, and when I select a file to include its path is not reported correctly, for example:

My master document is ~/projects/document.tex
If i choose to include the image ~/projects/images/picture.png, the program generates the output \includegraphics{picture.png} while the correct string should be \includegraphics{images/picture.png}.
I attached a very simple patch that calculate the relative path between the document and the file being included (I found the algorithm from Kile's sources).

Related branches

Revision history for this message
Gianluca Borello (g.borello) wrote :
Revision history for this message
Daniel Holbach (dholbach) wrote :

To get your fix included in Ubuntu, try transforming it into a debdiff (http://wiki.ubuntu.com/PackagingGuide/Recipes/Debdiff) and submitting it for review (http://wiki.ubuntu.com/SponsorshipProcess).

Changed in texmaker:
status: New → Incomplete
Revision history for this message
Daniel Holbach (dholbach) wrote :

Setting to In Progress.

Changed in texmaker:
status: Incomplete → In Progress
Changed in texmaker:
assignee: nobody → warp10
importance: Undecided → Medium
Revision history for this message
Andrea Colangelo (warp10) wrote :

Debdiff based on Gianluca's patch + some minor fix. Built, installed and tested.
I am going to open a bug report on Debian too.

Changed in texmaker:
assignee: warp10 → nobody
status: In Progress → Confirmed
Changed in texmaker:
status: Unknown → New
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Uploaded, thanks ;)

Changed in texmaker:
assignee: nobody → dktrkranz
status: Confirmed → Fix Committed
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

texmaker (1.6-1ubuntu2) hardy; urgency=low

  * debian/patches/10_external_files_inclusion.dpatch: add patch to calculate
    the relative paths between a document and the file being included
    (LP: #186137). Thanks to Gianluca Borello for the patch.
  * Add dpatch patchsystem:
    + debian/control: add dpatch as build-dep;
    + debian/rules: add dpatch support;
    + debian/patches/00list: create and update.
  * debian/rules: modify dh_iconcache call to dh_icons.
  * debian/texmaker.desktop:
    + remove deprecated "Encoding" field;
    + remove duplicated "Icon" field
    + remove deprecated value "Application" in "Categories" field.

 -- Andrea Colangelo < <email address hidden>> Fri, 07 Mar 2008 18:04:27 +0100

Changed in texmaker:
status: Fix Committed → Fix Released
Revision history for this message
Jan Groenewald (jan-aims) wrote :

I still have this behaviour on jaunty September 2009, graphics are included
with only the filename and no path.

Changed in texmaker (Debian):
status: New → Fix Released
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.