bugGNU TeXmacs - Bugs: bug #59540, beamer pdf export: graphics from...

 
 

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

bug #59540: beamer pdf export: graphics from executable folds not exported

Submitter:  Jeroen Wouters <jeronim>
Submitted:  Wed 25 Nov 2020 11:36:58 AM UTC
   
 
Category:  Conversion Priority:  5 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  None Release:  1.99.15
Fixed Release:  None Fixed Release: 
Keywords: 

Tue 23 Feb 2021 01:31:53 PM UTC, comment #3: 

From studying the source, it seems as if "keep-unfolded" is intended to be used inside of a "fold-back" tag, such that the folds inside of the "keep-unfolded" don't get folded back again at the end of traversing them. It seems as if there is an error in "fold-edit.scm". It should check for "keep-unfolded", not "keep-folded". See the attached patch.

As for the main problem of this bug report, I would suggest to add a "do-not-traverse" tag with which the user can choose not to fold or unfold the contents. This way users that would like to show the code behind a figure can use the bare script-input/script-output fold and users who only want to show the figure can fold it away and put a do-not-traverse tag around it.

Please see the attached patch for details.

(file #50912)

Jeroen Wouters <jeronim>
Group Member
Sat 20 Feb 2021 06:05:25 PM UTC, comment #2: 

The traversal of the slides as the pdf is prepared seems to be defined in "TeXmacs/progs/dynamic/fold-edit.scm", more precisely in the "process-screen" function which calls "dynamic-traverse-buffer".

I don't fully understand the code behind "dynamic-traverse-buffer", but I see that it checks for the presence of a "keep-folded" tag. This tag does not seem to be defined (I can't enter it as \keep-folded into a TeXmacs document).

On the other hand, a \keep-unfolded tag does exist and can be entered via the menu as Insert->Fold->Traversal->Keep Unfolded. Intuitively, I would expect this tag to keep its content folded, but it is not checked for in the "dynamic-traverse" function. If this is the intended function of "keep-unfolded", then this would be a good workaround for this bug, you could put executable folds into a "keep-unfolded" tag.

I was wondering if anyone could comment on the purpose of the "keep-unfolded", "keep-folded" and "fold-back" tags.

Jeroen Wouters <jeronim>
Group Member
Thu 17 Dec 2020 03:50:43 PM UTC, comment #1: 

After checking the "Expand beamer slides" in Preferences->Export->PDF the exported pdf does contain graphics.

This has the downside, however, that you loose the ability to use unrolling lists etc.

Jeroen Wouters <jeronim>
Group Member
Wed 25 Nov 2020 11:36:58 AM UTC, original submission:  

Most graphics included using Fold -> Executable don't get exported to pdf. They only show as a box with the text "Busy...". From the plugins I've tested only Graphviz produces some output.

Grpahics in sessions do produce output in the pdf.

Note also that the figure counters get incremented on every pdf page.

Jeroen Wouters <jeronim>
Group Member

 

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

Attached Files
file #50912:  do-not-traverse.diff added by jeronim (2KiB - text/x-patch)
file #50341:  pdf-export-beamer-fold.pdf added by jeronim (46KiB - application/pdf)
file #50342:  pdf-export-beamer-fold.tm added by jeronim (234KiB - text/x-texmacs.doc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jeronim (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-02-23 jeronim Attached File- Added do-not-traverse.diff, #50912
    2020-11-25 jeronim Attached File- Added pdf-export-beamer-fold.tm, #50342
    2020-11-25 jeronim Attached File- Added pdf-export-beamer-fold.pdf, #50341

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code