RTL frametitle on beamer











up vote
1
down vote

favorite












Based on this question here How to reduce frame title box size in a special case frametitle is flushright but text direction is LTR not RTL although i add textarabic{test}



% !TeX TS-program = xelatex

documentclass{beamer}


mode<presentation>

useinnertheme[shadow=true]{rounded}
%useoutertheme{shadow}
usecolortheme{orchid}
usecolortheme{whale}

setbeamerfont{block title}{size={}}

mode
<all>


author{diabonas}
title{Frame border}
setbeamertemplate{background canvas}{%
{color{black}rule{3pt}{paperheight}hspace*{dimexprpaperwidth-6ptrelax}rule{10pt}{paperheight}}%
}

makeatletter
mode<presentation>

useoutertheme{split}


setbeamercolor{frametitle}{parent=subsection in head/foot}
setbeamercolor{frametitle right}{parent=section in head/foot}


pgfdeclarehorizontalshading[frametitle.bg,frametitle right.bg]{beamer@frametitleshade}{paperheight}{%
color(0pt)=(frametitle right.bg);
color(paperwidth)=(frametitle.bg)}

AtBeginDocument{
pgfdeclareverticalshading{beamer@topshade}{.982paperwidth}{%
color(0pt)=(bg);
color(4pt)=(black!50!bg)}
}

addtobeamertemplate{headline}
{}
{%
vskip-0.2pt
hskippaperwidthhskip-0.11cmpgfuseshading{beamer@topshade}
vskip-2pt
}


defbeamertemplate*{frametitle}{shadow theme}
{%
selectlanguage{english}%
nointerlineskip%
vskip-2pt%
hbox{leavevmode
advancebeamer@leftmargin by -12bp%
advancebeamer@rightmargin by -12bp%
beamer@tempdim=textwidth%
advancebeamer@tempdim by beamer@leftmargin%
advancebeamer@tempdim by beamer@rightmargin%
hskip-Gm@lmarginhbox{%
setboxbeamer@tempbox=hbox{begin{minipage}[b]{paperwidth}%
vbox{}vskip-.75ex% <- was 0.75ex
leftskip0.3cm%
rightskip0.6cm plus1filleavevmode
usebeamercolor[fg]{frametitle}usebeamerfont{frametitle}struthfillotherlanguage{arabic}{insertframetitle}par%
ifxinsertframesubtitle@emptyelse%
{usebeamerfont*{framesubtitle}{usebeamercolor[fg]{framesubtitle}insertframesubtitle}strutpar}%
fi%
nointerlineskip
vbox{}%
end{minipage}}%
beamer@tempdim=htbeamer@tempbox%
advancebeamer@tempdim by 2pt%
begin{pgfpicture}{0pt}{0pt}{paperwidth}{beamer@tempdim}
usebeamercolor{frametitle right}
pgfpathrectangle{pgfpointorigin}{pgfpoint{paperwidth}{beamer@tempdim}}
pgfusepath{clip}
pgftext[left,base]{pgfuseshading{beamer@frametitleshade}}
end{pgfpicture}
hskip-paperwidth%
boxbeamer@tempbox%
}%
hskip-Gm@rmargin%
}%
nointerlineskip
vskip-0.2pt
hbox totextwidth{hskip-0.885cmpgfuseshading{beamer@topshade}hskip-Gm@rmargin}
vskip-2pt
}



mode
<all>

makeatother
usepackage{fontspec}
usepackage{polyglossia}
setdefaultlanguage[numerals=maghrib, calendar=gregorian]{arabic}
setotherlanguage{english}
newfontfamilyarabicfont[Script=Arabic]{Arial}
newfontfamilyarabicfontsf[Script=Arabic]{Arial}
newfontfamilyarabicfonttt[Script=Arabic]{Arial}
newfontfamilyamiri[Script=Arabic]{Arial}

begin{document}
begin{frame}{This frametitle should be right to left}
frame
end{frame}
frame{Content}
begin{frame}
content
end{frame}
section{test}
begin{frame}{Content}
content
end{frame}
section{test2}
end{document}


right to left frametitle










