moderncv package does not recognize it command












2















The moderncv package does not recognize it command. Sure we can use textit instead. The problem is that BibTeX generated files may contain it commands... So, edition of the bbl file is required to change all the it commands into textit command. The same is true for other commands of the same type: rm, bf and so on.



Is there a way to force BibTeX to use textit instead of it or to force moderncv to understand it?










share|improve this question


















  • 1





    Use itshape, not it, see here: tex.stackexchange.com/questions/8053/…. And bfseries instead of bf, etc. see here: tex.stackexchange.com/questions/516/…

    – CarLaTeX
    Feb 3 at 10:29


















2















The moderncv package does not recognize it command. Sure we can use textit instead. The problem is that BibTeX generated files may contain it commands... So, edition of the bbl file is required to change all the it commands into textit command. The same is true for other commands of the same type: rm, bf and so on.



Is there a way to force BibTeX to use textit instead of it or to force moderncv to understand it?










share|improve this question


















  • 1





    Use itshape, not it, see here: tex.stackexchange.com/questions/8053/…. And bfseries instead of bf, etc. see here: tex.stackexchange.com/questions/516/…

    – CarLaTeX
    Feb 3 at 10:29
















2












2








2








The moderncv package does not recognize it command. Sure we can use textit instead. The problem is that BibTeX generated files may contain it commands... So, edition of the bbl file is required to change all the it commands into textit command. The same is true for other commands of the same type: rm, bf and so on.



Is there a way to force BibTeX to use textit instead of it or to force moderncv to understand it?










share|improve this question














The moderncv package does not recognize it command. Sure we can use textit instead. The problem is that BibTeX generated files may contain it commands... So, edition of the bbl file is required to change all the it commands into textit command. The same is true for other commands of the same type: rm, bf and so on.



Is there a way to force BibTeX to use textit instead of it or to force moderncv to understand it?







bibtex moderncv patching






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 3 at 10:22









Alain LatourAlain Latour

111




111








  • 1





    Use itshape, not it, see here: tex.stackexchange.com/questions/8053/…. And bfseries instead of bf, etc. see here: tex.stackexchange.com/questions/516/…

    – CarLaTeX
    Feb 3 at 10:29
















  • 1





    Use itshape, not it, see here: tex.stackexchange.com/questions/8053/…. And bfseries instead of bf, etc. see here: tex.stackexchange.com/questions/516/…

    – CarLaTeX
    Feb 3 at 10:29










1




1





Use itshape, not it, see here: tex.stackexchange.com/questions/8053/…. And bfseries instead of bf, etc. see here: tex.stackexchange.com/questions/516/…

– CarLaTeX
Feb 3 at 10:29







Use itshape, not it, see here: tex.stackexchange.com/questions/8053/…. And bfseries instead of bf, etc. see here: tex.stackexchange.com/questions/516/…

– CarLaTeX
Feb 3 at 10:29












2 Answers
2






active

oldest

votes


















3














That’s not an issue with moderncv; the commands have been obsolete since LaTeX2e. Among other problems, bf and it don’t nest or respect the font-selection scheme.



The replacement in modern LaTeX is itshape, and its semantics are probably what you really want. If you insist on it as an alias, there’s newcommand (But that’s a bad idea because then old code will expect different behavior.). If you must restore the original command, DeclareOldFontCommand, but you would be shooting yourself in the foot.






