Menu

EcleTex Templates

Help
2004-10-05
2013-04-15
  • Ulrich Küster

    Ulrich Küster - 2004-10-05

    I created some templates with the EcleTex Template Wizard but it seems I can't access them anywhere?! Is that feature not yet implemented or am I just stupid?

    greetings,

    Uli

     
    • Ian Hartney

      Ian Hartney - 2004-10-05

      Stupid! No,not really.  Umm it should work.  As should most things i write, but they rarely do!

      Right start the wizard. Give the template a name (no spaces)

      Select a category... or add one.

      Dump the text you want for the template in the big text box and push finish.

      to access the template use the autocomplete engine, using the activation key '-'. and just keep auto completing until you find your templete.

      I need to write a manual!

      Hope that helps, if not, i reword it in a hopefully less confusing way :)

       
      • Ulrich Küster

        Ulrich Küster - 2004-10-05

        Urgs, got it. I had a very quick and superficial look at your code and thought that it is probably just an autocompletion feature, activated by "-". I just couldn't get it to work.
        Things are so simple. It works fine with "\-"...

        Thanks,

        Uli

         
    • Ulrich Küster

      Ulrich Küster - 2004-10-06

      Well, I'm afraid I was somewhat to quick when assuring that it works fine with "\-". :-(
      Actually the following happens:
      - I create a template with name "name" and a new category "test". I then type "\" in the tex editor, wait for the completion to come up and type "-". I get a list of completions, among them one named "-test-". If I choose it, it inserts "-test-" instead of my template.
      - I create another template with name "name2" and the now existing category "test". I get an additional completion named "-test_name2" that, too, inserts "-test_name2" instead of the template's value. :-(

      Is there any chance to get rid of those test templates and test template-categories?

      greetings,

      Uli

       
    • Ian Hartney

      Ian Hartney - 2005-01-08

      Once you get the -test- hit autocomplete again and it shows you the text, hit enter and it replaces the -test- with the template. To get rid of any templates you add, just delete them from the 'workspace\.metadata\.plugins\ish.ecletex\templates' directory.

      Ill probably add a template management tool in the future.

       
    • Ulrich Küster

      Ulrich Küster - 2005-01-27

      Back again *smile*.

      Actually I don't like that I have to invoke code completion twice. Would you mind to change that, i.e. inserting the value of the template instead of its key right away instead of first inserting the key and then replacing it when invoking code completion again?

      Well I guess, since that's a very little change, you had some reason making the plugin behave like that. If that's the case, would you commit the change if I code it including a new preferences option for that?

      Greetings,

      Uli

       
    • Ian Hartney

      Ian Hartney - 2005-01-27

      yeah i would be glad too. The reason it is that way, was so that you could see the contents of the template before you inserted it into the document.  Send me the code, and in it will go :)

       
    • Ulrich Küster

      Ulrich Küster - 2005-02-18

      Alright, I finally had a closer look at this. I think it probably would be best to display the contents of the template in the extra information windows that opens next to the completion window when a completion proposal has extra information (The second window that for example opens when you invoke JDT content assist on "String.").

      If you agree I will send you the changed files to your sourceforge email address. :-)

      Bye,

      Uli

       
      • Ian Hartney

        Ian Hartney - 2005-02-18

        sounds good, ill intergrate the code when you send it.

         

Log in to post a comment.

MongoDB Logo MongoDB