Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can I make a custom bibliography style?

3,945 views
Skip to first unread message

Ariel

unread,
Apr 10, 2007, 4:46:00 PM4/10/07
to
Word 2007 brings the possibility of making a bibliography, but it contains
fixed bibliography styles. How can I make one of my own?

Daiya Mitchell

unread,
Apr 10, 2007, 6:13:26 PM4/10/07
to
Sorry, the Citation Manager is limited and will not work for all
situations. It can only be customized by digging into the code and at
present there seems to be no documentation on how to customize the
code, so that's not very feasible. I believe you have to know something
called XSLT, which may be part of XML, although I am not entirely sure.

Tony Jollans

unread,
Apr 11, 2007, 5:39:06 PM4/11/07
to
I'm not certain - so please don't quote me - but I suspect that the
bibliography styles are built in to Word and not even customisable through
XML.

--
Enjoy,

Tony Jollans
Microsoft Word MVP

"Daiya Mitchell" <daiya...@mvps.org.INVALID> wrote in message
news:%23xAK317...@TK2MSFTNGP02.phx.gbl...

SHaroz

unread,
Jun 4, 2007, 6:08:01 AM6/4/07
to
They ARE customizable. However, for reasons unknown to me, the wise people at
Microsoft decided to make custimization unimaginably difficult. If you are
bold enough to try, all unintelligable data is in C:\Program Files\Microsoft
Office\Office12\Bibliography

-SHaroz

Chemie

unread,
Jun 6, 2008, 3:37:00 AM6/6/08
to
Can you advice me what I should do to change (52) to [52]?

p0

unread,
Jun 9, 2008, 10:49:54 AM6/9/08
to
Hello Chemie,

Changing the braces is often easily done, it's just a matter of
changing a few lines of xslt. So if you can tell me the style name, I
can probably tell you what to change.


Yves
--
For more Word 2007 Bibliography info, check out http://www.codeplex.com/bibliography

On Jun 6, 9:37 am, Chemie <Che...@discussions.microsoft.com> wrote:
> Can you advice me what I should do to change (52) to [52]?
>
>
>
> "SHaroz" wrote:
> > They ARE customizable. However, for reasons unknown to me, the wise people at
> > Microsoft decided to make custimization unimaginably difficult. If you are
> > bold enough to try, all unintelligable data is in C:\Program Files\Microsoft
> > Office\Office12\Bibliography
>
> > -SHaroz
>
> > "Tony Jollans" wrote:
>
> > > I'm not certain - so please don't quote me - but I suspect that the

> > >bibliographystyles are built in to Word and not even customisable through


> > > XML.
>
> > > --
> > > Enjoy,
>
> > > Tony Jollans
> > > Microsoft Word MVP
>

> > > "Daiya Mitchell" <daiyaNOS...@mvps.org.INVALID> wrote in message


> > >news:%23xAK317...@TK2MSFTNGP02.phx.gbl...
> > > > Sorry, the Citation Manager is limited and will not work for all
> > > > situations. It can only be customized by digging into the code and at
> > > > present there seems to be no documentation on how  to customize the code,
> > > > so that's not very feasible. I believe you have to know something called
> > > > XSLT, which may be part of XML, although I am not entirely sure.
>
> > > > Ariel wrote:
> > > >> Word 2007 brings the possibility of making abibliography, but it

> > > >> contains fixedbibliographystyles. How can I make one of my own?- Hide quoted text -
>
> - Show quoted text -

Nandha

unread,
Jun 18, 2008, 9:58:00 AM6/18/08
to
Hello Yves

Could you make the chicago style to a numbered style and i would like to
make it into [] instead of ()

Thanks

p0

unread,
Jun 19, 2008, 3:41:10 AM6/19/08
to
On 18 Jun, 15:58, Nandha <Nan...@discussions.microsoft.com> wrote:
> Hello Yves
>
> Could you make the chicago style to a numbered style and i would like to
> make it into [] instead of ()
>
> Thanks
>
>
>
> "p0" wrote:

Dear Nandha,

In the Chicago reference style, the elements in the bibliography are
ordered in a certain way (alphabetically by main contributor). So if
you want the in-text citations to be numbered, you would have to
communicate the place of an entry from the bibliography to the
citation. To my knowledge this is not possible in Word 2007. I posted
some notes as to why at http://www.codeplex.com/bibliography/Thread/View.aspx?ThreadId=28347
(5th post).

If you want to use numbers in-text, your only option is to 'sort' your
bibliography at the end of your text in the order the citation
elements appear in the text. Is that ok with you? If not, I'm afraid I
can't help you. If it is, let me know and I'll post the changes. Also
tell me if, in your bibliography at the bottom, the text should be
aligned differently from the number (hanging) or not. I mean (hoping
this gets formatted correctly):
[1] xyz
abc (with abc being under xyz)

or

[1] xyz
abc (with abc being under the number)

BR,

Yves

Nandha

unread,
Jun 19, 2008, 3:56:02 AM6/19/08
to
Dear Yves, i think sorting is better than nothing, and my option would go to
the first one

> [1] xyz
> abc (with abc being under xyz)

so this means that i cannot put numbers in the citation ( i have to do it
manually )?, because in the chicago style, it will put (names, years) instead
of (index number) basically for citation i would like to use the numbered
ISO, but for the bibliography i would like to use the chicago style with
number, but any of that improvement is fine by me. Because i already got the
answer, no matter what we will have to edit it manually in the end.

Thank you Yves

PS : I gave up writing my thesis using LATEX because of time limit (don't
have much time to make a template), so i will use WYSIWYG like word instead,
but i am beginning to like word cause you can work with script using visual
studio, also.

p0

unread,
Jun 20, 2008, 7:25:09 PM6/20/08
to
On 19 jun, 09:56, Nandha <Nan...@discussions.microsoft.com> wrote:
> Dear Yves, i think sorting is better than nothing, and my option would go to
> the first one
>
> > [1] xyz
> >      abc (with abc being under xyz)
>
> so this means that i cannot put numbers in thecitation( i have to do it

> manually )?, because in the chicago style, it will put (names, years) instead
> of (index number) basically forcitationi would like to use the numbered
> ISO, but for thebibliographyi would like to use the chicago style with

> number, but any of that improvement is fine by me. Because i already got the
> answer, no matter what we will have to edit it manually in the end.
>
> Thank you Yves
>
> PS : I gave up writing my thesis using LATEX because of time limit (don't
> have much time to make a template), so i will use WYSIWYG like word instead,
> but i am beginning to like word cause you can work with script using visual
> studio, also.
>
>

Dear Nandha,

If you check the numbered ISO style (ISO 690 - Numerical Reference)
you will see that the entries in the bibliography at the bottom are
not sorted by name but rather by their position as in-text citation.
This is the only way you can use numbers as references in Word 2007.

http://www.codeplex.com/bibliography/Release/ProjectReleases.aspx?ReleaseId=14597
will do partially what you want. By removing the sorting rule (as
explained on the release notes) you will have your bibliography in
order. So if you then convert both your bibliography and your in-text
citations to static text, you will just have to do a find, replace
operation to change every [x] into an [y].

LaTeX also has WYSIWYG-editors, for example LEd (http://
www.latexeditor.org/). It is just that some projects stubbornly refuse
to build them in reasoning that you do not need them to verify the
layout.

BR,

Yves

Nandha

