> So I expect this to be a problem of your PDF Viewer or clipboard or OS.
I agree. As I mentioned in a previous post on this thread, putting the code in the pdf is not reliable enough to be used. So I have decided not to attempt to do it. I will put the code in a supplementary information file for the paper and post it online. Thanks for your help. Bob