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?
bibtex
add a comment |
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?
bibtex
add a comment |
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?
bibtex
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
bibtex
asked 1 hour ago
mandresybilly
8611
8611
add a comment |
add a comment |
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:
If you do not like the empty space at the end of one line you can uncommment line
usepackage{xurl}
in my given MWE.
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
add a comment |
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:
If you do not like the empty space at the end of one line you can uncommment line
usepackage{xurl}
in my given MWE.
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
add a comment |
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:
If you do not like the empty space at the end of one line you can uncommment line
usepackage{xurl}
in my given MWE.
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
add a comment |
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:
If you do not like the empty space at the end of one line you can uncommment line
usepackage{xurl}
in my given MWE.
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:
If you do not like the empty space at the end of one line you can uncommment line
usepackage{xurl}
in my given MWE.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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