How can I attach files in articles?











up vote
1
down vote

favorite












I'm having issues attaching files in an article. It returns 2 errors: one related with color and the other with hyperref:




  1. ! LaTeX Error: Option clash for package color.


  2. ! LaTeX Error: Option clash for package hyperref.



Here is my MWE:



documentclass[11pt,spanish]{article}
usepackage[utf8]{inputenc}
usepackage[unicode]{attachfile}


usepackage[usenames,dvipsnames]{color}
usepackage[bookmarks=true,
bookmarksnumbered=false, % true means bookmarks in
% left window are numbered
bookmarksopen=false, % true means only level 1
% are displayed.
colorlinks=true,
linkcolor=rojo_javi,
urlcolor=azul_alberto]{hyperref}

definecolor{webgreen}{rgb}{0, 0.5, 0} % less intense green
definecolor{webblue}{rgb}{0, 0, 0.5} % less intense blue
definecolor{webred}{rgb}{0.5, 0, 0} % less intense red
definecolor{dblackcolor}{rgb}{0.0,0.0,0.0}
definecolor{dbluecolor}{rgb}{.01,.02,0.7}
definecolor{dredcolor}{rgb}{0.8,0,0}
definecolor{dgraycolor}{rgb}{0.30,0.3,0.30}
definecolor{azul_alberto}{rgb}{.01,.02,0.9}
definecolor{rojo_javi}{rgb}{0.5, 0, 0}


begin{document}

section{Education}
attachfile[icon=PushPin]{files/z_LM7805_datasheet.pdf}

end{document}


What can I do??










share|improve this question
















