Missing space after parenthesis in inline textHow to extend the lstinputlisting commandSize of parenthesis (...

My job requires me to shuck oysters

Problems with position of tikzpictures in beamer

1990s-2000s horror alien movie with slugs infecting people through the mouth

Two oatmeal pies a day keep the doctor away?

Is there a way to pause a running process on Linux systems and resume later?

Why is it that Bernie Sanders is always called a "socialist"?

Inline Feynman diagrams, Feynman diagrams in equations, very small Feynman diagrams

How can I handle players killing my NPC outside of combat?

How can I prevent an oracle who can see into the past from knowing everything that has happened?

What is the principle behind "circuit total limitation" (CTL) for electrical panels?

Question Tag error

How can I keep my gold safe from other PCs?

Is practicing on a digital piano harmful to an experienced piano player?

Why don't you get burned by the wood benches in a sauna?

Buying a "Used" Router

How bad is a Computer Science course that doesn't teach Design Patterns?

Is layered encryption more secure than long passwords?

Coworker is trying to get me to sign his petition to run for office. How to decline politely?

How do I purchase a drop bar bike that will be converted to flat bar?

What does "south of due west" mean?

Is the tritone (A4 / d5) still banned in Roman Catholic music?

How many copper coins fit inside a cubic foot?

How do I avoid the "chosen hero" feeling?

Sets that are both Sum-free and Product-free



Missing space after parenthesis in inline text


How to extend the lstinputlisting commandSize of parenthesis ( ) in text modesiunitx : forced parenthesisLatex listings - breaklines divides parenthesis, wrong space near parenthesistex4ht and listings: lines don't break when using escapeinsideauto-resizing parenthesis in math formulasWhy some parenthesis in my code are bigger than others?Is there a parenthesis with a size inbetween the default size and that of “big(”?lstnewenvironment/lstset : using colors conditionally emph/emphstyle - SAS: (in=_x) versus if x in (1,2)Removing a space placed after a linebreak at the end of lstinline













3















documentclass{book}
usepackage[utf8]{inputenc}
usepackage[english]{babel}

usepackage{listings}

lstdefinestyle{General} {
basicstyle=smallttfamily,
breaklines=true
}

lstset{style=General}

begin{document}

chapter{MyChapter}
lstinline|(a + b) / c|.
end{document}


This results in



enter image description here



As you can see the space after the closing parenthesis is missing. This is caused by the breaklines=true command. If I would remove it the space is visible. But I need this command. Is there a way to hold the spaces nevertheless?










share|improve this question



























    3















    documentclass{book}
    usepackage[utf8]{inputenc}
    usepackage[english]{babel}

    usepackage{listings}

    lstdefinestyle{General} {
    basicstyle=smallttfamily,
    breaklines=true
    }

    lstset{style=General}

    begin{document}

    chapter{MyChapter}
    lstinline|(a + b) / c|.
    end{document}


    This results in



    enter image description here



    As you can see the space after the closing parenthesis is missing. This is caused by the breaklines=true command. If I would remove it the space is visible. But I need this command. Is there a way to hold the spaces nevertheless?










    share|improve this question

























      3












      3








      3








      documentclass{book}
      usepackage[utf8]{inputenc}
      usepackage[english]{babel}

      usepackage{listings}

      lstdefinestyle{General} {
      basicstyle=smallttfamily,
      breaklines=true
      }

      lstset{style=General}

      begin{document}

      chapter{MyChapter}
      lstinline|(a + b) / c|.
      end{document}


      This results in



      enter image description here



      As you can see the space after the closing parenthesis is missing. This is caused by the breaklines=true command. If I would remove it the space is visible. But I need this command. Is there a way to hold the spaces nevertheless?










      share|improve this question














      documentclass{book}
      usepackage[utf8]{inputenc}
      usepackage[english]{babel}

      usepackage{listings}

      lstdefinestyle{General} {
      basicstyle=smallttfamily,
      breaklines=true
      }

      lstset{style=General}

      begin{document}

      chapter{MyChapter}
      lstinline|(a + b) / c|.
      end{document}


      This results in



      enter image description here



      As you can see the space after the closing parenthesis is missing. This is caused by the breaklines=true command. If I would remove it the space is visible. But I need this command. Is there a way to hold the spaces nevertheless?







      listings parenthesis






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 4 hours ago









      S-ManS-Man

      1434




      1434






















          1 Answer
          1






          active

          oldest

          votes


















          5














          The class and chapter are not relevant. A minimal example would be



          documentclass{article}

          usepackage{listings}

          lstdefinestyle{General} {
          basicstyle=smallttfamily,
          breaklines=true,
          }

          lstset{style=General}

          begin{document}

          lstinline|(a + b) / c|

          end{document}


          that prints



          enter image description here



          Add the keepspaces option:



          documentclass{article}

          usepackage{listings}

          lstdefinestyle{General} {
          basicstyle=smallttfamily,
          breaklines=true,
          keepspaces,
          }

          lstset{style=General}

          begin{document}

          lstinline|(a + b) / c|

          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',
            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%2f476305%2fmissing-space-after-parenthesis-in-inline-text%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









            5














            The class and chapter are not relevant. A minimal example would be



            documentclass{article}

            usepackage{listings}

            lstdefinestyle{General} {
            basicstyle=smallttfamily,
            breaklines=true,
            }

            lstset{style=General}

            begin{document}

            lstinline|(a + b) / c|

            end{document}


            that prints



            enter image description here



            Add the keepspaces option:



            documentclass{article}

            usepackage{listings}

            lstdefinestyle{General} {
            basicstyle=smallttfamily,
            breaklines=true,
            keepspaces,
            }

            lstset{style=General}

            begin{document}

            lstinline|(a + b) / c|

            end{document}


            enter image description here






            share|improve this answer




























              5














              The class and chapter are not relevant. A minimal example would be



              documentclass{article}

              usepackage{listings}

              lstdefinestyle{General} {
              basicstyle=smallttfamily,
              breaklines=true,
              }

              lstset{style=General}

              begin{document}

              lstinline|(a + b) / c|

              end{document}


              that prints



              enter image description here



              Add the keepspaces option:



              documentclass{article}

              usepackage{listings}

              lstdefinestyle{General} {
              basicstyle=smallttfamily,
              breaklines=true,
              keepspaces,
              }

              lstset{style=General}

              begin{document}

              lstinline|(a + b) / c|

              end{document}


              enter image description here






              share|improve this answer


























                5












                5








                5







                The class and chapter are not relevant. A minimal example would be



                documentclass{article}

                usepackage{listings}

                lstdefinestyle{General} {
                basicstyle=smallttfamily,
                breaklines=true,
                }

                lstset{style=General}

                begin{document}

                lstinline|(a + b) / c|

                end{document}


                that prints



                enter image description here



                Add the keepspaces option:



                documentclass{article}

                usepackage{listings}

                lstdefinestyle{General} {
                basicstyle=smallttfamily,
                breaklines=true,
                keepspaces,
                }

                lstset{style=General}

                begin{document}

                lstinline|(a + b) / c|

                end{document}


                enter image description here






                share|improve this answer













                The class and chapter are not relevant. A minimal example would be



                documentclass{article}

                usepackage{listings}

                lstdefinestyle{General} {
                basicstyle=smallttfamily,
                breaklines=true,
                }

                lstset{style=General}

                begin{document}

                lstinline|(a + b) / c|

                end{document}


                that prints



                enter image description here



                Add the keepspaces option:



                documentclass{article}

                usepackage{listings}

                lstdefinestyle{General} {
                basicstyle=smallttfamily,
                breaklines=true,
                keepspaces,
                }

                lstset{style=General}

                begin{document}

                lstinline|(a + b) / c|

                end{document}


                enter image description here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 3 hours ago









                egregegreg

                721k8719133212




                721k8719133212






























                    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%2f476305%2fmissing-space-after-parenthesis-in-inline-text%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

                    Szabolcs (Ungheria) Altri progetti | Menu di navigazione48°10′14.56″N 21°29′33.14″E /...

                    Discografia di Klaus Schulze Indice Album in studio | Album dal vivo | Singoli | Antologie | Colonne...

                    How to make inet_server_addr() return localhost in spite of ::1/128RETURN NEXT in Postgres FunctionConnect to...