I have a problem concerning citation of URLs in LyX with BibDesk.

Whenever I try to cite a URL, for example an entry in Wikipedia, LyX only gives me a question mark ("?") in my footnote and no entry at all in the bibliography when I view my text as PDF. No matter which type of citation I choose in BibDesk - url, article, webpage, misc, ... -, no matter which citation style I choose - normally I use natdin - it's always the same problem. I tried loading \usepackage{natbib} and \usepackage{hyperref} or \usepackage{url}. I also tried enclosing the URL in BibDesk, like this: \url{http://en.wikipedia.org/wiki/LyX}. Doesn't change anything.

I spent hours searching the web for solutions but found nothing helpful. This freaks me out a little, because my paper is due in four days. So, if you have any solutions or hints for that, please help!

PS: I don't think this is important, but just in case: I'm using Mac OS X 10.9, LyX 2.0.0 and BibDesk 1.6.1

2 Answers 2


The question mark usually indicates an unresolved reference. I suppose you added the bibtex database to your document like this:

Select "Insert" --> "List / TOC" --> "BibTex Bibliography..." from the menu

enter image description here

In the dialogue box click on "Add..."

enter image description here

Click "Browse..."

enter image description here

Select the file you want (in this case: test.bib)

Now, don't forget to confirm the dialogue boxes. Click on the highlighted buttons.

enter image description here

Select your style (natdin) and confirm.

enter image description here

Now you can use the "Send selection to LyX" feature in BibDesk.

This simple document here:

enter image description here

Renders as:

enter image description here

Here are the the two files:


%% This BibTeX bibliography file was created using BibDesk.
%% http://bibdesk.sourceforge.net/
%% Saved with string encoding Unicode (UTF-8) 

    Author = {@philotue},
    Title = {Das Schlimmste},
    Url = {https://twitter.com/philotue/statuses/404515669007282176},
    Year = {2013},
    Abstract = {[ENGLISH] The present article is a contribution to the development of metrological structural realism (MSR). This position of philosophy of science goes back to Matthias Neuber, who introduces it as a third variation of the main structural realisms: epistemic structural realism (ESR) and ontic structural realism (OSR). Here, Neuber attempts to tackle the problems of OSR and ESR while preserving their respective strengths. Of central importance to his approach, are the concepts of invariance, structure and, especially, measurement. Starting from Eino Kaila\textquoteright{}s \quotedblbase{}non-linguistic, realist account of logical empricism\textquotedblleft, the present article investigates the necessity of yet another position of structural realism. The established structural realisms are examined for their strengths and weaknesses. Afterwards, the requirements on MSR are formulated in a way that extends beyond Neuber\textquoteright{}s account. These requirements are of ontological, epistemological and metrological nature. Finally, a short outlook on the role of the present physical theories -- especially quantum mechanics -- for the formulation of MSR as a full-grown theory of philosophy of science is presented.

                [DEUTSCH] Der vorliegende Aufsatz ist ein Beitrag zur Entwicklung des Metrologischen Strukturenrealismus (MSR). Diese Wissenschaftstheoretische Position geht auf Matthias Neuber zur\"u{}ck, der sie als dritte Spielart zwischen den gro\ss{}en Strukturenrealismen -- dem Epistemischen Strukturenrealismus (ESR) und dem Ontischen Strukturenrealismus (OSR) -- ansiedelt. Neuber versucht, die wissenschaftstheoretischen Probleme von ESR und OSR anzugehen, gleichzeitig aber ihre jeweiligen St\"a{}rken beizubehalten. Dabei sind die Konzepte der Invarianz, der Struktur und besonders der Messung von zentraler Bedeutung. Ausgehend von Eino Kailas \quotedblbase{}non-linguistic, realist account of logical empiricism\textquotedblleft untersucht der vorliegende Aufsatz die Notwendigkeit einer weiteren strukturenrealistischen Position. Dazu werden die etablierten Strukturenrealismen auf ihre St\"a{}rken und Schw\"a{}chen hin untersucht. Es folgt eine Ausformulierung der Forderungen an den MSR, die \"u{}ber die Darstellung bei Neuber hinaus geht. Diese Forderungen sind ontologischer, epistemischer und metrologischer Natur. Abschlie\ss{}end wird ein kurzer Ausblick zur Rolle aktueller, physikalischer Theorien -- insbesondere der Quantenmechanik -- bei der Formulierung des MSR als vollwertige, wissenschaftstheoretische Position gegeben.},
    Author = {Alexander Ehmann},
    Journal = {Philosophia Naturalis},
    Title = {Messung Und Invarianz - Ein Beitrag Zum Metrologischen Strukturenrealismus},
    Url = {http://philpapers.org/rec/EHMMUI},
    Year = {forthcoming},

And test.lyx:

#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\textclass article
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package babel
\inputencoding auto
\fontencoding global
\font_roman palatino
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc true
\font_osf true
\font_sf_scale 100
\font_tt_scale 100

\graphics pdftex
\default_output_format default
\output_sync 0
\bibtex_command bibtex
\index_command default
\paperfontsize 12
\spacing onehalf
\use_hyperref true
\pdf_bookmarks true
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder true
\pdf_colorlinks false
\pdf_backref false
\pdf_pdfusetitle true
\papersize a4paper
\use_geometry false
\use_amsmath 1
\use_esint 1
\use_mhchem 0
\use_mathdots 0
\cite_engine natbib_authoryear
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 0
\index Stichwortverzeichnis
\shortcut idx
\color #008000
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false


\begin_layout Standard
I was flabbergasted by this position.
\begin_inset Foot
status open

\begin_layout Plain Layout
\begin_inset CommandInset citation
LatexCommand cite
key "EhmannForthcoming-EHMMUI"





\begin_layout Standard
This claim 
\begin_inset Foot
status open

\begin_layout Plain Layout
\begin_inset CommandInset citation
LatexCommand cite
key "philotue2013"




 is wrong.


\begin_layout Quotation
\begin_inset CommandInset bibtex
LatexCommand bibtex
bibfiles "test"
options "natdin"




But you knew all this. So your problem must be elsewhere. Maybe you should check the encoding of your .bib-file and/or post the LaTeX Log (in the menu under "Document").

A MWE would be nice too.

  • 1
    This is a wonderful answer. Thankyou!
    – Ian Howson
    Apr 28, 2015 at 2:03
  • @IanHowson My pleasure.
    – DG'
    Apr 29, 2015 at 7:43

Wow, DG', that was very helpful, thank you so much!

I don't know exactly how I did it, but here's what I did:

First, I deleted the bibliography as it was and put it back in like DG' suggested. It's exactly the same way as I did it before, but just to be on the safe side I wanted to follow every step.

Second, I deleted the respective entry in BibDesk and created a new one (as url).

Third, I deleted the entries in the LaTeX-Vorspann (don't know the corresponding english term, sorry) and only loaded \usepackage{url}.

Then, as suggested, I used the send selection to LyX feature of BibDesk, but later figured out that the entry created that way isn't useful at all. Maybe I don't understand what this feature is good for, but I deleted it and cited the "normal" way, which is Insert --> Footnote; Insert --> Literaturverweis (again the german term, sorry); Click on the respective entry and that's it.

And now, it works! As I said, I don't really know what the problem was or what I did wrong the first time. But I'm happy now! \o/

Again: Thank you so much!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .