0

I would like to use square brackets for citations in the text and in the bibliography. I figured out how to adapt the citations in the text, but I just don't find any way how to change the appearance of my bibliography.

I am "condemned" to use a pre-defined document class. With this, I didn't need to insert a bibliographystyle. Instead, the bibliography could simply be created by inserting the command \bibliography{bib-file} in the text. There was also the option to change the style of citation in the text by using \citestyle{plain}. However, I don't know where both of those commands are configured or where they can be adapted. So the question is: Which are the corresponding files or parts to change the style of the bibliography?

Thanks

  • 1
    For a detailed (thus good) answers you will have to prepare a self-contained and minimal example because speculations about the probable cause due to missing information won't help you. – Thorsten Donig Sep 5 '13 at 10:20
  • 1
    It would be of very interesting to know what \bibliographystyle you are using and what you have done to get square brackets in text citations and where you want square brackets in the bibliography. – moewe Sep 5 '13 at 10:23
  • Hi Thorsten and Moewe. Sorry, I should have mentioned that I am using a pre-defined document class so I didn't need to insert a bibliographystyle. Instead, the bibliography could simply be created by inserting the command \bibliography{bib-file} . There was also the option to change the style of citation in the text by using \citestyle{plain}. However, I don't know where both of those commands are configured or where they can be adapted. So the proper question would probably be: Which are the corresponding files to change the style of the bibliography – Felix Sep 5 '13 at 10:34
  • 1
    Obviously your class is setting up the bibliography style and so - as you didn't tell us anything about this class - you are the only one who can know how to change it. – Ulrike Fischer Sep 5 '13 at 10:43
  • 1
    See if you can find a \bibliographystyle in the class file then, if you cannot post it here. moewe also has a point though, if you have to use this style, should you really change it? – Torbjørn T. Sep 8 '13 at 9:04
1

Are you using natbib? It's hard without an MWE ... Anyway,

\usepackage[square]{natbib}

does exactly that for me, i.e. square bracktes.

0

Just guessing, as I have no information for anything better.

If you have the option to use \citestyle{plain} in your text to change the style of the citation, I'd imagine this macro wraps \bibliographystyle and that its argument is the bst file to be used. Pick a style that generates the citations the way you want them, e.g. ieeetr.bst (if that's good for you), and try adding \citestyle{ieeetr}.

If this does not work, this probably means that the set of options you have with \citestyle is predefined and that, maybe, the people who provided you with this class do not want you to change the way citations look and tried to ensure you couldn't.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.