Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
SSK
 
Posts: n/a
Default Is there an easy way to do IEEE style reference

Is there an easy way to do IEEE style references in Word? If you're not
familiar with it, you put a number in square brackets [x] next to the
citation and have a list of references at the end of the document arranged by
first appearance.

So, it's basically like endnotes, but not superscript, and in square
brackets. Is there a way to make Word automatically put square brackets
around endnote numbers?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jean-Guy Marcil
 
Posts: n/a
Default Is there an easy way to do IEEE style reference

SSK was telling us:
SSK nous racontait que :

Is there an easy way to do IEEE style references in Word? If you're
not familiar with it, you put a number in square brackets [x] next to
the citation and have a list of references at the end of the document
arranged by first appearance.

So, it's basically like endnotes, but not superscript, and in square
brackets. Is there a way to make Word automatically put square
brackets around endnote numbers?


I think you need a macro. Try this:

'_______________________________________
Sub InsertFootnote()

Dim LocCursor As Range
Dim LocCursor1 As Range

Set LocCursor = Selection.Range

With ActiveDocument.Range(Start:=ActiveDocument.Content .Start, End:= _
ActiveDocument.Content.End)
With .EndnoteOptions
.Location = wdEndOfDocument
.NumberingRule = wdRestartContinuous
.StartingNumber = 1
.NumberStyle = wdNoteNumberStyleArabic
End With
.Endnotes.Add Range:=Selection.Range, Reference:=""
End With

With Selection
.HomeKey wdLine
.MoveRight wdSentence, 1, wdExtend
.Font.Superscript = False
.HomeKey wdLine
.TypeText "["
.MoveRight wdCharacter, 1
.TypeText "]"
.EndKey wdLine
End With

With LocCursor
.InsertBefore "["
.SetRange LocCursor.Start, LocCursor.End + 1
.InsertAfter "]"
.Font.Superscript = True
.SetRange LocCursor.End, LocCursor.End
End With

Set LocCursor1 = LocCursor.Duplicate
LocCursor1.SetRange LocCursor1.End, LocCursor1.End + 1

If Not LocCursor1 = " " Then
LocCursor.InsertAfter " "
LocCursor.Font.Superscript = False
End If

End Sub
'_______________________________________

Make sure you do not change the name of the macro if you want this to happen
automatically.
If you want to have the option of inserting regular footnote *and* these
special endnotes, change the macro name and call the macro explicitly when
you need an endnote (as is, whenever you do Insert Reference...
Footnote, my macro will be automatically called).

See
http://word.mvps.org/faqs/macrosvba/CreateAMacro.htm
for help with installing/using macros from NG.


--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
ISTOO
Word MVP site:
http://www.word.mvps.org


  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Tony Jollans
 
Posts: n/a
Default Is there an easy way to do IEEE style reference

It's pretty difficult to do automatically - I haven't checked out Jean-Guy's
code but it's probably good.

However, you might find it easier to do as a final step before submitting
your document. While you're working create your citations as Endnotes and
when you're done do a Find and Replace: Find ^e (caret, e) and Replace with
[^&] (left bracket, caret, ampersand, right bracket) - format the
replacement as Not Superscript/Subscript - then hit Replace All.

--
Enjoy,
Tony


"SSK" wrote in message
...
Is there an easy way to do IEEE style references in Word? If you're not
familiar with it, you put a number in square brackets [x] next to the
citation and have a list of references at the end of the document arranged

by
first appearance.

So, it's basically like endnotes, but not superscript, and in square
brackets. Is there a way to make Word automatically put square brackets
around endnote numbers?



  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Jean-Guy Marcil
 
Posts: n/a
Default Is there an easy way to do IEEE style reference

Tony Jollans was telling us:
Tony Jollans nous racontait que :

It's pretty difficult to do automatically - I haven't checked out
Jean-Guy's code but it's probably good.

However, you might find it easier to do as a final step before
submitting your document. While you're working create your citations
as Endnotes and when you're done do a Find and Replace: Find ^e
(caret, e) and Replace with [^&] (left bracket, caret, ampersand,
right bracket) - format the replacement as Not Superscript/Subscript
- then hit Replace All.


Ah, right... I got carried away and forgot to think about other options!

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
ISTOO
Word MVP site:
http://www.word.mvps.org


  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Tony Jollans
 
Posts: n/a
Default Is there an easy way to do IEEE style reference

No problem - I do it all the time!

I love code, but all Office programs actually have immense power without it
and I like to harness that if I can - but you can't remember it all, all the
time :-)

--
Enjoy,
Tony


"Jean-Guy Marcil" NoSpam@LeaveMeAlone wrote in message
...
Tony Jollans was telling us:
Tony Jollans nous racontait que :

It's pretty difficult to do automatically - I haven't checked out
Jean-Guy's code but it's probably good.

However, you might find it easier to do as a final step before
submitting your document. While you're working create your citations
as Endnotes and when you're done do a Find and Replace: Find ^e
(caret, e) and Replace with [^&] (left bracket, caret, ampersand,
right bracket) - format the replacement as Not Superscript/Subscript
- then hit Replace All.


Ah, right... I got carried away and forgot to think about other options!

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
ISTOO
Word MVP site:
http://www.word.mvps.org




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
footnote reference style different in text to footnote pane versio Lloyd Microsoft Word Help 2 October 19th 05 10:47 AM
Footnote Reference style conflict Lloyd Microsoft Word Help 5 October 19th 05 10:40 AM
why does my built in heading style not show in cross reference mazza Microsoft Word Help 1 May 26th 05 01:39 PM
Word 2003: Can one disable table styles? [email protected] Tables 5 April 10th 05 10:02 AM
Font properties of table styles versus paragraph styles Bob S Tables 3 February 8th 05 01:13 PM


All times are GMT +1. The time now is 04:27 AM.

Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"