LaTeX forum ⇒ Feature SuggestionsMissing autocompletition for \paragraph

Suggestions and discussions for new TeXnicCenter features
User avatar
mvalle
Posts: 8
Joined: Thu Jun 11, 2009 9:00 am
Location: Switzerland
Contact:

Missing autocompletition for \paragraph

Postby mvalle » Thu Dec 09, 2010 7:50 am

\paragraph{} doesn't autocomplete.
Can it be added?

Thanks
mario
Last edited by cgnieder on Tue May 07, 2013 8:12 pm, edited 1 time in total.
Reason: added inline code markup

Tags:

houstontyoung
Posts: 15
Joined: Sat Jan 09, 2010 1:16 am

Postby houstontyoung » Sun Dec 12, 2010 11:42 am

You can actually add your own commands for autocomplete; I've done this a lot as I've defined new macros I use all the time.

In your TXC installation folder there should be a subfolder "Packages", which contains some files like "base.xml", "math.xml", and "TeX.xml". You can add autocomplete commands to any of these, or better yet, make a new file: "mycommands.xml". Take a look at one of the existing files to get an idea of the format.

You can add the following to any one of these files to get \paragraph completion:
  1. <lxCommand name="\paragraph"
  2. parameters="1"
  3. />

Just add it somewhere between existing commands, save the file and restart TXC and it should work.

I attached my list of auto-complete commands that I've added, as well. (Warning: some of these are not standard commands, so unless you have defined them in a LaTeX file they won't be of any use.)

houston
Attachments
mycommands.xml
A list of commands for autocompletion I added
(4.82 KiB) Downloaded 1141 times
Last edited by cgnieder on Tue May 07, 2013 8:13 pm, edited 1 time in total.
Reason: added inline code markup

User avatar
mvalle
Posts: 8
Joined: Thu Jun 11, 2009 9:00 am
Location: Switzerland
Contact:

Postby mvalle » Tue Dec 14, 2010 7:07 pm

Thanks!
It works, but now every time TeXnicCenter 2.0 alpha3 starts it popup a message saying:
"In order to use this function the following software must be properly installed on your system
Microsoft XML parser"

I have installed MSXML 4.0 SP3 on my system and if I dismiss the message, then everything works.

Mysterious.

Thanks again
mario

abikutn
Posts: 18
Joined: Sat May 12, 2012 8:44 pm

Postby abikutn » Tue May 07, 2013 7:18 pm

I have downloaded the file mycommands.xml , the storage directory is : C:\Program Files\TeXnicCenter\Packages.

I understand that, this XML file contains gather and align, align* etc.

Question : How do I import these into TXC ( 2.0 BETA, 64-bit). I tried typing "gather" but nothing was hinted.

Advise...


Return to “Feature Suggestions”

Who is online

Users browsing this forum: No registered users and 1 guest