unread,
Jun 23, 2008, 10:51:05 AM6/23/08
to
A million thanks to you Yves.
It was released 2 days ago, i didn't relize it. It is actually perfect, i
was mistaken to understand your words at that time. I realized that what i
want is just like this, the number to apear in order and the bibliography
apear as its appearance in the document.

Once again thank you sooo much

PS : i tried to understand the XSL file, bleeeh its not easy isn't it, too
complex

James

unread,
Jul 2, 2008, 11:13:01 AM7/2/08
to
p0,

I wonder if you can help me? I would like to change the brackets from (1)
to [1] in the ISO numerical reference style, with the text aligned with 'abc'
under 'xyz' in your example.

I'd be really grateful if you could tell me how to do this.

Many many thanks in advance.

p0

unread,
Jul 4, 2008, 4:15:36 PM7/4/08
to

James,

Check out http://www.codeplex.com/bibliography/Release/ProjectReleases.aspx?ReleaseId=15028
. I think that will do what you want.

BR,

Yves

Marc Trumpi

unread,
Jul 9, 2008, 4:46:07 AM7/9/08
to
Hi Yves,

To expand a little on the former posts, I would like to use the IEEE style,
but instead of using standard numbering ( [1], [2]...) I would like to insert
the 'tag' between the brackets.
For instance:
[5] R. Hauffe, et al., "Methods for Passive Fiber Chip Coupling of
Integrated Optical Devices," IEEE Transactions on Advanced Packaging, vol.
24, no. 4, pp. 450-455, Nov. 2001.
would become
[Hau01] R. Hauffe, et al., "Methods for Passive Fiber Chip Coupling of
Integrated Optical Devices," IEEE Transactions on Advanced Packaging, vol.
24, no. 4, pp. 450-455, Nov. 2001.
And of course I would like the inline citations to be the same.

Any ideas on how to do this?

p0

unread,
Jul 10, 2008, 2:47:46 AM7/10/08
to
On 9 jul, 10:46, Marc Trumpi <MarcTru...@discussions.microsoft.com>
wrote:

Hi Marc,

It comes down to replacing b:RefOrder with b:Tag in all but one place
in the stylesheet.

I posted a version at http://www.codeplex.com/bibliography/Release/ProjectReleases.aspx?ReleaseId=15183

Don't forget to read the remarks section at that page on how to change
the sorting order.

HTH

Yves

Marc Trumpi

unread,
Jul 10, 2008, 3:36:09 AM7/10/08
to
Wow, thanks a lot. It works exactly like I was hoping.

"p0" wrote:

> On 9 jul, 10:46, Marc Trumpi <MarcTru...@discussions.microsoft.com>
> wrote:
> > Hi Yves,
> >
> > To expand a little on the former posts, I would like to use the IEEE style,
> > but instead of using standard numbering ( [1], [2]...) I would like to insert
> > the 'tag' between the brackets.
> > For instance:
> > [5] R. Hauffe, et al., "Methods for Passive Fiber Chip Coupling of

> > Integrated Optical Devices," IEEE Transactions on Advanced Packaging, vol..


> > 24, no. 4, pp. 450-455, Nov. 2001.
> > would become
> > [Hau01] R. Hauffe, et al., "Methods for Passive Fiber Chip Coupling of

> > Integrated Optical Devices," IEEE Transactions on Advanced Packaging, vol..

SaulG

unread,
Aug 4, 2008, 9:07:02 PM8/4/08
to
Hi to all,
I've been reading all the info gathered here and it all seems pretty
interesting. I was also looking for a way to change (1) to this [1]; the
solutions that are here are really nice. I would like to know if the
following is possible:

When I insert the bibliography list, the space between the [1] and the text
is too small; i would like to know if this space can be modified. I've tried
to do so with XLS releases here but the list is always managed as a table, so
the TAB Key won't do the work, and neither SPACE.

The format i'm looking for is this
[1] xyz
abc
The space between the [1] and xyz should be the same as a TAB Key.

Thank you all in advance.
SaulG

p0

unread,
Aug 5, 2008, 10:30:31 AM8/5/08
to
On 5 aug, 03:07, SaulG <Sa...@discussions.microsoft.com> wrote:
> Hi to all,
> I've been reading all the info gathered here and it all seems pretty
> interesting. I was also looking for a way to change (1) to this [1]; the
> solutions that are here are really nice. I would like to know if the
> following is possible:
>
> When I insert thebibliographylist, the space between the [1] and the text

> is too small; i would like to know if this space can be modified. I've tried
> to do so with XLS releases here but the list is always managed as a table, so
> the TAB Key won't do the work, and neither SPACE.
>
> The format i'm looking for is this
> [1]     xyz
>          abc
> The space between the [1] and xyz should be the same as a TAB Key.
>
> Thank you all in advance.
> SaulG
>

Hi,

The easiest way, without having to dig into the XSLT, is to just
change the indentation of all the cells in a column to whatever you
want. For example, if you were to select the column with numbers
(first column), you then have to click the arrow at the bottom of the
paragraph ribbon on the home tab. In the window that pops up, you can
then set 'Right' under indentation to something like '0,2 cm'. That
will change the white space between the numbers and the text.

HTH,

Yves
--
http://www.codeplex.com/bibliography

SaulG

unread,
Aug 5, 2008, 1:31:01 PM8/5/08
to
Yves:
Thank you very much!!! for you help, that was exactly what I was looking
for!!!
Also thank you for the styles published here.

SaulG

Adam

unread,
Aug 25, 2008, 9:14:01 AM8/25/08
to
Hi,
All the information on the styles you published are really interesting, but
I haven't been able to find a solution to my problem. I was wondering if it
is possible when you cite different sources at the same time to have all of
them included in a single bracket: instead of having (1)(5)(12) to have
(1,5,12)?
Thank you in advance,

Adam

p0

unread,
Aug 25, 2008, 1:40:59 PM8/25/08
to
Hi Adam,

This can be done by means of the \m switch (http://
office.microsoft.com/en-us/word/HA102157071033.aspx).

Place your mouse on a citation, right click and select "Edit
field...". You will be presented with a window in which you can add
the extra sources by means of there tags. Something like "CITATION
XYZ05 \l 1033" will be already filled in. All you have to do, is
change it into "CITATION XYZ05 \m ABC06 \m KLM07 \l 1033".

Yves

> >http://www.codeplex.com/bibliography- Tekst uit oorspronkelijk bericht niet weergeven -
>


Adam

unread,
Aug 27, 2008, 9:53:01 AM8/27/08
to
Thank you so much, it will make my report clearer!

dswtan

unread,
Aug 27, 2008, 2:49:00 PM8/27/08
to
Yves -- this is great help, thank you. The () --> [] requirement is common in
my experience in technical academic research. I'm really surprised that
square brackets was not the default or a switch allowed this transformation,
but I expect Word ran with whatever was the official standard. It is not de
facto common practice though. I really hope your help is made more prominent
in due course, e.g. in the on-line help for Word, because it took quite a
while to find it in here!

"p0" wrote:

> On 9 jul, 10:46, Marc Trumpi <MarcTru...@discussions.microsoft.com>
> wrote:
> > Hi Yves,
> >
> > To expand a little on the former posts, I would like to use the IEEE style,
> > but instead of using standard numbering ( [1], [2]...) I would like to insert
> > the 'tag' between the brackets.
> > For instance:
> > [5] R. Hauffe, et al., "Methods for Passive Fiber Chip Coupling of

