Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with (Zotero-)BibTeX-keys #27

Open
wadoli opened this issue Jan 16, 2011 · 1 comment
Open

Problem with (Zotero-)BibTeX-keys #27

wadoli opened this issue Jan 16, 2011 · 1 comment

Comments

@wadoli
Copy link

wadoli commented Jan 16, 2011

Zotero (http://www.zotero.org) constructs BibTeX-keys like this:

[name]_[first word of title]_[year]

Consequently, BibTeX-keys of works without author are exported by Zotero beginning with an underscore. This results in MultiMarkdown-citations like this one:

[][#_frei_2009]

These don't go down well with the parser. When trying to convert them to LaTeX, they produce errors like these (thrown by the MultiMarkdown-version included with Scrivener 2.0.2):

-:502: parser error : Unescaped '<' not allowed in attributes values
<li id="fn:fn40"><p><span class="externalcitation"> (<a id="<em>frei</em>2009"><
                                                            ^
-:502: parser error : attributes construct error
<li id="fn:fn40"><p><span class="externalcitation"> (<a id="<em>frei</em>2009"><
                                                            ^
-:502: parser error : Couldn't find end of Start Tag a line 502
<li id="fn:fn40"><p><span class="externalcitation"> (<a id="<em>frei</em>2009"><
                                                            ^
-:502: parser error : Opening and ending tag mismatch: span line 502 and a
<span class="externalcitation"> (<a id="<em>frei</em>2009"><em>frei</em>2009</a>
                                                                               ^
-:502: parser error : Opening and ending tag mismatch: p line 502 and span
ass="externalcitation"> (<a id="<em>frei</em>2009"><em>frei</em>2009</a>)</span>
                                                                               ^
-:502: parser error : Opening and ending tag mismatch: li line 502 and p
ef:fn40" title="return to article" class="reversefootnote">&#160;&#8617;</a></p>
                                                                               ^
-:502: parser error : Opening and ending tag mismatch: ol line 422 and li
n40" title="return to article" class="reversefootnote">&#160;&#8617;</a></p></li
                                                                               ^
-:504: parser error : Opening and ending tag mismatch: div line 420 and ol
</ol>
     ^
-:505: parser error : Opening and ending tag mismatch: body line 27 and div
</div>
      ^
-:506: parser error : Opening and ending tag mismatch: html line 5 and body
</body>
       ^
-:507: parser error : Extra content at the end of the document
</html>
^
unable to parse -

Could these be fixed? Or does the Zotero BibTeX-translator have to be modified? I don't think a BibTeX-key starting with an underscore («_») is invalid, though.

@fletcher
Copy link
Owner

This should work fine in MMD 3. MMD 2 will be fixed later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants