About placeholders and completion

TXS - Help
2012-09-23
2015-06-09
  • Hello, thank you first of all for this wonderful latex editor.

    I have a little problem with placeholders. When the option "use placeholders",
    if I type
    \begin{theorem} and ENTER, then this appears :

    \begin{theorem}
    (content...) (the cursor is here in a red box)
    \end{theorem}

    the problem is that I would like to remove this red box (it is really annoying
    to write in such box, since I cannot see anymore some symbols such as
    underscore _.

    When I desactivate the option "Use placeholders", then the same command
    yields:

    \begin{theorem}
    content...
    \end{theorem} (the cursor is now here : outside the environment ! )

    This is probably a bug since the cursor now lies outside the environment,
    while content... is written inside !

    What I would like : simply the cursor inside the environment, with nothing
    written inside, and no box !

    Third point : when I desactivate the option "Automatically start completion
    when typing latex command", I do not have the
    nice completion "end{theorem}" after typing "begin{theorem} +ENTER". Why is
    that so ? This seems to be a bug,
    I would like to not have automatic completion (which is a huge pain, when we
    type something like \t +Enter (to go to a new line) and \t is precisely what
    we mean, nothing else), but still completion for environments.

    I hope this can be solved,

    thanks a lot for your help.

     
  • Tim Hoffmann
    Tim Hoffmann
    2012-09-24

    the problem is that I would like to remove this red box (it is really
    annoying to write in such box, since I cannot see anymore some symbols such as
    underscore _.

    As a temporary solution, you could increase the line spacing (Configure ->
    Editor -> Line Spacing).

    This is probably a bug since the cursor now lies outside the environment,
    while content... is written inside !

    Not exactly a bug. Without placeholders just the plain text is inserted.
    However we may improve this behaviour.

    Environment completion without auto-completion:
    Completion for the environments is implemented via the auto-completion
    mechanism. I don't think it's currently possible to split that up.

     
  • Kendon Bell
    Kendon Bell
    2015-06-09

    The "content ..." box seems unnecessary to me. I always delete it right away. I'd vote for it to be removed. Or at least have an option to permanently remove this.