> > Integrated Optical Devices," IEEE Transactions on Advanced Packaging, vol..


> > 24, no. 4, pp. 450-455, Nov. 2001.
> > would become
> > [Hau01] R. Hauffe, et al., "Methods for Passive Fiber Chip Coupling of

> > Integrated Optical Devices," IEEE Transactions on Advanced Packaging, vol..

Chrog

unread,
Sep 3, 2008, 11:06:01 PM9/3/08
to
Hello, I have been reading this string of posts and I think that maybe
someone here might be able to help me. I need to alter the APA style to the
LSA style. They are pretty much the same except Word 2007 keeps truncating
some author's first names, and putting parentheses aroung the date.

I am pretty sure there is a limit on the string length for the author's name
that might be increased but I have no idea where to look for it. I have no
clue how to fix the parentheses issue.

p0

unread,
Sep 4, 2008, 3:15:18 AM9/4/08
to
On 4 sep, 05:06, Chrog <Ch...@discussions.microsoft.com> wrote:
> Hello, I have been reading this string of posts and I think that maybe
> someone here might be able to help me.  I need to alter the APA style to the
> LSA style.  They are pretty much the same except Word 2007 keeps truncating
> some author's first names, and putting parentheses aroung the date.
>
> I am pretty sure there is a limit on the string length for the author's name
> that might be increased but I have no idea where to look for it.  I have no
> clue how to fix the parentheses issue.  
>

Before toying around with the APA.xsl I suggest you make a copy of it
and call it LSA.xsl. Put the copy in the same directory as APA.xsl.
Open up your new created LSA.xsl and look for a piece of xml looking
like this:
<xsl:when test="b:OfficeStyleKey">
<xsl:text>APA</xsl:text>
</xsl:when>

Change it into:
<xsl:when test="b:StyleName">
<xsl:text>LSA</xsl:text>
</xsl:when>

Save the entire thing. Now when you start up Word, there will be an
LSA entry in the style list to pick from. Starting from here, you
should only play around with LSA.xsl and NOT with APA.xsl.

The parentheses around the year are put there during the declaration
of the "enclosedYearDot" variable by the following code (located
around line 5039):

<xsl:variable name="enclosedYearDot">
<xsl:if test="string-length($year)>0">
<xsl:call-template name="templ_prop_APA_GeneralOpen"/>
<xsl:value-of select="$year"/>
<xsl:call-template name="templ_prop_APA_GeneralClose"/>
<xsl:call-template name="templ_prop_Dot"/>
</xsl:if>
</xsl:variable>

By removing the calls to templ_prop_APA_GeneralOpen and
templ_prop_APA_GeneralClose you will remove the brackets. So you would
get:

<xsl:variable name="enclosedYearDot">
<xsl:if test="string-length($year)>0">
<!--<xsl:call-template name="templ_prop_APA_GeneralOpen"/>-->
<xsl:value-of select="$year"/>
<!--<xsl:call-template name="templ_prop_APA_GeneralClose"/>-->
<xsl:call-template name="templ_prop_Dot"/>
</xsl:if>
</xsl:variable>

Note that right under the declaration of enclosedYearDot,
enclosedDateDot and enclosedDateEmptyDot are declared. They put
'entire' dates between brackets. So you also might want to change
those if you don't want brackets around any date.


The name of one of the main contributors to a work is formatted as
follows:

<xsl:template name="formatMainAuthor">
<xsl:call-template name="formatNameCore">
<xsl:with-param name="FML">
<xsl:call-template name="templ_prop_APA_MainAuthors_FML"/>
</xsl:with-param>
<xsl:with-param name="FM">
<xsl:call-template name="templ_prop_APA_MainAuthors_FM"/>
</xsl:with-param>
<xsl:with-param name="ML">
<xsl:call-template name="templ_prop_APA_MainAuthors_ML"/>
</xsl:with-param>
<xsl:with-param name="FL">
<xsl:call-template name="templ_prop_APA_MainAuthors_FL"/>
</xsl:with-param>
<xsl:with-param name="upperLast">no</xsl:with-param>
<xsl:with-param name="withDot">yes</xsl:with-param>

</xsl:call-template>
</xsl:template>

with the following definitions (which you can't change directly):
templ_prop_APA_MainAuthors_FML => %L, %f %m
templ_prop_APA_MainAuthors_FM => %f %m
templ_prop_APA_MainAuthors_ML => %L, %m
templ_prop_APA_MainAuthors_FL => %L, %f
where lower case characters stands for initials and upper case
characters for the full name part. So if you don't want any of the
main authors names abbreviated, you could change the routine into:

<xsl:template name="formatMainAuthor">
<xsl:call-template name="formatNameCore">
<xsl:with-param name="FML">
<xsl:value-of select="'%L, %F %M'"/>
</xsl:with-param>
<xsl:with-param name="FM">
<xsl:value-of select="'%F %M'"/>
</xsl:with-param>
<xsl:with-param name="ML">
<xsl:value-of select="'%L, %M'"/>
</xsl:with-param>
<xsl:with-param name="FL">
<xsl:value-of select="'%L, %F'"/>
</xsl:with-param>
<xsl:with-param name="upperLast">no</xsl:with-param>
<xsl:with-param name="withDot">yes</xsl:with-param>

</xsl:call-template>
</xsl:template>

Once again, note that there is also a formatting routine for secondary
authors right beneath it (formatSecondaryName) which you might want to
change as well to your preferred format.

Yves

chrog

unread,
Sep 4, 2008, 1:49:01 PM9/4/08
to
Thanks this did the trick; it is working great!!!! One other quesiton that
you might be able to help with. When there are two authors for some source
the second is always listed as LAST, FIRST but I want it the other way around.

For example:
Smith, John and Jane Doe. 2020. etc.

not

Smith, John and Doe, Jane. 2020. etc.

I tried to make some adjustments in the (formatSecondaryName) part of the
code but nothing changed. Any advice?

p0

unread,
Sep 5, 2008, 2:25:13 AM9/5/08
to
formatSecondaryName is for a possible second group of contributors to
a work (for example in book sections) not for the second (or further)
person of the main contributors.

I suggest adding a template "formatMainAuthorAfterFirst" to the
stylesheet. As the name suggests, it describes how to format the main
author after the first person. Since you want first name followed by
last name, the template would look something like this:

<xsl:template name="formatMainAuthorAfterFirst">


<xsl:call-template name="formatNameCore">
<xsl:with-param name="FML">

<xsl:value-of select="'%F %M %L'"/>


</xsl:with-param>
<xsl:with-param name="FM">
<xsl:value-of select="'%F %M'"/>
</xsl:with-param>
<xsl:with-param name="ML">

<xsl:value-of select="'%M %L'"/>


</xsl:with-param>
<xsl:with-param name="FL">

<xsl:value-of select="'%F %L'"/>


</xsl:with-param>
<xsl:with-param name="upperLast">no</xsl:with-param>
<xsl:with-param name="withDot">yes</xsl:with-param>

</xsl:call-template>
</xsl:template>

Currently, a set of main authors is formatted using the following
code:

<xsl:template name="formatPersonsAuthor">
<xsl:if test="string-length(b:Corporate)=0">
<xsl:for-each select="b:NameList/b:Person">
<xsl:if test="position() = 1">
<xsl:call-template name="formatMainAuthor"/>
</xsl:if>
<xsl:if test="6 >= position() and position() != 1">
<xsl:call-template name="formatMainAuthor"/>
</xsl:if>
<xsl:call-template name="formatPersonSeperatorMain"/>
</xsl:for-each>
</xsl:if>

<xsl:if test="string-length(b:Corporate)>0">
<xsl:value-of select="b:Corporate"/>
</xsl:if>
</xsl:template>

Here you can see that Microsoft already thought of people who want
their second person displayed differently from their first. The second
'if' statement (<xsl:if test="6 >= position() and position() != 1">)
indicates how the persons 2 to 6 should be handled. In the above code,
they should be handled just like the first person. So here you can
call your newly defined template instead of the old one. Hence you
would change the code from:

<xsl:if test="6 >= position() and position() != 1">
<xsl:call-template name="formatMainAuthor"/>
</xsl:if>

into:

<xsl:if test="6 >= position() and position() != 1">
<xsl:call-template name="formatMainAuthorAfterFirst"/>
</xsl:if>

Regards,

Yves

chrog

unread,
Sep 5, 2008, 11:19:02 AM9/5/08
to
Thank you very much for your help! It works perfectly.

S

unread,
Sep 9, 2008, 4:46:06 PM9/9/08
to
Hi Yves,
Thanks for your awesome code! I was just wondering...when I hit the 'insert
citation' button, all my references in the main text are reference [1] even
though they are sorted and numbered correctly in the actual bibliography at
the end. Any help would be appreciated. THANKS!
S

p0

unread,
Sep 10, 2008, 10:06:00 AM9/10/08
to
Hi S,

By the sound of it, I'm guessing the in-text citation fields are not
updated. Once you finished your text, go to the bibliography style
selection dropdown box and select the style you want again. That way,
all CITATION and BIBLIOGRAPHY fields in your text will be updated.

Yves

On 9 sep, 22:46, S <S...@discussions.microsoft.com> wrote:
> Hi Yves,

> Thanks for your awesome code! I was just wondering...when I hit the 'insertcitation' button, all my references in the main text are reference [1] even

> > > you will see that the entries in thebibliographyat the bottom are


> > > not sorted by name but rather by their position as in-textcitation.
> > > This is the only way you can use numbers as references in Word 2007.
>

> > >http://www.codeplex.com/bibliography/Release/ProjectReleases.aspx?Rel...


> > > will do partially what you want. By removing the sorting rule (as
> > > explained on the release notes) you will have yourbibliographyin

> > > order. So if you then convert both yourbibliographyand your in-text

chrog

unread,
Sep 10, 2008, 1:46:01 PM9/10/08
to
I continue to have more questions on organizing a new biliographic style in
Word. These posts have answered every question so far, but I am not sure if
it good etiquette to keep asking more questions here. (If it isn't I am
sorry).

1) I need to change the title of the automatic bibliography from
Bibliography to References.

