Commenting out a few words within a paragraph?
Is there anyway by which I can comment out a word within a sentence?
comments
add a comment |
Is there anyway by which I can comment out a word within a sentence?
comments
Could you clarify what you mean by "comment[ing] out a word within a sentence"? Please provide us with an example.
– Werner
Nov 5 '15 at 6:03
In my case, I wanted to cite a few papers, but I was't sure if one of them was the correct reference. I wanted to leave a note for myself to check that specific reference later.
– Reza
Nov 5 '15 at 7:33
3
I'd suggest looking into using thetodopackage. Your goal seems different than the question though...
– Werner
Nov 5 '15 at 11:11
add a comment |
Is there anyway by which I can comment out a word within a sentence?
comments
Is there anyway by which I can comment out a word within a sentence?
comments
comments
edited Nov 5 '15 at 6:03
Werner
448k709911697
448k709911697
asked Nov 5 '15 at 5:40
RezaReza
93117
93117
Could you clarify what you mean by "comment[ing] out a word within a sentence"? Please provide us with an example.
– Werner
Nov 5 '15 at 6:03
In my case, I wanted to cite a few papers, but I was't sure if one of them was the correct reference. I wanted to leave a note for myself to check that specific reference later.
– Reza
Nov 5 '15 at 7:33
3
I'd suggest looking into using thetodopackage. Your goal seems different than the question though...
– Werner
Nov 5 '15 at 11:11
add a comment |
Could you clarify what you mean by "comment[ing] out a word within a sentence"? Please provide us with an example.
– Werner
Nov 5 '15 at 6:03
In my case, I wanted to cite a few papers, but I was't sure if one of them was the correct reference. I wanted to leave a note for myself to check that specific reference later.
– Reza
Nov 5 '15 at 7:33
3
I'd suggest looking into using thetodopackage. Your goal seems different than the question though...
– Werner
Nov 5 '15 at 11:11
Could you clarify what you mean by "comment[ing] out a word within a sentence"? Please provide us with an example.
– Werner
Nov 5 '15 at 6:03
Could you clarify what you mean by "comment[ing] out a word within a sentence"? Please provide us with an example.
– Werner
Nov 5 '15 at 6:03
In my case, I wanted to cite a few papers, but I was't sure if one of them was the correct reference. I wanted to leave a note for myself to check that specific reference later.
– Reza
Nov 5 '15 at 7:33
In my case, I wanted to cite a few papers, but I was't sure if one of them was the correct reference. I wanted to leave a note for myself to check that specific reference later.
– Reza
Nov 5 '15 at 7:33
3
3
I'd suggest looking into using the
todo package. Your goal seems different than the question though...– Werner
Nov 5 '15 at 11:11
I'd suggest looking into using the
todo package. Your goal seems different than the question though...– Werner
Nov 5 '15 at 11:11
add a comment |
2 Answers
2
active
oldest
votes
This is probably the easiest way.
documentclass{article}
begin{document}
I like bacon, sausage,
% pork chops,
and ham.
% Note to self... try pork chops
end{document}
add a comment |
You can do this:
newcommand{cmmnt}[1]{}
...
begin{document}
Hello cmmnt{commented text} bye.
end{document}
A comment suggests eliminating undesired spaces around the comment:
newcommand{cmmnt}[1]{ignorespaces}
...
(This should be part of some "comment" package, if it is not already.)
1
You could throw in a ignorespaces
– John Kormylo
Jul 15 '16 at 22:35
2
Do you mean usenewcommand{cmmnt}[1]{ignorespaces}to avoid creating spurious spaces in the text (coming from surrounding the command with actual spaces)?
– alfC
Jul 15 '16 at 23:41
9
Ja. Da. Oui. Si. (Is that 15 letters yet?)
– John Kormylo
Jul 16 '16 at 3:41
Perhaps even better thanignorespacesisnewcommand{cmmnt}[1]{@bsphack@esphack}. Theignorespacesapproach fails withLoremcmmnt{ipsum} dolor, while@bsphack@esphackdon't (these two macros are used by the LaTeX kernel for commands which don't produce typeset output, likelabel. See: tex.stackexchange.com/a/201821/134574).
– Phelype Oleinik
3 hours ago
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%2f276697%2fcommenting-out-a-few-words-within-a-paragraph%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
This is probably the easiest way.
documentclass{article}
begin{document}
I like bacon, sausage,
% pork chops,
and ham.
% Note to self... try pork chops
end{document}
add a comment |
This is probably the easiest way.
documentclass{article}
begin{document}
I like bacon, sausage,
% pork chops,
and ham.
% Note to self... try pork chops
end{document}
add a comment |
This is probably the easiest way.
documentclass{article}
begin{document}
I like bacon, sausage,
% pork chops,
and ham.
% Note to self... try pork chops
end{document}
This is probably the easiest way.
documentclass{article}
begin{document}
I like bacon, sausage,
% pork chops,
and ham.
% Note to self... try pork chops
end{document}
answered Nov 5 '15 at 12:24
JamesJames
2,9021623
2,9021623
add a comment |
add a comment |
You can do this:
newcommand{cmmnt}[1]{}
...
begin{document}
Hello cmmnt{commented text} bye.
end{document}
A comment suggests eliminating undesired spaces around the comment:
newcommand{cmmnt}[1]{ignorespaces}
...
(This should be part of some "comment" package, if it is not already.)
1
You could throw in a ignorespaces
– John Kormylo
Jul 15 '16 at 22:35
2
Do you mean usenewcommand{cmmnt}[1]{ignorespaces}to avoid creating spurious spaces in the text (coming from surrounding the command with actual spaces)?
– alfC
Jul 15 '16 at 23:41
9
Ja. Da. Oui. Si. (Is that 15 letters yet?)
– John Kormylo
Jul 16 '16 at 3:41
Perhaps even better thanignorespacesisnewcommand{cmmnt}[1]{@bsphack@esphack}. Theignorespacesapproach fails withLoremcmmnt{ipsum} dolor, while@bsphack@esphackdon't (these two macros are used by the LaTeX kernel for commands which don't produce typeset output, likelabel. See: tex.stackexchange.com/a/201821/134574).
– Phelype Oleinik
3 hours ago
add a comment |
You can do this:
newcommand{cmmnt}[1]{}
...
begin{document}
Hello cmmnt{commented text} bye.
end{document}
A comment suggests eliminating undesired spaces around the comment:
newcommand{cmmnt}[1]{ignorespaces}
...
(This should be part of some "comment" package, if it is not already.)
1
You could throw in a ignorespaces
– John Kormylo
Jul 15 '16 at 22:35
2
Do you mean usenewcommand{cmmnt}[1]{ignorespaces}to avoid creating spurious spaces in the text (coming from surrounding the command with actual spaces)?
– alfC
Jul 15 '16 at 23:41
9
Ja. Da. Oui. Si. (Is that 15 letters yet?)
– John Kormylo
Jul 16 '16 at 3:41
Perhaps even better thanignorespacesisnewcommand{cmmnt}[1]{@bsphack@esphack}. Theignorespacesapproach fails withLoremcmmnt{ipsum} dolor, while@bsphack@esphackdon't (these two macros are used by the LaTeX kernel for commands which don't produce typeset output, likelabel. See: tex.stackexchange.com/a/201821/134574).
– Phelype Oleinik
3 hours ago
add a comment |
You can do this:
newcommand{cmmnt}[1]{}
...
begin{document}
Hello cmmnt{commented text} bye.
end{document}
A comment suggests eliminating undesired spaces around the comment:
newcommand{cmmnt}[1]{ignorespaces}
...
(This should be part of some "comment" package, if it is not already.)
You can do this:
newcommand{cmmnt}[1]{}
...
begin{document}
Hello cmmnt{commented text} bye.
end{document}
A comment suggests eliminating undesired spaces around the comment:
newcommand{cmmnt}[1]{ignorespaces}
...
(This should be part of some "comment" package, if it is not already.)
edited 3 hours ago
answered Nov 5 '15 at 5:46
alfCalfC
7,813654116
7,813654116
1
You could throw in a ignorespaces
– John Kormylo
Jul 15 '16 at 22:35
2
Do you mean usenewcommand{cmmnt}[1]{ignorespaces}to avoid creating spurious spaces in the text (coming from surrounding the command with actual spaces)?
– alfC
Jul 15 '16 at 23:41
9
Ja. Da. Oui. Si. (Is that 15 letters yet?)
– John Kormylo
Jul 16 '16 at 3:41
Perhaps even better thanignorespacesisnewcommand{cmmnt}[1]{@bsphack@esphack}. Theignorespacesapproach fails withLoremcmmnt{ipsum} dolor, while@bsphack@esphackdon't (these two macros are used by the LaTeX kernel for commands which don't produce typeset output, likelabel. See: tex.stackexchange.com/a/201821/134574).
– Phelype Oleinik
3 hours ago
add a comment |
1
You could throw in a ignorespaces
– John Kormylo
Jul 15 '16 at 22:35
2
Do you mean usenewcommand{cmmnt}[1]{ignorespaces}to avoid creating spurious spaces in the text (coming from surrounding the command with actual spaces)?
– alfC
Jul 15 '16 at 23:41
9
Ja. Da. Oui. Si. (Is that 15 letters yet?)
– John Kormylo
Jul 16 '16 at 3:41
Perhaps even better thanignorespacesisnewcommand{cmmnt}[1]{@bsphack@esphack}. Theignorespacesapproach fails withLoremcmmnt{ipsum} dolor, while@bsphack@esphackdon't (these two macros are used by the LaTeX kernel for commands which don't produce typeset output, likelabel. See: tex.stackexchange.com/a/201821/134574).
– Phelype Oleinik
3 hours ago
1
1
You could throw in a ignorespaces
– John Kormylo
Jul 15 '16 at 22:35
You could throw in a ignorespaces
– John Kormylo
Jul 15 '16 at 22:35
2
2
Do you mean use
newcommand{cmmnt}[1]{ignorespaces} to avoid creating spurious spaces in the text (coming from surrounding the command with actual spaces)?– alfC
Jul 15 '16 at 23:41
Do you mean use
newcommand{cmmnt}[1]{ignorespaces} to avoid creating spurious spaces in the text (coming from surrounding the command with actual spaces)?– alfC
Jul 15 '16 at 23:41
9
9
Ja. Da. Oui. Si. (Is that 15 letters yet?)
– John Kormylo
Jul 16 '16 at 3:41
Ja. Da. Oui. Si. (Is that 15 letters yet?)
– John Kormylo
Jul 16 '16 at 3:41
Perhaps even better than
ignorespaces is newcommand{cmmnt}[1]{@bsphack@esphack}. The ignorespaces approach fails with Loremcmmnt{ipsum} dolor, while @bsphack@esphack don't (these two macros are used by the LaTeX kernel for commands which don't produce typeset output, like label. See: tex.stackexchange.com/a/201821/134574).– Phelype Oleinik
3 hours ago
Perhaps even better than
ignorespaces is newcommand{cmmnt}[1]{@bsphack@esphack}. The ignorespaces approach fails with Loremcmmnt{ipsum} dolor, while @bsphack@esphack don't (these two macros are used by the LaTeX kernel for commands which don't produce typeset output, like label. See: tex.stackexchange.com/a/201821/134574).– Phelype Oleinik
3 hours ago
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%2f276697%2fcommenting-out-a-few-words-within-a-paragraph%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
Could you clarify what you mean by "comment[ing] out a word within a sentence"? Please provide us with an example.
– Werner
Nov 5 '15 at 6:03
In my case, I wanted to cite a few papers, but I was't sure if one of them was the correct reference. I wanted to leave a note for myself to check that specific reference later.
– Reza
Nov 5 '15 at 7:33
3
I'd suggest looking into using the
todopackage. Your goal seems different than the question though...– Werner
Nov 5 '15 at 11:11