Bug 389488 - Quick preview fails if preamble files are included from subdirectory
Summary: Quick preview fails if preamble files are included from subdirectory
Status: RESOLVED WORKSFORME
Alias: None
Product: kile
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.9.91
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-26 23:46 UTC by Simone Gaiarin
Modified: 2022-12-15 05:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Example project to test the bug (582 bytes, application/gzip)
2018-01-26 23:46 UTC, Simone Gaiarin
Details
Patch to fix error in quickpreview when including subdocuments (2.13 KB, patch)
2018-01-27 11:27 UTC, Simone Gaiarin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simone Gaiarin 2018-01-26 23:46:41 UTC
Created attachment 110139 [details]
Example project to test the bug

If the part of the preamble is included from a subdirectory:

\include{pre/preamble} 

the quick preview fails. 


If instead it is included from the root

\include{preamble} 

it works.

Possibly related: #310503
Comment 1 Simone Gaiarin 2018-01-27 11:27:35 UTC
Created attachment 110148 [details]
Patch to fix error in quickpreview when including subdocuments

The problem is more extended. If the preview file contains any type of subdocument it will fail.

For example if I try to compile a figure environment this will fail because it cannot include the picture.

The problem is that the preview.tex file is created in a temporary directory in /tmp so that it does not see the rest of the latex tree files.

The attached patch solves the problem by creating the preview.tex file in the latex project root folder.

TODO: Clean preview files at the end
Comment 2 Simone Gaiarin 2018-01-27 11:54:07 UTC
QuickPreview in bottom bar generates the output files in the same directory as the file preview.tex, so also those files need to be properly removed after use.
Comment 3 Justin Zobel 2022-11-15 22:58:29 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 4 Bug Janitor Service 2022-11-30 05:14:55 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2022-12-15 05:15:01 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!