2) I need to get rid of all the italics on the Titles and volume numbers.
(actually everywhere)

3) Journal volumes should never be place inside parentheses

4) The informaiton about a book chapter needs to be reversed. That is in
stead of

Smith, John. 2008. Good Bibliographies. In Jane Doe (Ed.) Academic
Scholarship. etc.

I need

Smith, John. 2008. Good Bibliographies. Academic Scholarship, ed. by Jane
Doe.etc.


Thanks for any responses and help.

p0

unread,
Sep 10, 2008, 4:17:54 PM9/10/08
to
On 10 sep, 19:46, chrog <ch...@discussions.microsoft.com> wrote:
> I continue to have more questions on organizing a new biliographic style in
> Word.  These posts have answered every question so far, but I am not sure if
> it good etiquette to keep asking more questions here.  (If it isn't I am
> sorry).
>

Public forums are a better place to get your questions answered than
private communication. Besides, others get to comment on or extend the
solutions you got or might even benefit from them. So this is a good
place.

> 1) I need to change the title of the automatic bibliography from Bibliography to References.  

You can't. It is a built-in gallery. But that's not a problem, beneath
the built-in galeries ('Bibliography' and 'Works Cited') there is a
menu-item called 'Insert Bibliography'. This will insert a
bibliography without any title. Then above your bibliography, you can
put 'References' or whatever you want.

> 2)  I need to get rid of all the italics on the Titles and volume numbers.
> (actually everywhere)

All italic information is set by the template called
ApplyItalicTitleNS. The function has two outcomes depending on a fixed
variable indicating if it should use italics or not. If it is not
allowed to use italics, it still formats title by adding opening and
closing stuff like quotation marks. If you are certain that you don't
want anything italic in your stylesheet and you don't want the
alternative formatting, you can just erase the functionality of that
template by replacing it with:

<xsl:template name="ApplyItalicTitleNS">
<xsl:param name="data" />

<xsl:copy-of select="msxsl:node-set($data)" />

</xsl:template>

If you do want the alternative formatting, you might try changing:

<xsl:variable name="prop_NoItalics">
<xsl:call-template name="templ_prop_NoItalics"/>
</xsl:variable>

into:

<xsl:variable name="prop_NoItalics">
<xsl:value-of select="'no'"/>
</xsl:variable>

This might give a strange effect on volumes though. If that is still
not what you want, you will have to go over every call to the
ApplyItalicTitleNS template and decide if you should make the call or
not. A lot more editing work, but still doable.

> 3) Journal volumes should never be place inside parentheses
>

They never are for journals. If you are still working from the APA
style, volume numbers of journals should be in italic (or just plain
after your previous question), not in brackets. Are you talking about
issue numbers for journals (and periodicals)? Or are you talking about
book sections where the volume number is between brackets together
with a lot of other information? And in case of the latter, does that
information has to remain inside the brackets or not?

> 4) The informaiton about a book chapter needs to be reversed.  That is in
> stead of
>
> Smith, John. 2008.  Good Bibliographies. In Jane Doe (Ed.) Academic
> Scholarship.  etc.
>
> I need
>
> Smith, John. 2008. Good Bibliographies.  Academic Scholarship, ed. by Jane
> Doe.etc.
>

Could you elaborate on the etc? Currently (apart from some punctuation
differences) it's actually:

Smith, John. 2008. Good Bibliographies. In Jane Doe (Ed.) Academic

Scholarship (Translator, edition, volume, pages). City, State,
Country, Publisher

Do you want the translator, edition, volume, pages information still
with the title (logically), or do you want it somewhere else as well?
So it could be

Smith, John. 2008. Good Bibliographies. Academic Scholarship, ed. by

Jane Doe. (Translator, edition, volume, pages). City, State, Country,
Publisher

but also

Smith, John. 2008. Good Bibliographies. Academic Scholarship

(Translator, edition, volume, pages), ed. by Jane Doe. City, State,
Country, Publisher

The latter being a lot less complex to achieve though they both can be
created. It might be easier if you could point me to an online manual
containing a description of the style you try to achieve.

> Thanks for any responses and help.
>

On a side note, if you start making fundamental changes, you should
consider writing a style from scratch rather than trying to patch up
existing material.

Yves

Nat

unread,
Sep 24, 2008, 7:29:01 AM9/24/08
to
Hi,

I have a problem with ISO 690 in Word 2007. It references 'JournalArticle'
and 'ConferenceProceedings' with Title, Year and not with Author, Year as is
the case with Boks, all other .

