two column article templates












8















I have been looking on tex.stackexchange and Googling but I can't find a decent two column template.



Does anyone know of site or have a template for a two column article style tex file?



That has a bibliography portion as well?










share|improve this question




















  • 2





    What do you consider "decent"?

    – Gonzalo Medina
    Apr 24 '13 at 1:22








  • 1





    The IEEE has the IEEEtran document class. You can see a sample document in the IEEEtran_HOWTO document. Some scientific journals provide their own tailored templates.

    – Gonzalo Medina
    Apr 24 '13 at 1:58








  • 1





    (If I remember correctly, you use Ubuntu.) You can easily add a class to your personal tree. Copy/move, say, res.cls to ~/texmf/tex/latex/res/ (you can create this folder with mkdir -p ~/texmf/tex/latex/res). As soon as you move it there, you should be able to find it with: kpsewhich res.cls, even without running mktexslr. If it can't be found, you have an unusual problem with your system, and should ask for help.

    – jon
    Apr 24 '13 at 2:21






  • 1





    Once it has been copied to where I suggested, kpsewhich res.cs should return /home/<dustin>/texmf/tex/latex/res/res.cls (assuming you are logged in as 'dustin'). If it does, that means the class file should be as usable as any other regular class file.

    – jon
    Apr 24 '13 at 3:23








  • 2





    No. If you put it there, you still want to follow the TDS structure and put it in /usr/local/.../texmf/tex/latex/res/ (best make the directory too while you're at it) as it is a LaTeX thing. But what is the advantage? It is easier to access and keep track of your local texmf, and there is less danger of manually installed classes and style files getting overwritten by system updates (which is probably not a serious concern, but still).

    – jon
    Apr 24 '13 at 4:15


















8















I have been looking on tex.stackexchange and Googling but I can't find a decent two column template.



Does anyone know of site or have a template for a two column article style tex file?



That has a bibliography portion as well?










share|improve this question




















  • 2





    What do you consider "decent"?

    – Gonzalo Medina
    Apr 24 '13 at 1:22








  • 1





    The IEEE has the IEEEtran document class. You can see a sample document in the IEEEtran_HOWTO document. Some scientific journals provide their own tailored templates.

    – Gonzalo Medina
    Apr 24 '13 at 1:58








  • 1





    (If I remember correctly, you use Ubuntu.) You can easily add a class to your personal tree. Copy/move, say, res.cls to ~/texmf/tex/latex/res/ (you can create this folder with mkdir -p ~/texmf/tex/latex/res). As soon as you move it there, you should be able to find it with: kpsewhich res.cls, even without running mktexslr. If it can't be found, you have an unusual problem with your system, and should ask for help.

    – jon
    Apr 24 '13 at 2:21






  • 1





    Once it has been copied to where I suggested, kpsewhich res.cs should return /home/<dustin>/texmf/tex/latex/res/res.cls (assuming you are logged in as 'dustin'). If it does, that means the class file should be as usable as any other regular class file.

    – jon
    Apr 24 '13 at 3:23








  • 2





    No. If you put it there, you still want to follow the TDS structure and put it in /usr/local/.../texmf/tex/latex/res/ (best make the directory too while you're at it) as it is a LaTeX thing. But what is the advantage? It is easier to access and keep track of your local texmf, and there is less danger of manually installed classes and style files getting overwritten by system updates (which is probably not a serious concern, but still).

    – jon
    Apr 24 '13 at 4:15
















8












8








8


4






I have been looking on tex.stackexchange and Googling but I can't find a decent two column template.



Does anyone know of site or have a template for a two column article style tex file?



That has a bibliography portion as well?










share|improve this question
















I have been looking on tex.stackexchange and Googling but I can't find a decent two column template.



Does anyone know of site or have a template for a two column article style tex file?



That has a bibliography portion as well?







two-column templates article






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 1 '13 at 8:54









lockstep

190k52585719




190k52585719










asked Apr 24 '13 at 1:19









dustindustin

9,9361459162




9,9361459162








  • 2





    What do you consider "decent"?

    – Gonzalo Medina
    Apr 24 '13 at 1:22








  • 1





    The IEEE has the IEEEtran document class. You can see a sample document in the IEEEtran_HOWTO document. Some scientific journals provide their own tailored templates.

    – Gonzalo Medina
    Apr 24 '13 at 1:58








  • 1





    (If I remember correctly, you use Ubuntu.) You can easily add a class to your personal tree. Copy/move, say, res.cls to ~/texmf/tex/latex/res/ (you can create this folder with mkdir -p ~/texmf/tex/latex/res). As soon as you move it there, you should be able to find it with: kpsewhich res.cls, even without running mktexslr. If it can't be found, you have an unusual problem with your system, and should ask for help.

    – jon
    Apr 24 '13 at 2:21






  • 1





    Once it has been copied to where I suggested, kpsewhich res.cs should return /home/<dustin>/texmf/tex/latex/res/res.cls (assuming you are logged in as 'dustin'). If it does, that means the class file should be as usable as any other regular class file.

    – jon
    Apr 24 '13 at 3:23








  • 2





    No. If you put it there, you still want to follow the TDS structure and put it in /usr/local/.../texmf/tex/latex/res/ (best make the directory too while you're at it) as it is a LaTeX thing. But what is the advantage? It is easier to access and keep track of your local texmf, and there is less danger of manually installed classes and style files getting overwritten by system updates (which is probably not a serious concern, but still).

    – jon
    Apr 24 '13 at 4:15
















  • 2





    What do you consider "decent"?

    – Gonzalo Medina
    Apr 24 '13 at 1:22








  • 1





    The IEEE has the IEEEtran document class. You can see a sample document in the IEEEtran_HOWTO document. Some scientific journals provide their own tailored templates.

    – Gonzalo Medina
    Apr 24 '13 at 1:58








  • 1





    (If I remember correctly, you use Ubuntu.) You can easily add a class to your personal tree. Copy/move, say, res.cls to ~/texmf/tex/latex/res/ (you can create this folder with mkdir -p ~/texmf/tex/latex/res). As soon as you move it there, you should be able to find it with: kpsewhich res.cls, even without running mktexslr. If it can't be found, you have an unusual problem with your system, and should ask for help.

    – jon
    Apr 24 '13 at 2:21






  • 1





    Once it has been copied to where I suggested, kpsewhich res.cs should return /home/<dustin>/texmf/tex/latex/res/res.cls (assuming you are logged in as 'dustin'). If it does, that means the class file should be as usable as any other regular class file.

    – jon
    Apr 24 '13 at 3:23








  • 2





    No. If you put it there, you still want to follow the TDS structure and put it in /usr/local/.../texmf/tex/latex/res/ (best make the directory too while you're at it) as it is a LaTeX thing. But what is the advantage? It is easier to access and keep track of your local texmf, and there is less danger of manually installed classes and style files getting overwritten by system updates (which is probably not a serious concern, but still).

    – jon
    Apr 24 '13 at 4:15










2




2





What do you consider "decent"?

– Gonzalo Medina
Apr 24 '13 at 1:22







What do you consider "decent"?

– Gonzalo Medina
Apr 24 '13 at 1:22






1




1





The IEEE has the IEEEtran document class. You can see a sample document in the IEEEtran_HOWTO document. Some scientific journals provide their own tailored templates.

– Gonzalo Medina
Apr 24 '13 at 1:58







The IEEE has the IEEEtran document class. You can see a sample document in the IEEEtran_HOWTO document. Some scientific journals provide their own tailored templates.

– Gonzalo Medina
Apr 24 '13 at 1:58






1




1





(If I remember correctly, you use Ubuntu.) You can easily add a class to your personal tree. Copy/move, say, res.cls to ~/texmf/tex/latex/res/ (you can create this folder with mkdir -p ~/texmf/tex/latex/res). As soon as you move it there, you should be able to find it with: kpsewhich res.cls, even without running mktexslr. If it can't be found, you have an unusual problem with your system, and should ask for help.

– jon
Apr 24 '13 at 2:21





(If I remember correctly, you use Ubuntu.) You can easily add a class to your personal tree. Copy/move, say, res.cls to ~/texmf/tex/latex/res/ (you can create this folder with mkdir -p ~/texmf/tex/latex/res). As soon as you move it there, you should be able to find it with: kpsewhich res.cls, even without running mktexslr. If it can't be found, you have an unusual problem with your system, and should ask for help.

– jon
Apr 24 '13 at 2:21




1




1





Once it has been copied to where I suggested, kpsewhich res.cs should return /home/<dustin>/texmf/tex/latex/res/res.cls (assuming you are logged in as 'dustin'). If it does, that means the class file should be as usable as any other regular class file.

– jon
Apr 24 '13 at 3:23







Once it has been copied to where I suggested, kpsewhich res.cs should return /home/<dustin>/texmf/tex/latex/res/res.cls (assuming you are logged in as 'dustin'). If it does, that means the class file should be as usable as any other regular class file.

– jon
Apr 24 '13 at 3:23






2




2





No. If you put it there, you still want to follow the TDS structure and put it in /usr/local/.../texmf/tex/latex/res/ (best make the directory too while you're at it) as it is a LaTeX thing. But what is the advantage? It is easier to access and keep track of your local texmf, and there is less danger of manually installed classes and style files getting overwritten by system updates (which is probably not a serious concern, but still).

– jon
Apr 24 '13 at 4:15







No. If you put it there, you still want to follow the TDS structure and put it in /usr/local/.../texmf/tex/latex/res/ (best make the directory too while you're at it) as it is a LaTeX thing. But what is the advantage? It is easier to access and keep track of your local texmf, and there is less danger of manually installed classes and style files getting overwritten by system updates (which is probably not a serious concern, but still).

– jon
Apr 24 '13 at 4:15












2 Answers
2






active

oldest

votes


















8














In www.latextemplates.com there are 3 nice general LaTeX templates for articles. One of these made with the scrartcl class have this layout:



Article template



Another good source is www.sharelatex.com. Among the 76 articles templates for submission to scientific journals or proceedings, several have a two column format. You can download or open and compile in ShareLaTeX.



In any case, as most code of article templates are interchangeable between the standard article class and others general article class (as paper, scrartcl, artikel, etc.) as well as in specific journal class (as svjour3, etc.) you can experiment easily with most classes with the same template replacing the first line (that is, change docummentclass{article} by docummentclass{paper} but search in each case in the documentation for specific options to add/remove for each class (for example, paper class have a smalltableofcontents that you cannot use in the article class, but tableofcontents work in any class).






share|improve this answer

































    1














    I'm new to LaTeX and I've spent a few days searching for two-column article templates and tried out the ones mentioned in the main answer and a dozen others. I hit various issues and finally landed on this clean and simple template that I think also answers this question (which is the top tex stackexchange search result for "two column") and many newbies like me will find useful (screenshot below):



    % test.tex
    title{Article Titlecite{LinkReference1}}

    author{Some Authorcite{Author1}}

    newcommand{abstractText}{noindent
    Abstract goes here.
    }

    %%%%%%%%%%%%%%%%%
    % Configuration %
    %%%%%%%%%%%%%%%%%

    documentclass[12pt, a4paper, twocolumn]{article}
    usepackage{xurl}
    usepackage[super,comma,sort&compress]{natbib}
    usepackage{abstract}
    renewcommand{abstractnamefont}{normalfontbfseries}
    renewcommand{abstracttextfont}{normalfontsmallitshape}
    usepackage{lipsum}

    %%%%%%%%%%%%%%
    % References %
    %%%%%%%%%%%%%%

    % If changing the name of the bib file, change bibliography{test} at the bottom
    begin{filecontents}{test.bib}

    @misc{LinkReference1,
    title = "Link Title",
    author = "Link Creator(s)",
    howpublished = "url{https://example.com/}",
    }

    @misc{Author1,
    author = "LastName, FirstName",
    howpublished = "url{mailto:email@example.com}",
    }

    @article{ArticleReference1,
    author = "Lastname1, Firstname1 and Lastname2, Firstname2",
    title = "Article title",
    year = "Year",
    journal = "Journal name",
    note = "url{https://dx.doi.org/...}",
    }

    end{filecontents}

    % Any configuration that should be done before the end of the preamble:
    usepackage{hyperref}
    hypersetup{colorlinks=true, urlcolor=blue, linkcolor=blue, citecolor=blue}

    begin{document}

    %%%%%%%%%%%%
    % Abstract %
    %%%%%%%%%%%%

    twocolumn[
    begin{@twocolumnfalse}
    maketitle
    begin{abstract}
    abstractText
    newline
    newline
    end{abstract}
    end{@twocolumnfalse}
    ]

    %%%%%%%%%%%
    % Article %
    %%%%%%%%%%%

    section{Section1Title}

    This is the first sentencecite{ArticleReference1}.

    section{Section2Title}

    lipsum[1]

    %%%%%%%%%%%%%%
    % References %
    %%%%%%%%%%%%%%

    nocite{*}
    bibliographystyle{plain}
    bibliography{test}

    end{document}

    % Create PDF on Linux:
    % FILE=test; pkill -9 -f ${FILE} &>/dev/null; rm -f ${FILE}*aux ${FILE}*bbl ${FILE}*bib ${FILE}*blg ${FILE}*log ${FILE}*out ${FILE}*pdf &>/dev/null; pdflatex -halt-on-error ${FILE}; bibtex ${FILE} && pdflatex ${FILE} && pdflatex ${FILE} && (xdg-open ${FILE}.pdf &)


    Screenshot:



    Example screenshot



    As noted in detail in the last line of the file, to process the inline bib file, the general procedure is to run pdflatex multiple times and bibtex after the first run. For example:



    $ pdflatex -halt-on-error test
    $ bibtex test
    $ pdflatex test.tex
    $ pdflatex test.tex
    # Now open test.pdf


    To reduce the margins:



    usepackage{geometry}
    geometry{top=1cm,bottom=1.5cm,left=2cm,right=2cm,includehead,includefoot}
    setlength{columnsep}{7mm} % Column separation width





    share|improve this answer


























    • You are loading hyperref too early.

      – Johannes_B
      Jan 5 at 7:46











    • @Johannes_B Interesting, can you explain more why that's an issue and how to fix it?

      – freeradical
      Jan 5 at 8:28











    • Load the package at the end of the preamble. There are only a few exceptions, hyperref should be loaded last.

      – Johannes_B
      Jan 5 at 9:48











    • @Johannes_B Thanks, so just to confirm, you're saying that usepackage{hyperref} and hypersetup[...] should always be loaded right before begin{document}?

      – freeradical
      Jan 5 at 16:45






    • 1





      Not always. But there are only very few exceptions.

      – Johannes_B
      Jan 5 at 23:41











    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%2f110406%2ftwo-column-article-templates%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









    8














    In www.latextemplates.com there are 3 nice general LaTeX templates for articles. One of these made with the scrartcl class have this layout:



    Article template



    Another good source is www.sharelatex.com. Among the 76 articles templates for submission to scientific journals or proceedings, several have a two column format. You can download or open and compile in ShareLaTeX.



    In any case, as most code of article templates are interchangeable between the standard article class and others general article class (as paper, scrartcl, artikel, etc.) as well as in specific journal class (as svjour3, etc.) you can experiment easily with most classes with the same template replacing the first line (that is, change docummentclass{article} by docummentclass{paper} but search in each case in the documentation for specific options to add/remove for each class (for example, paper class have a smalltableofcontents that you cannot use in the article class, but tableofcontents work in any class).






    share|improve this answer






























      8














      In www.latextemplates.com there are 3 nice general LaTeX templates for articles. One of these made with the scrartcl class have this layout:



      Article template



      Another good source is www.sharelatex.com. Among the 76 articles templates for submission to scientific journals or proceedings, several have a two column format. You can download or open and compile in ShareLaTeX.



      In any case, as most code of article templates are interchangeable between the standard article class and others general article class (as paper, scrartcl, artikel, etc.) as well as in specific journal class (as svjour3, etc.) you can experiment easily with most classes with the same template replacing the first line (that is, change docummentclass{article} by docummentclass{paper} but search in each case in the documentation for specific options to add/remove for each class (for example, paper class have a smalltableofcontents that you cannot use in the article class, but tableofcontents work in any class).






      share|improve this answer




























        8












        8








        8







        In www.latextemplates.com there are 3 nice general LaTeX templates for articles. One of these made with the scrartcl class have this layout:



        Article template



        Another good source is www.sharelatex.com. Among the 76 articles templates for submission to scientific journals or proceedings, several have a two column format. You can download or open and compile in ShareLaTeX.



        In any case, as most code of article templates are interchangeable between the standard article class and others general article class (as paper, scrartcl, artikel, etc.) as well as in specific journal class (as svjour3, etc.) you can experiment easily with most classes with the same template replacing the first line (that is, change docummentclass{article} by docummentclass{paper} but search in each case in the documentation for specific options to add/remove for each class (for example, paper class have a smalltableofcontents that you cannot use in the article class, but tableofcontents work in any class).






        share|improve this answer















        In www.latextemplates.com there are 3 nice general LaTeX templates for articles. One of these made with the scrartcl class have this layout:



        Article template



        Another good source is www.sharelatex.com. Among the 76 articles templates for submission to scientific journals or proceedings, several have a two column format. You can download or open and compile in ShareLaTeX.



        In any case, as most code of article templates are interchangeable between the standard article class and others general article class (as paper, scrartcl, artikel, etc.) as well as in specific journal class (as svjour3, etc.) you can experiment easily with most classes with the same template replacing the first line (that is, change docummentclass{article} by docummentclass{paper} but search in each case in the documentation for specific options to add/remove for each class (for example, paper class have a smalltableofcontents that you cannot use in the article class, but tableofcontents work in any class).







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 7 '14 at 23:16

























        answered Jul 1 '13 at 6:49









        FranFran

        51.7k6114175




        51.7k6114175























            1














            I'm new to LaTeX and I've spent a few days searching for two-column article templates and tried out the ones mentioned in the main answer and a dozen others. I hit various issues and finally landed on this clean and simple template that I think also answers this question (which is the top tex stackexchange search result for "two column") and many newbies like me will find useful (screenshot below):



            % test.tex
            title{Article Titlecite{LinkReference1}}

            author{Some Authorcite{Author1}}

            newcommand{abstractText}{noindent
            Abstract goes here.
            }

            %%%%%%%%%%%%%%%%%
            % Configuration %
            %%%%%%%%%%%%%%%%%

            documentclass[12pt, a4paper, twocolumn]{article}
            usepackage{xurl}
            usepackage[super,comma,sort&compress]{natbib}
            usepackage{abstract}
            renewcommand{abstractnamefont}{normalfontbfseries}
            renewcommand{abstracttextfont}{normalfontsmallitshape}
            usepackage{lipsum}

            %%%%%%%%%%%%%%
            % References %
            %%%%%%%%%%%%%%

            % If changing the name of the bib file, change bibliography{test} at the bottom
            begin{filecontents}{test.bib}

            @misc{LinkReference1,
            title = "Link Title",
            author = "Link Creator(s)",
            howpublished = "url{https://example.com/}",
            }

            @misc{Author1,
            author = "LastName, FirstName",
            howpublished = "url{mailto:email@example.com}",
            }

            @article{ArticleReference1,
            author = "Lastname1, Firstname1 and Lastname2, Firstname2",
            title = "Article title",
            year = "Year",
            journal = "Journal name",
            note = "url{https://dx.doi.org/...}",
            }

            end{filecontents}

            % Any configuration that should be done before the end of the preamble:
            usepackage{hyperref}
            hypersetup{colorlinks=true, urlcolor=blue, linkcolor=blue, citecolor=blue}

            begin{document}

            %%%%%%%%%%%%
            % Abstract %
            %%%%%%%%%%%%

            twocolumn[
            begin{@twocolumnfalse}
            maketitle
            begin{abstract}
            abstractText
            newline
            newline
            end{abstract}
            end{@twocolumnfalse}
            ]

            %%%%%%%%%%%
            % Article %
            %%%%%%%%%%%

            section{Section1Title}

            This is the first sentencecite{ArticleReference1}.

            section{Section2Title}

            lipsum[1]

            %%%%%%%%%%%%%%
            % References %
            %%%%%%%%%%%%%%

            nocite{*}
            bibliographystyle{plain}
            bibliography{test}

            end{document}

            % Create PDF on Linux:
            % FILE=test; pkill -9 -f ${FILE} &>/dev/null; rm -f ${FILE}*aux ${FILE}*bbl ${FILE}*bib ${FILE}*blg ${FILE}*log ${FILE}*out ${FILE}*pdf &>/dev/null; pdflatex -halt-on-error ${FILE}; bibtex ${FILE} && pdflatex ${FILE} && pdflatex ${FILE} && (xdg-open ${FILE}.pdf &)


            Screenshot:



            Example screenshot



            As noted in detail in the last line of the file, to process the inline bib file, the general procedure is to run pdflatex multiple times and bibtex after the first run. For example:



            $ pdflatex -halt-on-error test
            $ bibtex test
            $ pdflatex test.tex
            $ pdflatex test.tex
            # Now open test.pdf


            To reduce the margins:



            usepackage{geometry}
            geometry{top=1cm,bottom=1.5cm,left=2cm,right=2cm,includehead,includefoot}
            setlength{columnsep}{7mm} % Column separation width





            share|improve this answer


























            • You are loading hyperref too early.

              – Johannes_B
              Jan 5 at 7:46











            • @Johannes_B Interesting, can you explain more why that's an issue and how to fix it?

              – freeradical
              Jan 5 at 8:28











            • Load the package at the end of the preamble. There are only a few exceptions, hyperref should be loaded last.

              – Johannes_B
              Jan 5 at 9:48











            • @Johannes_B Thanks, so just to confirm, you're saying that usepackage{hyperref} and hypersetup[...] should always be loaded right before begin{document}?

              – freeradical
              Jan 5 at 16:45






            • 1





              Not always. But there are only very few exceptions.

              – Johannes_B
              Jan 5 at 23:41
















            1














            I'm new to LaTeX and I've spent a few days searching for two-column article templates and tried out the ones mentioned in the main answer and a dozen others. I hit various issues and finally landed on this clean and simple template that I think also answers this question (which is the top tex stackexchange search result for "two column") and many newbies like me will find useful (screenshot below):



            % test.tex
            title{Article Titlecite{LinkReference1}}

            author{Some Authorcite{Author1}}

            newcommand{abstractText}{noindent
            Abstract goes here.
            }

            %%%%%%%%%%%%%%%%%
            % Configuration %
            %%%%%%%%%%%%%%%%%

            documentclass[12pt, a4paper, twocolumn]{article}
            usepackage{xurl}
            usepackage[super,comma,sort&compress]{natbib}
            usepackage{abstract}
            renewcommand{abstractnamefont}{normalfontbfseries}
            renewcommand{abstracttextfont}{normalfontsmallitshape}
            usepackage{lipsum}

            %%%%%%%%%%%%%%
            % References %
            %%%%%%%%%%%%%%

            % If changing the name of the bib file, change bibliography{test} at the bottom
            begin{filecontents}{test.bib}

            @misc{LinkReference1,
            title = "Link Title",
            author = "Link Creator(s)",
            howpublished = "url{https://example.com/}",
            }

            @misc{Author1,
            author = "LastName, FirstName",
            howpublished = "url{mailto:email@example.com}",
            }

            @article{ArticleReference1,
            author = "Lastname1, Firstname1 and Lastname2, Firstname2",
            title = "Article title",
            year = "Year",
            journal = "Journal name",
            note = "url{https://dx.doi.org/...}",
            }

            end{filecontents}

            % Any configuration that should be done before the end of the preamble:
            usepackage{hyperref}
            hypersetup{colorlinks=true, urlcolor=blue, linkcolor=blue, citecolor=blue}

            begin{document}

            %%%%%%%%%%%%
            % Abstract %
            %%%%%%%%%%%%

            twocolumn[
            begin{@twocolumnfalse}
            maketitle
            begin{abstract}
            abstractText
            newline
            newline
            end{abstract}
            end{@twocolumnfalse}
            ]

            %%%%%%%%%%%
            % Article %
            %%%%%%%%%%%

            section{Section1Title}

            This is the first sentencecite{ArticleReference1}.

            section{Section2Title}

            lipsum[1]

            %%%%%%%%%%%%%%
            % References %
            %%%%%%%%%%%%%%

            nocite{*}
            bibliographystyle{plain}
            bibliography{test}

            end{document}

            % Create PDF on Linux:
            % FILE=test; pkill -9 -f ${FILE} &>/dev/null; rm -f ${FILE}*aux ${FILE}*bbl ${FILE}*bib ${FILE}*blg ${FILE}*log ${FILE}*out ${FILE}*pdf &>/dev/null; pdflatex -halt-on-error ${FILE}; bibtex ${FILE} && pdflatex ${FILE} && pdflatex ${FILE} && (xdg-open ${FILE}.pdf &)


            Screenshot:



            Example screenshot



            As noted in detail in the last line of the file, to process the inline bib file, the general procedure is to run pdflatex multiple times and bibtex after the first run. For example:



            $ pdflatex -halt-on-error test
            $ bibtex test
            $ pdflatex test.tex
            $ pdflatex test.tex
            # Now open test.pdf


            To reduce the margins:



            usepackage{geometry}
            geometry{top=1cm,bottom=1.5cm,left=2cm,right=2cm,includehead,includefoot}
            setlength{columnsep}{7mm} % Column separation width





            share|improve this answer


























            • You are loading hyperref too early.

              – Johannes_B
              Jan 5 at 7:46











            • @Johannes_B Interesting, can you explain more why that's an issue and how to fix it?

              – freeradical
              Jan 5 at 8:28











            • Load the package at the end of the preamble. There are only a few exceptions, hyperref should be loaded last.

              – Johannes_B
              Jan 5 at 9:48











            • @Johannes_B Thanks, so just to confirm, you're saying that usepackage{hyperref} and hypersetup[...] should always be loaded right before begin{document}?

              – freeradical
              Jan 5 at 16:45






            • 1





              Not always. But there are only very few exceptions.

              – Johannes_B
              Jan 5 at 23:41














            1












            1








            1







            I'm new to LaTeX and I've spent a few days searching for two-column article templates and tried out the ones mentioned in the main answer and a dozen others. I hit various issues and finally landed on this clean and simple template that I think also answers this question (which is the top tex stackexchange search result for "two column") and many newbies like me will find useful (screenshot below):



            % test.tex
            title{Article Titlecite{LinkReference1}}

            author{Some Authorcite{Author1}}

            newcommand{abstractText}{noindent
            Abstract goes here.
            }

            %%%%%%%%%%%%%%%%%
            % Configuration %
            %%%%%%%%%%%%%%%%%

            documentclass[12pt, a4paper, twocolumn]{article}
            usepackage{xurl}
            usepackage[super,comma,sort&compress]{natbib}
            usepackage{abstract}
            renewcommand{abstractnamefont}{normalfontbfseries}
            renewcommand{abstracttextfont}{normalfontsmallitshape}
            usepackage{lipsum}

            %%%%%%%%%%%%%%
            % References %
            %%%%%%%%%%%%%%

            % If changing the name of the bib file, change bibliography{test} at the bottom
            begin{filecontents}{test.bib}

            @misc{LinkReference1,
            title = "Link Title",
            author = "Link Creator(s)",
            howpublished = "url{https://example.com/}",
            }

            @misc{Author1,
            author = "LastName, FirstName",
            howpublished = "url{mailto:email@example.com}",
            }

            @article{ArticleReference1,
            author = "Lastname1, Firstname1 and Lastname2, Firstname2",
            title = "Article title",
            year = "Year",
            journal = "Journal name",
            note = "url{https://dx.doi.org/...}",
            }

            end{filecontents}

            % Any configuration that should be done before the end of the preamble:
            usepackage{hyperref}
            hypersetup{colorlinks=true, urlcolor=blue, linkcolor=blue, citecolor=blue}

            begin{document}

            %%%%%%%%%%%%
            % Abstract %
            %%%%%%%%%%%%

            twocolumn[
            begin{@twocolumnfalse}
            maketitle
            begin{abstract}
            abstractText
            newline
            newline
            end{abstract}
            end{@twocolumnfalse}
            ]

            %%%%%%%%%%%
            % Article %
            %%%%%%%%%%%

            section{Section1Title}

            This is the first sentencecite{ArticleReference1}.

            section{Section2Title}

            lipsum[1]

            %%%%%%%%%%%%%%
            % References %
            %%%%%%%%%%%%%%

            nocite{*}
            bibliographystyle{plain}
            bibliography{test}

            end{document}

            % Create PDF on Linux:
            % FILE=test; pkill -9 -f ${FILE} &>/dev/null; rm -f ${FILE}*aux ${FILE}*bbl ${FILE}*bib ${FILE}*blg ${FILE}*log ${FILE}*out ${FILE}*pdf &>/dev/null; pdflatex -halt-on-error ${FILE}; bibtex ${FILE} && pdflatex ${FILE} && pdflatex ${FILE} && (xdg-open ${FILE}.pdf &)


            Screenshot:



            Example screenshot



            As noted in detail in the last line of the file, to process the inline bib file, the general procedure is to run pdflatex multiple times and bibtex after the first run. For example:



            $ pdflatex -halt-on-error test
            $ bibtex test
            $ pdflatex test.tex
            $ pdflatex test.tex
            # Now open test.pdf


            To reduce the margins:



            usepackage{geometry}
            geometry{top=1cm,bottom=1.5cm,left=2cm,right=2cm,includehead,includefoot}
            setlength{columnsep}{7mm} % Column separation width





            share|improve this answer















            I'm new to LaTeX and I've spent a few days searching for two-column article templates and tried out the ones mentioned in the main answer and a dozen others. I hit various issues and finally landed on this clean and simple template that I think also answers this question (which is the top tex stackexchange search result for "two column") and many newbies like me will find useful (screenshot below):



            % test.tex
            title{Article Titlecite{LinkReference1}}

            author{Some Authorcite{Author1}}

            newcommand{abstractText}{noindent
            Abstract goes here.
            }

            %%%%%%%%%%%%%%%%%
            % Configuration %
            %%%%%%%%%%%%%%%%%

            documentclass[12pt, a4paper, twocolumn]{article}
            usepackage{xurl}
            usepackage[super,comma,sort&compress]{natbib}
            usepackage{abstract}
            renewcommand{abstractnamefont}{normalfontbfseries}
            renewcommand{abstracttextfont}{normalfontsmallitshape}
            usepackage{lipsum}

            %%%%%%%%%%%%%%
            % References %
            %%%%%%%%%%%%%%

            % If changing the name of the bib file, change bibliography{test} at the bottom
            begin{filecontents}{test.bib}

            @misc{LinkReference1,
            title = "Link Title",
            author = "Link Creator(s)",
            howpublished = "url{https://example.com/}",
            }

            @misc{Author1,
            author = "LastName, FirstName",
            howpublished = "url{mailto:email@example.com}",
            }

            @article{ArticleReference1,
            author = "Lastname1, Firstname1 and Lastname2, Firstname2",
            title = "Article title",
            year = "Year",
            journal = "Journal name",
            note = "url{https://dx.doi.org/...}",
            }

            end{filecontents}

            % Any configuration that should be done before the end of the preamble:
            usepackage{hyperref}
            hypersetup{colorlinks=true, urlcolor=blue, linkcolor=blue, citecolor=blue}

            begin{document}

            %%%%%%%%%%%%
            % Abstract %
            %%%%%%%%%%%%

            twocolumn[
            begin{@twocolumnfalse}
            maketitle
            begin{abstract}
            abstractText
            newline
            newline
            end{abstract}
            end{@twocolumnfalse}
            ]

            %%%%%%%%%%%
            % Article %
            %%%%%%%%%%%

            section{Section1Title}

            This is the first sentencecite{ArticleReference1}.

            section{Section2Title}

            lipsum[1]

            %%%%%%%%%%%%%%
            % References %
            %%%%%%%%%%%%%%

            nocite{*}
            bibliographystyle{plain}
            bibliography{test}

            end{document}

            % Create PDF on Linux:
            % FILE=test; pkill -9 -f ${FILE} &>/dev/null; rm -f ${FILE}*aux ${FILE}*bbl ${FILE}*bib ${FILE}*blg ${FILE}*log ${FILE}*out ${FILE}*pdf &>/dev/null; pdflatex -halt-on-error ${FILE}; bibtex ${FILE} && pdflatex ${FILE} && pdflatex ${FILE} && (xdg-open ${FILE}.pdf &)


            Screenshot:



            Example screenshot



            As noted in detail in the last line of the file, to process the inline bib file, the general procedure is to run pdflatex multiple times and bibtex after the first run. For example:



            $ pdflatex -halt-on-error test
            $ bibtex test
            $ pdflatex test.tex
            $ pdflatex test.tex
            # Now open test.pdf


            To reduce the margins:



            usepackage{geometry}
            geometry{top=1cm,bottom=1.5cm,left=2cm,right=2cm,includehead,includefoot}
            setlength{columnsep}{7mm} % Column separation width






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jan 6 at 0:24

























            answered Jan 4 at 23:00









            freeradicalfreeradical

            405




            405













            • You are loading hyperref too early.

              – Johannes_B
              Jan 5 at 7:46











            • @Johannes_B Interesting, can you explain more why that's an issue and how to fix it?

              – freeradical
              Jan 5 at 8:28











            • Load the package at the end of the preamble. There are only a few exceptions, hyperref should be loaded last.

              – Johannes_B
              Jan 5 at 9:48











            • @Johannes_B Thanks, so just to confirm, you're saying that usepackage{hyperref} and hypersetup[...] should always be loaded right before begin{document}?

              – freeradical
              Jan 5 at 16:45






            • 1





              Not always. But there are only very few exceptions.

              – Johannes_B
              Jan 5 at 23:41



















            • You are loading hyperref too early.

              – Johannes_B
              Jan 5 at 7:46











            • @Johannes_B Interesting, can you explain more why that's an issue and how to fix it?

              – freeradical
              Jan 5 at 8:28











            • Load the package at the end of the preamble. There are only a few exceptions, hyperref should be loaded last.

              – Johannes_B
              Jan 5 at 9:48











            • @Johannes_B Thanks, so just to confirm, you're saying that usepackage{hyperref} and hypersetup[...] should always be loaded right before begin{document}?

              – freeradical
              Jan 5 at 16:45






            • 1





              Not always. But there are only very few exceptions.

              – Johannes_B
              Jan 5 at 23:41

















            You are loading hyperref too early.

            – Johannes_B
            Jan 5 at 7:46





            You are loading hyperref too early.

            – Johannes_B
            Jan 5 at 7:46













            @Johannes_B Interesting, can you explain more why that's an issue and how to fix it?

            – freeradical
            Jan 5 at 8:28





            @Johannes_B Interesting, can you explain more why that's an issue and how to fix it?

            – freeradical
            Jan 5 at 8:28













            Load the package at the end of the preamble. There are only a few exceptions, hyperref should be loaded last.

            – Johannes_B
            Jan 5 at 9:48





            Load the package at the end of the preamble. There are only a few exceptions, hyperref should be loaded last.

            – Johannes_B
            Jan 5 at 9:48













            @Johannes_B Thanks, so just to confirm, you're saying that usepackage{hyperref} and hypersetup[...] should always be loaded right before begin{document}?

            – freeradical
            Jan 5 at 16:45





            @Johannes_B Thanks, so just to confirm, you're saying that usepackage{hyperref} and hypersetup[...] should always be loaded right before begin{document}?

            – freeradical
            Jan 5 at 16:45




            1




            1





            Not always. But there are only very few exceptions.

            – Johannes_B
            Jan 5 at 23:41





            Not always. But there are only very few exceptions.

            – Johannes_B
            Jan 5 at 23:41


















            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%2f110406%2ftwo-column-article-templates%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?

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

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents