Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm converting a MS Word document into a LaTeX document. I have >100 references and would like to know the easiest way to convert all the inline citations from my MS Word document to my LaTeX document.

I've already generated by BibTeX library and can convert each citation individually by hand if necessary. Is there a way that I can convert all my MS Word inline citations to the \cite{author,date} LaTeX format so that when I copy and paste into LaTeX the citations are recognized automatically? Do you have any other suggestions?

share|improve this question
3  
Can you just use search and replace in your editor, i.e. [1] -> \cite{Einstein,1902}, or are the citations entered into Word in a way that makes this difficult? –  Ian Thompson Jun 26 '13 at 13:56
    
I think it could help to understand the problem if you paste an image of a page of the document. Apparently it is an issue of search/replace some simple regular expressions, isn't? –  JLDiaz Jun 26 '13 at 14:19
    
Welcome to TeX.SX! You can have a look on our starter guide to familiarize yourself further with our format. –  karlkoeller Jun 26 '13 at 14:39
    
Ian, Your suggestion would still require I go and replace >100 things in my MS word document, I believe. This would be quite time consuming, but it may come to that. I'll look for a MS word inline citation format that uses {Author,date} and then replace all "{" with "\cite{". I might have to edit the citation style in Mendeley... I was just looking for a more elegant way of doing this. Thanks. –  Laura Johnson Jun 26 '13 at 14:41
1  
How are the citations in the Word document? Are they fields or just plain text? I assume they are in various formats (in parentheses or not, lists or not.) Without a bit more detail on what they look like it's hard to tell what exactly you would need to do. But this is a job for search and replace plus some manual intervention I suspect. But you shouldn't need to do each on individually. You also need to make your BibTeX keys match the citations used. –  Alan Munn Jun 26 '13 at 14:56
show 1 more comment

2 Answers 2

You could have a look on the online service provided by Makino, Takaki
or, better, download the perl script from the same page.

It worked for me, sometimes using some sed editing as preprocessing.

Or, likely better, have a look to cb2BiB that seems to be much more powerful, but I discovered to late :(

share|improve this answer
add comment

This is probably the best and simplest solution I came across.

http://studies.k-jahn.de/2012/02/22/exporting-a-word-library-to-latexbibtex/

Took less than 5 minutes to convert the whole bibliography. It can be used with recent versions of MS Word. Only difference is that

in place of

C:\Program Files\Microsoft Office\Office14\Bibliography\Style

use this link to save the .xsl file

C:\Program Files (x86)\Microsoft Office\Office14\Bibliography\Style
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.