bumped to the homepage by Community 2 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.



















    up vote
    1
    down vote

    favorite












    I'm having issues attaching files in an article. It returns 2 errors: one related with color and the other with hyperref:




    1. ! LaTeX Error: Option clash for package color.


    2. ! LaTeX Error: Option clash for package hyperref.



    Here is my MWE:



    documentclass[11pt,spanish]{article}
    usepackage[utf8]{inputenc}
    usepackage[unicode]{attachfile}


    usepackage[usenames,dvipsnames]{color}
    usepackage[bookmarks=true,
    bookmarksnumbered=false, % true means bookmarks in
    % left window are numbered
    bookmarksopen=false, % true means only level 1
    % are displayed.
    colorlinks=true,
    linkcolor=rojo_javi,
    urlcolor=azul_alberto]{hyperref}

    definecolor{webgreen}{rgb}{0, 0.5, 0} % less intense green
    definecolor{webblue}{rgb}{0, 0, 0.5} % less intense blue
    definecolor{webred}{rgb}{0.5, 0, 0} % less intense red
    definecolor{dblackcolor}{rgb}{0.0,0.0,0.0}
    definecolor{dbluecolor}{rgb}{.01,.02,0.7}
    definecolor{dredcolor}{rgb}{0.8,0,0}
    definecolor{dgraycolor}{rgb}{0.30,0.3,0.30}
    definecolor{azul_alberto}{rgb}{.01,.02,0.9}
    definecolor{rojo_javi}{rgb}{0.5, 0, 0}


    begin{document}

    section{Education}
    attachfile[icon=PushPin]{files/z_LM7805_datasheet.pdf}

    end{document}


    What can I do??










    share|improve this question
















    bumped to the homepage by Community 2 hours ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I'm having issues attaching files in an article. It returns 2 errors: one related with color and the other with hyperref:




      1. ! LaTeX Error: Option clash for package color.


      2. ! LaTeX Error: Option clash for package hyperref.



      Here is my MWE:



      documentclass[11pt,spanish]{article}
      usepackage[utf8]{inputenc}
      usepackage[unicode]{attachfile}


      usepackage[usenames,dvipsnames]{color}
      usepackage[bookmarks=true,
      bookmarksnumbered=false, % true means bookmarks in
      % left window are numbered
      bookmarksopen=false, % true means only level 1
      % are displayed.
      colorlinks=true,
      linkcolor=rojo_javi,
      urlcolor=azul_alberto]{hyperref}

      definecolor{webgreen}{rgb}{0, 0.5, 0} % less intense green
      definecolor{webblue}{rgb}{0, 0, 0.5} % less intense blue
      definecolor{webred}{rgb}{0.5, 0, 0} % less intense red
      definecolor{dblackcolor}{rgb}{0.0,0.0,0.0}
      definecolor{dbluecolor}{rgb}{.01,.02,0.7}
      definecolor{dredcolor}{rgb}{0.8,0,0}
      definecolor{dgraycolor}{rgb}{0.30,0.3,0.30}
      definecolor{azul_alberto}{rgb}{.01,.02,0.9}
      definecolor{rojo_javi}{rgb}{0.5, 0, 0}


      begin{document}

      section{Education}
      attachfile[icon=PushPin]{files/z_LM7805_datasheet.pdf}

      end{document}


      What can I do??










      share|improve this question















      I'm having issues attaching files in an article. It returns 2 errors: one related with color and the other with hyperref:




      1. ! LaTeX Error: Option clash for package color.


      2. ! LaTeX Error: Option clash for package hyperref.



      Here is my MWE:



      documentclass[11pt,spanish]{article}
      usepackage[utf8]{inputenc}
      usepackage[unicode]{attachfile}


      usepackage[usenames,dvipsnames]{color}
      usepackage[bookmarks=true,
      bookmarksnumbered=false, % true means bookmarks in
      % left window are numbered
      bookmarksopen=false, % true means only level 1
      % are displayed.
      colorlinks=true,
      linkcolor=rojo_javi,
      urlcolor=azul_alberto]{hyperref}

      definecolor{webgreen}{rgb}{0, 0.5, 0} % less intense green
      definecolor{webblue}{rgb}{0, 0, 0.5} % less intense blue
      definecolor{webred}{rgb}{0.5, 0, 0} % less intense red
      definecolor{dblackcolor}{rgb}{0.0,0.0,0.0}
      definecolor{dbluecolor}{rgb}{.01,.02,0.7}
      definecolor{dredcolor}{rgb}{0.8,0,0}
      definecolor{dgraycolor}{rgb}{0.30,0.3,0.30}
      definecolor{azul_alberto}{rgb}{.01,.02,0.9}
      definecolor{rojo_javi}{rgb}{0.5, 0, 0}


      begin{document}

      section{Education}
      attachfile[icon=PushPin]{files/z_LM7805_datasheet.pdf}

      end{document}


      What can I do??







      hyperref color attachfile






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 29 at 22:04









      Werner

      432k609511632




      432k609511632










      asked Oct 29 at 21:28









      Sergio

      273




      273





      bumped to the homepage by Community 2 hours ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 2 hours ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          Load hyperref and change the setting using hypersetup:



          enter image description here



          documentclass{article}

          usepackage{attachfile2}

          usepackage[usenames,dvipsnames]{xcolor}

          definecolor{azul_alberto}{rgb}{.01,.02,0.9}
          definecolor{rojo_javi}{rgb}{0.5, 0, 0}

          usepackage{hyperref}

          hypersetup{
          bookmarksnumbered=false, % true means bookmarks in
          % left window are numbered
          bookmarksopen=false, % true means only level 1
          % are displayed.
          colorlinks=true,
          linkcolor=rojo_javi,
          urlcolor = azul_alberto
          }

          begin{document}

          section{Education}
          attachfile[icon=PushPin]{example-image.pdf}

          end{document}


          Also, use attachfile2.






          share|improve this answer





















          • Is this essentially saying, the answer is the following: ... use attachfile2 version and define the colors before they are set in hyperref?
            – Jeffrey J Weimer
            2 hours ago










          • @JeffreyJWeimer: Roughly, but you can define the colours afterwards. It's just unconventional to use something before it's defined.
            – Werner
            1 hour 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',
          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%2f457414%2fhow-can-i-attach-files-in-articles%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
          1
          down vote













          Load hyperref and change the setting using hypersetup:



          enter image description here



          documentclass{article}

          usepackage{attachfile2}

          usepackage[usenames,dvipsnames]{xcolor}

          definecolor{azul_alberto}{rgb}{.01,.02,0.9}
          definecolor{rojo_javi}{rgb}{0.5, 0, 0}

          usepackage{hyperref}

          hypersetup{
          bookmarksnumbered=false, % true means bookmarks in
          % left window are numbered
          bookmarksopen=false, % true means only level 1
          % are displayed.
          colorlinks=true,
          linkcolor=rojo_javi,
          urlcolor = azul_alberto
          }

          begin{document}

          section{Education}
          attachfile[icon=PushPin]{example-image.pdf}

          end{document}


          Also, use attachfile2.






          share|improve this answer





















          • Is this essentially saying, the answer is the following: ... use attachfile2 version and define the colors before they are set in hyperref?
            – Jeffrey J Weimer
            2 hours ago










          • @JeffreyJWeimer: Roughly, but you can define the colours afterwards. It's just unconventional to use something before it's defined.
            – Werner
            1 hour ago















          up vote
          1
          down vote













          Load hyperref and change the setting using hypersetup:



          enter image description here



          documentclass{article}

          usepackage{attachfile2}

          usepackage[usenames,dvipsnames]{xcolor}

          definecolor{azul_alberto}{rgb}{.01,.02,0.9}
          definecolor{rojo_javi}{rgb}{0.5, 0, 0}

          usepackage{hyperref}

          hypersetup{
          bookmarksnumbered=false, % true means bookmarks in
          % left window are numbered
          bookmarksopen=false, % true means only level 1
          % are displayed.
          colorlinks=true,
          linkcolor=rojo_javi,
          urlcolor = azul_alberto
          }

          begin{document}

          section{Education}
          attachfile[icon=PushPin]{example-image.pdf}

          end{document}


          Also, use attachfile2.






          share|improve this answer





















          • Is this essentially saying, the answer is the following: ... use attachfile2 version and define the colors before they are set in hyperref?
            – Jeffrey J Weimer
            2 hours ago










          • @JeffreyJWeimer: Roughly, but you can define the colours afterwards. It's just unconventional to use something before it's defined.
            – Werner
            1 hour ago













          up vote
          1
          down vote










          up vote
          1
          down vote









          Load hyperref and change the setting using hypersetup:



          enter image description here



          documentclass{article}

          usepackage{attachfile2}

          usepackage[usenames,dvipsnames]{xcolor}

          definecolor{azul_alberto}{rgb}{.01,.02,0.9}
          definecolor{rojo_javi}{rgb}{0.5, 0, 0}

          usepackage{hyperref}

          hypersetup{
          bookmarksnumbered=false, % true means bookmarks in
          % left window are numbered
          bookmarksopen=false, % true means only level 1
          % are displayed.
          colorlinks=true,
          linkcolor=rojo_javi,
          urlcolor = azul_alberto
          }

          begin{document}

          section{Education}
          attachfile[icon=PushPin]{example-image.pdf}

          end{document}


          Also, use attachfile2.






          share|improve this answer












          Load hyperref and change the setting using hypersetup:



          enter image description here



          documentclass{article}

          usepackage{attachfile2}

          usepackage[usenames,dvipsnames]{xcolor}

          definecolor{azul_alberto}{rgb}{.01,.02,0.9}
          definecolor{rojo_javi}{rgb}{0.5, 0, 0}

          usepackage{hyperref}

          hypersetup{
          bookmarksnumbered=false, % true means bookmarks in
          % left window are numbered
          bookmarksopen=false, % true means only level 1
          % are displayed.
          colorlinks=true,
          linkcolor=rojo_javi,
          urlcolor = azul_alberto
          }

          begin{document}

          section{Education}
          attachfile[icon=PushPin]{example-image.pdf}

          end{document}


          Also, use attachfile2.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Oct 29 at 22:08









          Werner

          432k609511632




          432k609511632












          • Is this essentially saying, the answer is the following: ... use attachfile2 version and define the colors before they are set in hyperref?
            – Jeffrey J Weimer
            2 hours ago










          • @JeffreyJWeimer: Roughly, but you can define the colours afterwards. It's just unconventional to use something before it's defined.
            – Werner
            1 hour ago


















          • Is this essentially saying, the answer is the following: ... use attachfile2 version and define the colors before they are set in hyperref?
            – Jeffrey J Weimer
            2 hours ago










          • @JeffreyJWeimer: Roughly, but you can define the colours afterwards. It's just unconventional to use something before it's defined.
            – Werner
            1 hour ago
















          Is this essentially saying, the answer is the following: ... use attachfile2 version and define the colors before they are set in hyperref?
          – Jeffrey J Weimer
          2 hours ago




          Is this essentially saying, the answer is the following: ... use attachfile2 version and define the colors before they are set in hyperref?
          – Jeffrey J Weimer
          2 hours ago












          @JeffreyJWeimer: Roughly, but you can define the colours afterwards. It's just unconventional to use something before it's defined.
          – Werner
          1 hour ago




          @JeffreyJWeimer: Roughly, but you can define the colours afterwards. It's just unconventional to use something before it's defined.
          – Werner
          1 hour ago


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f457414%2fhow-can-i-attach-files-in-articles%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

          Lallio

          Futebolista

          Jornalista