bugGNU TeXmacs - Bugs: bug #56675, \center does not work as the last...

 
 

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

bug #56675: \center does not work as the last item with beamer style.

Submitted by:  EFanZh <efanzh>
Submitted on:  Fri 26 Jul 2019 05:41:56 AM UTC  
 
Category:  Editor Priority:  5 - Normal
Item Group:  None Status:  Confirmed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  1.99.9 Release:  None
Fixed Release:  None Fixed Release: 
Keywords: 

Wed 16 Oct 2019 05:12:25 PM UTC, comment #3: 

Ooops, commenting `notify-new-style` is not enough to fix the bug.

Turn on "texmacs->pdf:expand slides" will prevent it when exporting to PDF.

Just click Edit -> Preference -> Convert -> PDF -> Expand beamer slides to turn it on.

And there are some other problems when using the \center macro.

For example,

<center|content><new-line>

will not work.

Darcy Shen <sadhen>
Project Member
Wed 16 Oct 2019 04:55:10 PM UTC, comment #2: 

Using git-bisect, I found that this commit

https://github.com/texmacs/texmacs/commit/3dc6c07f5993bba782d803f0583d0cbbfb9107aa

is the root cause.

Commentting the `notify-new-style` in fold-menu.scm will fix the bug.

I looked into the code, but didn't find a nicer solution.

It seems for the last item, a `right-flush` will be automatically appended. And it will make `lazy_paragraph_rep::make_unit` exit early on the first if condition.

Darcy Shen <sadhen>
Project Member
Tue 15 Oct 2019 03:37:57 PM UTC, comment #1: 

Tests on macOS, 1.99.8 works fine, but 1.99.9 does not work fine.

Darcy Shen <sadhen>
Project Member
Fri 26 Jul 2019 05:41:56 AM UTC, original submission:  

Open the following document in TeXmacs:

<TeXmacs|1.99.10>

<style|beamer>

<\body>
  <screens|<\shown>
    <\center>
      Not centered
    </center>
  </shown>>
</body>

<initial|<\collection>
</collection>>

I expected the text being centered, but instead the text is on the left side.

EFanZh <efanzh>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by sadhen (Posted a comment)
  • -email is unavailable- added by efanzh (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-10-15 sadhen StatusNone => Confirmed
        Release => 1.99.9

    Back to the top


    Powered by Savane 3.5