New lines after in lstlistingBreaking lines with lstlistingnewenvironment gives error with...
Why is Beresheet doing a only a one-way trip?
How to create a hard link to an inode (ext4)?
Is Gradient Descent central to every optimizer?
In the late 1940’s to early 1950’s what technology was available that could melt a LOT of ice?
Should I tell my boss the work he did was worthless
How are such low op-amp input currents possible?
Making a sword in the stone, in a medieval world without magic
Make a transparent 448*448 image
Does "variables should live in the smallest scope as possible" include the case "variables should not exist if possible"?
Why does the negative sign arise in this thermodynamic relation?
Unreachable code, but reachable with exception
How did Alan Turing break the enigma code using the hint given by the lady in the bar?
Why don't MCU characters ever seem to have language issues?
Good for you! in Russian
Can't find the Shader/UVs tab
Offered promotion but I'm leaving. Should I tell?
What is the likely impact of grounding an entire aircraft series?
Do Bugbears' arms literally get longer when it's their turn?
Solving "Resistance between two nodes on a grid" problem in Mathematica
Do I really need to have a scientific explanation for my premise?
Best approach to update all entries in a list that is paginated?
My story is written in English, but is set in my home country. What language should I use for the dialogue?
How much stiffer are 23c tires over 28c?
Placing subfig vertically
New lines after in lstlisting
Breaking lines with lstlistingnewenvironment gives error with lstlistingLstlisting format Java codehtlatex : lstlisting colors stop after using tikzUnderscore and asterisk color in lstlisting stringError to compile lstlistingCustomize keyword lstlistingEditor breaks line within lstlistinghow to use accents inside a lstlistingHow to skip lines in lstlisting with dots?
I have very simple bash listing
begin{lstlisting}
$ docker create --name my-nginx
--network host
--publish 8080:80
nginx:latest
end{lstlisting}
It looks fine in PDF, but once I try to copy it to the clipboard from PDF it doesn't have any linebreaks after backslashes and looks like this:
docker create --name my-nginx --network host
--publish 8080:80 nginx:latest
It's beamer by the way.
Any chance to fix it?
line-breaking lstlisting
New contributor
add a comment |
I have very simple bash listing
begin{lstlisting}
$ docker create --name my-nginx
--network host
--publish 8080:80
nginx:latest
end{lstlisting}
It looks fine in PDF, but once I try to copy it to the clipboard from PDF it doesn't have any linebreaks after backslashes and looks like this:
docker create --name my-nginx --network host
--publish 8080:80 nginx:latest
It's beamer by the way.
Any chance to fix it?
line-breaking lstlisting
New contributor
add a comment |
I have very simple bash listing
begin{lstlisting}
$ docker create --name my-nginx
--network host
--publish 8080:80
nginx:latest
end{lstlisting}
It looks fine in PDF, but once I try to copy it to the clipboard from PDF it doesn't have any linebreaks after backslashes and looks like this:
docker create --name my-nginx --network host
--publish 8080:80 nginx:latest
It's beamer by the way.
Any chance to fix it?
line-breaking lstlisting
New contributor
I have very simple bash listing
begin{lstlisting}
$ docker create --name my-nginx
--network host
--publish 8080:80
nginx:latest
end{lstlisting}
It looks fine in PDF, but once I try to copy it to the clipboard from PDF it doesn't have any linebreaks after backslashes and looks like this:
docker create --name my-nginx --network host
--publish 8080:80 nginx:latest
It's beamer by the way.
Any chance to fix it?
line-breaking lstlisting
line-breaking lstlisting
New contributor
New contributor
New contributor
asked 5 mins ago
famerfamer
1
1
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
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
});
}
});
famer is a new contributor. Be nice, and check out our Code of Conduct.
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%2f479213%2fnew-lines-after-in-lstlisting%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
famer is a new contributor. Be nice, and check out our Code of Conduct.
famer is a new contributor. Be nice, and check out our Code of Conduct.
famer is a new contributor. Be nice, and check out our Code of Conduct.
famer is a new contributor. Be nice, and check out our Code of Conduct.
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%2f479213%2fnew-lines-after-in-lstlisting%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