Links in pdf not working?












2















None of the links I create work in the sense that they're not clickable. The preamble is this.



documentclass[a4paper,12pt,twoside]{article}
usepackage[DIV=14,BCOR=2mm,headinclude=true,footinclude=false]{typearea}
usepackage{amsmath}
usepackage{amsthm}
usepackage{amssymb}
usepackage{braket}
usepackage{graphicx}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage{color}
linespread{1.2}
usepackage{hyperref}
hypersetup{
colorlinks,
citecolor=green,
filecolor=black,
linkcolor=blue,
urlcolor=blue
}
hypersetup{linktocpage}
DeclareMathAlphabet{mathpzc}{OT1}{pzc}{m}{it}
newtheorem{mydef}{Definition}
numberwithin{equation}{subsection}
numberwithin{mydef}{subsection}
newtheorem{thm}{Theorem}
numberwithin{thm}{subsection}

title{test}
author{test}

begin{document}









share|improve this question




















  • 1





    Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with documentclass{...} and ending with end{document}.

    – user31729
    Jan 1 '15 at 12:44











  • Are you using latex or pdflatex/xelatex/lualatex?

    – user31729
    Jan 1 '15 at 12:45






  • 1





    Pretty hard to say much since you don't show how you are trying to create links... Did you compile twice?

    – cfr
    Jan 1 '15 at 12:45






  • 1





    @user69751: Please add that maketitle... stuff to your post above

    – user31729
    Jan 1 '15 at 12:51






  • 1





    Is there any particular reason for not using pdflatex directly?

    – egreg
    Jan 1 '15 at 16:02
















2















None of the links I create work in the sense that they're not clickable. The preamble is this.



documentclass[a4paper,12pt,twoside]{article}
usepackage[DIV=14,BCOR=2mm,headinclude=true,footinclude=false]{typearea}
usepackage{amsmath}
usepackage{amsthm}
usepackage{amssymb}
usepackage{braket}
usepackage{graphicx}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage{color}
linespread{1.2}
usepackage{hyperref}
hypersetup{
colorlinks,
citecolor=green,
filecolor=black,
linkcolor=blue,
urlcolor=blue
}
hypersetup{linktocpage}
DeclareMathAlphabet{mathpzc}{OT1}{pzc}{m}{it}
newtheorem{mydef}{Definition}
numberwithin{equation}{subsection}
numberwithin{mydef}{subsection}
newtheorem{thm}{Theorem}
numberwithin{thm}{subsection}

title{test}
author{test}

begin{document}









share|improve this question




















  • 1





    Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with documentclass{...} and ending with end{document}.

    – user31729
    Jan 1 '15 at 12:44











  • Are you using latex or pdflatex/xelatex/lualatex?

    – user31729
    Jan 1 '15 at 12:45






  • 1





    Pretty hard to say much since you don't show how you are trying to create links... Did you compile twice?

    – cfr
    Jan 1 '15 at 12:45






  • 1





    @user69751: Please add that maketitle... stuff to your post above

    – user31729
    Jan 1 '15 at 12:51






  • 1





    Is there any particular reason for not using pdflatex directly?

    – egreg
    Jan 1 '15 at 16:02














2












2








2


2






None of the links I create work in the sense that they're not clickable. The preamble is this.



documentclass[a4paper,12pt,twoside]{article}
usepackage[DIV=14,BCOR=2mm,headinclude=true,footinclude=false]{typearea}
usepackage{amsmath}
usepackage{amsthm}
usepackage{amssymb}
usepackage{braket}
usepackage{graphicx}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage{color}
linespread{1.2}
usepackage{hyperref}
hypersetup{
colorlinks,
citecolor=green,
filecolor=black,
linkcolor=blue,
urlcolor=blue
}
hypersetup{linktocpage}
DeclareMathAlphabet{mathpzc}{OT1}{pzc}{m}{it}
newtheorem{mydef}{Definition}
numberwithin{equation}{subsection}
numberwithin{mydef}{subsection}
newtheorem{thm}{Theorem}
numberwithin{thm}{subsection}

title{test}
author{test}

begin{document}









share|improve this question
















None of the links I create work in the sense that they're not clickable. The preamble is this.



