Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am lazy to type the following

\documentclass[pstricks,border=12pt]{standalone}
\usepackage{pst-eucl}
\begin{document}
\begin{pspicture}[showgrid=bottom](6,6)

\end{pspicture}
\end{document}

every time I want to start drawing with PSTricks.

I am using TeXnicCenter and it provides its own templates. Shortly speaking, can I install my own templates such that they are available from TeXnicCenter?

share|improve this question
    
This isn't really an answer to your question (I'm not sure TeXnicCenter can do what you ask) but why don't you keep this template of yours somewhere safe (in a dedicated directory) and use it as a basis for producing a new document? Wouldn't that be enough? –  Jubobs Oct 6 '13 at 16:39
    
@Jubobs: It is what I usually do everyday. I made the template read only so I have to save the copy of it with another name before start drawing. But I want a smarter way. :-) –  stalking is prohibited Oct 6 '13 at 16:40
2  
Have you checked this: texniccenter.sourceforge.net/doctemplates.html –  papabravo Oct 6 '13 at 16:41
    
Do you use Linux? You can create a script to open the editor with the template. I did one and just type on terminal fastex and then it opens TeXstudio with the same file to make tests. –  Sigur Oct 6 '13 at 18:28
    
@Sigur: I am a Windows user. –  stalking is prohibited Oct 6 '13 at 18:32

1 Answer 1

up vote 4 down vote accepted

Yes, this can certainly be done.

Step 1

Create a directory anywhere you like that will contain your templates. In theory you could probably use the TeXnicCenter default directory (in Program Files) but this may get overwritten when you update, so I would therefore recommend something like

C:\Users\chughes\Documents\textemplates`

Within this directory, you must create sub-directories that will give TeXnicCenter the details to create a tab when you go to insert the templates. I have used

C:\Users\chughes\Documents\textemplates\diagrams`

in the below, but you could use what you like. Now you can put your templates (mypstrickstemplate.tex, mytikztemplate.tex, etc) file in this directory.

Step 2

Go to Tools->Options->Directories and click Add under the Document template directories

screenshot

Using the template

When you want to use the template, simply go to File-> New-> File from template

enter image description here

References

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.