Artifacts from Latex configuration showing in output












2














I've written some Latex in my doxygen comment that looks like this...



/*!
@note
@latexonly

documentclass{article}
usepackage{courier}

lstset{basicstyle=footnotesizettfamily}

begin{document}
fontsize{10pt}{12pt}selectfont
newpage
begin{verbatim}


CONTENT



end{verbatim}
end{document}
@endlatexonly
*/


Produces this after running 'pdflatex'



article courier
basicstyle=
(PageBreak: No text in PDF)
CONTENT


What am I doing wrong? I just wanted to set the text to a monospace font and have it output verbatim.



Note: I'm running MikTeX 2.9 on windows 7



Update:



I Took a look in the .tex file doxygen makes for the class with this comment and found this.



 begin{DoxyNote}{Note}


//Everything above



end{DoxyNote}


Could that create the odd things I'm seeing?



Update 2:



I found this,




Starts a block of text that will be verbatim included in the generated
LaTeX documentation only.




So that tells me MiKTeX doesn't like those labels. When doxygen creates the .Tex files this bit shows up in the middle. Does LaTeX have rules about defining a preamble in the middle of a document? This is the first thing I've ever done in LaTeX so I'm not surprised that I'm having issues.



I did some testing and when I remove documentclass,begin{document} and end{document} it didn't get rid of the artifacts but it did fix some other problems I opened another question about funny enough. And then moved to here










share|improve this question
























  • Can't help with Doxygen, but doesn't the command lstset require you to load something like the listings package (i.e., usepackage{listings})?
    – jon
    Aug 13 '13 at 21:41










  • I honestly couldn't tell you I adapted an example from here. I am using usepackage{courier} right before that line. And from what the link mentioned that was so ttfamily could use it.
    – Dan
    Aug 13 '13 at 21:50












  • @jon oh you're right it's for setting listings to courier. Could you tell me how to set the content section to courier correctly then?
    – Dan
    Aug 13 '13 at 21:55










  • It (a normal LaTeX document) should work as long as you add the line usepackage{listings}. The fontsize can more easily be set to 10pt by loading it as an option to your documentclass: documentclass[10pt]{article}. ... But how that all interacts/works with Doxygen is not something I can competently answer.
    – jon
    Aug 13 '13 at 22:08










  • @jon now I'm getting article listings courier basicstyle= :p. I get the feeling this might be Doxygen but lets not count out my noob-ness either. Thanks for trying to help.
    – Dan
    Aug 13 '13 at 23:01
















2














I've written some Latex in my doxygen comment that looks like this...



/*!
@note
@latexonly

documentclass{article}
usepackage{courier}

lstset{basicstyle=footnotesizettfamily}

begin{document}
fontsize{10pt}{12pt}selectfont
newpage
begin{verbatim}


CONTENT



end{verbatim}
end{document}
@endlatexonly
*/


Produces this after running 'pdflatex'



article courier
basicstyle=
(PageBreak: No text in PDF)
CONTENT


What am I doing wrong? I just wanted to set the text to a monospace font and have it output verbatim.



Note: I'm running MikTeX 2.9 on windows 7



Update:



I Took a look in the .tex file doxygen makes for the class with this comment and found this.



 begin{DoxyNote}{Note}


//Everything above



end{DoxyNote}


Could that create the odd things I'm seeing?



Update 2:



I found this,




Starts a block of text that will be verbatim included in the generated
LaTeX documentation only.




So that tells me MiKTeX doesn't like those labels. When doxygen creates the .Tex files this bit shows up in the middle. Does LaTeX have rules about defining a preamble in the middle of a document? This is the first thing I've ever done in LaTeX so I'm not surprised that I'm having issues.



I did some testing and when I remove documentclass,begin{document} and end{document} it didn't get rid of the artifacts but it did fix some other problems I opened another question about funny enough. And then moved to here