documentclass[a4paper,12pt,twoside]{article}
usepackage[DIV=14,BCOR=2mm,headinclude=true,footinclude=false]{typearea}
usepackage{amsmath}
usepackage{amsthm}
usepackage{amssymb}
usepackage{braket}
usepackage{graphicx}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern}
usepackage{color}
linespread{1.2}
usepackage{hyperref}
hypersetup{
colorlinks,
citecolor=green,
filecolor=black,
linkcolor=blue,
urlcolor=blue
}
hypersetup{linktocpage}
DeclareMathAlphabet{mathpzc}{OT1}{pzc}{m}{it}
newtheorem{mydef}{Definition}
numberwithin{equation}{subsection}
numberwithin{mydef}{subsection}
newtheorem{thm}{Theorem}
numberwithin{thm}{subsection}

title{test}
author{test}

begin{document}






hyperref






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 1 '15 at 12:44









cfr

157k8191390




157k8191390










asked Jan 1 '15 at 12:41









user69751user69751

1112




1112








  • 1





    Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with documentclass{...} and ending with end{document}.

    – user31729
    Jan 1 '15 at 12:44











  • Are you using latex or pdflatex/xelatex/lualatex?

    – user31729
    Jan 1 '15 at 12:45






  • 1





    Pretty hard to say much since you don't show how you are trying to create links... Did you compile twice?

    – cfr
    Jan 1 '15 at 12:45






  • 1





    @user69751: Please add that maketitle... stuff to your post above

    – user31729
    Jan 1 '15 at 12:51






  • 1





    Is there any particular reason for not using pdflatex directly?

    – egreg
    Jan 1 '15 at 16:02














  • 1





    Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with documentclass{...} and ending with end{document}.

    – user31729
    Jan 1 '15 at 12:44











  • Are you using latex or pdflatex/xelatex/lualatex?

    – user31729
    Jan 1 '15 at 12:45






  • 1





    Pretty hard to say much since you don't show how you are trying to create links... Did you compile twice?

    – cfr
    Jan 1 '15 at 12:45






  • 1





    @user69751: Please add that maketitle... stuff to your post above

    – user31729
    Jan 1 '15 at 12:51






  • 1





    Is there any particular reason for not using pdflatex directly?

    – egreg
    Jan 1 '15 at 16:02








1




1





Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with documentclass{...} and ending with end{document}.

– user31729
Jan 1 '15 at 12:44





Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with documentclass{...} and ending with end{document}.

– user31729
Jan 1 '15 at 12:44













Are you using latex or pdflatex/xelatex/lualatex?

– user31729
Jan 1 '15 at 12:45





Are you using latex or pdflatex/xelatex/lualatex?

– user31729
Jan 1 '15 at 12:45




1




1





Pretty hard to say much since you don't show how you are trying to create links... Did you compile twice?

– cfr
Jan 1 '15 at 12:45





Pretty hard to say much since you don't show how you are trying to create links... Did you compile twice?

– cfr
Jan 1 '15 at 12:45




1




1





@user69751: Please add that maketitle... stuff to your post above

– user31729
Jan 1 '15 at 12:51





@user69751: Please add that maketitle... stuff to your post above

– user31729
Jan 1 '15 at 12:51




1




1





Is there any particular reason for not using pdflatex directly?

– egreg
Jan 1 '15 at 16:02





Is there any particular reason for not using pdflatex directly?

– egreg
Jan 1 '15 at 16:02










1 Answer
1






active

oldest

votes


















5














I stripped your MWE down a bit and add one hyperlink to the equation. I compiled it twice with pdflatex. The result is as expected: hyperlinks work! My test file is:



documentclass[a4paper,12pt,twoside]{article}
% usepackage[DIV=14,BCOR=2mm,headinclude=true,footinclude=false]{typearea}
usepackage{amsmath}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{hyperref}
hypersetup{ colorlinks, citecolor=green, filecolor=black, linkcolor=blue, urlcolor=blue }
begin{document}
begin{equation}label{eq:1}
1+1=2
end{equation}

newpage
Does hyperref work? Of course, see eqref{eq:1}.

end{document}


