Archive
Posts Tagged ‘comments’
How to get Square brackets (and hide comments) with ISO690 in Word 2013 bibliography styles
2014/09/14
2 comments
- Lots of people online seem to be looking for square brackets with citations in ISO690 style in Word 2013, but having no luck with getting the Bibliography XSL for older Word versions to work. Trying to edit the old XSL still results in it not loading into the MS-Word Citation Style dropdown.
- What is needed is a way to parse the XSL and debug load errors. In the meantime…
- I had better luck with starting from the current Word2013 ISO style. If you stream Office365, this is now in %appdata%\Microsoft\Templates\LiveContent\15\Managed\Word Document Bibliography Styles
- Puzzlingly, there is also a %appdata%\Microsoft\Bibliography\Style which some of your edited files get copied to – go figure….
- The ISO690 file I based my variation on is called : TC102851224[[fn=iso690nmerical]].xsl
- Copy this file to %appdata%\Microsoft\Templates\LiveContent\15\User\Word Document Bibliography Styles\
- Open it with a text editor (I use NotePad++).
- Change “Openbracket” section like so: And the corresponding for closebracket
<!– trp: –>
[ - Same principle change for the corresponding for “Closebracket“
- Lst time I carelessly introduced printing space characters before my closing brackets – just copy the leading chars from a working XML line if you run into this problem.
- I also needed to not print “Comment”-field of the source in my bibliography”
- Search for:
- Comment out the “print”-action inside (easier than changing each bibliographgy type):<!– trp:
–>
- Change the style name. MS-Word 2013 uses “StyleNameLocalized” instead of “StyleName”, so I added a qualifier to each localized name within the test:
ISO 690YOURNAMEHERE
- Restart MS-Word, and with luck, your styles will show in the ribbon References section style dropdown:
. Apply them (using F9):
- Download: TC102851224[[fn=iso690nmericalsquare0comments]]
Categories: e-infrastructure, e-research, office-software, service-is-documenting
2013, bibliographies, comments, iso690, MS-Word, square-brackets, styles, XML, xsl
A little addendum about data types to the +N(“comment”) in-cell formula comment trick in Excel
=IF(
OR(
ISBLANK(
[Related issues]
),
( ISERR(
FIND(
“#“,
[Related issues]
)
) )
) +
N(
“do nothing if no related task in col:related issues“
),
““,
IF(
NOT(
ISERR(
FIND(
“,“,
[Related issues]
)
)
) +
N(
“do nothing if no 2nd value in col:related issues“
),
CONCATENATE(
MID(
MID(
[Related issues],
FIND(
“,“,
[Related issues]
) + 2,
LEN(
[Related issues]
) –
FIND(
“,“,
[Related issues]
) + 1 +
N(
“extracted the 2nd value from col:related issues“
)
),
FIND(
“#“,
MID(
[Related issues],
FIND(
“,“,
[Related issues]
) + 2,
LEN(
[Related issues]
) –
FIND(
“,“,
[Related issues]
) + 1
)
) + 1,
4
) +
N(
“extracted the 4# of id of related issue“
),
MID(
MID(
[Relatedissues],
FIND(
“,“,
[Relatedissues]
) + 2,
LEN(
[Relatedissues]
) –
FIND(
“,“,
[Relatedissues]
) + 1
),
FIND(
“ “,
MID(
[Related issues],
FIND(
“,“,
[Related issues]
) + 2,
LEN(
[Related issues]
) –
FIND(
“,“,
[Related issues]
) + 1
)
) + 1,
2 +
N(
“appended to or from to the 4# of id of related issue“
)
)
),
““
)
)