A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Citation style



 
 
Thread Tools Display Modes
  #1  
Old September 16th, 2009, 04:18 AM posted to microsoft.public.word.docmanagement
Susan Koziel
external usenet poster
 
Posts: 1
Default Citation style

Hi,
Is there any way of changing the citation format from word 2007 slightly.
I've had a comment from a thesis reviewer that (author, et al. 2008) is
incorrect.
It should be (author et al. 2008)
is there a way I can remove the comma from the format.

I realize I may end up making the change and then changing it back once a
different editor gets a hold of it.... but in the mean time I need to remove
the comma from all the citations with et al.

Thanks.
-Sue
  #2  
Old September 16th, 2009, 07:23 AM posted to microsoft.public.word.docmanagement
Yves Dhondt
external usenet poster
 
Posts: 560
Default Citation style

Yes, if you have XSLT knowledge, you can adapt the style to your needs. The
stylesheets are located at

winword.exe directory\Bibliography\Style

which commonly is

C:\Program Files\Microsoft Office\Office12\Bibliography\Style

Which style are you trying to change? And what part? I'm assuming in-text
citations by the brackets. If you could answer these questions, I or someone
else might be able to help you locate more closely as to what to change
where in those large XSL files.

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

"Susan Koziel" Susan wrote in message
...
Hi,
Is there any way of changing the citation format from word 2007 slightly.
I've had a comment from a thesis reviewer that (author, et al. 2008) is
incorrect.
It should be (author et al. 2008)
is there a way I can remove the comma from the format.

I realize I may end up making the change and then changing it back once a
different editor gets a hold of it.... but in the mean time I need to
remove
the comma from all the citations with et al.

Thanks.
-Sue


  #3  
Old September 16th, 2009, 04:57 PM posted to microsoft.public.word.docmanagement
Susan Koziel[_2_]
external usenet poster
 
Posts: 7
Default Citation style

The in text citations of both APA and Chicago style do this.
I looked through the style sheet and couldn't find the spot that dealt with
the et al.

I need to switch where the comma occurs before the et al.
so
(author, et al. 2008)
needs to be
(author et al. 2008)

Any help is appreciated.
Thanks.
-Sue

"Yves Dhondt" wrote:

Yes, if you have XSLT knowledge, you can adapt the style to your needs. The
stylesheets are located at

winword.exe directory\Bibliography\Style

which commonly is

C:\Program Files\Microsoft Office\Office12\Bibliography\Style

Which style are you trying to change? And what part? I'm assuming in-text
citations by the brackets. If you could answer these questions, I or someone
else might be able to help you locate more closely as to what to change
where in those large XSL files.

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

"Susan Koziel" Susan wrote in message
...
Hi,
Is there any way of changing the citation format from word 2007 slightly.
I've had a comment from a thesis reviewer that (author, et al. 2008) is
incorrect.
It should be (author et al. 2008)
is there a way I can remove the comma from the format.

I realize I may end up making the change and then changing it back once a
different editor gets a hold of it.... but in the mean time I need to
remove
the comma from all the citations with et al.

Thanks.
-Sue



  #4  
Old September 16th, 2009, 06:53 PM posted to microsoft.public.word.docmanagement
Yves Dhondt
external usenet poster
 
Posts: 560
Default Citation style

It might be interesting to create copies of the existing styles with
different names before starting to edit them. That way, you don't damage the
original styles. To do so, see
http://bibword.codeplex.com/Wiki/View.aspx?title=FAQ#Q8

Now, for APA, look for a piece of code looking like:

xsl:when test="(position() = 1 and $cAuthors 6)"
xsl:call-template name="templ_prop_ListSeparator"/
xsl:call-template name="templ_str_AndOthersUnCap"/
/xsl:when

It should be located somewhere around line 3940. Change it into:

xsl:when test="(position() = 1 and $cAuthors 6)"
xsl:text /xsl:text
xsl:call-template name="templ_str_AndOthersUnCap"/
/xsl:when

That way, the separator will be replaced by a single space.

In the Chicago template, you will have to change the code around line 3817
which looks like:

xsl:when test = "$cAuthors 3 and position() = $minAuthors"
xsl:call-template name="templ_prop_ListSeparator"/
xsl:call-template name="templ_str_AndOthersUnCap"/
/xsl:when

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

"Susan Koziel" wrote in message
...
The in text citations of both APA and Chicago style do this.
I looked through the style sheet and couldn't find the spot that dealt
with
the et al.

I need to switch where the comma occurs before the et al.
so
(author, et al. 2008)
needs to be
(author et al. 2008)

