Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlays are not working with with Hebrew+polyglossia #801

Open
idanpa opened this issue Oct 11, 2022 · 13 comments
Open

Overlays are not working with with Hebrew+polyglossia #801

idanpa opened this issue Oct 11, 2022 · 13 comments

Comments

@idanpa
Copy link

idanpa commented Oct 11, 2022

\documentclass{beamer}

\usepackage{libertine}
\usepackage{polyglossia}
\setdefaultlanguage{hebrew}

\begin{document}
\begin{frame}
Text 0

\visible<2>{Text 1}
\end{frame}
\end{document}

Overlay specification on text is broken. On the example above Text 1 should appear only on the second slide.
Could be related to polyglossia but maybe here is a good start.

Using most updated MikTex on Windows 10, beamer 3.68.

@samcarter
Copy link
Collaborator

samcarter commented Oct 11, 2022

I do get Text 1 on the second slide.

Screenshot 2022-10-11 at 10 25 58

Can you show a screenshot of your output? And show your .log file?

@idanpa
Copy link
Author

idanpa commented Oct 11, 2022

image

Forgot to mention, this was compiled in xetex.

Log file: example_beamer_bug.log

@samcarter
Copy link
Collaborator

Ah, xelatex. It works fine in lualatex

@idanpa
Copy link
Author

idanpa commented Oct 11, 2022

On lualatex, the overlay works as expected, but there are problems with the positioning of blocks etc.:

\documentclass{beamer}
\usetheme{Darmstadt}
\usepackage{libertine}
\usepackage{polyglossia}
\setdefaultlanguage{Hebrew}

\begin{document}
\begin{frame}
\begin{block}{Block}
Text 0
\end{block}
\end{frame}
\end{document}

image

(with xetex it looks fine)

I think that in general xetex is more stable for RTL languages, would be nice if it would be supported.
Thank you for your help.

@samcarter
Copy link
Collaborator

This is what I get for lualatex:

document

@idanpa
Copy link
Author

idanpa commented Oct 11, 2022

Are you using Hebrew as default?

\usepackage{libertine}
\usepackage{polyglossia}
\setdefaultlanguage{Hebrew}

Because I think text should be aligned to the right if you do so (in the first picture you sent here it is aligned to the right).

@samcarter
Copy link
Collaborator

I used the very same code as in your comment #801 (comment) , but I get warnings about missing files, so maybe a full texlive installation is not enough.

@kvafa
Copy link

kvafa commented Nov 15, 2022

Please note that the beamer project have never done anything to support the right to left typesetting. If anything in beamer works for right to left text, it is because the bidi package fixes all these issues and supports beamer in its recent release as demonstrated in my TUG 2022 talk. There, I mentioned that overlays are in my todo list and I have not had time to look at it yet sadly but they should be supported sooner or later.

The fact that luatex does not have this issue is simply due to the fact that luatex has a different bidirectional model than XeTeX; more specifically, it does not reverse whatsits. Therefore, it is no big deal if something works for right to left text in luatex; it is an art when you make it work under XeTeX.

@kvafa
Copy link

kvafa commented Nov 15, 2022

#801 (comment)

You are probably only using \pardir and \textdir primitives. Add \pagedir and \bodydir with the same directionality too.

@seloumi
Copy link

seloumi commented Nov 17, 2022

For luatex you can use beamer-rl class just define your font with \babelfont{sf}{Hebrew-font}
https://www.ctan.org/pkg/beamer-rl

@kvafa
Copy link

kvafa commented Nov 18, 2022

For luatex you can use beamer-rl class just define your font with \babelfont{sf}{Hebrew-font} https://www.ctan.org/pkg/beamer-rl

This is not fit for serious mainly right to left document as it has way too many issues;sorry!

@scottkosty
Copy link
Sponsor

Nice package, seloumi! Thanks for your work on it.

@ouboub
Copy link

ouboub commented Jan 7, 2023

For luatex you can use beamer-rl class just define your font with \babelfont{sf}{Hebrew-font} https://www.ctan.org/pkg/beamer-rl

This is not fit for serious mainly right to left document as it has way too many issues;sorry!

There is also beamerbidi, that however is quite old it works for me in an old texlive 2019 installation to some extend.
out of curiosity the beamerbidi author is Vafa Khalighi, any change that is the same as kvafa?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants