How to Remove the Space Before an IEEE Citation in Word
Question details
The user wants to eliminate the automatic space inserted before an inline IEEE citation reference number.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Customizing the built-in IEEE citation style using the Microsoft Word XSL stylesheet.
- Observed behavior
- An unwanted extra space appears before the citation number, and the exact source of this space in the IEEE2006OfficeOnline.xsl file is difficult to locate.
Before modifying system files, create a backup copy of your IEEE2006OfficeOnline.xsl file so you can easily restore the original citation formatting if needed.
Modify the XSL File to Remove the Spacing Element
Locate and remove the specific text spacing tags within Word's IEEE stylesheet file.
Microsoft Word controls the formatting of its built-in citations through Extensible Stylesheet Language (XSL) files. To remove the space before an IEEE citation, you must find and edit the exact line in the XSL file that dictates this spacing.
Open File Explorer and navigate to the folder containing Word's styles. This is typically found at '%appdata%\Microsoft\Bibliography\Style' or 'C:\Program Files\Microsoft Office\root\Office16\Bibliography\Style'.
Right-click the 'IEEE2006OfficeOnline.xsl' file and open it using a plain text editor, such as Notepad or Notepad++.
Press Ctrl + F to open the Find dialog and search for instances of '<xsl:text> </xsl:text>'. This tag defines a forced blank space in the citation output.
Once you locate the tag placed before the citation output, delete the space between the tags so it becomes '<xsl:text></xsl:text>', or delete the element entirely.
Save the text file, restart Microsoft Word, and click 'Update Citations and Bibliography' in your document to apply the new formatting.

Try WPS Office for Easier Document Formatting
If dealing with complex XSL files and rigid formatting in Microsoft Word is frustrating, WPS Office offers a free, lightweight, and highly compatible alternative. Enjoy seamless formatting, familiar interfaces, and robust document management without the hassle.
- 1. Download and Install: Get WPS Office for free from the official website and install it on your device.
- 2. Open Your Document: Open your existing .docx files directly in WPS Writer with full format retention.
- 3. Manage References: Use the References tab to seamlessly insert footnotes, endnotes, and citations.

Frequently Asked Questions
Where can I find the IEEE2006OfficeOnline.xsl file in Windows?
The file is typically located in your user profile at 'C:\Users\[YourUsername]\AppData\Roaming\Microsoft\Bibliography\Style' or within the Microsoft Office installation folder under 'C:\Program Files\Microsoft Office\root\Office16\Bibliography\Style'.
Why is there a space before my IEEE citation by default?
According to official IEEE editorial style manuals, inline citation reference numbers enclosed in square brackets should be preceded by a space when they follow a word or punctuation mark. Microsoft Word includes this space by default to comply with these standard guidelines.
Will editing the XSL file affect my existing Word documents?
Yes, modifying the XSL file will alter the citation formatting for any document on your computer that uses the IEEE style, but only after you manually refresh the fields by clicking 'Update Citations and Bibliography'.




