--
Enjoy,
Tony Jollans
Microsoft Word MVP
"Daiya Mitchell" <daiya...@mvps.org.INVALID> wrote in message
news:%23xAK317...@TK2MSFTNGP02.phx.gbl...
-SHaroz
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 -
Could you make the chicago style to a numbered style and i would like to
make it into [] instead of ()
Thanks
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
> [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.
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
Once again thank you sooo much
PS : i tried to understand the XSL file, bleeeh its not easy isn't it, too
complex
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
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?
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
"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..
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
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,
SaulG
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 -
>
"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..
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
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?
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
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
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.
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
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
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> </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> </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> </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> </xsl:text>
<xsl:value-of select="$author"/>
</xsl:if>
<xsl:if test="string-length(b:Title) > 0">
<xsl:text> </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
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!
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 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!-
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
> > > > > Thanks!-
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?
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)
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
>>
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,
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...
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...