Giter Site home page Giter Site logo

Comments (13)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Agreed, this is a valuable feature, though I don't guarantee it'll get done for 
the first release.

(It would be good to have this in a generalized way, so as to support ConTeXt 
or other packages in addition to 
LaTeX.)

Original comment by [email protected] on 13 Aug 2008 at 9:03

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from texworks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
See also description in http://code.google.com/p/texworks/issues/detail?id=51 
(issue closed as duplicate).

Original comment by [email protected] on 6 Oct 2008 at 1:53

from texworks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
I used to use Winedt as a pretty advanced user, but I like Texwork's simplicity 
and I 
am trying to switch to it.
However, I have to admit that the auto-complete function for \ref and \cite is 
definitely a "must have". I think this should be the absolute priority among 
the 
enhancements.
Thank you and congratulations for your excellent work!
Paolo

Original comment by [email protected] on 15 Feb 2010 at 11:01

from texworks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
This feature would be relatively straightforward to implement in a script. I 
contributed one such implementation 
for the Sublime Text editor, using Python. I would be happy to port it to 
Texworks. The only obstacle is the fact 
that right now Texworks scripts cannot bring up any kind of GUI element---say, 
a pop-up menu when you type 
\ref{ or \cite{, or launch the appropriate script, or else a dialog box in case 
there are many possible choices. 
This is what my Sublime Text package does (imitating Textmate).

I'm just waiting for GUI capabilities to appear :-)

Original comment by [email protected] on 16 Feb 2010 at 1:24

from texworks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Issue 330 has been merged into this issue.

Original comment by st.loeffler on 14 Apr 2010 at 3:15

from texworks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Is this still unsolved?!Disappointing... 

Original comment by [email protected] on 4 May 2011 at 2:14

from texworks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
It is solved in a script. Check this issue:
http://code.google.com/p/texworks/issues/detail?id=261
So maybe it makes sense to close this issue here.

Original comment by [email protected] on 4 May 2011 at 3:16

from texworks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
David: Could you tell me which one of the scripts there works for autocomplete 
the command \cite{}?

Original comment by [email protected] on 4 May 2011 at 7:49

from texworks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Issue 526 has been merged into this issue.

Original comment by st.loeffler on 22 Aug 2011 at 7:02

from texworks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
The functionality is in a raw form available in the script 
autocompleterForTexworks available at [1]. The autocompleter currently searches 
in all the open files for words that can be used to complete the current word 
in front of the cursor (and for filenames for completing input and 
includegraphics).
All interaction with the script consists of activating it through its shortcut 
(default crtl + m).
See a video of the script in use at [2].

Best
Henrik

[1] 
http://raw.github.com/henrikmidtiby/autocompleteForTexworks/master/scripts/autoc
omplete.js
[2] http://www.youtube.com/watch?v=gRSq_OSxPec

Original comment by [email protected] on 19 Oct 2011 at 3:17

from texworks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Well, I don't think that having *all words* of the text that from the first 
letter you type [ for instance \citep{d...] is exactly the functionality 
expected...

Original comment by [email protected] on 27 Nov 2012 at 10:57

from texworks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Regarding comment 11.

The autocompletion script have been moved and can now be found at [1].

The script is context aware so the generated suggestions depends on the context 
of the cursor. As an example take the following small document.

"""
eqnOne
eqnTwo
eqnPTesting
eqnPower
\label{eqnPython}
\label{eqnPythagoras}
"""

If you start to write a reference (\ref), only labels present in other 
references and labels (\label, \ref, \pageref, \eqref) will be suggested.
The four lines below will illustrate what happens when the script is activated. 
Each newline indicates an invocation of the script.

\ref{eqnP              // Initial input when the script is activated
\ref{eqnPythagoras     // First suggestion
\ref{eqnPython         // Second suggestion
\ref{eqnPythagoras     // Back to first suggestion as all suggestions have now 
been shown.

If autocompletion is activated for the string "eqnP" the following would be 
suggested.

eqnP                   // Initial input when the script is activated
eqnPTesting            // First suggestion
eqnPower               // Second
eqnPythagoras          // ...
eqnPython              // ..
eqnPTesting            // Back to first suggestion as all suggestions have now 
been shown.

As you can see there is a different set of suggestions for the two different 
contexts.

[1] https://github.com/henrikmidtiby/TeXworks-scripts/tree/master/autocomplete

Original comment by [email protected] on 27 Nov 2012 at 11:27

from texworks.

stloeffler avatar stloeffler commented on July 22, 2024

cfa6b57 implements "Edit > Insert Citations..." to choose citations based on .bib-files specified using a
%! TeX bibfiles = first.bib, second.bib
modline at the beginning of the file.

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.