share|improve this question


























    up vote
    1
    down vote

    favorite












    Based on this question here How to reduce frame title box size in a special case frametitle is flushright but text direction is LTR not RTL although i add textarabic{test}



    % !TeX TS-program = xelatex

    documentclass{beamer}


    mode<presentation>

    useinnertheme[shadow=true]{rounded}
    %useoutertheme{shadow}
    usecolortheme{orchid}
    usecolortheme{whale}

    setbeamerfont{block title}{size={}}

    mode
    <all>


    author{diabonas}
    title{Frame border}
    setbeamertemplate{background canvas}{%
    {color{black}rule{3pt}{paperheight}hspace*{dimexprpaperwidth-6ptrelax}rule{10pt}{paperheight}}%
    }

    makeatletter
    mode<presentation>

    useoutertheme{split}


    setbeamercolor{frametitle}{parent=subsection in head/foot}
    setbeamercolor{frametitle right}{parent=section in head/foot}


    pgfdeclarehorizontalshading[frametitle.bg,frametitle right.bg]{beamer@frametitleshade}{paperheight}{%
    color(0pt)=(frametitle right.bg);
    color(paperwidth)=(frametitle.bg)}

    AtBeginDocument{
    pgfdeclareverticalshading{beamer@topshade}{.982paperwidth}{%
    color(0pt)=(bg);
    color(4pt)=(black!50!bg)}
    }

    addtobeamertemplate{headline}
    {}
    {%
    vskip-0.2pt
    hskippaperwidthhskip-0.11cmpgfuseshading{beamer@topshade}
    vskip-2pt
    }


    defbeamertemplate*{frametitle}{shadow theme}
    {%
    selectlanguage{english}%
    nointerlineskip%
    vskip-2pt%
    hbox{leavevmode
    advancebeamer@leftmargin by -12bp%
    advancebeamer@rightmargin by -12bp%
    beamer@tempdim=textwidth%
    advancebeamer@tempdim by beamer@leftmargin%
    advancebeamer@tempdim by beamer@rightmargin%
    hskip-Gm@lmarginhbox{%
    setboxbeamer@tempbox=hbox{begin{minipage}[b]{paperwidth}%
    vbox{}vskip-.75ex% <- was 0.75ex
    leftskip0.3cm%
    rightskip0.6cm plus1filleavevmode
    usebeamercolor[fg]{frametitle}usebeamerfont{frametitle}struthfillotherlanguage{arabic}{insertframetitle}par%
    ifxinsertframesubtitle@emptyelse%
    {usebeamerfont*{framesubtitle}{usebeamercolor[fg]{framesubtitle}insertframesubtitle}strutpar}%
    fi%
    nointerlineskip
    vbox{}%
    end{minipage}}%
    beamer@tempdim=htbeamer@tempbox%
    advancebeamer@tempdim by 2pt%
    begin{pgfpicture}{0pt}{0pt}{paperwidth}{beamer@tempdim}
    usebeamercolor{frametitle right}
    pgfpathrectangle{pgfpointorigin}{pgfpoint{paperwidth}{beamer@tempdim}}
    pgfusepath{clip}
    pgftext[left,base]{pgfuseshading{beamer@frametitleshade}}
    end{pgfpicture}
    hskip-paperwidth%
    boxbeamer@tempbox%
    }%
    hskip-Gm@rmargin%
    }%
    nointerlineskip
    vskip-0.2pt
    hbox totextwidth{hskip-0.885cmpgfuseshading{beamer@topshade}hskip-Gm@rmargin}
    vskip-2pt
    }



    mode
    <all>

    makeatother
    usepackage{fontspec}
    usepackage{polyglossia}
    setdefaultlanguage[numerals=maghrib, calendar=gregorian]{arabic}
    setotherlanguage{english}
    newfontfamilyarabicfont[Script=Arabic]{Arial}
    newfontfamilyarabicfontsf[Script=Arabic]{Arial}
    newfontfamilyarabicfonttt[Script=Arabic]{Arial}
    newfontfamilyamiri[Script=Arabic]{Arial}

    begin{document}
    begin{frame}{This frametitle should be right to left}
    frame
    end{frame}
    frame{Content}
    begin{frame}
    content
    end{frame}
    section{test}
    begin{frame}{Content}
    content
    end{frame}
    section{test2}
    end{document}


    right to left frametitle










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Based on this question here How to reduce frame title box size in a special case frametitle is flushright but text direction is LTR not RTL although i add textarabic{test}



      % !TeX TS-program = xelatex

      documentclass{beamer}


      mode<presentation>

      useinnertheme[shadow=true]{rounded}
      %useoutertheme{shadow}
      usecolortheme{orchid}
      usecolortheme{whale}

      setbeamerfont{block title}{size={}}

      mode
      <all>


      author{diabonas}
      title{Frame border}
      setbeamertemplate{background canvas}{%
      {color{black}rule{3pt}{paperheight}hspace*{dimexprpaperwidth-6ptrelax}rule{10pt}{paperheight}}%
      }

      makeatletter
      mode<presentation>

      useoutertheme{split}


      setbeamercolor{frametitle}{parent=subsection in head/foot}
      setbeamercolor{frametitle right}{parent=section in head/foot}


      pgfdeclarehorizontalshading[frametitle.bg,frametitle right.bg]{beamer@frametitleshade}{paperheight}{%
      color(0pt)=(frametitle right.bg);
      color(paperwidth)=(frametitle.bg)}

      AtBeginDocument{
      pgfdeclareverticalshading{beamer@topshade}{.982paperwidth}{%
      color(0pt)=(bg);
      color(4pt)=(black!50!bg)}
      }

      addtobeamertemplate{headline}
      {}
      {%
      vskip-0.2pt
      hskippaperwidthhskip-0.11cmpgfuseshading{beamer@topshade}
      vskip-2pt
      }


      defbeamertemplate*{frametitle}{shadow theme}
      {%
      selectlanguage{english}%
      nointerlineskip%
      vskip-2pt%
      hbox{leavevmode
      advancebeamer@leftmargin by -12bp%
      advancebeamer@rightmargin by -12bp%
      beamer@tempdim=textwidth%
      advancebeamer@tempdim by beamer@leftmargin%
      advancebeamer@tempdim by beamer@rightmargin%
      hskip-Gm@lmarginhbox{%
      setboxbeamer@tempbox=hbox{begin{minipage}[b]{paperwidth}%
      vbox{}vskip-.75ex% <- was 0.75ex
      leftskip0.3cm%
      rightskip0.6cm plus1filleavevmode
      usebeamercolor[fg]{frametitle}usebeamerfont{frametitle}struthfillotherlanguage{arabic}{insertframetitle}par%
      ifxinsertframesubtitle@emptyelse%
      {usebeamerfont*{framesubtitle}{usebeamercolor[fg]{framesubtitle}insertframesubtitle}strutpar}%
      fi%
      nointerlineskip
      vbox{}%
      end{minipage}}%
      beamer@tempdim=htbeamer@tempbox%
      advancebeamer@tempdim by 2pt%
      begin{pgfpicture}{0pt}{0pt}{paperwidth}{beamer@tempdim}
      usebeamercolor{frametitle right}
      pgfpathrectangle{pgfpointorigin}{pgfpoint{paperwidth}{beamer@tempdim}}
      pgfusepath{clip}
      pgftext[left,base]{pgfuseshading{beamer@frametitleshade}}
      end{pgfpicture}
      hskip-paperwidth%
      boxbeamer@tempbox%
      }%
      hskip-Gm@rmargin%
      }%
      nointerlineskip
      vskip-0.2pt
      hbox totextwidth{hskip-0.885cmpgfuseshading{beamer@topshade}hskip-Gm@rmargin}
      vskip-2pt
      }



      mode
      <all>

      makeatother
      usepackage{fontspec}
      usepackage{polyglossia}
      setdefaultlanguage[numerals=maghrib, calendar=gregorian]{arabic}
      setotherlanguage{english}
      newfontfamilyarabicfont[Script=Arabic]{Arial}
      newfontfamilyarabicfontsf[Script=Arabic]{Arial}
      newfontfamilyarabicfonttt[Script=Arabic]{Arial}
      newfontfamilyamiri[Script=Arabic]{Arial}

      begin{document}
      begin{frame}{This frametitle should be right to left}
      frame
      end{frame}
      frame{Content}
      begin{frame}
      content
      end{frame}
      section{test}
      begin{frame}{Content}
      content
      end{frame}
      section{test2}
      end{document}


      right to left frametitle










      share|improve this question













      Based on this question here How to reduce frame title box size in a special case frametitle is flushright but text direction is LTR not RTL although i add textarabic{test}



      % !TeX TS-program = xelatex

      documentclass{beamer}


      mode<presentation>

      useinnertheme[shadow=true]{rounded}
      %useoutertheme{shadow}
      usecolortheme{orchid}
      usecolortheme{whale}

      setbeamerfont{block title}{size={}}

      mode
      <all>


      author{diabonas}
      title{Frame border}
      setbeamertemplate{background canvas}{%
      {color{black}rule{3pt}{paperheight}hspace*{dimexprpaperwidth-6ptrelax}rule{10pt}{paperheight}}%
      }

      makeatletter
      mode<presentation>

      useoutertheme{split}


      setbeamercolor{frametitle}{parent=subsection in head/foot}
      setbeamercolor{frametitle right}{parent=section in head/foot}


      pgfdeclarehorizontalshading[frametitle.bg,frametitle right.bg]{beamer@frametitleshade}{paperheight}{%
      color(0pt)=(frametitle right.bg);
      color(paperwidth)=(frametitle.bg)}

      AtBeginDocument{
      pgfdeclareverticalshading{beamer@topshade}{.982paperwidth}{%
      color(0pt)=(bg);
      color(4pt)=(black!50!bg)}
      }

      addtobeamertemplate{headline}
      {}
      {%
      vskip-0.2pt
      hskippaperwidthhskip-0.11cmpgfuseshading{beamer@topshade}
      vskip-2pt
      }


      defbeamertemplate*{frametitle}{shadow theme}
      {%
      selectlanguage{english}%
      nointerlineskip%
      vskip-2pt%
      hbox{leavevmode
      advancebeamer@leftmargin by -12bp%
      advancebeamer@rightmargin by -12bp%
      beamer@tempdim=textwidth%
      advancebeamer@tempdim by beamer@leftmargin%
      advancebeamer@tempdim by beamer@rightmargin%
      hskip-Gm@lmarginhbox{%
      setboxbeamer@tempbox=hbox{begin{minipage}[b]{paperwidth}%
      vbox{}vskip-.75ex% <- was 0.75ex
      leftskip0.3cm%
      rightskip0.6cm plus1filleavevmode
      usebeamercolor[fg]{frametitle}usebeamerfont{frametitle}struthfillotherlanguage{arabic}{insertframetitle}par%
      ifxinsertframesubtitle@emptyelse%
      {usebeamerfont*{framesubtitle}{usebeamercolor[fg]{framesubtitle}insertframesubtitle}strutpar}%
      fi%
      nointerlineskip
      vbox{}%
      end{minipage}}%
      beamer@tempdim=htbeamer@tempbox%
      advancebeamer@tempdim by 2pt%
      begin{pgfpicture}{0pt}{0pt}{paperwidth}{beamer@tempdim}
      usebeamercolor{frametitle right}
      pgfpathrectangle{pgfpointorigin}{pgfpoint{paperwidth}{beamer@tempdim}}
      pgfusepath{clip}
      pgftext[left,base]{pgfuseshading{beamer@frametitleshade}}
      end{pgfpicture}
      hskip-paperwidth%
      boxbeamer@tempbox%
      }%
      hskip-Gm@rmargin%
      }%
      nointerlineskip
      vskip-0.2pt
      hbox totextwidth{hskip-0.885cmpgfuseshading{beamer@topshade}hskip-Gm@rmargin}
      vskip-2pt
      }



      mode
      <all>

      makeatother
      usepackage{fontspec}
      usepackage{polyglossia}
      setdefaultlanguage[numerals=maghrib, calendar=gregorian]{arabic}
      setotherlanguage{english}
      newfontfamilyarabicfont[Script=Arabic]{Arial}
      newfontfamilyarabicfontsf[Script=Arabic]{Arial}
      newfontfamilyarabicfonttt[Script=Arabic]{Arial}
      newfontfamilyamiri[Script=Arabic]{Arial}

      begin{document}
      begin{frame}{This frametitle should be right to left}
      frame
      end{frame}
      frame{Content}
      begin{frame}
      content
      end{frame}
      section{test}
      begin{frame}{Content}
      content
      end{frame}
      section{test2}
      end{document}


      right to left frametitle







      beamer right-to-left bidi frame-title






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 12 hours ago









      Abdelhak Elfengour

      12618




      12618






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          Try something like this:



          % !TeX TS-program = xelatex

          documentclass{beamer}


          mode<presentation>

          useinnertheme[shadow=true]{rounded}
          %useoutertheme{shadow}
          usecolortheme{orchid}
          usecolortheme{whale}

          setbeamerfont{block title}{size={}}

          mode
          <all>


          author{diabonas}
          title{Frame border}
          setbeamertemplate{background canvas}{%
          {color{black}rule{3pt}{paperheight}hspace*{dimexprpaperwidth-6ptrelax}rule{10pt}{paperheight}}%
          }

          makeatletter
          mode<presentation>

          useoutertheme{split}


          setbeamercolor{frametitle}{parent=subsection in head/foot}
          setbeamercolor{frametitle right}{parent=section in head/foot}


          pgfdeclarehorizontalshading[frametitle.bg,frametitle right.bg]{beamer@frametitleshade}{paperheight}{%
          color(0pt)=(frametitle right.bg);
          color(paperwidth)=(frametitle.bg)}

          AtBeginDocument{
          pgfdeclareverticalshading{beamer@topshade}{.982paperwidth}{%
          color(0pt)=(bg);
          color(4pt)=(black!50!bg)}
          }

          addtobeamertemplate{headline}
          {}
          {%
          vskip-0.2pt
          hskippaperwidthhskip-0.11cmpgfuseshading{beamer@topshade}
          vskip-2pt
          }


          defbeamertemplate*{frametitle}{shadow theme}
          {%
          % selectlanguage{english}%
          nointerlineskip%
          vskip-2pt%
          hbox{leavevmode
          advancebeamer@leftmargin by -12bp%
          advancebeamer@rightmargin by -12bp%
          beamer@tempdim=textwidth%
          advancebeamer@tempdim by beamer@leftmargin%
          advancebeamer@tempdim by beamer@rightmargin%
          hskip-Gm@lmarginhbox{%
          setboxbeamer@tempbox=hbox{begin{minipage}[b]{paperwidth}%
          vbox{}vskip-.75ex% <- was 0.75ex
          % leftskip0.3cm%
          rightskip0.3cm
          % leavevmode
          usebeamercolor[fg]{frametitle}usebeamerfont{frametitle}strutinsertframetitlepar%
          ifxinsertframesubtitle@emptyelse%
          {usebeamerfont*{framesubtitle}{usebeamercolor[fg]{framesubtitle}insertframesubtitle}strutpar}%
          fi%
          nointerlineskip
          vbox{}%
          end{minipage}}%
          beamer@tempdim=htbeamer@tempbox%
          advancebeamer@tempdim by 2pt%
          begin{pgfpicture}{0pt}{0pt}{paperwidth}{beamer@tempdim}
          usebeamercolor{frametitle right}
          pgfpathrectangle{pgfpointorigin}{pgfpoint{paperwidth}{beamer@tempdim}}
          pgfusepath{clip}
          pgftext[left,base]{pgfuseshading{beamer@frametitleshade}}
          end{pgfpicture}
          hskip-paperwidth%
          boxbeamer@tempbox%
          }%
          hskip-Gm@rmargin%
          }%
          nointerlineskip
          vskip-0.2pt
          hbox totextwidth{hskip-0.885cmpgfuseshading{beamer@topshade}hskip-Gm@rmargin}
          vskip-2pt
          }



          mode
          <all>

          makeatother
          usepackage{fontspec}
          usepackage{polyglossia}
          setdefaultlanguage[numerals=maghrib, calendar=gregorian]{arabic}
          setotherlanguage{english}
          newfontfamilyarabicfont[Script=Arabic]{Arial}
          newfontfamilyarabicfontsf[Script=Arabic]{Arial}
          newfontfamilyarabicfonttt[Script=Arabic]{Arial}
          newfontfamilyamiri[Script=Arabic]{Arial}

          begin{document}

          section{section name}

          begin{frame}
          frametitle{This frametitle should be right to left}
          frame
          end{frame}

          end{document}


          enter image description here






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "85"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461826%2frtl-frametitle-on-beamer%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote



            accepted










            Try something like this:



            % !TeX TS-program = xelatex

            documentclass{beamer}


            mode<presentation>

            useinnertheme[shadow=true]{rounded}
            %useoutertheme{shadow}
            usecolortheme{orchid}
            usecolortheme{whale}

            setbeamerfont{block title}{size={}}

            mode
            <all>


            author{diabonas}
            title{Frame border}
            setbeamertemplate{background canvas}{%
            {color{black}rule{3pt}{paperheight}hspace*{dimexprpaperwidth-6ptrelax}rule{10pt}{paperheight}}%
            }

            makeatletter
            mode<presentation>

            useoutertheme{split}


            setbeamercolor{frametitle}{parent=subsection in head/foot}
            setbeamercolor{frametitle right}{parent=section in head/foot}


            pgfdeclarehorizontalshading[frametitle.bg,frametitle right.bg]{beamer@frametitleshade}{paperheight}{%
            color(0pt)=(frametitle right.bg);
            color(paperwidth)=(frametitle.bg)}

            AtBeginDocument{
            pgfdeclareverticalshading{beamer@topshade}{.982paperwidth}{%
            color(0pt)=(bg);
            color(4pt)=(black!50!bg)}
            }

            addtobeamertemplate{headline}
            {}
            {%
            vskip-0.2pt
            hskippaperwidthhskip-0.11cmpgfuseshading{beamer@topshade}
            vskip-2pt
            }


            defbeamertemplate*{frametitle}{shadow theme}
            {%
            % selectlanguage{english}%
            nointerlineskip%
            vskip-2pt%
            hbox{leavevmode
            advancebeamer@leftmargin by -12bp%
            advancebeamer@rightmargin by -12bp%
            beamer@tempdim=textwidth%
            advancebeamer@tempdim by beamer@leftmargin%
            advancebeamer@tempdim by beamer@rightmargin%
            hskip-Gm@lmarginhbox{%
            setboxbeamer@tempbox=hbox{begin{minipage}[b]{paperwidth}%
            vbox{}vskip-.75ex% <- was 0.75ex
            % leftskip0.3cm%
            rightskip0.3cm
            % leavevmode
            usebeamercolor[fg]{frametitle}usebeamerfont{frametitle}strutinsertframetitlepar%
            ifxinsertframesubtitle@emptyelse%
            {usebeamerfont*{framesubtitle}{usebeamercolor[fg]{framesubtitle}insertframesubtitle}strutpar}%
            fi%
            nointerlineskip
            vbox{}%
            end{minipage}}%
            beamer@tempdim=htbeamer@tempbox%
            advancebeamer@tempdim by 2pt%
            begin{pgfpicture}{0pt}{0pt}{paperwidth}{beamer@tempdim}
            usebeamercolor{frametitle right}
            pgfpathrectangle{pgfpointorigin}{pgfpoint{paperwidth}{beamer@tempdim}}
            pgfusepath{clip}
            pgftext[left,base]{pgfuseshading{beamer@frametitleshade}}
            end{pgfpicture}
            hskip-paperwidth%
            boxbeamer@tempbox%
            }%
            hskip-Gm@rmargin%
            }%
            nointerlineskip
            vskip-0.2pt
            hbox totextwidth{hskip-0.885cmpgfuseshading{beamer@topshade}hskip-Gm@rmargin}
            vskip-2pt
            }



            mode
            <all>

            makeatother
            usepackage{fontspec}
            usepackage{polyglossia}
            setdefaultlanguage[numerals=maghrib, calendar=gregorian]{arabic}
            setotherlanguage{english}
            newfontfamilyarabicfont[Script=Arabic]{Arial}
            newfontfamilyarabicfontsf[Script=Arabic]{Arial}
            newfontfamilyarabicfonttt[Script=Arabic]{Arial}
            newfontfamilyamiri[Script=Arabic]{Arial}

            begin{document}

            section{section name}

            begin{frame}
            frametitle{This frametitle should be right to left}
            frame
            end{frame}

            end{document}


            enter image description here






            share|improve this answer



























              up vote
              1
              down vote



              accepted










              Try something like this:



              % !TeX TS-program = xelatex

              documentclass{beamer}


              mode<presentation>

              useinnertheme[shadow=true]{rounded}
              %useoutertheme{shadow}
              usecolortheme{orchid}
              usecolortheme{whale}

              setbeamerfont{block title}{size={}}

              mode
              <all>


              author{diabonas}
              title{Frame border}
              setbeamertemplate{background canvas}{%
              {color{black}rule{3pt}{paperheight}hspace*{dimexprpaperwidth-6ptrelax}rule{10pt}{paperheight}}%
              }

              makeatletter
              mode<presentation>

              useoutertheme{split}


              setbeamercolor{frametitle}{parent=subsection in head/foot}
              setbeamercolor{frametitle right}{parent=section in head/foot}


              pgfdeclarehorizontalshading[frametitle.bg,frametitle right.bg]{beamer@frametitleshade}{paperheight}{%
              color(0pt)=(frametitle right.bg);
              color(paperwidth)=(frametitle.bg)}

              AtBeginDocument{
              pgfdeclareverticalshading{beamer@topshade}{.982paperwidth}{%
              color(0pt)=(bg);
              color(4pt)=(black!50!bg)}
              }

              addtobeamertemplate{headline}
              {}
              {%
              vskip-0.2pt
              hskippaperwidthhskip-0.11cmpgfuseshading{beamer@topshade}
              vskip-2pt
              }


              defbeamertemplate*{frametitle}{shadow theme}
              {%
              % selectlanguage{english}%
              nointerlineskip%
              vskip-2pt%
              hbox{leavevmode
              advancebeamer@leftmargin by -12bp%
              advancebeamer@rightmargin by -12bp%
              beamer@tempdim=textwidth%
              advancebeamer@tempdim by beamer@leftmargin%
              advancebeamer@tempdim by beamer@rightmargin%
              hskip-Gm@lmarginhbox{%
              setboxbeamer@tempbox=hbox{begin{minipage}[b]{paperwidth}%
              vbox{}vskip-.75ex% <- was 0.75ex
              % leftskip0.3cm%
              rightskip0.3cm
              % leavevmode
              usebeamercolor[fg]{frametitle}usebeamerfont{frametitle}strutinsertframetitlepar%
              ifxinsertframesubtitle@emptyelse%
              {usebeamerfont*{framesubtitle}{usebeamercolor[fg]{framesubtitle}insertframesubtitle}strutpar}%
              fi%
              nointerlineskip
              vbox{}%
              end{minipage}}%
              beamer@tempdim=htbeamer@tempbox%
              advancebeamer@tempdim by 2pt%
              begin{pgfpicture}{0pt}{0pt}{paperwidth}{beamer@tempdim}
              usebeamercolor{frametitle right}
              pgfpathrectangle{pgfpointorigin}{pgfpoint{paperwidth}{beamer@tempdim}}
              pgfusepath{clip}
              pgftext[left,base]{pgfuseshading{beamer@frametitleshade}}
              end{pgfpicture}
              hskip-paperwidth%
              boxbeamer@tempbox%
              }%
              hskip-Gm@rmargin%
              }%
              nointerlineskip
              vskip-0.2pt
              hbox totextwidth{hskip-0.885cmpgfuseshading{beamer@topshade}hskip-Gm@rmargin}
              vskip-2pt
              }



              mode
              <all>

              makeatother
              usepackage{fontspec}
              usepackage{polyglossia}
              setdefaultlanguage[numerals=maghrib, calendar=gregorian]{arabic}
              setotherlanguage{english}
              newfontfamilyarabicfont[Script=Arabic]{Arial}
              newfontfamilyarabicfontsf[Script=Arabic]{Arial}
              newfontfamilyarabicfonttt[Script=Arabic]{Arial}
              newfontfamilyamiri[Script=Arabic]{Arial}

              begin{document}

              section{section name}

              begin{frame}
              frametitle{This frametitle should be right to left}
              frame
              end{frame}

              end{document}


              enter image description here






              share|improve this answer

























                up vote
                1
                down vote



                accepted







                up vote
                1
                down vote



                accepted






                Try something like this:



                % !TeX TS-program = xelatex

                documentclass{beamer}


                mode<presentation>

                useinnertheme[shadow=true]{rounded}
                %useoutertheme{shadow}
                usecolortheme{orchid}
                usecolortheme{whale}

                setbeamerfont{block title}{size={}}

                mode
                <all>


                author{diabonas}
                title{Frame border}
                setbeamertemplate{background canvas}{%
                {color{black}rule{3pt}{paperheight}hspace*{dimexprpaperwidth-6ptrelax}rule{10pt}{paperheight}}%
                }

                makeatletter
                mode<presentation>

                useoutertheme{split}


                setbeamercolor{frametitle}{parent=subsection in head/foot}
                setbeamercolor{frametitle right}{parent=section in head/foot}


                pgfdeclarehorizontalshading[frametitle.bg,frametitle right.bg]{beamer@frametitleshade}{paperheight}{%
                color(0pt)=(frametitle right.bg);
                color(paperwidth)=(frametitle.bg)}

                AtBeginDocument{
                pgfdeclareverticalshading{beamer@topshade}{.982paperwidth}{%
                color(0pt)=(bg);
                color(4pt)=(black!50!bg)}
                }

                addtobeamertemplate{headline}
                {}
                {%
                vskip-0.2pt
                hskippaperwidthhskip-0.11cmpgfuseshading{beamer@topshade}
                vskip-2pt
                }


                defbeamertemplate*{frametitle}{shadow theme}
                {%
                % selectlanguage{english}%
                nointerlineskip%
                vskip-2pt%
                hbox{leavevmode
                advancebeamer@leftmargin by -12bp%
                advancebeamer@rightmargin by -12bp%
                beamer@tempdim=textwidth%
                advancebeamer@tempdim by beamer@leftmargin%
                advancebeamer@tempdim by beamer@rightmargin%
                hskip-Gm@lmarginhbox{%
                setboxbeamer@tempbox=hbox{begin{minipage}[b]{paperwidth}%
                vbox{}vskip-.75ex% <- was 0.75ex
                % leftskip0.3cm%
                rightskip0.3cm
                % leavevmode
                usebeamercolor[fg]{frametitle}usebeamerfont{frametitle}strutinsertframetitlepar%
                ifxinsertframesubtitle@emptyelse%
                {usebeamerfont*{framesubtitle}{usebeamercolor[fg]{framesubtitle}insertframesubtitle}strutpar}%
                fi%
                nointerlineskip
                vbox{}%
                end{minipage}}%
                beamer@tempdim=htbeamer@tempbox%
                advancebeamer@tempdim by 2pt%
                begin{pgfpicture}{0pt}{0pt}{paperwidth}{beamer@tempdim}
                usebeamercolor{frametitle right}
                pgfpathrectangle{pgfpointorigin}{pgfpoint{paperwidth}{beamer@tempdim}}
                pgfusepath{clip}
                pgftext[left,base]{pgfuseshading{beamer@frametitleshade}}
                end{pgfpicture}
                hskip-paperwidth%
                boxbeamer@tempbox%
                }%
                hskip-Gm@rmargin%
                }%
                nointerlineskip
                vskip-0.2pt
                hbox totextwidth{hskip-0.885cmpgfuseshading{beamer@topshade}hskip-Gm@rmargin}
                vskip-2pt
                }



                mode
                <all>

                makeatother
                usepackage{fontspec}
                usepackage{polyglossia}
                setdefaultlanguage[numerals=maghrib, calendar=gregorian]{arabic}
                setotherlanguage{english}
                newfontfamilyarabicfont[Script=Arabic]{Arial}
                newfontfamilyarabicfontsf[Script=Arabic]{Arial}
                newfontfamilyarabicfonttt[Script=Arabic]{Arial}
                newfontfamilyamiri[Script=Arabic]{Arial}

                begin{document}

                section{section name}

                begin{frame}
                frametitle{This frametitle should be right to left}
                frame
                end{frame}

                end{document}


                enter image description here






                share|improve this answer














                Try something like this:



                % !TeX TS-program = xelatex

                documentclass{beamer}


                mode<presentation>

                useinnertheme[shadow=true]{rounded}
                %useoutertheme{shadow}
                usecolortheme{orchid}
                usecolortheme{whale}

                setbeamerfont{block title}{size={}}

                mode
                <all>


                author{diabonas}
                title{Frame border}
                setbeamertemplate{background canvas}{%
                {color{black}rule{3pt}{paperheight}hspace*{dimexprpaperwidth-6ptrelax}rule{10pt}{paperheight}}%
                }

                makeatletter
                mode<presentation>

                useoutertheme{split}


                setbeamercolor{frametitle}{parent=subsection in head/foot}
                setbeamercolor{frametitle right}{parent=section in head/foot}


                pgfdeclarehorizontalshading[frametitle.bg,frametitle right.bg]{beamer@frametitleshade}{paperheight}{%
                color(0pt)=(frametitle right.bg);
                color(paperwidth)=(frametitle.bg)}

                AtBeginDocument{
                pgfdeclareverticalshading{beamer@topshade}{.982paperwidth}{%
                color(0pt)=(bg);
                color(4pt)=(black!50!bg)}
                }

                addtobeamertemplate{headline}
                {}
                {%
                vskip-0.2pt
                hskippaperwidthhskip-0.11cmpgfuseshading{beamer@topshade}
                vskip-2pt
                }


                defbeamertemplate*{frametitle}{shadow theme}
                {%
                % selectlanguage{english}%
                nointerlineskip%
                vskip-2pt%
                hbox{leavevmode
                advancebeamer@leftmargin by -12bp%
                advancebeamer@rightmargin by -12bp%
                beamer@tempdim=textwidth%
                advancebeamer@tempdim by beamer@leftmargin%
                advancebeamer@tempdim by beamer@rightmargin%
                hskip-Gm@lmarginhbox{%
                setboxbeamer@tempbox=hbox{begin{minipage}[b]{paperwidth}%
                vbox{}vskip-.75ex% <- was 0.75ex
                % leftskip0.3cm%
                rightskip0.3cm
                % leavevmode
                usebeamercolor[fg]{frametitle}usebeamerfont{frametitle}strutinsertframetitlepar%
                ifxinsertframesubtitle@emptyelse%
                {usebeamerfont*{framesubtitle}{usebeamercolor[fg]{framesubtitle}insertframesubtitle}strutpar}%
                fi%
                nointerlineskip
                vbox{}%
                end{minipage}}%
                beamer@tempdim=htbeamer@tempbox%
                advancebeamer@tempdim by 2pt%
                begin{pgfpicture}{0pt}{0pt}{paperwidth}{beamer@tempdim}
                usebeamercolor{frametitle right}
                pgfpathrectangle{pgfpointorigin}{pgfpoint{paperwidth}{beamer@tempdim}}
                pgfusepath{clip}
                pgftext[left,base]{pgfuseshading{beamer@frametitleshade}}
                end{pgfpicture}
                hskip-paperwidth%
                boxbeamer@tempbox%
                }%
                hskip-Gm@rmargin%
                }%
                nointerlineskip
                vskip-0.2pt
                hbox totextwidth{hskip-0.885cmpgfuseshading{beamer@topshade}hskip-Gm@rmargin}
                vskip-2pt
                }



                mode
                <all>

                makeatother
                usepackage{fontspec}
                usepackage{polyglossia}
                setdefaultlanguage[numerals=maghrib, calendar=gregorian]{arabic}
                setotherlanguage{english}
                newfontfamilyarabicfont[Script=Arabic]{Arial}
                newfontfamilyarabicfontsf[Script=Arabic]{Arial}
                newfontfamilyarabicfonttt[Script=Arabic]{Arial}
                newfontfamilyamiri[Script=Arabic]{Arial}

                begin{document}

                section{section name}

                begin{frame}
                frametitle{This frametitle should be right to left}
                frame
                end{frame}

                end{document}


                enter image description here







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 11 hours ago

























                answered 11 hours ago









                samcarter

                82.5k793263




                82.5k793263






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461826%2frtl-frametitle-on-beamer%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Accessing regular linux commands in Huawei's Dopra Linux

                    Can't connect RFCOMM socket: Host is down

                    Kernel panic - not syncing: Fatal Exception in Interrupt