So instead of (Rogers, 2005) it displays (Towards Movement Friendly
Computing in an Office Environment, 2005).

Does anyone know how to change the XSL code.

Thanks
Natasa


grammatim

unread,
Sep 24, 2008, 8:50:17 AM9/24/08
to
The bibliography tool is sadly broken. Despite what "p0" = Yves will
tell you, it was released before it was ready to be used, and there is
little hope of fixing it if you are not a master of XML programming.
And it has been stated here that the engineers who worked on it are no
longer at Microsoft, so it's not likely to be fixed.

p0

unread,
Sep 24, 2008, 11:45:53 AM9/24/08
to

Hello Natasa,

I suggest you make a copy of "ISO690.xsl" and name it "ISO690Alt.xsl"
or something before starting to mess around with it. In the new file,
look for:

<xsl:when test="b:OfficeStyleKey">

<xsl:text>ISO690FED</xsl:text>
</xsl:when>

and replace it by:

<xsl:when test="b:StyleName">

<xsl:text>ISO 690 - First Name Alternative</xsl:text>
</xsl:when>

If you save this style, and start Word 2007, a new style called "ISO
690 - First Name Alternative" will now be available.

First, I'll show you how to change the citation. Around line 3657, you
have a piece code looking like this:

<xsl:when test="(msxsl:node-set($ListPopulatedWithMain)/b:Citation/
b:Source/b:SourceType = 'JournalArticle' or
msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/
b:SourceType = 'ConferenceProceedings') and string-length(msxsl:node-
set($ListPopulatedWithMain)/b:Citation/b:Source/b:Title) > 0">
<xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/
b:Citation/b:Source/b:Title" />
</xsl:when>

This code actually says that if your source is a conference proceeding
or a journal article, it should display the title. If you would check
the code below, you would see that otherwise the main contributors are
displayed. As you don't want to display the title, remove the above
code. Now your citations for conference proceedings and journal
articles look like those for books.

Of course, your bibliography is still sorted by means of the title for
conference proceedings and journal articles. So you might want to
change that as well.

Elements are sorted based on the value generated for the SortingString
element.

<b:SortingString>
<xsl:if test = "(b:SourceType = 'JournalArticle' or b:SourceType =
'ConferenceProceedings') and string-length(b:Title) > 0">
<xsl:text>&#32;</xsl:text>
<xsl:value-of select="b:Title"/>
</xsl:if>

<xsl:variable name = "author0">
<xsl:for-each select="./b:Author/*[local-name()=
$MostImportantAuthorLocalName]">
<xsl:call-template name="formatPersons">
<xsl:with-param name = "forceMain" select = "'yes'" />
</xsl:call-template>
</xsl:for-each>
</xsl:variable>

<xsl:variable name = "author">
<xsl:choose>
<xsl:when test="string-length(./b:Author/*[local-name()=
$MostImportantAuthorLocalName]/b:Corporate) > 0">
<xsl:value-of select="./b:Author/*[local-name()=
$MostImportantAuthorLocalName]/b:Corporate"/>
</xsl:when>
<xsl:when test="string-length($author0) > 0">
<xsl:value-of select="$author0"/>
</xsl:when>
</xsl:choose>
</xsl:variable>

<xsl:if test="string-length($author) > 0">
<xsl:text>&#32;</xsl:text>
<xsl:value-of select="$author"/>
</xsl:if>

<xsl:if test="string-length(b:Title) > 0 and not (b:SourceType =
'JournalArticle' or b:SourceType = ConferenceProceedings')">
<xsl:text>&#32;</xsl:text>
<xsl:value-of select="b:Title"/>
</xsl:if>
</b:SortingString>

It looks like a lot of code, but it is pretty easy to grasp. There are
basically three IF clauses:
1)if its a journal article or conference proceedings and there is a
title, add the title
2)if there are authors, add the authors
3)if its not a journal article or conference proceedings and there is
a title, add the title

So you want this changed into something looking like:

<b:SortingString>
<xsl:variable name = "author0">
<xsl:for-each select="./b:Author/*[local-name()=
$MostImportantAuthorLocalName]">
<xsl:call-template name="formatPersons">
<xsl:with-param name = "forceMain" select = "'yes'" />
</xsl:call-template>
</xsl:for-each>
</xsl:variable>

<xsl:variable name = "author">
<xsl:choose>
<xsl:when test="string-length(./b:Author/*[local-name()=
$MostImportantAuthorLocalName]/b:Corporate) > 0">
<xsl:value-of select="./b:Author/*[local-name()=
$MostImportantAuthorLocalName]/b:Corporate"/>
</xsl:when>
<xsl:when test="string-length($author0) > 0">
<xsl:value-of select="$author0"/>
</xsl:when>
</xsl:choose>
</xsl:variable>

<xsl:if test="string-length($author) > 0">
<xsl:text>&#32;</xsl:text>
<xsl:value-of select="$author"/>
</xsl:if>

<xsl:if test="string-length(b:Title) > 0">
<xsl:text>&#32;</xsl:text>
<xsl:value-of select="b:Title"/>
</xsl:if>
</b:SortingString>

So now that the order of the bibliography is fixed, one thing is left
to do: displaying the journal articles and conference proceedings in
such a way that the authors are displayed before the title.

In the code there is a section looking like this (it's easily
identifiable as it is just above the single <b> in the entire code:

<xsl:if test="b:SourceType='ConferenceProceedings' or
b:SourceType='JournalArticle'">
<xsl:call-template name = "ApplyItalicTitleNS">
<xsl:with-param name = "data">
<xsl:choose>
<xsl:when test="(/b:Bibliography/b:Source[position()=
$prevBook]/b:SourceType = 'JournalArticle' or
/b:Bibliography/b:Source[position()=$prevBook]/b:SourceType =
'ConferenceProceedings') and /b:Bibliography/b:Source[position()=
$prevBook]/b:Title = b:Title">
<xsl:call-template name="templ_prop_ISO690_SameAuthor"/>


<xsl:call-template name="templ_prop_Dot"/>

</xsl:when>
<xsl:when test="b:SourceType = 'JournalArticle' or
b:SourceType = 'ConferenceProceedings'">
<xsl:copy-of select ='$TitleOfMonographParts'/>
</xsl:when>
</xsl:choose>
</xsl:with-param>
</xsl:call-template>
</xsl:if>

Removing the above code will remove the title for journal articles and
conference proceedings from the beginning. Actually, it removes them
completely from the bibliography. So now we have to add them again
else where. Now if you scroll until the end of the 'b'tag (denoted by
</b>) you will see that a choose construction is given handling all
the source types. So here you would want to display the title again
and change

<xsl:when test="b:SourceType='JournalArticle'">

into

<xsl:when test="b:SourceType='JournalArticle'">
<i>
<xsl:copy-of select ='$TitleOfMonographParts'/>
</i>

And

<xsl:when test="b:SourceType='ArticleInAPeriodical'">

into

<xsl:when test="b:SourceType='ArticleInAPeriodical'">
<i>
<xsl:copy-of select ='$TitleOfMonographParts'/>
</i>

I added the 'i' tags so that the titles are displayed in italic, if
that is not what you want, you can just remove them.

I compiled all the changes described in this post into an xsl file
which you can find at http://www.codeplex.com/bibliography/Release/ProjectReleases.aspx?ReleaseId=17634

