Fix horizontal space before lists in LTR context when text direction change within frameEnumerate and itemize...

Is a tag line useful on a cover?

How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?

How could an uplifted falcon's brain work?

Arthur Somervell: 1000 Exercises - Meaning of this notation

Theorems that impeded progress

Prove that NP is closed under karp reduction?

Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)

What would happen to a modern skyscraper if it rains micro blackholes?

How old can references or sources in a thesis be?

How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?

Are the number of citations and number of published articles the most important criteria for a tenure promotion?

Which models of the Boeing 737 are still in production?

Why not use SQL instead of GraphQL?

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

What is the word for reserving something for yourself before others do?

Why was the small council so happy for Tyrion to become the Master of Coin?

"You are your self first supporter", a more proper way to say it

Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?

Dragon forelimb placement

Why do falling prices hurt debtors?

How is it possible to have an ability score that is less than 3?

Can I ask the recruiters in my resume to put the reason why I am rejected?

The use of multiple foreign keys on same column in SQL Server

Can a Warlock become Neutral Good?



Fix horizontal space before lists in LTR context when text direction change within frame


Enumerate and itemize undefined + captions not workingHow do I add custom beamer actions that change an argument?Horizontal space in listsLTR sequences within RTL text - alternative to cumbersome markup?Beamer: handout/article mode - produce multiple copies of a frame with distinct overlay numbersLaTeX beamer: pagenumbering appendixDo I only have english-Babel-package?Decrease horizontal space in enumitem listscross-referencing two long lists; general recommendations?beamer - tiny - itemize - itemize leads to incorrect line spacing (and font size)













1















Consider this example, why space before list is not the same in the two cases and how to fix it when I change text direction within frame.



documentclass{beamer}
usepackage[nil,bidi=basic-r,layout=counters]{babel}
babelprovide[import=ar-DZ, main]{arabic}
babelfont{sf}{Amiri}

mode<presentation>{usetheme{Madrid}}

begin{document}

begin{frame}{}
selectlanguage{nil} % change to LTR occure after frame begening

begin{enumerate}
item first item
item second item
item third item
end{enumerate}

end{frame}

selectlanguage{nil} % change to LTR occure before frame begening
begin{frame}{}

begin{enumerate}
item first item
item second item
item third item
end{enumerate}

end{frame}

end{document}


enter image description here



enter image description here










share|improve this question



























    1















    Consider this example, why space before list is not the same in the two cases and how to fix it when I change text direction within frame.



    documentclass{beamer}
    usepackage[nil,bidi=basic-r,layout=counters]{babel}
    babelprovide[import=ar-DZ, main]{arabic}
    babelfont{sf}{Amiri}

    mode<presentation>{usetheme{Madrid}}

    begin{document}

    begin{frame}{}
    selectlanguage{nil} % change to LTR occure after frame begening

    begin{enumerate}
    item first item
    item second item
    item third item
    end{enumerate}

    end{frame}

    selectlanguage{nil} % change to LTR occure before frame begening
    begin{frame}{}

    begin{enumerate}
    item first item
    item second item
    item third item
    end{enumerate}

    end{frame}

    end{document}


    enter image description here



    enter image description here










    share|improve this question

























      1












      1








      1








      Consider this example, why space before list is not the same in the two cases and how to fix it when I change text direction within frame.



      documentclass{beamer}
      usepackage[nil,bidi=basic-r,layout=counters]{babel}
      babelprovide[import=ar-DZ, main]{arabic}
      babelfont{sf}{Amiri}

      mode<presentation>{usetheme{Madrid}}

      begin{document}

      begin{frame}{}
      selectlanguage{nil} % change to LTR occure after frame begening

      begin{enumerate}
      item first item
      item second item
      item third item
      end{enumerate}

      end{frame}

      selectlanguage{nil} % change to LTR occure before frame begening
      begin{frame}{}

      begin{enumerate}
      item first item
      item second item
      item third item
      end{enumerate}

      end{frame}

      end{document}


      enter image description here



      enter image description here










      share|improve this question














      Consider this example, why space before list is not the same in the two cases and how to fix it when I change text direction within frame.



      documentclass{beamer}
      usepackage[nil,bidi=basic-r,layout=counters]{babel}
      babelprovide[import=ar-DZ, main]{arabic}
      babelfont{sf}{Amiri}

      mode<presentation>{usetheme{Madrid}}

      begin{document}

      begin{frame}{}
      selectlanguage{nil} % change to LTR occure after frame begening

      begin{enumerate}
      item first item
      item second item
      item third item
      end{enumerate}

      end{frame}

      selectlanguage{nil} % change to LTR occure before frame begening
      begin{frame}{}

      begin{enumerate}
      item first item
      item second item
      item third item
      end{enumerate}

      end{frame}

      end{document}


      enter image description here



      enter image description here







      beamer lists babel right-to-left






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 11 hours ago









      Salim BouSalim Bou

      11.6k11442




      11.6k11442






















          1 Answer
          1






          active

          oldest

          votes


















          1














          I can't say exactly why this happens, but you need to include layout=lists.



          From the babel manual, §1.21:




          lists required in xetex and pdftex, but only in multilingual documents in luatex.




          And since you are switching from RTL to LTR, I take it you need this option. Seems to work anyway.



          So try:



          usepackage[nil,bidi=basic-r,layout=counters.lists]{babel}





          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',
            autoActivateHeartbeat: false,
            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%2f483521%2ffix-horizontal-space-before-lists-in-ltr-context-when-text-direction-change-with%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









            1














            I can't say exactly why this happens, but you need to include layout=lists.



            From the babel manual, §1.21:




            lists required in xetex and pdftex, but only in multilingual documents in luatex.




            And since you are switching from RTL to LTR, I take it you need this option. Seems to work anyway.



            So try:



            usepackage[nil,bidi=basic-r,layout=counters.lists]{babel}





            share|improve this answer




























              1














              I can't say exactly why this happens, but you need to include layout=lists.



              From the babel manual, §1.21:




              lists required in xetex and pdftex, but only in multilingual documents in luatex.




              And since you are switching from RTL to LTR, I take it you need this option. Seems to work anyway.



              So try:



              usepackage[nil,bidi=basic-r,layout=counters.lists]{babel}





              share|improve this answer


























                1












                1








                1







                I can't say exactly why this happens, but you need to include layout=lists.



                From the babel manual, §1.21:




                lists required in xetex and pdftex, but only in multilingual documents in luatex.




                And since you are switching from RTL to LTR, I take it you need this option. Seems to work anyway.



                So try:



                usepackage[nil,bidi=basic-r,layout=counters.lists]{babel}





                share|improve this answer













                I can't say exactly why this happens, but you need to include layout=lists.



                From the babel manual, §1.21:




                lists required in xetex and pdftex, but only in multilingual documents in luatex.




                And since you are switching from RTL to LTR, I take it you need this option. Seems to work anyway.



                So try:



                usepackage[nil,bidi=basic-r,layout=counters.lists]{babel}






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 10 hours ago









                David PurtonDavid Purton

                11.2k2943




                11.2k2943






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483521%2ffix-horizontal-space-before-lists-in-ltr-context-when-text-direction-change-with%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

                    Can't compile dgruyter and caption packagesLaTeX templates/packages for writing a patent specificationLatex...

                    Schneeberg (Smreczany) Bibliografia | Menu...

                    Hans Bellmer Spis treści Życiorys | Upamiętnienie | Przypisy | Bibliografia | Linki zewnętrzne |...