For hyperlinks to other elements of documents (section titles, theorems, etc) it should be the same. How this works when dvi-ps-pdf is used, I don't know. I never use it.






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%2f220229%2flinks-in-pdf-not-working%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









    5














    I stripped your MWE down a bit and add one hyperlink to the equation. I compiled it twice with pdflatex. The result is as expected: hyperlinks work! My test file is:



    documentclass[a4paper,12pt,twoside]{article}
    % usepackage[DIV=14,BCOR=2mm,headinclude=true,footinclude=false]{typearea}
    usepackage{amsmath}
    usepackage[utf8]{inputenc}
    usepackage[T1]{fontenc}
    usepackage{hyperref}
    hypersetup{ colorlinks, citecolor=green, filecolor=black, linkcolor=blue, urlcolor=blue }
    begin{document}
    begin{equation}label{eq:1}
    1+1=2
    end{equation}

    newpage
    Does hyperref work? Of course, see eqref{eq:1}.

    end{document}


    For hyperlinks to other elements of documents (section titles, theorems, etc) it should be the same. How this works when dvi-ps-pdf is used, I don't know. I never use it.






    share|improve this answer






























      5














      I stripped your MWE down a bit and add one hyperlink to the equation. I compiled it twice with pdflatex. The result is as expected: hyperlinks work! My test file is:



      documentclass[a4paper,12pt,twoside]{article}
      % usepackage[DIV=14,BCOR=2mm,headinclude=true,footinclude=false]{typearea}
      usepackage{amsmath}
      usepackage[utf8]{inputenc}
      usepackage[T1]{fontenc}
      usepackage{hyperref}
      hypersetup{ colorlinks, citecolor=green, filecolor=black, linkcolor=blue, urlcolor=blue }
      begin{document}
      begin{equation}label{eq:1}
      1+1=2
      end{equation}

      newpage
      Does hyperref work? Of course, see eqref{eq:1}.

      end{document}


      For hyperlinks to other elements of documents (section titles, theorems, etc) it should be the same. How this works when dvi-ps-pdf is used, I don't know. I never use it.






      share|improve this answer




























        5












        5








        5







        I stripped your MWE down a bit and add one hyperlink to the equation. I compiled it twice with pdflatex. The result is as expected: hyperlinks work! My test file is:



        documentclass[a4paper,12pt,twoside]{article}
        % usepackage[DIV=14,BCOR=2mm,headinclude=true,footinclude=false]{typearea}
        usepackage{amsmath}
        usepackage[utf8]{inputenc}
        usepackage[T1]{fontenc}
        usepackage{hyperref}
        hypersetup{ colorlinks, citecolor=green, filecolor=black, linkcolor=blue, urlcolor=blue }
        begin{document}
        begin{equation}label{eq:1}
        1+1=2
        end{equation}

        newpage
        Does hyperref work? Of course, see eqref{eq:1}.

        end{document}


        For hyperlinks to other elements of documents (section titles, theorems, etc) it should be the same. How this works when dvi-ps-pdf is used, I don't know. I never use it.






        share|improve this answer















        I stripped your MWE down a bit and add one hyperlink to the equation. I compiled it twice with pdflatex. The result is as expected: hyperlinks work! My test file is:



        documentclass[a4paper,12pt,twoside]{article}
        % usepackage[DIV=14,BCOR=2mm,headinclude=true,footinclude=false]{typearea}
        usepackage{amsmath}
        usepackage[utf8]{inputenc}
        usepackage[T1]{fontenc}
        usepackage{hyperref}
        hypersetup{ colorlinks, citecolor=green, filecolor=black, linkcolor=blue, urlcolor=blue }
        begin{document}
        begin{equation}label{eq:1}
        1+1=2
        end{equation}

        newpage
        Does hyperref work? Of course, see eqref{eq:1}.

        end{document}


        For hyperlinks to other elements of documents (section titles, theorems, etc) it should be the same. How this works when dvi-ps-pdf is used, I don't know. I never use it.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 1 '15 at 15:13









        egreg

        726k8819213228




        726k8819213228










        answered Jan 1 '15 at 14:16









        ZarkoZarko

        127k868167




        127k868167






























            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%2f220229%2flinks-in-pdf-not-working%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?