1

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

@article{article,
  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:

@Article{,
 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 SettingsConfigure Kile 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 06 '16 at 19:29
  • @cfr, thanks for the tip. I'll give it a shot next time I'm at work. – user1717828 May 06 '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 06 '16 at 20:40

1 Answers1

1

This question is quite old. Maybe you have already found some workaround but one that is working nowadays with Kile (version 2.9.93) is to use User Menus, as what was suggested here (noticing that user menus were called user tags at that time). You can find them in the menu here:

LaTeX -> Edit User Menu

or there:

Wizard -> Edit User Menu

depending on your configuration settings.

cfr
  • 198,882
Olivier
  • 208
  • I use Kile and there is no 'User-Tags' option in the LaTeX menu. – cfr Dec 13 '23 at 16:52
  • @cfr Indeed, this is now (version 2.9.93, a.k.a. "3.0 Beta 3") called a "User Menu", accessible through LaTeX -> Edit User Menu; at least, this is so for my Debian Testing system. If you confirm, I will edit my answer accordingly. – Olivier Dec 14 '23 at 23:02
  • I have Wizard -> Edit User Menu and I also have Kile 2.9.93. I'm using Arch. I'm certain Arch won't have changed it. I also kind of doubt Debian would. It would be a weird thing to change. Maybe the location depends on configuration somehow? – cfr Dec 15 '23 at 03:44
  • 1
    Well spotted! Neither Arch or Debian people did anything to Kile on that matter. Our differences actually come from a configuration setting in Settings -> Configure Kile -> Kile -> User Menu -> Location. Some screenshots are available in the official documentation and make it all cristal clear. As a consequence, I'm going to edit my answer. – Olivier Dec 15 '23 at 04:11