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
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
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
add a comment |
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
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
add a comment |
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
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
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
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
listings parenthesis
asked 4 hours ago
S-ManS-Man
1434
1434
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
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}
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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}
add a comment |
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
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}
add a comment |
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
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}
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
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}
answered 3 hours ago
egregegreg
721k8719133212
721k8719133212
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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