When I want to cite something in BibTeX, I Google (for example) bibtex article and scour for pages with example templates filled out:

  author  = {Peter Adams}, 
  title   = {The title of the work},
  journal = {The name of the journal},
  year    = 1993,
  number  = 2,
  pages   = {201-213},
  month   = 7,
  note    = {An optional note}, 
  volume  = 4

I then copy/paste it into Kile and delete the fields I don't need.

Surely Kile has a better way to do this built in. I tried LaTeXBibliographyArticle in Journal but that pastes the following in my document:

 author = {},
 title = {},
 journal = {},
 year = {},
 OPTkey = {},
 OPTvolume = {},
 OPTnumber = {},
 OPTpages = {},
 OPTmonth = {},
 OPTnote = {},
 OPTannote = {},
 OPTurl = {},
 OPTurldate = {},
 OPTlastchecked = {},
 OPTdoi = {},
 OPTisbn = {},
 OPTissn = {},
 OPTlocalfile = {},
 OPTabstract = {},
 OPTkeywords = {},

which is close but different from what I am after.

Is there a way for Kile to write BibTeX citation templates like the ones linked above in my document?

  • I'm not quite sure, but shouldn't kile provide a menu for bibliographies in which you could customize the layout for bib-entries? – naphaneal Mar 15 '16 at 14:53
  • @Naphaneal, One would think, but it isn't in any of the usual <kbd>Settings</kbd>⟶<kbd>Configure Kile</kbd> places. – user1717828 Mar 15 '16 at 16:37
  • 1
    I think you want to create a snippet. The easiest way is probably to create the template you want in a document i.e. just how you'd like Kile to produce it. Then highlight it and go to Tools -> Create Snippet and configure as desired. You can also go to Tools -> Snippets to manage them without highlighting stuff, but I think it is easiest for a new snippet to set it out just how you'd like it in source so you know the format is the way you want it. – cfr May 6 '16 at 19:29
  • @cfr, thanks for the tip. I'll give it a shot next time I'm at work. – user1717828 May 6 '16 at 20:20
  • Do have a look. I think template in Kile's terms has to be for a new document, which I don't think is what you want here unless you have one .bib per entry ;). But a snippet should work, I think. – cfr May 6 '16 at 20:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.