share|improve this question
























  • Can't help with Doxygen, but doesn't the command lstset require you to load something like the listings package (i.e., usepackage{listings})?
    – jon
    Aug 13 '13 at 21:41










  • I honestly couldn't tell you I adapted an example from here. I am using usepackage{courier} right before that line. And from what the link mentioned that was so ttfamily could use it.
    – Dan
    Aug 13 '13 at 21:50












  • @jon oh you're right it's for setting listings to courier. Could you tell me how to set the content section to courier correctly then?
    – Dan
    Aug 13 '13 at 21:55










  • It (a normal LaTeX document) should work as long as you add the line usepackage{listings}. The fontsize can more easily be set to 10pt by loading it as an option to your documentclass: documentclass[10pt]{article}. ... But how that all interacts/works with Doxygen is not something I can competently answer.
    – jon
    Aug 13 '13 at 22:08










  • @jon now I'm getting article listings courier basicstyle= :p. I get the feeling this might be Doxygen but lets not count out my noob-ness either. Thanks for trying to help.
    – Dan
    Aug 13 '13 at 23:01














2












2








2







I've written some Latex in my doxygen comment that looks like this...



/*!
@note
@latexonly

documentclass{article}
usepackage{courier}

lstset{basicstyle=footnotesizettfamily}

begin{document}
fontsize{10pt}{12pt}selectfont
newpage
begin{verbatim}


CONTENT



end{verbatim}
end{document}
@endlatexonly
*/


Produces this after running 'pdflatex'



article courier
basicstyle=
(PageBreak: No text in PDF)
CONTENT


What am I doing wrong? I just wanted to set the text to a monospace font and have it output verbatim.



Note: I'm running MikTeX 2.9 on windows 7



Update:



I Took a look in the .tex file doxygen makes for the class with this comment and found this.



 begin{DoxyNote}{Note}


//Everything above



end{DoxyNote}


Could that create the odd things I'm seeing?



Update 2:



I found this,




Starts a block of text that will be verbatim included in the generated
LaTeX documentation only.




So that tells me MiKTeX doesn't like those labels. When doxygen creates the .Tex files this bit shows up in the middle. Does LaTeX have rules about defining a preamble in the middle of a document? This is the first thing I've ever done in LaTeX so I'm not surprised that I'm having issues.



I did some testing and when I remove documentclass,begin{document} and end{document} it didn't get rid of the artifacts but it did fix some other problems I opened another question about funny enough. And then moved to here










share|improve this question















I've written some Latex in my doxygen comment that looks like this...



/*!
@note
@latexonly

documentclass{article}
usepackage{courier}

lstset{basicstyle=footnotesizettfamily}

begin{document}
fontsize{10pt}{12pt}selectfont
newpage
begin{verbatim}


CONTENT



end{verbatim}
end{document}
@endlatexonly
*/


Produces this after running 'pdflatex'



article courier
basicstyle=
(PageBreak: No text in PDF)
CONTENT


What am I doing wrong? I just wanted to set the text to a monospace font and have it output verbatim.



Note: I'm running MikTeX 2.9 on windows 7



Update:



I Took a look in the .tex file doxygen makes for the class with this comment and found this.



 begin{DoxyNote}{Note}


//Everything above



end{DoxyNote}


Could that create the odd things I'm seeing?



Update 2:



I found this,




Starts a block of text that will be verbatim included in the generated
LaTeX documentation only.




So that tells me MiKTeX doesn't like those labels. When doxygen creates the .Tex files this bit shows up in the middle. Does LaTeX have rules about defining a preamble in the middle of a document? This is the first thing I've ever done in LaTeX so I'm not surprised that I'm having issues.



I did some testing and when I remove documentclass,begin{document} and end{document} it didn't get rid of the artifacts but it did fix some other problems I opened another question about funny enough. And then moved to here







pdf miktex output






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 16 mins ago









albert

625414




625414










asked Aug 13 '13 at 19:20









Dan

1216




1216












  • Can't help with Doxygen, but doesn't the command lstset require you to load something like the listings package (i.e., usepackage{listings})?
    – jon
    Aug 13 '13 at 21:41










  • I honestly couldn't tell you I adapted an example from here. I am using usepackage{courier} right before that line. And from what the link mentioned that was so ttfamily could use it.
    – Dan
    Aug 13 '13 at 21:50












  • @jon oh you're right it's for setting listings to courier. Could you tell me how to set the content section to courier correctly then?
    – Dan
    Aug 13 '13 at 21:55










  • It (a normal LaTeX document) should work as long as you add the line usepackage{listings}. The fontsize can more easily be set to 10pt by loading it as an option to your documentclass: documentclass[10pt]{article}. ... But how that all interacts/works with Doxygen is not something I can competently answer.
    – jon
    Aug 13 '13 at 22:08










  • @jon now I'm getting article listings courier basicstyle= :p. I get the feeling this might be Doxygen but lets not count out my noob-ness either. Thanks for trying to help.
    – Dan
    Aug 13 '13 at 23:01


















  • Can't help with Doxygen, but doesn't the command lstset require you to load something like the listings package (i.e., usepackage{listings})?
    – jon
    Aug 13 '13 at 21:41










  • I honestly couldn't tell you I adapted an example from here. I am using usepackage{courier} right before that line. And from what the link mentioned that was so ttfamily could use it.
    – Dan
    Aug 13 '13 at 21:50












  • @jon oh you're right it's for setting listings to courier. Could you tell me how to set the content section to courier correctly then?
    – Dan
    Aug 13 '13 at 21:55










  • It (a normal LaTeX document) should work as long as you add the line usepackage{listings}. The fontsize can more easily be set to 10pt by loading it as an option to your documentclass: documentclass[10pt]{article}. ... But how that all interacts/works with Doxygen is not something I can competently answer.
    – jon
    Aug 13 '13 at 22:08










  • @jon now I'm getting article listings courier basicstyle= :p. I get the feeling this might be Doxygen but lets not count out my noob-ness either. Thanks for trying to help.
    – Dan
    Aug 13 '13 at 23:01
















Can't help with Doxygen, but doesn't the command lstset require you to load something like the listings package (i.e., usepackage{listings})?
– jon
Aug 13 '13 at 21:41




Can't help with Doxygen, but doesn't the command lstset require you to load something like the listings package (i.e., usepackage{listings})?
– jon
Aug 13 '13 at 21:41












I honestly couldn't tell you I adapted an example from here. I am using usepackage{courier} right before that line. And from what the link mentioned that was so ttfamily could use it.
– Dan
Aug 13 '13 at 21:50






I honestly couldn't tell you I adapted an example from here. I am using usepackage{courier} right before that line. And from what the link mentioned that was so ttfamily could use it.
– Dan
Aug 13 '13 at 21:50














@jon oh you're right it's for setting listings to courier. Could you tell me how to set the content section to courier correctly then?
– Dan
Aug 13 '13 at 21:55




@jon oh you're right it's for setting listings to courier. Could you tell me how to set the content section to courier correctly then?
– Dan
Aug 13 '13 at 21:55












It (a normal LaTeX document) should work as long as you add the line usepackage{listings}. The fontsize can more easily be set to 10pt by loading it as an option to your documentclass: documentclass[10pt]{article}. ... But how that all interacts/works with Doxygen is not something I can competently answer.
– jon
Aug 13 '13 at 22:08




It (a normal LaTeX document) should work as long as you add the line usepackage{listings}. The fontsize can more easily be set to 10pt by loading it as an option to your documentclass: documentclass[10pt]{article}. ... But how that all interacts/works with Doxygen is not something I can competently answer.
– jon
Aug 13 '13 at 22:08












@jon now I'm getting article listings courier basicstyle= :p. I get the feeling this might be Doxygen but lets not count out my noob-ness either. Thanks for trying to help.
– Dan
Aug 13 '13 at 23:01




@jon now I'm getting article listings courier basicstyle= :p. I get the feeling this might be Doxygen but lets not count out my noob-ness either. Thanks for trying to help.
– Dan
Aug 13 '13 at 23:01










1 Answer
1






active

oldest

votes


















1














EUREKA!



The labels you add in Doxygen comments are inside a begin{document} or something like it. So preamble (I think that's what definitions like usepackage are called) aren't valid syntax there.



So what was happening was the COMMANDS would be absorbed, deemed invalid there and the arguments would come through as plain text.



So the answer was to this is...



/*!
@note
@latexonly
newpage
fontsize{10pt}{12pt}selectfont
ttfamily
begin{verbatim}


CONTENT



end{verbatim}    
@endlatexonly
*/


Strictly speaking all ttfamily guarantees is a monospaced font but that's all I wanted.
:)






share|improve this answer





















    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%2f128084%2fartifacts-from-latex-configuration-showing-in-output%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









    1














    EUREKA!



    The labels you add in Doxygen comments are inside a begin{document} or something like it. So preamble (I think that's what definitions like usepackage are called) aren't valid syntax there.



    So what was happening was the COMMANDS would be absorbed, deemed invalid there and the arguments would come through as plain text.



    So the answer was to this is...



    /*!
    @note
    @latexonly
    newpage
    fontsize{10pt}{12pt}selectfont
    ttfamily
    begin{verbatim}


    CONTENT



    end{verbatim}    
    @endlatexonly
    */


    Strictly speaking all ttfamily guarantees is a monospaced font but that's all I wanted.
    :)






    share|improve this answer


























      1














      EUREKA!



      The labels you add in Doxygen comments are inside a begin{document} or something like it. So preamble (I think that's what definitions like usepackage are called) aren't valid syntax there.



      So what was happening was the COMMANDS would be absorbed, deemed invalid there and the arguments would come through as plain text.



      So the answer was to this is...



      /*!
      @note
      @latexonly
      newpage
      fontsize{10pt}{12pt}selectfont
      ttfamily
      begin{verbatim}


      CONTENT



      end{verbatim}    
      @endlatexonly
      */


      Strictly speaking all ttfamily guarantees is a monospaced font but that's all I wanted.
      :)






      share|improve this answer
























        1












        1








        1






        EUREKA!



        The labels you add in Doxygen comments are inside a begin{document} or something like it. So preamble (I think that's what definitions like usepackage are called) aren't valid syntax there.



        So what was happening was the COMMANDS would be absorbed, deemed invalid there and the arguments would come through as plain text.



        So the answer was to this is...



        /*!
        @note
        @latexonly
        newpage
        fontsize{10pt}{12pt}selectfont
        ttfamily
        begin{verbatim}


        CONTENT



        end{verbatim}    
        @endlatexonly
        */


        Strictly speaking all ttfamily guarantees is a monospaced font but that's all I wanted.
        :)






        share|improve this answer












        EUREKA!



        The labels you add in Doxygen comments are inside a begin{document} or something like it. So preamble (I think that's what definitions like usepackage are called) aren't valid syntax there.



        So what was happening was the COMMANDS would be absorbed, deemed invalid there and the arguments would come through as plain text.



        So the answer was to this is...



        /*!
        @note
        @latexonly
        newpage
        fontsize{10pt}{12pt}selectfont
        ttfamily
        begin{verbatim}


        CONTENT



        end{verbatim}    
        @endlatexonly
        */


        Strictly speaking all ttfamily guarantees is a monospaced font but that's all I wanted.
        :)







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 14 '13 at 0:42









        Dan

        1216




        1216






























            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.





            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f128084%2fartifacts-from-latex-configuration-showing-in-output%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

            Entries order in /etc/network/interfaces

            新発田市

            Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)