The error is unrelated to bibtex (other than it was bibtex that generated the bad latex)
In
$\texttt{<{http://www.collegium.cz/waldorf/hudba/kurzy/rytmicke%20texty.pdf}>}$.
The %
is TeX's comment character so latex just sees
$\texttt{<{http://www.collegium.cz/waldorf/hudba/kurzy/rytmicke
so the \texttt
and the math $
are never closed and you get the errors that you quoted.
the $
were never doing anything useful, so they could just be deleted, but rather than \texttt
you need a command that deals with special characters in URL such as %
, ~
and #
. Obvious choice is \url
from the url
(or hyperref
) package that will make those characters safe and also allow line breaking at good places like /
.
So something like
{ new.block "Dostupn{\'{e}}~z: \url{" url * "}" * }
and
\usepackage{url}
in your document (or package).
There was a problem with the url
field (I suppose direcly copied on the web), which probably had some invisible character in it. I retyped the url, changed the category from @misc
to @article
since it comes from a journal on line, loaded the url
package to break long urls at the end of line.
I also propose to use bblatex
with option natbib
(it emulates the \citet
and citep
commands from natbib
) and style=authoryear
. The advantage, with backend=biber
is you can input accented letters directly on the keyboard, since biber understands utf8
.
I corrected the url, which wasn't exact, and the author's first name, which precisely has an accented letter.
Code with natbib + bibtex:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[showframe]{geometry}
\usepackage[round]{natbib}
\usepackage{url}
\begin{document}
\citet{Perez1}.
\bibliographystyle{plainnat}
\bibliography{Skripsie}
.bib file for bibtex
@article{Perez1,
author = {Perez, Hern\'{a}in David},
journal = {CSCMP's Supply Chain Quarterly},
pages = {4},
title = {{Supply Chain Strategies: Which one hits the mark?}},
url = {{http://www.supplychainquarterly.com/print/20130306-supply-chain-strategies-which-one-hits-the-mark/}},
year = {2013},
}
Code with biblatex + biber:*
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[showframe]{geometry}
\usepackage[english = british]{csquotes}
\usepackage[english]{babel}
\usepackage[natbib, style=authoryear, backend=bibtex]{biblatex}
\addbibresource{Skripsie1.bib}
\begin{document}
A citation: \citet{Perez1}
\printbibliography
\end{document}
\end{document}
.bib file for biber;
@article{Perez1,
author = {Perez, HernĂ¡n David},
journal = {CSCMP's Supply Chain Quarterly},
pages = {4},
title = {Supply Chain Strategies: Which one hits the mark?},
url = {http://www.supplychainquarterly.com/print/20130306-supply-chain-strategies-which-one-hits-the-mark/},
year = {2013},
}
Best Answer
The journal's input requirements are very straightforward.
To fix ideas, let's assume that your document consists of four files you created yourself:
main.tex
,sec1.tex
,sec2.tex
, andmybib.bib
.mybib.bib
may contain entries that are not cited in the body of the document. Let's also assume that you know to deploy\cite
,\bibliographystyle
, and\bibliography
statements and that you know how and when to run BibTeX, in addition to LaTeX, in order to create the formatted bibliography (which will be stored inmain.bbl
).Suppose, next, that
main.tex
has the following structure:The first applicable instruction is:
To meet this requirement, simply delete (or comment out) the two
\input
statements inmain.tex
and replace them with the contents ofsec1.tex
andsec2.tex
. After these operations,main.tex
should contain the complete LaTeX code for the document.The only way this can fail is if the final pdf file consists of -- in addition to files with extension .tex -- graphics files (in eps, png, or pdf format, say) that are loaded via
\includegraphics
statements. If the final pdf file does rely on externally-stored graphics files, you'll simply have to include them alongsidemain.tex
when you upload the files to the journal's website.The second instruction is:
After running LaTeX, BibTeX, and LaTeX twice more to create the formatted bibliography and resolve all
\cite
commands, delete (or comment out) the\bibliography
statement and replace that statement with the contents ofmain.bbl
. These contents will likely start with\begin{thebibliography}{<some integer>}
and end with\end{thebibliography}
.You should be able to compile the complete file
main.tex
with LaTeX without any further ado. It is this version ofmain.tex
that you should submit to the journal.Some final comments: It's actually quite striking that the journal doesn't appear to impose any additional requirements regarding the document class, the font families, or the page layout. Consider yourself lucky! Do make life for the journal's editorial team as simple as possible by using either
article
orreport
as the document class and only the standard font families, and do make sure to engage in very little or, better still, no visual formatting. The editorial team will take note and be most appreciative.