HTH,

Yves

Jan

unread,
Oct 23, 2008, 3:40:00 AM10/23/08
to
Hey guys,

i need a special type of bibliography style, called "William Giles
Campbell's: Form and Style: Thesis, Reports, Term Papers".
I found that the built in MLA Style fits in the bibliography, but for the
footnote citations i need the following format:
Jacob Brownowski, The Ascent of Man <-underlined, (Boston: Little, Brown,
1973).

If someone can help me it would be great!
Thanks!

grammatim

unread,
Oct 23, 2008, 7:57:06 AM10/23/08
to
Usually a typed underline is a makeshift replacement for italics: can
you check with whoever is requiring this style whether you can
substitute italics?

p0

unread,
Oct 23, 2008, 9:17:44 AM10/23/08
to
MLA in-text citations consist out of authors only (e.g.: (Doe and Doe)
and (Beethoven)). So what he asks for is not just switching from
italics to underline, but rather a rewrite of the entire in-text/
footnote citation (not bibliography) formatting routine.

Although this is possible, it requires a lot of work. So much work in
fact that I doubt anyone will be able to help him.

Yves
--
http://www.codeplex.com/bibliography

grammatim

unread,
Oct 23, 2008, 10:18:51 AM10/23/08
to
Footnotes like that, with full bibliographical information, are
normally only done when no bibliography (reference list) is provided
at all. Otherwise, the redundancy is immense.

On Oct 23, 9:17 am, p0 <yves.dho...@gmail.com> wrote:
> MLA in-text citations consist out of authors only (e.g.: (Doe and Doe)
> and (Beethoven)). So what he asks for is not just switching from
> italics to underline, but rather a rewrite of the entire in-text/
> footnote citation (not bibliography) formatting routine.
>
> Although this is possible, it requires a lot of work. So much work in
> fact that I doubt anyone will be able to help him.
>
> Yves

> --http://www.codeplex.com/bibliography


>
> On 23 okt, 13:57, grammatim <gramma...@verizon.net> wrote:
>
>
>
> > Usually a typed underline is a makeshift replacement for italics: can
> > you check with whoever is requiring this style whether you can
> > substitute italics?
>
> > On Oct 23, 3:40 am, Jan <J...@discussions.microsoft.com> wrote:
>
> > > Hey guys,
>
> > > i need a special type of bibliography style, called "William Giles
> > > Campbell's: Form and Style: Thesis, Reports, Term Papers".
> > > I found that the built in MLA Style fits in the bibliography, but for the
> > > footnote citations i need the following format:
> > > Jacob Brownowski, The Ascent of Man <-underlined, (Boston: Little, Brown,
> > > 1973).
>
> > > If someone can help me it would be great!

> > > Thanks!-

p0

unread,
Oct 23, 2008, 12:41:50 PM10/23/08
to
It depends on the style. A lot of legal styles want both, full in-text
citation (through footnotes) and a bibliographic list. I guess it
makes it easier for people wanting to look stuff up.

You are right on it being redundant. But you have to admit that most
bibliographic styles are not really an example of smart thinking or
the result of bright minds at work. Compared to author-date styles,
this "William Giles Campbell" style is more redundant but also more
intelligent. It is not uncommon for someone to write multiple articles
(conferences, journals, book sections) a year. The described system
makes it easy for the reader to know what is being cited. In an
ordinary author-date system, is not only the formatting harder (you
need to display more or less authors, add a suffix to the year, ...),
its result is also meaningless for most people reading the work. They
have no idea who "Doe" is, and even if they do, how should they know
what "Doe" wrote sometime during 2008. A reference number pointing to
the bibliography at the end would be just as clear and a lot less
redundant. It also wouldn't require some complex formatting scheme. If
you really wanted a scheme similar to author-date which would be
useful for ordinary people, then at least the title should be somehow
included as it tells more about the work being cited than the name of
the author does.

Yves

On 23 okt, 16:18, grammatim <gramma...@verizon.net> wrote:
> Footnotes like that, with full bibliographical information, are

> normally only done when nobibliography(reference list) is provided


> at all. Otherwise, the redundancy is immense.
>
> On Oct 23, 9:17 am, p0 <yves.dho...@gmail.com> wrote:
>
>
>

> >MLAin-text citations consist out of authors only (e.g.: (Doe and Doe)


> > and (Beethoven)). So what he asks for is not just switching from
> > italics to underline, but rather a rewrite of the entire in-text/

> > footnotecitation(notbibliography) formatting routine.


>
> > Although this is possible, it requires a lot of work. So much work in
> > fact that I doubt anyone will be able to help him.
>
> > Yves
> > --http://www.codeplex.com/bibliography
>
> > On 23 okt, 13:57, grammatim <gramma...@verizon.net> wrote:
>
> > > Usually a typed underline is a makeshift replacement for italics: can
> > > you check with whoever is requiring this style whether you can
> > > substitute italics?
>
> > > On Oct 23, 3:40 am, Jan <J...@discussions.microsoft.com> wrote:
>
> > > > Hey guys,
>

> > > > i need a special type ofbibliographystyle, called "William Giles


> > > > Campbell's: Form and Style: Thesis, Reports, Term Papers".

> > > > I found that the built inMLAStyle fits in thebibliography, but for the

grammatim

unread,
Oct 23, 2008, 2:29:42 PM10/23/08
to
We could discuss the theory of bibliographic style if you'd like, but
this probably isn't the right place ... I live in both worlds.
Linguistics these days rigorously uses author-date, but philology
still uses author-short title (in footnotes), and each has its merits.
(Linguistics, until recently, was a very small field, and everyone had
read everything, so author-date references were instantly
recognizable; and that could well be valid for workers in any very
small field.) And when I'm earning my living by copyediting, I have to
do whatever the respective publisher requires, even APA style, which
(having grown up on Chicago style) I find pretty silly in several
places.

> > > > > Thanks!-

Katie

unread,
Nov 17, 2008, 9:01:00 PM11/17/08
to

I found a way to get numbered citations in the text. after you 'insert
citation', and add a new citation entry you get the name of your source in
brackets (Doe,J et al. 2008). click on the little triangle at the lower right
corner of the citation and click on 'edit citation'. this allows you to edit
the appearance of the citation in the text. where it says add, put the
desired number into the box. I want my Doe, J citation to be number 1, so i
put a 1 in the box. then check all three of the boxes below, to remove the
name, date and author from the citation field. now your citation should read
(1).

Now you should also go to manage sources, up in the toolbar of the
references tab and make sure you change the 'sort by' field to 'sort by tag'.
then you can give your source a new tag, which corresponds to the number
...1. this wont be updated automatically so you should leave this part until
the end. when you next update your citations, by clicking on the tab in the
works cited section, it should update and you shold have numbers in the text
and in the works cited.

"Ariel" wrote:

> Word 2007 brings the possibility of making a bibliography, but it contains
> fixed bibliography styles. How can I make one of my own?

p0