Any help is appreciated.
Thanks.
-Sue

"Yves Dhondt" wrote:

Yes, if you have XSLT knowledge, you can adapt the style to your needs.
The
stylesheets are located at

winword.exe directory\Bibliography\Style

which commonly is

C:\Program Files\Microsoft Office\Office12\Bibliography\Style

Which style are you trying to change? And what part? I'm assuming in-text
citations by the brackets. If you could answer these questions, I or
someone
else might be able to help you locate more closely as to what to change
where in those large XSL files.

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

"Susan Koziel" Susan wrote in message
...
Hi,
Is there any way of changing the citation format from word 2007
slightly.
I've had a comment from a thesis reviewer that (author, et al. 2008) is
incorrect.
It should be (author et al. 2008)
is there a way I can remove the comma from the format.

I realize I may end up making the change and then changing it back once
a
different editor gets a hold of it.... but in the mean time I need to
remove
the comma from all the citations with et al.

Thanks.
-Sue




  #5  
Old September 19th, 2009, 08:11 PM posted to microsoft.public.word.docmanagement
Susan Koziel[_2_]
external usenet poster
 
Posts: 7
Default Citation style

Thanks for the code! It saves me time trying to figure it out.
-Sue

"Yves Dhondt" wrote:

It might be interesting to create copies of the existing styles with
different names before starting to edit them. That way, you don't damage the
original styles. To do so, see
http://bibword.codeplex.com/Wiki/View.aspx?title=FAQ#Q8

Now, for APA, look for a piece of code looking like:

xsl:when test="(position() = 1 and $cAuthors 6)"
xsl:call-template name="templ_prop_ListSeparator"/
xsl:call-template name="templ_str_AndOthersUnCap"/
/xsl:when

It should be located somewhere around line 3940. Change it into:

xsl:when test="(position() = 1 and $cAuthors 6)"
xsl:text /xsl:text
xsl:call-template name="templ_str_AndOthersUnCap"/
/xsl:when

That way, the separator will be replaced by a single space.

In the Chicago template, you will have to change the code around line 3817
which looks like:

xsl:when test = "$cAuthors 3 and position() = $minAuthors"
xsl:call-template name="templ_prop_ListSeparator"/
xsl:call-template name="templ_str_AndOthersUnCap"/
/xsl:when

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

"Susan Koziel" wrote in message
...
The in text citations of both APA and Chicago style do this.
I looked through the style sheet and couldn't find the spot that dealt
with
the et al.

I need to switch where the comma occurs before the et al.
so
(author, et al. 2008)
needs to be
(author et al. 2008)

Any help is appreciated.
Thanks.
-Sue

"Yves Dhondt" wrote:

Yes, if you have XSLT knowledge, you can adapt the style to your needs.
The
stylesheets are located at

winword.exe directory\Bibliography\Style

which commonly is

C:\Program Files\Microsoft Office\Office12\Bibliography\Style

Which style are you trying to change? And what part? I'm assuming in-text
citations by the brackets. If you could answer these questions, I or
someone
else might be able to help you locate more closely as to what to change
where in those large XSL files.

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

"Susan Koziel" Susan wrote in message
...
Hi,
Is there any way of changing the citation format from word 2007
slightly.
I've had a comment from a thesis reviewer that (author, et al. 2008) is
incorrect.
It should be (author et al. 2008)
is there a way I can remove the comma from the format.

I realize I may end up making the change and then changing it back once
a
different editor gets a hold of it.... but in the mean time I need to
remove
the comma from all the citations with et al.

Thanks.
-Sue




  #6  
Old September 20th, 2009, 04:22 AM posted to microsoft.public.word.docmanagement
Susan Koziel[_2_]
external usenet poster
 
Posts: 7
Default Citation style

I have another question on the same topic.
Is there any way to alter the code to give me
xsl:when test="(position() = 1 and $cAuthors 3)"
rather then the current APA setting of six:
xsl:when test="(position() = 1 and $cAuthors 6)"


Again I've had a reviewer request that I use et al anytime more then three
authors are listed.

I tried just altering the $cAuthors 3
that gives me
(first authors et al second author third author....sixth author)
not exactly what I need.... but closer
Thanks.
-Sue
  #7  
Old September 20th, 2009, 10:00 AM posted to microsoft.public.word.docmanagement
Yves Dhondt
external usenet poster
 
Posts: 560
Default Citation style

Your approach should work, but you must make sure that you replace all
values '6' to '3'. Note that you can't do a global find/replace as this
would influence some template names which contains the value '6' in their
name.

At first glance, without doing any extensive testing, the following works:

