Comments (4)
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.
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.
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.
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)
- symbol lookup error HOT 2
- Randomly closes with error after compilation ends HOT 8
- U+2028 LINE SEPARATOR in editor HOT 3
- Editor: unexpected space=no break space HOT 3
- PDF Preview Lines Look Bad / Artifacted in Windows HOT 3
- Go to line dialog
- Enhance the tag panel of the editor
- 'Insert Citations' feature: implementations request
- test_poppler-qt6 (Failed) on Fedora 40 HOT 3
- Ugly rendering of the output visualization of TeXworks HOT 16
- Compilation error when building Python scripting module HOT 3
- Python Plugin: cmake has dropped support for PythonInterp and PythonLibs, use FindPython instead HOT 1
- Lua syntax pattern HOT 2
- "Errors, warnings, badboxes" hook script
- Support for "time" Unix command
- Icon of texworks in svg HOT 1
- 0.6.9 can not use synctex to file that has a chinese path, but 0.6.8 in miktex work well. HOT 1
- Texworks stopped working on Ubuntu HOT 5
- Show the open file in the os file explorer HOT 4
- Test failures in poppler-qt5 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from texworks.