2

I'm using BibTex @misc for citing websites, my entries all look like this:

    @misc{test,
    author =       {},
    key =          {},
    year =         {},
    title =        {Test},
    howpublished = {\url{https://test.com}},
    note =         {Last accessed: 2018-08-25},
    }

In my text I cite them like this:

    Hello world \cite{test}

This results in:

Hello world [tes]

How can I achieve a result like this?:

Hello world [1]

A workaround I found so far is adding a number in the key, but to be honest I don't want to asign the numbers manually as this is very error prone, I'd prefer if it could be achieved automatically somehow (without adding author or year, as I don't have that information for most websites).

Any help would be appreciated!

closed as unclear what you're asking by Kurt, Sebastiano, user36296, Phelype Oleinik, Henri Menke Mar 11 at 1:21

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    Welcome to TeX.SE! Please tell us which bibliography style you employ. (Hint: It's the argument of the \bibliographystyle directive.) Is it the alpha style? If, consider using plain (or some other bibliography style that generates numeric citation call-outs) instead. After changing the argument of \bibliographystyle, be sure to run a full recompile cycle (latex, bibtex, and latex twice more) to fully propagate all changes. – Mico Aug 25 '18 at 21:09
  • 2
    Do also check if your document maybe has more than one \bibliograpystyle directive. If so, delete the directive(s) that shouldn't be there and perform a full recompile cycle. – Mico Aug 25 '18 at 21:15

Browse other questions tagged or ask your own question.