share|improve this answer

































    3














    If the it is inserted by some bibtex style you can certainly adapt this: Save the bst under another name, then search for the it and replace it e.g. itshape or whatever is sensible.



    Beside this you are quite allowed to define an undefined command in whatever way you see fit.



    If the it is used only for text, then newcommandit{normalfontitshape} or newcommandit{itshape} is probably a sensible replacement, if it is used also in math then you could use



    DeclareOldFontCommand{it}{normalfontitshape}{mathit}


    or



    DeclareOldFontCommand{it}{itshape}{mathit}


    The variants with normalfont fake the old behaviour of it better, without it it works like the modern itshape and allows nesting with other font commands.






    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%2f473155%2fmoderncv-package-does-not-recognize-it-command%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









      3














      That’s not an issue with moderncv; the commands have been obsolete since LaTeX2e. Among other problems, bf and it don’t nest or respect the font-selection scheme.



      The replacement in modern LaTeX is itshape, and its semantics are probably what you really want. If you insist on it as an alias, there’s newcommand (But that’s a bad idea because then old code will expect different behavior.). If you must restore the original command, DeclareOldFontCommand, but you would be shooting yourself in the foot.






      share|improve this answer






























        3














        That’s not an issue with moderncv; the commands have been obsolete since LaTeX2e. Among other problems, bf and it don’t nest or respect the font-selection scheme.



        The replacement in modern LaTeX is itshape, and its semantics are probably what you really want. If you insist on it as an alias, there’s newcommand (But that’s a bad idea because then old code will expect different behavior.). If you must restore the original command, DeclareOldFontCommand, but you would be shooting yourself in the foot.






        share|improve this answer




























          3












          3








          3







          That’s not an issue with moderncv; the commands have been obsolete since LaTeX2e. Among other problems, bf and it don’t nest or respect the font-selection scheme.



          The replacement in modern LaTeX is itshape, and its semantics are probably what you really want. If you insist on it as an alias, there’s newcommand (But that’s a bad idea because then old code will expect different behavior.). If you must restore the original command, DeclareOldFontCommand, but you would be shooting yourself in the foot.






          share|improve this answer















          That’s not an issue with moderncv; the commands have been obsolete since LaTeX2e. Among other problems, bf and it don’t nest or respect the font-selection scheme.



          The replacement in modern LaTeX is itshape, and its semantics are probably what you really want. If you insist on it as an alias, there’s newcommand (But that’s a bad idea because then old code will expect different behavior.). If you must restore the original command, DeclareOldFontCommand, but you would be shooting yourself in the foot.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 3 at 10:41

























          answered Feb 3 at 10:34









          DavislorDavislor

          6,3611228




          6,3611228























              3














              If the it is inserted by some bibtex style you can certainly adapt this: Save the bst under another name, then search for the it and replace it e.g. itshape or whatever is sensible.



              Beside this you are quite allowed to define an undefined command in whatever way you see fit.



              If the it is used only for text, then newcommandit{normalfontitshape} or newcommandit{itshape} is probably a sensible replacement, if it is used also in math then you could use



              DeclareOldFontCommand{it}{normalfontitshape}{mathit}


              or



              DeclareOldFontCommand{it}{itshape}{mathit}


              The variants with normalfont fake the old behaviour of it better, without it it works like the modern itshape and allows nesting with other font commands.






              share|improve this answer




























                3














                If the it is inserted by some bibtex style you can certainly adapt this: Save the bst under another name, then search for the it and replace it e.g. itshape or whatever is sensible.



                Beside this you are quite allowed to define an undefined command in whatever way you see fit.



                If the it is used only for text, then newcommandit{normalfontitshape} or newcommandit{itshape} is probably a sensible replacement, if it is used also in math then you could use



                DeclareOldFontCommand{it}{normalfontitshape}{mathit}


                or



                DeclareOldFontCommand{it}{itshape}{mathit}


                The variants with normalfont fake the old behaviour of it better, without it it works like the modern itshape and allows nesting with other font commands.






                share|improve this answer


























                  3












                  3








                  3







                  If the it is inserted by some bibtex style you can certainly adapt this: Save the bst under another name, then search for the it and replace it e.g. itshape or whatever is sensible.



                  Beside this you are quite allowed to define an undefined command in whatever way you see fit.



                  If the it is used only for text, then newcommandit{normalfontitshape} or newcommandit{itshape} is probably a sensible replacement, if it is used also in math then you could use



                  DeclareOldFontCommand{it}{normalfontitshape}{mathit}


                  or



                  DeclareOldFontCommand{it}{itshape}{mathit}


                  The variants with normalfont fake the old behaviour of it better, without it it works like the modern itshape and allows nesting with other font commands.






                  share|improve this answer













                  If the it is inserted by some bibtex style you can certainly adapt this: Save the bst under another name, then search for the it and replace it e.g. itshape or whatever is sensible.



                  Beside this you are quite allowed to define an undefined command in whatever way you see fit.



                  If the it is used only for text, then newcommandit{normalfontitshape} or newcommandit{itshape} is probably a sensible replacement, if it is used also in math then you could use



                  DeclareOldFontCommand{it}{normalfontitshape}{mathit}


                  or



                  DeclareOldFontCommand{it}{itshape}{mathit}


                  The variants with normalfont fake the old behaviour of it better, without it it works like the modern itshape and allows nesting with other font commands.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 3 at 11:40









                  Ulrike FischerUlrike Fischer

                  192k8299682




                  192k8299682






























                      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%2f473155%2fmoderncv-package-does-not-recognize-it-command%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

                      Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

                      ComboBox Display Member on multiple fields

                      Is it possible to collect Nectar points via Trainline?