Loading ...
Sorry, an error occurred while loading the content.

Re: TeX -- cweb format word

Expand Messages
  • Tomas Zellerin
    ... Hello, You may add _ to iskeyword; it is usually only small annoyance in TeX as usually used in the cweb. Or, if your use is word completition, you may
    Message 1 of 3 , Sep 30, 2001
    • 0 Attachment
      On Fri, Sep 28, 2001 at 10:34:41AM +0200, Ingo Krabbe wrote:
      > But now to my own question:
      > ---------------------------
      >
      > Using cweb format, which mixes tex and C code has one great disadvantage which
      > I didn't solved for now: The word size isn't distinguished between tex and c
      > sections. If you use C names with a '_' in it tex will think of three words:
      >
      > For example:
      > pthread_create is pthread,_,create.
      >
      > That's not very nice since its very common to use these '_'.
      >
      > Any tips ?

      Hello,

      You may add '_' to iskeyword; it is usually only small annoyance in TeX
      as usually used in the cweb. Or, if your use is word completition, you may
      make use of <C-P><C-X><C-P> to get rest of the text.

      By the way, I find also convenient in cweb sources to map @< to
      set 'iskeyword' to be all but @, so that I can use <C-P> to scroll
      through already used section names (and @> map to setting previus
      value).

      Regards

      Tomas Z.
    Your message has been successfully submitted and would be delivered to recipients shortly.