unread,
Nov 18, 2008, 2:38:01 AM11/18/08
to
On 18 nov, 03:01, Katie <Ka...@discussions.microsoft.com> wrote:
> I found a way to get numbered citations in the text. after you 'insert
> citation', and add a new citation entry you get the name of your source in
> brackets (Doe,J et al. 2008). click on the little triangle at the lower right
> corner of the citation and click on 'edit citation'. this allows you to edit
> the appearance of the citation in the text. where it says add, put the
> desired number into the box. I want my Doe, J citation to be number 1, so i
> put a 1 in the box. then check all three of the boxes below, to remove the
> name, date and author from the citation field. now your citation should read
> (1).
>
> Now you should also go to manage sources, up in the toolbar of the
> references tab and make sure you change the 'sort by' field to 'sort by tag'.
> then you can give your source a new tag, which corresponds to the number
> ...1. this wont be updated automatically so you should leave this part until
> the end. when you next update your citations, by clicking on the tab in the
> works cited section, it should update and you shold have numbers in the text
> and in the works cited.
>

To be honest, I'm not sure what you try to achieve with the above
solution. I would think that if you use some kind of number to
represent the citation in the text, you would want that same number in
front of your citation in the bibliography. How else would you be able
to find the reference in your bibliography based on the in-text
citation? With your solution, it would be unlikely that the number
will show up in the bibliography. Unless you start editing the
bibliography formatting rules, but then it might be easier to just do
that for in-text citations as well.

Also, setting the "Pages" variable under "Edit citation..." might not
be such a good idea as it does have a totally different meaning.

Setting the "Tag" and suppressing the other variables is a good idea
though. Although it might still be easier to use a style which
actually uses numerical references to start with (e.g. ISO 690 -
Numerical Reference)

Yves
--
http://www.codeplex.com/bibliography

Yves Dhondt

unread,
Apr 7, 2009, 12:21:24 PM4/7/09
to
No. Citation numbering and alphabetic sorting do not go together in Word.
In-text citations, even those part of a group, are passed one at a time to
the stylesheet. The part of the stylesheet, formatting the in-text citation,
is not able to either retrieve the order of the source in the bibliography
from somewhere or calculate it somehow.

Hence it is not possible to simply transform the existing APA style
according to your request. If you are willing to drop the alphabetic sorting
requirement, you can use
http://bibliography.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=19756 .

I did write a template and an external tool which allows to use both
citation numbering and alphabetic sorting (as well as some other things).
However, in your case, you would have to rewrite APA according to that
template to make it work. If you are interested in doing so, you might want
to check out http://bibliography.codeplex.com/Wiki/View.aspx?title=BibWord
(the template) and
http://bibliography.codeplex.com/Wiki/View.aspx?title=BibWord%20Extender
(the tool).

Yves


"Simplex" <Sim...@discussions.microsoft.com> wrote in message
news:938E3E3A-8136-440C...@microsoft.com...
> Dear Yves
> you did the best with chicago and iso, can you do the same for APA so that
> I
> can have the refrences alphabetically ordered and numbered in brakets []
>
> Thank U
>
> Simplex
>
> "p0" wrote:
>
>> On 2 jul, 17:13, James <Ja...@discussions.microsoft.com> wrote:
>> > p0,
>> >
>> > I wonder if you can help me? I would like to change the brackets from
>> > (1)
>> > to [1] in the ISO numerical reference style, with the text aligned with
>> > 'abc'
>> > under 'xyz' in your example.
>> >
>> > I'd be really grateful if you could tell me how to do this.
>> >
>> > Many many thanks in advance.
>>
>> James,
>>
>> Check out
>> http://www.codeplex.com/bibliography/Release/ProjectReleases.aspx?ReleaseId=15028
>> . I think that will do what you want.
>>
>> BR,
>>
>> Yves
>>

T@discussions.microsoft.com Julie T

unread,
Feb 24, 2010, 3:22:05 AM2/24/10
to

Yves,

APA has been updated where I have to carry in the "DOI." Do you know how to
add a new field in XLST? Also, I need the issue number to be a mandatory
field.

Example:
Klimoski, R., & Palmer, S. (1993). The ADA and the hiring process in
organizations. Consulting Psychology Journal: Practice and Research, 45(2),
10-36. doi:10.1037/1061-4087.45.2.10


Thank you,

Yves Dhondt

unread,
Feb 24, 2010, 5:24:23 AM2/24/10
to
From a purely 'being compliant' point of view, you can't go adding new
fields. The resulting xml would not follow the standardized schema. The only
correct way of doing it would be through namespace subsumption but end-users
can't do that.

Luckely, Word 2007/2008 doesn't really care when it comes to validity. So
you can add almost anything you want, from new source types to new fields
attached to existing source types.

!!! ALWAYS CREATE BACKUPS BEFORE EDITING FILES !!!

To add a new field to the 'Edit Source' dialog, you will have to provide its
definition in 'bibform.xml'. 'bibform.xml' is language dependent and you can
find the one you use in

<winword.exe directory>\<LCID>\Bibliography

where LCID is your language and cultural identifier. It's a 4 (or 5) digit
value. The default one (en-us) is 1033. For a full list, see
http://msdn.microsoft.com/en-us/goglobal/bb964664.aspx

When you check out 'bibform.xml', you will find the following structure:

Forms
--Source <= you have one of these for every type of supported
source (Book, BookSection, ...)
----Tag <= you have one of these for every field the source
supports (Author, Year, ...)
------Label <= this is the string that will be shown to the right of
the input box
------DataTag <= this is tells Word where to store the data entered in
the xml
------Sample <= this is an example value as shown at the bottom of the
'Edit Source' dialog.

So when you want to add a new DOI field to a certain type, you will have to
provide a new tag element for the necessary source elements. The element
could look something like this:

<Tag>
<Label>DOI</Label>
<DataTag>b:DOI</DataTag>
<Sample>Example: 10.1000/182</Sample>
</Tag>

Once you saved your adjusted 'bibform.xml' and start up Word, you will find
the newly added fields in the 'Edit Source' dialog when you select 'Show All
Bibliography Fields'.

As Open XML does not define which fields belong to which source type (they
use a flat structure), you can, without breaking anything, add existing
elements to sources who are missing them. So it is possible to add a b:URL,
b:DayAccessed, b:MonthAccessed, and b:YearAccessed element to an ordinary
Book source without breaking anything. Of course, non existing elements such
as b:DOI break validity.

So think about it, before you break it. I mean, if you use a separate field
for a DOI the underlying xml will become invalid. Not that Word cares at the
moment, but what if one day it will? Or what if someone else needs to open
your document on another word processor. They might expect valid sources,
and you will be giving them something invalid. A DOI is just another
standard number like you have ISBN or ISSN. Why not use the same field
(b:StandardNumber) they use? APA doesn't care about ISBN or ISSN anyway. It
doesn't use the standard number. So you can safely add a b:StandardNumber to
any Source element in your bibform.xml without breaking anything.


Next you may want to control the importance of the field. That is, should
the field be shown in the 'Edit Source' dialog by default, or should it only
be available when 'Show All Bibliography Fields' is selected. The importance
of a field is defined on a per style basis as some styles think an issue
number is important while others think it is not. This means that it is
defined in the xsl files.

What happens is that Word sends a 'b:GetImportantFields/b:SourceType' to the
xsl. The xsl replies with 'b:ImportantFields' element containing the data
tags of the important elements. So for example, when Word want to know what
the important fields are for journal articles in APA, it sends

<b:GetImportantFields>
<b:SourceType>JournalArticle</b:SourceType>
</b:GetImportantFields>

And APA.xsl replies with:

