I have a bibliography list in Word 2007, but want to import them into JabRef (bibTex). I have searched around, the bibliography in Word is stored in an XML file, but JabRef does not import via such format? I wonder if there is an efficient way to do this so I don't need to add the entries one by one. Many thanks.
JabRef 2.6 can import and export MS 2007 XML format references.
First, you will need to export your references from MS Word.
To do this, you will need to create a new text file containing the following:
<?xml version="1.0"?>
<b:Sources SelectedStyle="" xmlns:b="http://schemas.openxmlformats.org/officeDocument/2006/bibliography" xmlns="http://schemas.openxmlformats.org/officeDocument/2006/bibliography">
</b:Sources>
Name it something like refs.xml
Now that you have that, open the Word document containing the references you want to export. Then, on the Citations and Bibliography group of the References tab, click the Manage Sources button. Click the "Browse" button to open your refs.xml file.
You will now have a blank pane on the left and a pane with your references on the right. Select the references you want to export and press the "<- Copy" button to put them into the left pane.
Now close the Manage References dialog box. Word 2007 silently added the references to the refs.xml file.
Now in JabRef 2.6, go to the File menu, choose Import into New Database, and browse to refs.xml. Press the Open button and you will have a JabRef database populated with your Word 2007 references.
You can now save that database in BibTex or a variety of other formats.
OPTIONALLY, you can skip making your own refs.xml file by using Word's default references file Sources.xml which is stored in your Application Data folder (and where that is will depend on your operating system).
Related
Is there a simple way to change / replace the automatically generated Template Miniature with a different image.
I have checked this out for Excel 2016 but the process is similar.
First, the thumbnail is generated and part of the file. There is no official process. A description for brave Office pros is shown below.
You can do this:
First, close Excel!
Get to the location of your template
Make a copy
Rename the file extension to .zip
Unzip the file into a new folder using the Windows Zip utility
Search the tree of files for a file called thumbnail.wmf
Open PowerPoint and create an empty presentation
Use the function "Insert an Image" and add the thumbnail.wmf to the slide
Remove everything else from the slide
Try to ungroup - it fails with a message asking to convert to a drawing object
From here you have two options. Either convert, ungroup, change and proceed or throw away and create a new image from scratch.
Work on image and group your image (the old or a new one), then
Right click on the grouped image and click "Save as picture"
Choose the filetype "wmf" and name it the same as before and overwrite the existing thumbnail.wmf
Go INTO the folder using Windows Explorer of unpacked files, hit Ctrl-A (Select All)
Right click and say "Send to" --> "Compressed (zipped) folder". Give it a new name.
Hit F2 to rename the file
Remove the file extension .zip
Now, open Excel!
Hit "New", "Personal" and you see your template with your custom image in full width and height. Repeat steps 10 to 16 until you're satisfied.
Drawbacks: Once you edit your file in excel and save as template with thumbnails option (advanced properties) switched on, Excel will overwrite your custom wmf-file. You have to repeat the steps "Unpack -> Replace File -> Pack" every time.
I'll post an update once I found a better solution.
Here is an automation of the process that might help with understanding the process described in the answer.
Python 3 code snippet
import zipfile
import shutil
exfilename = 'MYTEMPLATE.xltm'
a_path='C:\\TEMP'
th_path='mythumbnail.wmf'
with zipfile.ZipFile (exfilename, 'r') as zf:
#Extract to temporary folder
zf.extractall(a_path)
#replace the thumbnail
shutil.copyfile(th_path,a_path+'\\docProps\\thumbnail.wmf')
#remake the zip as a new file
shutil.make_archive('TEMP_ARCHIVE','zip',a_path)
#rename back to original, replacing original
shutil.move('TEMP_ARCHIVE.zip',exfilename)
#clean-up temporary files
shutil.rmtree(a_path)
I spent a significant amount of time trying to apply a scientific conference paper template, made in Microsoft Word, that I want to document this problem (and my eventual solution), in case someone faces a similar difficulty (and in case I forget how I did it, I can refer back to this). In this particular case, the conference template was this, but I think many conferences and journals offer similar templates, so this question should have fairly broad interest.
The question is, given this template (which is really not a template in the MS Word sense), how can I create a document that uses the styles defined therein? How can I sure that when I save the document, it will not revert back to some other style definitions defined in Normal.dot?
In MS Word, "templates" are defined in .dot, .dotx, or .dotm files. The .dotx and .dotm formats are for newer versions of Word and the difference lies in whether Macros are disabled or enabled. Despite this definition, some organizations (such as conference organizers or journal publishers) will supply a .doc (or .docx, etc.) file, also calling it a "template" and asking you to use the styles and other formatting elements defined in it. If you were to start editing this file directly and then save it, you might be surprised that the next time you open that document, some of the styles may differ from what you saw when you were initially editing the document. This is because of a clash between the style names provided in the initial file and your Normal.dot template, which is the default template that your instance of MS Word uses. Here are the steps you need to do to avoid this problem:
When you first open the "template" supplied by the conference organizer / journal publisher, immediately save this file as a Word template by choosing "Save as" from the Office button (or File-> Save as... in older versions) and selecting .dot, .dotx, or .dotm in the "Save as type" field. Furthermore, you should save this in "Templates" folder for your installation of Word. In most versions, there is a shortcut to this folder in the top of the left panel of the "Save as" window. Give the file some name like "MyConferenceTemplate.dot".
Next, close the .dot (or .dotx, etc.) file that you just saved. This will help avoid that inadvertently that editing the template.
Create a new document (by clicking Office button->New or similar). On the left panel of the window that opens, select "My Templates...". You should then see the template which you created in step 1. Select this as the template to apply to your new document.
Start editing the newly created file and applying the desired styles...
I doing some formatting from copy/paste. When I copy a table from Word, and I want to insert it in my program, I need to edit the table formatting to show the info like I want.
When I copy from word I can view whats copy in clipboard magic:
Is there a way to get the formatting, or do I need to create a new table for scratch with the data listed in clipboard magic?
I Clipdiary the "copy" is read as HTML
This makes me wounder, is it possible to get the html code?
Yes, the HTML is present as CF_HTML. See reference on MSDN: http://msdn.microsoft.com/en-us/library/aa767917(v=vs.85).aspx
If you just want to SEE it, ClipMate has a Binary display that will show you a binary dump of the data. It's available in the trial version. If you don't see the Binary tab in the display window, turn it on in the Tools | Options | Editor dialog.
I am trying to insert a table in an unalterable format into a Word 2010 file while retaining font size and sharpness.
So far, I have tried preparing the table as a pdf, then using Insert -> Object -> Adobe Acrobat File to get it into Word. Unfortunately, this inserts the table within margins automatically created on the Word page, and distorts lines and font size within the table.
Here are some things I've tried:
- Setting the margins of the page in the recipient Word file to 0" before importing the pdf.
- Printing the pdf on on a smaller page (7" x 9") then importing onto a page 8.5" x 11".
Neither worked; the imported pages were resized and the table printed badly.
The pdf I used was prepared from Word using PrimoPDF.
Please feel free to suggest formats other than pdf for the transfer if they can be more easily incorporated into the final Word document.
Your help will be appreciated.
First, prepare the table as a Word document. Go to the Review tab, and select Restrict Editing. Set Editing Restrictions to allow No changes (Read only). Press Yes, Start Enforcing Protection. Save file.
Next prepare the recipient document in Word. Go to the Insert tab, select Object, Create from File, and browse to find and insert the file.
The table will be inserted into the recipient Word file as a document within a document, and its 'Read Only' protection is maintained. All fonts and line styles remain as originally set.
I am importing a requirements document in created in Word into a DOORS module. I also want to be able to export the DOORS module back into a Word document and have them look mostly-similar. What is the easiest way to do this?
There are two options to do this that I can see:
In Word, use the DOORS add-in to "Export to DOORS"
In DOORS, use "Import -> Rich Text Format" (on the Word file saved as a RTF)
In Option 1, the numbering for the items in a list are not preserved. In Option 2, the line numbering is preserved, but upon exporting back to Word, the list Word styles are all "normal" and I lose all the formatting and indenting.
In Option 1, I can take advantage of the "Paragraph Style" attribute that is populated when the initial export is performed to make the resulting Word document look like the original. In Option 2, I do not see this option/attribute available.
There does not appear to be a way in DOORS/Word to handle this natively. The best solution I could find is to first convert the Word auto-numbering to actual text using the VBA method ConvertNumbersToText(). Doing this allows me to keep the formatting/indentation in DOORS and also have the ability to export the database back to Word and have it look the same/similar.
The only minor issue is that the resulting document no longer uses the Word auto-numbering. This is not an issue for my purposes.