PDF Info variables set inside the class

A running toilet that stops itself

Is "cogitate" used appropriately in "I cogitate that success relies on hard work"?

School performs periodic password audits. Is my password compromised?

Should we avoid writing fiction about historical events without extensive research?

Can multiple states demand income tax from an LLC?

What does it take to become a wilderness skills guide as a business?

Insult for someone who "doesn't know anything"

Trigger on Custom Object Share

Why would /etc/passwd be used every time someone executes `ls -l` command?

Help! My Character is too much for her story!

How to install "rounded" brake pads

Why is my explanation wrong?

After Brexit, will the EU recognize British passports that are valid for more than ten years?

Are small insurances worth it?

Unidentified signals on FT8 frequencies

Can I negotiate a patent idea for a raise, under French law?

Why restrict private health insurance?

What is better: yes / no radio, or simple checkbox?

Paper published similar to PhD thesis

What would be the most expensive material to an intergalactic society?

PTIJ: Sport in the Torah

Vector-transposing function

Draw this image in the TIKZ package

Sort array by month and year



PDF Info variables set inside the class














0















I have a simple custom class defined as:



NeedsTeXFormatLaTeX2e
ProvidesClassmycustom[2019/03/06 My custom class]
LoadClassarticle
RequirePackagehyperxmp
RequirePackage[unicode]hyperref


newcommandname[2]
def@name#1
def@surname#2
def@fullname#1 #2


newcommandaddress[4]
def@neighborhood#1
def@city#2
def@state#3
def@country#4

endinput


And a minimal TeX file:



documentclassmycustom

nameJohnSmith
phone+1 123 555-1234
addressSpring FallsHelena-West HelenaARUnited States of America

makeatletter
hypersetup%
pdftitle=@fullname cs title,
pdfsubject=@neighborhood,
pdfauthor=@fullname,
pdfcontactcity=@city,
pdfcontactcountry=@country,
pdfmetalang=en

makeatother

begindocument
foo bar barz
enddocument


On that I have two questions:



  1. Why the document document compiles but returns a Undefined control sequence. } at line 14?


  2. Is possible to move the texttthypersetup to the class (with the variables), instead the main file?


Tried with PDFTeX and XeTeX.









share


























    0















    I have a simple custom class defined as:



    NeedsTeXFormatLaTeX2e
    ProvidesClassmycustom[2019/03/06 My custom class]
    LoadClassarticle
    RequirePackagehyperxmp
    RequirePackage[unicode]hyperref


    newcommandname[2]
    def@name#1
    def@surname#2
    def@fullname#1 #2


    newcommandaddress[4]
    def@neighborhood#1
    def@city#2
    def@state#3
    def@country#4

    endinput


    And a minimal TeX file:



    documentclassmycustom

    nameJohnSmith
    phone+1 123 555-1234
    addressSpring FallsHelena-West HelenaARUnited States of America

    makeatletter
    hypersetup%
    pdftitle=@fullname cs title,
    pdfsubject=@neighborhood,
    pdfauthor=@fullname,
    pdfcontactcity=@city,
    pdfcontactcountry=@country,
    pdfmetalang=en

    makeatother

    begindocument
    foo bar barz
    enddocument


    On that I have two questions:



    1. Why the document document compiles but returns a Undefined control sequence. } at line 14?


    2. Is possible to move the texttthypersetup to the class (with the variables), instead the main file?


    Tried with PDFTeX and XeTeX.









    share
























      0












      0








      0








      I have a simple custom class defined as:



      NeedsTeXFormatLaTeX2e
      ProvidesClassmycustom[2019/03/06 My custom class]
      LoadClassarticle
      RequirePackagehyperxmp
      RequirePackage[unicode]hyperref


      newcommandname[2]
      def@name#1
      def@surname#2
      def@fullname#1 #2


      newcommandaddress[4]
      def@neighborhood#1
      def@city#2
      def@state#3
      def@country#4

      endinput


      And a minimal TeX file:



      documentclassmycustom

      nameJohnSmith
      phone+1 123 555-1234
      addressSpring FallsHelena-West HelenaARUnited States of America

      makeatletter
      hypersetup%
      pdftitle=@fullname cs title,
      pdfsubject=@neighborhood,
      pdfauthor=@fullname,
      pdfcontactcity=@city,
      pdfcontactcountry=@country,
      pdfmetalang=en

      makeatother

      begindocument
      foo bar barz
      enddocument


      On that I have two questions:



      1. Why the document document compiles but returns a Undefined control sequence. } at line 14?


      2. Is possible to move the texttthypersetup to the class (with the variables), instead the main file?


      Tried with PDFTeX and XeTeX.









      share














      I have a simple custom class defined as:



      NeedsTeXFormatLaTeX2e
      ProvidesClassmycustom[2019/03/06 My custom class]
      LoadClassarticle
      RequirePackagehyperxmp
      RequirePackage[unicode]hyperref


      newcommandname[2]
      def@name#1
      def@surname#2
      def@fullname#1 #2


      newcommandaddress[4]
      def@neighborhood#1
      def@city#2
      def@state#3
      def@country#4

      endinput


      And a minimal TeX file:



      documentclassmycustom

      nameJohnSmith
      phone+1 123 555-1234
      addressSpring FallsHelena-West HelenaARUnited States of America

      makeatletter
      hypersetup%
      pdftitle=@fullname cs title,
      pdfsubject=@neighborhood,
      pdfauthor=@fullname,
      pdfcontactcity=@city,
      pdfcontactcountry=@country,
      pdfmetalang=en

      makeatother

      begindocument
      foo bar barz
      enddocument


      On that I have two questions:



      1. Why the document document compiles but returns a Undefined control sequence. } at line 14?


      2. Is possible to move the texttthypersetup to the class (with the variables), instead the main file?


      Tried with PDFTeX and XeTeX.







      xetex pdftex hyperref pdf





      share












      share










      share



      share










      asked 2 mins ago









      LinLin

      3117




      3117




















          0






          active

          oldest

          votes











          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%2f478520%2fpdf-info-variables-set-inside-the-class%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          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%2f478520%2fpdf-info-variables-set-inside-the-class%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

          Isabella Eugénie Boyer Biographie | Références | Menu de navigationmodifiermodifier le codeComparator to Compute the Relative Value of a U.S. Dollar Amount – 1774 to Present.

          Lioubotyn Sommaire Géographie | Histoire | Population | Notes et références | Liens externes | Menu de navigationlubotin.kharkov.uamodifier« Recensements et estimations de la population depuis 1897 »« Office des statistiques d'Ukraine : population au 1er janvier 2010, 2011 et 2012 »« Office des statistiques d'Ukraine : population au 1er janvier 2011, 2012 et 2013 »Informations officiellesCartes topographiquesCarte routièrem

          Mpande kaSenzangakhona Biographie | Références | Menu de navigationmodifierMpande kaSenzangakhonavoir la liste des auteursm