Time to take a step back and ask for recommendations on how to solve in-line code issues I'm having
First off, my document is created in markdown and processed by pandoc to LaTeX format. This is then processed to PDF format using pdflatex. In-line code blocks have the following requirements (all inline code statements are enclosed in a single back quote):
- Single words, even if they are combined words like
listchildren, word will not be word wrapped. - Very long shell commands may or may not contain file names with full paths that can be very long themselves and have underscores. These full path filenames will not necessarily be broken up at just a space character, but also a forward slash
/. - There should be an option to be able to use a special character to indicate where a wrapping should be done. but not displayed even when not used to cause a long string wrap.
- Inline code will have a gray background, but either no border or one that is the same color as the background.
Since I'm using pandoc for this, pandoc uses the texttt for these kinds of items. Therefore, we need to probably redefine texttt do what we need to have it do.
Is this doable? How difficult would it be? I'm able to do items #1 and #4, but not #2 and #3. I have not even tried #3. When I tried #2, I lost #4 and the _ characters showed up. Any help or directions would be most helpful.
pdftex pandoc
add a comment |
First off, my document is created in markdown and processed by pandoc to LaTeX format. This is then processed to PDF format using pdflatex. In-line code blocks have the following requirements (all inline code statements are enclosed in a single back quote):
- Single words, even if they are combined words like
listchildren, word will not be word wrapped. - Very long shell commands may or may not contain file names with full paths that can be very long themselves and have underscores. These full path filenames will not necessarily be broken up at just a space character, but also a forward slash
/. - There should be an option to be able to use a special character to indicate where a wrapping should be done. but not displayed even when not used to cause a long string wrap.
- Inline code will have a gray background, but either no border or one that is the same color as the background.
Since I'm using pandoc for this, pandoc uses the texttt for these kinds of items. Therefore, we need to probably redefine texttt do what we need to have it do.
Is this doable? How difficult would it be? I'm able to do items #1 and #4, but not #2 and #3. I have not even tried #3. When I tried #2, I lost #4 and the _ characters showed up. Any help or directions would be most helpful.
pdftex pandoc
Can you provide a markdown document that has all the characteristics you're having issues with? Can you keep the produced.texthat pandoc makes before processing it to PDF?
– Werner
35 secs ago
add a comment |
First off, my document is created in markdown and processed by pandoc to LaTeX format. This is then processed to PDF format using pdflatex. In-line code blocks have the following requirements (all inline code statements are enclosed in a single back quote):
- Single words, even if they are combined words like
listchildren, word will not be word wrapped. - Very long shell commands may or may not contain file names with full paths that can be very long themselves and have underscores. These full path filenames will not necessarily be broken up at just a space character, but also a forward slash
/. - There should be an option to be able to use a special character to indicate where a wrapping should be done. but not displayed even when not used to cause a long string wrap.
- Inline code will have a gray background, but either no border or one that is the same color as the background.
Since I'm using pandoc for this, pandoc uses the texttt for these kinds of items. Therefore, we need to probably redefine texttt do what we need to have it do.
Is this doable? How difficult would it be? I'm able to do items #1 and #4, but not #2 and #3. I have not even tried #3. When I tried #2, I lost #4 and the _ characters showed up. Any help or directions would be most helpful.
pdftex pandoc
First off, my document is created in markdown and processed by pandoc to LaTeX format. This is then processed to PDF format using pdflatex. In-line code blocks have the following requirements (all inline code statements are enclosed in a single back quote):
- Single words, even if they are combined words like
listchildren, word will not be word wrapped. - Very long shell commands may or may not contain file names with full paths that can be very long themselves and have underscores. These full path filenames will not necessarily be broken up at just a space character, but also a forward slash
/. - There should be an option to be able to use a special character to indicate where a wrapping should be done. but not displayed even when not used to cause a long string wrap.
- Inline code will have a gray background, but either no border or one that is the same color as the background.
Since I'm using pandoc for this, pandoc uses the texttt for these kinds of items. Therefore, we need to probably redefine texttt do what we need to have it do.
Is this doable? How difficult would it be? I'm able to do items #1 and #4, but not #2 and #3. I have not even tried #3. When I tried #2, I lost #4 and the _ characters showed up. Any help or directions would be most helpful.
pdftex pandoc
pdftex pandoc
asked 5 mins ago
JonBelanger
276
276
Can you provide a markdown document that has all the characteristics you're having issues with? Can you keep the produced.texthat pandoc makes before processing it to PDF?
– Werner
35 secs ago
add a comment |
Can you provide a markdown document that has all the characteristics you're having issues with? Can you keep the produced.texthat pandoc makes before processing it to PDF?
– Werner
35 secs ago
Can you provide a markdown document that has all the characteristics you're having issues with? Can you keep the produced
.tex that pandoc makes before processing it to PDF?– Werner
35 secs ago
Can you provide a markdown document that has all the characteristics you're having issues with? Can you keep the produced
.tex that pandoc makes before processing it to PDF?– Werner
35 secs ago
add a comment |
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
});
}
});
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%2f466921%2ftime-to-take-a-step-back-and-ask-for-recommendations-on-how-to-solve-in-line-cod%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f466921%2ftime-to-take-a-step-back-and-ask-for-recommendations-on-how-to-solve-in-line-cod%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
Can you provide a markdown document that has all the characteristics you're having issues with? Can you keep the produced
.texthat pandoc makes before processing it to PDF?– Werner
35 secs ago