How to put italics in the title of a document using MLA13?











up vote
3
down vote

favorite












I am trying to put the title of a book in the title of my document using the MLA13 class. Unfortunately, every time it ignores my font family and size. Here is the code I am using:



documentclass{article}
usepackage{mla13}
usepackage{fontspec}
firstname{First}
lastname{Last}
professor{Professor Professor}
class{A Class}
title{A Review of textit{A Book}}
% sources{bibliography.bib}
setmainfont{Times New Roman}
begin{document}
makeheader

This is the content of the paper.
end{document}


The produced output looks like this:



1



How do I change the italicized portion of the title so that it displays in the same font as the rest of the document?










share|improve this question


























    up vote
    3
    down vote

    favorite












    I am trying to put the title of a book in the title of my document using the MLA13 class. Unfortunately, every time it ignores my font family and size. Here is the code I am using:



    documentclass{article}
    usepackage{mla13}
    usepackage{fontspec}
    firstname{First}
    lastname{Last}
    professor{Professor Professor}
    class{A Class}
    title{A Review of textit{A Book}}
    % sources{bibliography.bib}
    setmainfont{Times New Roman}
    begin{document}
    makeheader

    This is the content of the paper.
    end{document}


    The produced output looks like this:



    1



    How do I change the italicized portion of the title so that it displays in the same font as the rest of the document?










    share|improve this question
























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I am trying to put the title of a book in the title of my document using the MLA13 class. Unfortunately, every time it ignores my font family and size. Here is the code I am using:



      documentclass{article}
      usepackage{mla13}
      usepackage{fontspec}
      firstname{First}
      lastname{Last}
      professor{Professor Professor}
      class{A Class}
      title{A Review of textit{A Book}}
      % sources{bibliography.bib}
      setmainfont{Times New Roman}
      begin{document}
      makeheader

      This is the content of the paper.
      end{document}


      The produced output looks like this:



      1



      How do I change the italicized portion of the title so that it displays in the same font as the rest of the document?










      share|improve this question













      I am trying to put the title of a book in the title of my document using the MLA13 class. Unfortunately, every time it ignores my font family and size. Here is the code I am using:



      documentclass{article}
      usepackage{mla13}
      usepackage{fontspec}
      firstname{First}
      lastname{Last}
      professor{Professor Professor}
      class{A Class}
      title{A Review of textit{A Book}}
      % sources{bibliography.bib}
      setmainfont{Times New Roman}
      begin{document}
      makeheader

      This is the content of the paper.
      end{document}


      The produced output looks like this:



      1



      How do I change the italicized portion of the title so that it displays in the same font as the rest of the document?







      xetex






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 1 at 16:12









      nhubbard

      224




      224






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          The code in mla13.sty is completely and utterly wrong.



          newcommand*{makeheader}{begingroup
          rmfamily
          fontsize{12}{2}
          noindent @firstname @lastname\
          @professor\
          @class\
          datef@date
          begin{nospacecenter}
          @title
          end{nospacecenter}
          endgroup}


          This makes no sense whatsoever to set the font size and not issuing selectfont. What happens is that in



          A Review of textit{A Book}


          the first three words are typeset in the current font size, independent of fontsize{12}{2}; to the contrary, textit issues selectfont, so the setting of fontsize enters into action.



          The package's idea is probably to use a larger font size for the header, assuming a main font size of 10pt. But a baseline skip of 2pt is absurd.



          documentclass{article}
          usepackage{mla13}
          usepackage{fontspec}

          patchcmd{makeheader}{fontsize{12}{2}}{large}{}{}


          firstname{First}
          lastname{Last}
          professor{Professor Professor}
          class{A Class}
          title{A Review of textit{A Book}}
          % sources{bibliography.bib}
          setmainfont{Times New Roman}
          begin{document}
          makeheader

          This is the content of the paper.
          end{document}


          If you don't want a larger font size for the header, then remove large as suggested by Alan Munn.



          enter image description here






          share|improve this answer























          • Perfect, thank you!
            – nhubbard
            Dec 1 at 17:37











          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',
          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%2f462710%2fhow-to-put-italics-in-the-title-of-a-document-using-mla13%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








          up vote
          2
          down vote



          accepted










          The code in mla13.sty is completely and utterly wrong.



          newcommand*{makeheader}{begingroup
          rmfamily
          fontsize{12}{2}
          noindent @firstname @lastname\
          @professor\
          @class\
          datef@date
          begin{nospacecenter}
          @title
          end{nospacecenter}
          endgroup}


          This makes no sense whatsoever to set the font size and not issuing selectfont. What happens is that in



          A Review of textit{A Book}


          the first three words are typeset in the current font size, independent of fontsize{12}{2}; to the contrary, textit issues selectfont, so the setting of fontsize enters into action.



          The package's idea is probably to use a larger font size for the header, assuming a main font size of 10pt. But a baseline skip of 2pt is absurd.



          documentclass{article}
          usepackage{mla13}
          usepackage{fontspec}

          patchcmd{makeheader}{fontsize{12}{2}}{large}{}{}


          firstname{First}
          lastname{Last}
          professor{Professor Professor}
          class{A Class}
          title{A Review of textit{A Book}}
          % sources{bibliography.bib}
          setmainfont{Times New Roman}
          begin{document}
          makeheader

          This is the content of the paper.
          end{document}


          If you don't want a larger font size for the header, then remove large as suggested by Alan Munn.



          enter image description here






          share|improve this answer























          • Perfect, thank you!
            – nhubbard
            Dec 1 at 17:37















          up vote
          2
          down vote



          accepted










          The code in mla13.sty is completely and utterly wrong.



          newcommand*{makeheader}{begingroup
          rmfamily
          fontsize{12}{2}
          noindent @firstname @lastname\
          @professor\
          @class\
          datef@date
          begin{nospacecenter}
          @title
          end{nospacecenter}
          endgroup}


          This makes no sense whatsoever to set the font size and not issuing selectfont. What happens is that in



          A Review of textit{A Book}


          the first three words are typeset in the current font size, independent of fontsize{12}{2}; to the contrary, textit issues selectfont, so the setting of fontsize enters into action.



          The package's idea is probably to use a larger font size for the header, assuming a main font size of 10pt. But a baseline skip of 2pt is absurd.



          documentclass{article}
          usepackage{mla13}
          usepackage{fontspec}

          patchcmd{makeheader}{fontsize{12}{2}}{large}{}{}


          firstname{First}
          lastname{Last}
          professor{Professor Professor}
          class{A Class}
          title{A Review of textit{A Book}}
          % sources{bibliography.bib}
          setmainfont{Times New Roman}
          begin{document}
          makeheader

          This is the content of the paper.
          end{document}


          If you don't want a larger font size for the header, then remove large as suggested by Alan Munn.



          enter image description here






          share|improve this answer























          • Perfect, thank you!
            – nhubbard
            Dec 1 at 17:37













          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          The code in mla13.sty is completely and utterly wrong.



          newcommand*{makeheader}{begingroup
          rmfamily
          fontsize{12}{2}
          noindent @firstname @lastname\
          @professor\
          @class\
          datef@date
          begin{nospacecenter}
          @title
          end{nospacecenter}
          endgroup}


          This makes no sense whatsoever to set the font size and not issuing selectfont. What happens is that in



          A Review of textit{A Book}


          the first three words are typeset in the current font size, independent of fontsize{12}{2}; to the contrary, textit issues selectfont, so the setting of fontsize enters into action.



          The package's idea is probably to use a larger font size for the header, assuming a main font size of 10pt. But a baseline skip of 2pt is absurd.



          documentclass{article}
          usepackage{mla13}
          usepackage{fontspec}

          patchcmd{makeheader}{fontsize{12}{2}}{large}{}{}


          firstname{First}
          lastname{Last}
          professor{Professor Professor}
          class{A Class}
          title{A Review of textit{A Book}}
          % sources{bibliography.bib}
          setmainfont{Times New Roman}
          begin{document}
          makeheader

          This is the content of the paper.
          end{document}


          If you don't want a larger font size for the header, then remove large as suggested by Alan Munn.



          enter image description here






          share|improve this answer














          The code in mla13.sty is completely and utterly wrong.



          newcommand*{makeheader}{begingroup
          rmfamily
          fontsize{12}{2}
          noindent @firstname @lastname\
          @professor\
          @class\
          datef@date
          begin{nospacecenter}
          @title
          end{nospacecenter}
          endgroup}


          This makes no sense whatsoever to set the font size and not issuing selectfont. What happens is that in



          A Review of textit{A Book}


          the first three words are typeset in the current font size, independent of fontsize{12}{2}; to the contrary, textit issues selectfont, so the setting of fontsize enters into action.



          The package's idea is probably to use a larger font size for the header, assuming a main font size of 10pt. But a baseline skip of 2pt is absurd.



          documentclass{article}
          usepackage{mla13}
          usepackage{fontspec}

          patchcmd{makeheader}{fontsize{12}{2}}{large}{}{}


          firstname{First}
          lastname{Last}
          professor{Professor Professor}
          class{A Class}
          title{A Review of textit{A Book}}
          % sources{bibliography.bib}
          setmainfont{Times New Roman}
          begin{document}
          makeheader

          This is the content of the paper.
          end{document}


          If you don't want a larger font size for the header, then remove large as suggested by Alan Munn.



          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 1 at 17:50









          nhubbard

          224




          224










          answered Dec 1 at 16:50









          egreg

          703k8618733148




          703k8618733148












          • Perfect, thank you!
            – nhubbard
            Dec 1 at 17:37


















          • Perfect, thank you!
            – nhubbard
            Dec 1 at 17:37
















          Perfect, thank you!
          – nhubbard
          Dec 1 at 17:37




          Perfect, thank you!
          – nhubbard
          Dec 1 at 17:37


















          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%2f462710%2fhow-to-put-italics-in-the-title-of-a-document-using-mla13%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

          How to change which sound is reproduced for terminal bell?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

          Can I use Tabulator js library in my java Spring + Thymeleaf project?