xsl:variable name="author0"
xsl:choose
xsl:when
test="string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:Corporate)
0"

xsl:value-of
select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:Corporate"
/
/xsl:when
xsltherwise
xsl:variable name="cAuthors"
xsl:value-of
select="count(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person)"
/
/xsl:variable
xsl:for-each
select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person"

xsl:choose
xsl:when test="position() 3 or (position() 1 and $cAuthors
3)"
/xsl:when
xsl:when test="position() = 1"
xsl:call-template name="formatNameCore"
xsl:with-param name="FML"
xsl:choose
xsl:when
test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NonUniqueLastName"
xsl:call-template
name="templ_prop_APA_CitationLong_FML"/
/xsl:when
xsltherwise
xsl:call-template
name="templ_prop_APA_CitationShort_FML"/
/xsltherwise
/xsl:choose
/xsl:with-param
xsl:with-param name="FM"
xsl:choose
xsl:when
test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NonUniqueLastName"
xsl:call-template
name="templ_prop_APA_CitationLong_FM"/
/xsl:when
xsltherwise
xsl:call-template
name="templ_prop_APA_CitationShort_FM"/
/xsltherwise
/xsl:choose
/xsl:with-param
xsl:with-param name="ML"
xsl:choose
xsl:when
test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NonUniqueLastName"
xsl:call-template
name="templ_prop_APA_CitationLong_ML"/
/xsl:when
xsltherwise
xsl:call-template
name="templ_prop_APA_CitationShort_ML"/
/xsltherwise
/xsl:choose
/xsl:with-param
xsl:with-param name="FL"
xsl:choose
xsl:when
test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NonUniqueLastName"
xsl:call-template
name="templ_prop_APA_CitationLong_FL"/
/xsl:when
xsltherwise
xsl:call-template
name="templ_prop_APA_CitationShort_FL"/
/xsltherwise
/xsl:choose
/xsl:with-param
xsl:with-param name="upperLast"no/xsl:with-param
xsl:with-param name="withDot"no/xsl:with-param
/xsl:call-template
/xsl:when
xsl:when test="position() 1"
xsl:call-template name="formatNameCore"
xsl:with-param name="FML"
xsl:call-template name="templ_prop_APA_CitationShort_FML"/
/xsl:with-param
xsl:with-param name="FM"
xsl:call-template name="templ_prop_APA_CitationShort_FM"/
/xsl:with-param
xsl:with-param name="ML"
xsl:call-template name="templ_prop_APA_CitationShort_ML"/
/xsl:with-param
xsl:with-param name="FL"
xsl:call-template name="templ_prop_APA_CitationShort_FL"/
/xsl:with-param
xsl:with-param name="upperLast"no/xsl:with-param
xsl:with-param name="withDot"no/xsl:with-param
/xsl:call-template
/xsl:when
/xsl:choose

xsl:choose
xsl:when test="(position() = 1 and $cAuthors 3)"
!--xsl:call-template name="templ_prop_ListSeparator"/--
xsl:text /xsl:text
xsl:call-template name="templ_str_AndOthersUnCap"/
/xsl:when
xsl:when test="position() 1 and $cAuthors 3"
/xsl:when
xsl:when test="($cAuthors - 1 = position() and ($cAuthors = 2))"
xsl:call-template name="templ_prop_Space"/
xsl:call-template name="templ_prop_APA_BeforeLastAuthor"/
xsl:call-template name="templ_prop_Space"/
/xsl:when
xsl:when test="($cAuthors - 1 = position() and ($cAuthors 2))"
xsl:call-template name="templ_prop_AuthorsSeparator"/

xsl:variable name="noAndBeforeLastAuthor"
xsl:call-template name="templ_prop_NoAndBeforeLastAuthor"/
/xsl:variable
xsl:if test="$noAndBeforeLastAuthor != 'yes'"
xsl:call-template name="templ_prop_APA_BeforeLastAuthor"/
xsl:call-template name="templ_prop_Space"/
/xsl:if
/xsl:when
xsl:when test="$cAuthors position() and 3 position() "
xsl:call-template name="templ_prop_AuthorsSeparator"/
/xsl:when
/xsl:choose

/xsl:for-each
/xsltherwise
/xsl:choose
/xsl:variable

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


"Susan Koziel" wrote in message
...
I have another question on the same topic.
Is there any way to alter the code to give me
xsl:when test="(position() = 1 and $cAuthors 3)"
rather then the current APA setting of six:
xsl:when test="(position() = 1 and $cAuthors 6)"


Again I've had a reviewer request that I use et al anytime more then three
authors are listed.

