This project is read-only.

How to add tabulators?

Nov 21, 2008 at 12:13 PM
Hi all,

I really like the bibliography styles, but now I want to a tabulator between the the tag column and the other fields. How is this possible?

Taking for example the IEEE Reference Order style

Currently it is like this

[1] William Fool, Chronicles of a hero...

but I want it like this

[1]      William Fool, Chronicles of a hero...

Thank you

Nov 21, 2008 at 12:31 PM
The IEEE Reference Order style is a table based style with hidden borders. The easiest way to obtain what you want, is to just select one of the two columns and set the indentation.

For example, you could select the first column (i.e. the numbers between square brackets) and then on the Home tab in Word 2007, click on the arrow next to 'Paragraph' and set the 'Indentation' 'Right' to the size of your tab. If you would do this with the second column, you would set the 'Left' indentation.

Note that you might have to redo this every time you reformat your bibliography. I can explain you how to change it in the style, but that is more work.

Nov 21, 2008 at 12:51 PM
Edited Nov 21, 2008 at 12:52 PM
Hi Yves,

thanks for your fast reply and the hint that the style is table bases. Now I could even manage it to modify the code by myself. I added the parameter "width" to column1 and I also added "width" to the td parameters in the template "format-bibliography-table-column". This works quite well now.

But I have another question regarding the sorting:

When I use IEEE Reference Order style it sorts the bibliography by occurence in the document, which is the intended behavior I think. So I thought, then I can take IEEE Alphabetical Order style to sort the bibliography by alphabet, but what happens now is, that I don't have any tag names. Just two bracket without content "[]". What am I doing wrong?


Nov 21, 2008 at 1:00 PM
The IEEE Alphabetical Order style requires the BibWord Extender tool to define the BibOrder element. 

The page containing the tool also provide a brief description on its usage. Only after you executed the tool and refreshed your citations and bibliography, the order number will be displayed in your document.

Nov 21, 2008 at 1:28 PM
Great. Worked perfectly, but maybe you should mention on the BibWord page that .NET Framework 3.0 or later is required. The tool does not work with 2.0.

Thanks a lot for your work!
Aug 1, 2009 at 2:10 PM

Dear Yves,

I am writing to ask you about the same problem, but I prefer to modify directly the style. In this way I can share with my colleagues that style without other instructions. So, it would be great if you have time to explane me the process to implement tabulators.

Thanks a lot for your styles and your contributions.



Aug 1, 2009 at 3:38 PM

Tabs are simple characters just like spaces or periods. The easiest way to insert them is as "<![cdata[&#09;]]>". An example BibWord format string using tabs could be:

<format>{[%RefOrder%]}<![CDATA[&#09;]]>{%Author:1%, }{"%Title%,"}{ &lt;i&gt;%JournalName%&lt;/i&gt;}{, vol. %Volume%}{, no. %Issue%}{, %Pages:p. :pp. %}{,{ %Month:s%} %Year%}{, %Comments%}.{ [Online]. %URL:l%}</format>

But why would you use tabs? They severly limit capabilities.

If your entry would be longer than one line, the text on the second line would start right under the number. Then you would have to change the indentation of your style if you wanted things aligned. Not hard, but you still would have to give your colleagues instructions on doing that.

With tabs, alignment can change if you have a lot of source entries. For example, "[1]" followed by a tab could be shorter than "[100]" without tab. Hence, "[100]" followed by a tab would mean your text should be "[1]" followed by two tabs if you wanted them aligned. Or more graphically represented:

[1]   A ...
[100] A ...

You can't easily align to the right, something commonly asked for.

  [1] A ...
[10] A ...

Aug 2, 2009 at 12:35 PM

Dear Yves,

thanks a lot for your answer and for your suggestion. I understand the limits of tabs and maybe I can try starting with a bibword template (as IEEE for instance) that is defined in two columns. Starting from this, there is a way to define the width of the first column in order to obtain a custom indentation of the second one? In my specific case a 2 columns template works great, but I need an indentation, between Ref number and Bibl. source, of 1 cm.  There is the possibility to insert a width parameter?

Thanks and regards,


Aug 3, 2009 at 8:10 AM

If you don't want to play around with the code, you can do it in a 'postprocessing step'. Once you added your bibliograpy, just select the first column. Then, from the "Home" tab, pick the little arrow next to "Paragraph" and set "Indentation" "Right" to 1 cm. Note that if the bibliography gets updated, this formatting feature will be lost.

But your question gave me the idea of a feature which would also fix some other formatting issues which sometimes occur. A version of IEEE reference incorporating this feature can be found at (it will probably only be there for a week or two). Basically, what I did was add a style element to the bibword bibliography element. In the style element, you can set the style properties for the table cells in each column. In the style I added the following two:

  <column id="1">white-space: nowrap;</column>
  <column id="2">padding-left:1cm;</column>

This says that your first column should not be wrapped meaning that the number should always be on one line, while your second column should have a 1 cm margin to the left.

Note that this is an alpha version. It is only my first go at this feature and has not been tested extensively. I already know that this is not how I want the final version to look. When I have the time, I will implement the feature in a decent way. But this should get you started.

Aug 3, 2009 at 10:44 AM

Dear Yves,

I have added these four rows on my style and I have also substituted all the last part of your IEEE reference code in mine (all after months name definition). After some test with my sources it seems to work great, it is a fully automated version of my bibliography style. Thanks for your code and you suggestions!

I hope for the future that all Journal publishers will give directly their word style, as it happends more frequently with latex!