Commenting out a few words within a paragraph?












18















Is there anyway by which I can comment out a word within a sentence?










share|improve this question

























  • 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 todo package. Your goal seems different than the question though...

    – Werner
    Nov 5 '15 at 11:11
















18















Is there anyway by which I can comment out a word within a sentence?










share|improve this question

























  • 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 todo package. Your goal seems different than the question though...

    – Werner
    Nov 5 '15 at 11:11














18












18








18


2






Is there anyway by which I can comment out a word within a sentence?










share|improve this question
















Is there anyway by which I can comment out a word within a sentence?







comments






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 the todo package. 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











  • 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 todo package. 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










2 Answers
2






active

oldest

votes


















11














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}





share|improve this answer































    24














    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.)






    share|improve this answer





















    • 1





      You could throw in a ignorespaces

      – John Kormylo
      Jul 15 '16 at 22:35






    • 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






    • 9





      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













    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%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









    11














    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}





    share|improve this answer




























      11














      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}





      share|improve this answer


























        11












        11








        11







        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}





        share|improve this answer













        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}






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 5 '15 at 12:24









        JamesJames

        2,9021623




        2,9021623























            24














            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.)






            share|improve this answer





















            • 1





              You could throw in a ignorespaces

              – John Kormylo
              Jul 15 '16 at 22:35






            • 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






            • 9





              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


















            24














            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.)






            share|improve this answer





















            • 1





              You could throw in a ignorespaces

              – John Kormylo
              Jul 15 '16 at 22:35






            • 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






            • 9





              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
















            24












            24








            24







            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.)






            share|improve this answer















            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.)







            share|improve this answer














            share|improve this answer



            share|improve this answer








            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 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





              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
















            • 1





              You could throw in a ignorespaces

              – John Kormylo
              Jul 15 '16 at 22:35






            • 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






            • 9





              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










            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




















            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%2f276697%2fcommenting-out-a-few-words-within-a-paragraph%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

            Futebolista

            Jornalista

            F# list compare