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.

Submitter:  EFanZh <efanzh>
Submitted:  Fri 26 Jul 2019 05:41:56 AM UTC
   
 
Category:  Editor Priority:  5 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  None Release:  1.99.9
Fixed Release:  1.99.12 Fixed Release:  1.99.12
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>
Group 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>
Group 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>
Group 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>

 

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

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)
  •  

    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 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-05-10 sadhen Open/ClosedOpen Closed
        Fixed ReleaseNone 1.99.12
    2020-01-26 sadhen StatusReady For Test Fixed
        Fixed Release2.1 1.99.12
    2019-10-17 sadhen StatusConfirmed Ready For Test
        Fixed Release 2.1
    2019-10-15 sadhen StatusNone Confirmed
        Release 1.99.9

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code