I tried just altering the $cAuthors 3
that gives me
(first authors et al second author third author....sixth author)
not exactly what I need.... but closer
Thanks.
-Sue


  #8  
Old September 20th, 2009, 01:57 PM posted to microsoft.public.word.docmanagement
Peter T. Daniels
external usenet poster
 
Posts: 1,959
Default Citation style

On Sep 19, 11:22*pm, Susan Koziel
wrote:
I have another question on the same topic.
Is there any way to alter the code to give me
*xsl:when test="(position() = 1 and $cAuthors 3)"
rather then the current APA setting of six:
*xsl:when test="(position() = 1 and $cAuthors 6)"

Again I've had a reviewer request that I use et al anytime more then three
authors are listed.


That's Chicago style. You'd better check with your editor or publisher
as to whether that's acceptable in APA style.

I tried just altering the $cAuthors 3
that gives me
(first authors et al second author third author....sixth author)
not exactly what I need.... but closer
Thanks.
-Sue


  #9  
Old September 25th, 2009, 07:00 PM posted to microsoft.public.word.docmanagement
Susan Koziel[_2_]
external usenet poster
 
Posts: 7
Default Citation style

Hi Peter & Yves,
I realize that it's Chicago style. The issue is that there seems to be a
preference from the one reviewer to have the inline citations only listing 3
authors max and the year; but a different reviewer wants to have the
bibliography in APA style.

My situtation is that I must make the changes to get the signature from the
reviewers then send it to an editor who will ask for specific and final
formating changes. I expect to put everything back to a uniform style when
all is done, but in the mean time I have to deal with some non-uniform ideas
about citation styles.

When your reviewers are scientists sometimes the style they think is correct
is not the correct style they think it is.

This is a rather frustrating situation, and hence why I'm asking for code so
I can switch back easily.

But in the mean time I'm stuck making small (ish) changes to the current
styles.



At least all the changes to my thesis that are required are messing with
styles, and sentence structures.

Thanks Yves for all your help I will try to switch the numbers I missed and
see if it works.
-Sue

"Peter T. Daniels" wrote:

On Sep 19, 11:22 pm, Susan Koziel
wrote:
I have another question on the same topic.
Is there any way to alter the code to give me
xsl:when test="(position() = 1 and $cAuthors 3)"
rather then the current APA setting of six:
xsl:when test="(position() = 1 and $cAuthors 6)"

Again I've had a reviewer request that I use et al anytime more then three
authors are listed.


That's Chicago style. You'd better check with your editor or publisher
as to whether that's acceptable in APA style.

I tried just altering the $cAuthors 3
that gives me
(first authors et al second author third author....sixth author)
not exactly what I need.... but closer
Thanks.
-Sue



  #10  
Old May 28th, 2010, 02:29 AM posted to microsoft.public.word.docmanagement
Jonny99
external usenet poster
 
Posts: 3
Default Citation style

On a related note, how can I change the style sheet so that parantheses don't
automatically appear around a citation. For example "Tomaskovic-Devey (1993)
concluded..." should have the citation in paranthesis.

"Susan Koziel" wrote:

Hi Peter & Yves,
I realize that it's Chicago style. The issue is that there seems to be a
preference from the one reviewer to have the inline citations only listing 3
authors max and the year; but a different reviewer wants to have the
bibliography in APA style.

My situtation is that I must make the changes to get the signature from the
reviewers then send it to an editor who will ask for specific and final
formating changes. I expect to put everything back to a uniform style when
all is done, but in the mean time I have to deal with some non-uniform ideas
about citation styles.

When your reviewers are scientists sometimes the style they think is correct
is not the correct style they think it is.

This is a rather frustrating situation, and hence why I'm asking for code so
I can switch back easily.

But in the mean time I'm stuck making small (ish) changes to the current
styles.



At least all the changes to my thesis that are required are messing with
styles, and sentence structures.

Thanks Yves for all your help I will try to switch the numbers I missed and
see if it works.
-Sue

"Peter T. Daniels" wrote:

On Sep 19, 11:22 pm, Susan Koziel
wrote:
I have another question on the same topic.
Is there any way to alter the code to give me
xsl:when test="(position() = 1 and $cAuthors 3)"
rather then the current APA setting of six:
xsl:when test="(position() = 1 and $cAuthors 6)"

Again I've had a reviewer request that I use et al anytime more then three
authors are listed.


That's Chicago style. You'd better check with your editor or publisher
as to whether that's acceptable in APA style.

I tried just altering the $cAuthors 3
that gives me
(first authors et al second author third author....sixth author)
not exactly what I need.... but closer
Thanks.
-Sue



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:28 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.