Giter Site home page Giter Site logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
The "natural" TeXworks way to do this at the moment would be to have a 
completion entry along the lines of

\bdoc:=\begin{document}#RET##INS##RET#\end{document}#RET#

which would allow you to type \bdoc<tab> to reach the same result.

A "smart closing brace" that recognizes any preceding \begin{whatever} and adds 
the corresponding \end 
seems a bit too specialized and LaTeX-specific to me. I don't want TeXworks to 
have hard-coded LaTeX-isms 
in the editor; it should be a general-purpose TeX editor that can be customized 
for LaTeX, ConTeXt, or 
whatever using an appropriate configuration.

What I hope to provide eventually is a scripting interface that you could use 
to add functionality like this; I 
think that's a better approach than building special "}" processing into the 
core program. But it will be some 
time before that interface is available.


Original comment by [email protected] on 29 Sep 2008 at 6:26

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from texworks.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
I see your point about being too specialised, so perhaps you are right about the
scripting. I guess that I am used to the multiple modes of my current editor, 
where
this only happens in TeX mode.

Original comment by [email protected] on 29 Sep 2008 at 8:13

from texworks.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
This is one of the best features of textmate, but it's configured separately for
LaTeX and ConTeXt. It uses alt-apple-dot shortcut (I think). One can use it an 
any
time, it just writes \stopsomething in ConTeXt if \startsomething has been the 
last
unclosed command sequence, or \end{something} for LaTeX. (There is probably no 
plain
TeX support there.)

But it's also true that this is implemented rather generically with regular
expressions and not hardcoded.

Original comment by [email protected] on 27 Aug 2009 at 2:19

from texworks.

josephwright avatar josephwright commented on August 24, 2024

Thinking about this at some remove, it's likely best closed: probably one for scripting. (I was the original reporter ...)

from texworks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.