0

I have a LyX document that I imported from a TeX document. It contains a bunch of interword spaces (that make it have two spaces after the period) that I would like to remove (all at once). How can this be done other than manually removing them all?

The document looks like this

hi hey hello. \ bye bye
  • Let's see what causes them first. Can you copy the relevant code from LyX > View > Source. A few words before and after the place where this happens. – PhilipPirrip Jun 26 '16 at 22:58
  • @PhilipPirrip: edited. there is basically a `` there – Alex Jun 27 '16 at 0:16
  • Find and replace. Your editor can do this. This is, incidentally, why you ought not add additional space between sentences in this way. (I take it you mean this space and not the interword space as you said. That would be the space between words within sentences, for example.) If the document was coded correctly, you would not need to replace all of them. However, it isn't really hard to do that. As I say, just use your editor. Or sed if you prefer. – cfr Jun 27 '16 at 1:21
  • @cfr: is there a way to do this in lyx? you are saying i can do a find and replace in lyx or do you mean edit the tex code directly before importing into lyx? – Alex Jun 27 '16 at 3:48
  • 1
    @Alex you can do that with LyX's "Advanced Find". Go to Edit > Find & Replace (Advanced). – scottkosty Jun 30 '16 at 18:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.