Misplaced alignment tab character & in a BibTeX url entry











up vote
1
down vote

favorite












I have a main document and I am using the natbib package to handle my bibtex database.
Here is my bottom part of the document displaying the bibliography code



...
backmatter
nocite{*}
bibliographystyle{plainnat}
bibliography{mybiblifile}
end{document}


This is the bottom part of my code and it seems pretty normal.
When I typeset everything after several runs of BibTeX, I get this error message:




Misplaced alignment tab character &. You have placed an alignment tab character '&' in the wrong place. If you want to align something, you must write it inside an align environment such as begin{align} … end{align}, begin{tabular} … end{tabular}, etc. If you want to write an ampersand '&' in text, you must write & instead.




Now I am opening the bibliography file mybiblifile.bib, one entry draws my attention.



@INPROCEEDINGS{frenkel_fine_2013,
title = {Fine temperature measurement and fabrication of on-chip whispering-gallery mode micro-sensors},
url = {http://proxy.library.nyu.edu/login?url=http://search.ebscohost.com/login.aspx?direct=true&db=edselc&AN=edselc.2-52.0-84901804547&site=eds-live},
doi = {10.1115/MNHMT2013-22003},
booktitle = {{ASME} 2013 4th {International} {Conference} on {Micro}/{Nanoscale} {Heat} and {Mass} {Transfer}, {MNHMT} 2013},
publisher = {American Society of Mechanical Engineers (ASME)},
author = {Frenkel, M. and Avellan, M. and Guo, Z.},
year = {2013},
note = {Conference Proceedings}
}


I realized that it is the & characters inside the URL entry of the Bibtex that causes the problem. When I delete these characters from the URL entry, the typesetting works fine and no more error messages appear.



How do we deal with this problem?










share|improve this question


























    up vote
    1
    down vote

    favorite












    I have a main document and I am using the natbib package to handle my bibtex database.
    Here is my bottom part of the document displaying the bibliography code



    ...
    backmatter
    nocite{*}
    bibliographystyle{plainnat}
    bibliography{mybiblifile}
    end{document}


    This is the bottom part of my code and it seems pretty normal.
    When I typeset everything after several runs of BibTeX, I get this error message:




    Misplaced alignment tab character &. You have placed an alignment tab character '&' in the wrong place. If you want to align something, you must write it inside an align environment such as begin{align} … end{align}, begin{tabular} … end{tabular}, etc. If you want to write an ampersand '&' in text, you must write & instead.




    Now I am opening the bibliography file mybiblifile.bib, one entry draws my attention.



    @INPROCEEDINGS{frenkel_fine_2013,
    title = {Fine temperature measurement and fabrication of on-chip whispering-gallery mode micro-sensors},
    url = {http://proxy.library.nyu.edu/login?url=http://search.ebscohost.com/login.aspx?direct=true&db=edselc&AN=edselc.2-52.0-84901804547&site=eds-live},
    doi = {10.1115/MNHMT2013-22003},
    booktitle = {{ASME} 2013 4th {International} {Conference} on {Micro}/{Nanoscale} {Heat} and {Mass} {Transfer}, {MNHMT} 2013},
    publisher = {American Society of Mechanical Engineers (ASME)},
    author = {Frenkel, M. and Avellan, M. and Guo, Z.},
    year = {2013},
    note = {Conference Proceedings}
    }


    I realized that it is the & characters inside the URL entry of the Bibtex that causes the problem. When I delete these characters from the URL entry, the typesetting works fine and no more error messages appear.



    How do we deal with this problem?










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I have a main document and I am using the natbib package to handle my bibtex database.
      Here is my bottom part of the document displaying the bibliography code



      ...
      backmatter
      nocite{*}
      bibliographystyle{plainnat}
      bibliography{mybiblifile}
      end{document}


      This is the bottom part of my code and it seems pretty normal.
      When I typeset everything after several runs of BibTeX, I get this error message:




      Misplaced alignment tab character &. You have placed an alignment tab character '&' in the wrong place. If you want to align something, you must write it inside an align environment such as begin{align} … end{align}, begin{tabular} … end{tabular}, etc. If you want to write an ampersand '&' in text, you must write & instead.




      Now I am opening the bibliography file mybiblifile.bib, one entry draws my attention.



      @INPROCEEDINGS{frenkel_fine_2013,
      title = {Fine temperature measurement and fabrication of on-chip whispering-gallery mode micro-sensors},
      url = {http://proxy.library.nyu.edu/login?url=http://search.ebscohost.com/login.aspx?direct=true&db=edselc&AN=edselc.2-52.0-84901804547&site=eds-live},
      doi = {10.1115/MNHMT2013-22003},
      booktitle = {{ASME} 2013 4th {International} {Conference} on {Micro}/{Nanoscale} {Heat} and {Mass} {Transfer}, {MNHMT} 2013},
      publisher = {American Society of Mechanical Engineers (ASME)},
      author = {Frenkel, M. and Avellan, M. and Guo, Z.},
      year = {2013},
      note = {Conference Proceedings}
      }


      I realized that it is the & characters inside the URL entry of the Bibtex that causes the problem. When I delete these characters from the URL entry, the typesetting works fine and no more error messages appear.



      How do we deal with this problem?










      share|improve this question













      I have a main document and I am using the natbib package to handle my bibtex database.
      Here is my bottom part of the document displaying the bibliography code



      ...
      backmatter
      nocite{*}
      bibliographystyle{plainnat}
      bibliography{mybiblifile}
      end{document}


      This is the bottom part of my code and it seems pretty normal.
      When I typeset everything after several runs of BibTeX, I get this error message:




      Misplaced alignment tab character &. You have placed an alignment tab character '&' in the wrong place. If you want to align something, you must write it inside an align environment such as begin{align} … end{align}, begin{tabular} … end{tabular}, etc. If you want to write an ampersand '&' in text, you must write & instead.




      Now I am opening the bibliography file mybiblifile.bib, one entry draws my attention.



      @INPROCEEDINGS{frenkel_fine_2013,
      title = {Fine temperature measurement and fabrication of on-chip whispering-gallery mode micro-sensors},
      url = {http://proxy.library.nyu.edu/login?url=http://search.ebscohost.com/login.aspx?direct=true&db=edselc&AN=edselc.2-52.0-84901804547&site=eds-live},
      doi = {10.1115/MNHMT2013-22003},
      booktitle = {{ASME} 2013 4th {International} {Conference} on {Micro}/{Nanoscale} {Heat} and {Mass} {Transfer}, {MNHMT} 2013},
      publisher = {American Society of Mechanical Engineers (ASME)},
      author = {Frenkel, M. and Avellan, M. and Guo, Z.},
      year = {2013},
      note = {Conference Proceedings}
      }


      I realized that it is the & characters inside the URL entry of the Bibtex that causes the problem. When I delete these characters from the URL entry, the typesetting works fine and no more error messages appear.



      How do we deal with this problem?







      bibtex






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      mandresybilly

      8611




      8611






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          You did not show us a complete MWE, showing your used documentclass and used packages. Please next time show a complete MWE, not only code snippets ...



          It seems you miised to call package hyperref (this packages calls url internaly) or if you do not use hyperref you should call package url or xurl.



          See the following MWE (package filecontents is only used to have bib file and tex code together in a MWE):



          RequirePackage{filecontents}
          begin{filecontents*}{jobname.bib}
          @INPROCEEDINGS{frenkel_fine_2013,
          title = {Fine temperature measurement and fabrication of on-chip whispering-gallery mode micro-sensors},
          url = {http://proxy.library.nyu.edu/login?url=http://search.ebscohost.com/login.aspx?direct=true&db=edselc&AN=edselc.2-52.0-84901804547&site=eds-live},
          doi = {10.1115/MNHMT2013-22003},
          booktitle = {{ASME} 2013 4th {International} {Conference} on {Micro}/{Nanoscale} {Heat} and {Mass} {Transfer}, {MNHMT} 2013},
          publisher = {American Society of Mechanical Engineers (ASME)},
          author = {Frenkel, M. and Avellan, M. and Guo, Z.},
          year = {2013},
          note = {Conference Proceedings}
          }
          end{filecontents*}


          documentclass[10pt,a4paper]{article}

          usepackage{natbib}
          %usepackage{xurl}
          usepackage{hyperref}


          begin{document}

          nocite{*} % to test all bib entrys
          bibliographystyle{plainnat}
          bibliography{jobname}

          end{document}


          and its result without error messages:



          enter image description here



          If you do not like the empty space at the end of one line you can uncommment line



          usepackage{xurl}


          in my given MWE.






          share|improve this answer





















          • I was actually thinking of posting a full MWE but it's so damn long!
            – mandresybilly
            26 mins ago










          • Well, that is art of creating an MWE to find out which packages you used you can leave out for the MWE. :-)
            – Kurt
            15 mins ago










          • Thank you for the advice and for your response! It really solved my issue and I will post an MWE from now on.
            – mandresybilly
            8 mins 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%2f464440%2fmisplaced-alignment-tab-character-in-a-bibtex-url-entry%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



          accepted










          You did not show us a complete MWE, showing your used documentclass and used packages. Please next time show a complete MWE, not only code snippets ...



          It seems you miised to call package hyperref (this packages calls url internaly) or if you do not use hyperref you should call package url or xurl.



          See the following MWE (package filecontents is only used to have bib file and tex code together in a MWE):



          RequirePackage{filecontents}
          begin{filecontents*}{jobname.bib}
          @INPROCEEDINGS{frenkel_fine_2013,
          title = {Fine temperature measurement and fabrication of on-chip whispering-gallery mode micro-sensors},
          url = {http://proxy.library.nyu.edu/login?url=http://search.ebscohost.com/login.aspx?direct=true&db=edselc&AN=edselc.2-52.0-84901804547&site=eds-live},
          doi = {10.1115/MNHMT2013-22003},
          booktitle = {{ASME} 2013 4th {International} {Conference} on {Micro}/{Nanoscale} {Heat} and {Mass} {Transfer}, {MNHMT} 2013},
          publisher = {American Society of Mechanical Engineers (ASME)},
          author = {Frenkel, M. and Avellan, M. and Guo, Z.},
          year = {2013},
          note = {Conference Proceedings}
          }
          end{filecontents*}


          documentclass[10pt,a4paper]{article}

          usepackage{natbib}
          %usepackage{xurl}
          usepackage{hyperref}


          begin{document}

          nocite{*} % to test all bib entrys
          bibliographystyle{plainnat}
          bibliography{jobname}

          end{document}


          and its result without error messages:



          enter image description here



          If you do not like the empty space at the end of one line you can uncommment line



          usepackage{xurl}


          in my given MWE.






          share|improve this answer





















          • I was actually thinking of posting a full MWE but it's so damn long!
            – mandresybilly
            26 mins ago










          • Well, that is art of creating an MWE to find out which packages you used you can leave out for the MWE. :-)
            – Kurt
            15 mins ago










          • Thank you for the advice and for your response! It really solved my issue and I will post an MWE from now on.
            – mandresybilly
            8 mins ago















          up vote
          1
          down vote



          accepted










          You did not show us a complete MWE, showing your used documentclass and used packages. Please next time show a complete MWE, not only code snippets ...



          It seems you miised to call package hyperref (this packages calls url internaly) or if you do not use hyperref you should call package url or xurl.



          See the following MWE (package filecontents is only used to have bib file and tex code together in a MWE):



          RequirePackage{filecontents}
          begin{filecontents*}{jobname.bib}
          @INPROCEEDINGS{frenkel_fine_2013,
          title = {Fine temperature measurement and fabrication of on-chip whispering-gallery mode micro-sensors},
          url = {http://proxy.library.nyu.edu/login?url=http://search.ebscohost.com/login.aspx?direct=true&db=edselc&AN=edselc.2-52.0-84901804547&site=eds-live},
          doi = {10.1115/MNHMT2013-22003},
          booktitle = {{ASME} 2013 4th {International} {Conference} on {Micro}/{Nanoscale} {Heat} and {Mass} {Transfer}, {MNHMT} 2013},
          publisher = {American Society of Mechanical Engineers (ASME)},
          author = {Frenkel, M. and Avellan, M. and Guo, Z.},
          year = {2013},
          note = {Conference Proceedings}
          }
          end{filecontents*}


          documentclass[10pt,a4paper]{article}

          usepackage{natbib}
          %usepackage{xurl}
          usepackage{hyperref}


          begin{document}

          nocite{*} % to test all bib entrys
          bibliographystyle{plainnat}
          bibliography{jobname}

          end{document}


          and its result without error messages:



          enter image description here



          If you do not like the empty space at the end of one line you can uncommment line



          usepackage{xurl}


          in my given MWE.






          share|improve this answer





















          • I was actually thinking of posting a full MWE but it's so damn long!
            – mandresybilly
            26 mins ago










          • Well, that is art of creating an MWE to find out which packages you used you can leave out for the MWE. :-)
            – Kurt
            15 mins ago










          • Thank you for the advice and for your response! It really solved my issue and I will post an MWE from now on.
            – mandresybilly
            8 mins ago













          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          You did not show us a complete MWE, showing your used documentclass and used packages. Please next time show a complete MWE, not only code snippets ...



          It seems you miised to call package hyperref (this packages calls url internaly) or if you do not use hyperref you should call package url or xurl.



          See the following MWE (package filecontents is only used to have bib file and tex code together in a MWE):



          RequirePackage{filecontents}
          begin{filecontents*}{jobname.bib}
          @INPROCEEDINGS{frenkel_fine_2013,
          title = {Fine temperature measurement and fabrication of on-chip whispering-gallery mode micro-sensors},
          url = {http://proxy.library.nyu.edu/login?url=http://search.ebscohost.com/login.aspx?direct=true&db=edselc&AN=edselc.2-52.0-84901804547&site=eds-live},
          doi = {10.1115/MNHMT2013-22003},
          booktitle = {{ASME} 2013 4th {International} {Conference} on {Micro}/{Nanoscale} {Heat} and {Mass} {Transfer}, {MNHMT} 2013},
          publisher = {American Society of Mechanical Engineers (ASME)},
          author = {Frenkel, M. and Avellan, M. and Guo, Z.},
          year = {2013},
          note = {Conference Proceedings}
          }
          end{filecontents*}


          documentclass[10pt,a4paper]{article}

          usepackage{natbib}
          %usepackage{xurl}
          usepackage{hyperref}


          begin{document}

          nocite{*} % to test all bib entrys
          bibliographystyle{plainnat}
          bibliography{jobname}

          end{document}


          and its result without error messages:



          enter image description here



          If you do not like the empty space at the end of one line you can uncommment line



          usepackage{xurl}


          in my given MWE.






          share|improve this answer












          You did not show us a complete MWE, showing your used documentclass and used packages. Please next time show a complete MWE, not only code snippets ...



          It seems you miised to call package hyperref (this packages calls url internaly) or if you do not use hyperref you should call package url or xurl.



          See the following MWE (package filecontents is only used to have bib file and tex code together in a MWE):



          RequirePackage{filecontents}
          begin{filecontents*}{jobname.bib}
          @INPROCEEDINGS{frenkel_fine_2013,
          title = {Fine temperature measurement and fabrication of on-chip whispering-gallery mode micro-sensors},
          url = {http://proxy.library.nyu.edu/login?url=http://search.ebscohost.com/login.aspx?direct=true&db=edselc&AN=edselc.2-52.0-84901804547&site=eds-live},
          doi = {10.1115/MNHMT2013-22003},
          booktitle = {{ASME} 2013 4th {International} {Conference} on {Micro}/{Nanoscale} {Heat} and {Mass} {Transfer}, {MNHMT} 2013},
          publisher = {American Society of Mechanical Engineers (ASME)},
          author = {Frenkel, M. and Avellan, M. and Guo, Z.},
          year = {2013},
          note = {Conference Proceedings}
          }
          end{filecontents*}


          documentclass[10pt,a4paper]{article}

          usepackage{natbib}
          %usepackage{xurl}
          usepackage{hyperref}


          begin{document}

          nocite{*} % to test all bib entrys
          bibliographystyle{plainnat}
          bibliography{jobname}

          end{document}


          and its result without error messages:



          enter image description here



          If you do not like the empty space at the end of one line you can uncommment line



          usepackage{xurl}


          in my given MWE.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 28 mins ago









          Kurt

          34.7k846157




          34.7k846157












          • I was actually thinking of posting a full MWE but it's so damn long!
            – mandresybilly
            26 mins ago










          • Well, that is art of creating an MWE to find out which packages you used you can leave out for the MWE. :-)
            – Kurt
            15 mins ago










          • Thank you for the advice and for your response! It really solved my issue and I will post an MWE from now on.
            – mandresybilly
            8 mins ago


















          • I was actually thinking of posting a full MWE but it's so damn long!
            – mandresybilly
            26 mins ago










          • Well, that is art of creating an MWE to find out which packages you used you can leave out for the MWE. :-)
            – Kurt
            15 mins ago










          • Thank you for the advice and for your response! It really solved my issue and I will post an MWE from now on.
            – mandresybilly
            8 mins ago
















          I was actually thinking of posting a full MWE but it's so damn long!
          – mandresybilly
          26 mins ago




          I was actually thinking of posting a full MWE but it's so damn long!
          – mandresybilly
          26 mins ago












          Well, that is art of creating an MWE to find out which packages you used you can leave out for the MWE. :-)
          – Kurt
          15 mins ago




          Well, that is art of creating an MWE to find out which packages you used you can leave out for the MWE. :-)
          – Kurt
          15 mins ago












          Thank you for the advice and for your response! It really solved my issue and I will post an MWE from now on.
          – mandresybilly
          8 mins ago




          Thank you for the advice and for your response! It really solved my issue and I will post an MWE from now on.
          – mandresybilly
          8 mins ago


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f464440%2fmisplaced-alignment-tab-character-in-a-bibtex-url-entry%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

          Accessing regular linux commands in Huawei's Dopra Linux

          Can't connect RFCOMM socket: Host is down

          Kernel panic - not syncing: Fatal Exception in Interrupt