<b:ImportantFields>
<b:ImportantField>
<xsl:text>b:Author/b:Author/b:NameList</xsl:text>
</b:ImportantField>
<b:ImportantField>
<xsl:text>b:Title</xsl:text>
</b:ImportantField>
<b:ImportantField>
<xsl:text>b:JournalName</xsl:text>
</b:ImportantField>
<b:ImportantField>
<xsl:text>b:Year</xsl:text>
</b:ImportantField>
<b:ImportantField>
<xsl:text>b:Pages</xsl:text>
</b:ImportantField>
</b:ImportantFields>

So if you wanted to ensure that the 'Issue' field would show up by default,
you would have to add a:

<b:ImportantField>
<xsl:text>b:Issue</xsl:text>
</b:ImportantField>

Where and how this operation is defined inside the xsl depends on how the
xsl was created. In APA.xsl, the easiest thing is to look for:

<xsl:when test="b:GetImportantFields/b:SourceType='JournalArticle'">

You can of course substitute JournalArticle for other types of sources.


Now that you can define new fields and mark them as important or not, there
is one step left to do: displaying your field in a citation or bibliography.
I'm only going to consider a bibliography here but the principle is similar
for in-text citations.

When Word wants to format a bibliography, it sends a list of all the sources
it wants in the bibliography wrapped in a b:Bibliography element. The xsl
does its magic with that input and returns an HTML file. Word then takes
that HTML file and inserts it into your document. So Word gives something
like:

<b:Bibliography>
<!-- some localized stuff like what is 'and' in your language -->
<b:Source>
<!-- the content of the source -->
</b:Source>
<b:Source>
<!-- the content of the source -->
</b:Source>
<b:Source>
<!-- the content of the source -->
</b:Source>
</b:Bibliography>

And gets back something in the lines of

<html>
<head></head>
<body>
<p>My first source</p>
<p>My second source</p>
<p>My third source</p>
</body>
</html>

As to how the different p elements in the above html are generated, that's
up to the creator of the xsl. The principle is simple but the process is
complex. The reason is, you have to cover every possible case (well you
don't have to, but it is polite to do so). The availability of one element
can influence the look of other elements or the separators between elements.
In the end, you get one giant heap of if loops. A mess to navigate through
(this is actually what BibWord tries to simplify) resulting in an xsl of a
few 1000 lines scaring people away.

Some style authors try to add some order to this madness. For example, in
the APA stylesheet, you can look for:

<xsl:when test="b:Bibliography">

This indicates where the bibliography formatting part begins. Then there is
a small piece of sorting your sources, after which each source is processed
using a for-each loop:

<xsl:for-each select="msxsl:node-set($sList)/b:Bibliography/b:Source">

In that loop, a number of variables are calculated first. Things like the
number of authors, how the title should look like (italics, bold, ...). The
second part of the loop then display the source based on its type and those
variables. You will find a piece of code looking like:

<xsl:choose>
<xsl:when test="b:SourceType='Book'">
<!-- display information if your source is a book -->
</xsl:when>
<xsl:when test="b:SourceType='BookSection'">
<!-- display information if your source is a section of a book -->
</xsl:when>
<!-- other types of sources -->
<xsl:choose>

If you want to add your DOI, you will have to do it here. If you are lucky
enough that your DOI just has to be at the end of the reference, you can
move to just before the </xsl:when> of the source type you want to add it to
and put your code there. Your code could be something simple like checking
if there is a DOI, and if so, display it. So you would get something looking
like:

<xsl:if test="string-length(b:DOI)>0">
<xsl:text> doi:</xsl:text>
<xsl:value-of select="b:DOI" />
</xsl:if>

Of course, if you want it elsewhere, you will have to start looking through
the code.

On a final note, unless you can think of some good reasons, you really
should consider using the StandardNumber field rather than inventing your
own DOI field.

Yves
--
BibWord : Microsoft Word Citation and Bibliography styles
http://bibword.codeplex.com

"Julie T" <Julie T...@discussions.microsoft.com> wrote in message
news:5D47E7D8-8B3F-4164...@microsoft.com...

Message has been deleted

NickSKF

unread,
Apr 21, 2010, 6:47:11 PM4/21/10
to
Got the DOI field. Followed every instruction. But when I insert
Bibliography, no DOI information included.

Yves Dhondt

unread,
Apr 22, 2010, 6:10:37 AM4/22/10
to
The only reason I can think of is that you added the DOI display instruction
in the wrong place in the stylesheet.

At http://bibword.codeplex.com/releases/view/44118 you can find an
implementation of the post.

Yves
--
BibWord : Microsoft Word Citation and Bibliography styles
http://bibword.codeplex.com

"NickSKF" <okl...@gmail.com> wrote in message
news:8da96e05-359e-49df...@x24g2000prc.googlegroups.com...

alvaro...@gmail.com

unread,
Feb 3, 2018, 12:38:59 PM2/3/18
to
Hello Yves,

I would like to add a "map" source type in the Reference Manager GUI. I have read the different options that I have for doing so. One of them is editing the BIBFORM.XML and another one is to use bibtype to create bibform2.xml. I prefer the latter given that I would like to implement these changes in other computers with different languages.

Unfortunately I don't know how to compile the bibtype.exe. I am getting errors when I tried to do so. Also, which xls/xml file should I modify so that "map" shows up in the GUI. Does Bibtype need to be placed in a specific directory?

Regards,

sadi...@gmail.com

unread,
May 26, 2018, 7:11:03 AM5/26/18
to
I have MS Word 2016.It has built-in styles for citation like IEEE, APA, etc. Our University has a format which is not available here.
Can I insert my own citation style in this word?If yes how? And if no then how should I handle this problem?

Peter T. Daniels

unread,
May 26, 2018, 8:27:15 AM5/26/18
to
On Saturday, May 26, 2018 at 7:11:03 AM UTC-4, Sadiq Akbar wrote:

> I have MS Word 2016.It has built-in styles for citation like IEEE, APA, etc. Our University has a format which is not available here.
> Can I insert my own citation style in this word?If yes how? And if no then how should I handle this problem?

You can, but it is VERY difficult. You may be able to find what you need at

https://archive.codeplex.com/?p=bibword

-- as "BibWord" -- but as far as I can tell it has not been updated since Word2007, and the Styles created in Word2007 do NOT work in Word2013.

I haven't had the time to experiment with altering the Word2013 built-in
styles to match my custom styles created for Word2007. They look the
same when they're opened in NotePad, but clearly something is different
"behind the scenes."

Cetungrty Ketungetu

unread,
Oct 13, 2023, 4:12:06 PM10/13/23
to
Buy a Verified Cash App Account
If you have more activities in online business and need multiple cash app accounts to send and receive more payments. And if you haven’t multiple Cash App, you can buy verified Cash App account as your backup.we provied 100% safe verified Cash App Accounts at a cheap price with https://usbusinesshop.com/

Our Cash App Account Features-
Cash App account associated Gmail and password.
Email access associated with Cash App account.
Number verified.
ID verified.
Bank verified.
Photo and ID provided.
Date of birth provided.
Bank statement.
07 Days replacement guaranty.
If you have more question about our service, please contact with us
https://usbusinesshop.com/product/buy-verified-cash-app-accounts/

➤Email:- usbusin...@gmail.com
➤ Skype:- usbusinesshop
➤Telegram:- @usbusinesshop
➤WhatsApp:-+1 (203) 252-6895
0 new messages