I need to add a command \setRTL from the bidi package to write right-to-left text, at the beginning of every frame.

Another answer does not solve the issue; any suggestions?


\usepackage{etoolbox}  % no longer needed; loaded by Beamer from v3.36



    \begin{frame}{frame title}
        hello world

            \item first item
            \item second item

enter image description here


You cannot directly hook into the begin of Beamer's frame environment with the usual etoolbox \AtBeginEnvironment, as hinted at elsewhere.

Replacing your \AtBeginEnvironment with \BeforeBeginEnvironment, is actually sufficient. That is:


This may, however, have undesirable side-effects, since it hooks in prior to the environment's definition.

One alternative is the following (hooking into @checkframetitle), adapted from another similar answer, however it will not affect the slide's title:


Finally, you could instead hook into the earlier @framenotesbegin, which would affect the slide title (obtaining an equivalent result to the \BeforeBeginEnvironment approach):


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.