Feature SuggestionsMissing autocompletition for \paragraph

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

Missing autocompletition for \paragraph

Post by mvalle »

\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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
houstontyoung
Posts: 15
Joined: Sat Jan 09, 2010 1:16 am

Missing autocompletition for \paragraph

Post by houstontyoung »

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:

Code: Select all

	<lxCommand name="\paragraph" 
			parameters="1" 
	/>
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 2020 times
Last edited by cgnieder on Tue May 07, 2013 8:13 pm, edited 1 time in total.
User avatar
mvalle
Posts: 8
Joined: Thu Jun 11, 2009 9:00 am

Re: Missing autocompletition for \paragraph

Post by mvalle »

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

Re: Missing autocompletition for \paragraph

Post by abikutn »

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...
Post Reply