I utilize personal templates which I keep in the folder C:\Program Files\TeXnicCenter\Templates\Documents\My Templates. Occasionally, something odd happens - a newly created template won't reproduce properly when opened from within TeXnicCenter - the content appears to be written in Chinese. This seems to happen when the preamble of the template is minimal in content. This notion is reinforced by the experiment to pare down the content of a functional template. Once reduced, it behaves in the same anomalous manner. Does anyone know something about this?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
you don't give us much information. Which operating system and which version of TexnicCenter are you using?
Where are the template files coming from? The behaviour you described sounds a bit like an encoding problem. You can also upload whole files to the forum server.
Best regards
Johannes
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
@Johannes_B I am using Windows 7 and TeXnicCenter 2.0 Beta 2. The templates are created by me as simple compilable .tex documents and kept in the location that I indicated.
Your file »when_opened.tex« contains a Byte order mark, TexnixCenter seems to be very confused about this. Try opening a new file within Texniccenter and save it there, too.
Btw: Texnicenter 2 is now stable.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
@Johannes_B How can you tell that the document contains a Byte order mark? It is not visible to me. Certainly, I've recreated the document from scratch several times in an effort to start fresh, but the problem persists. Surely, these don't all have byte order marks. When you say "try opening a new file within Texniccenter and save it there, too", you seem to suggest that I create a new template. I have done this many times. Recall that I do have fully functional templates. Can you please clarify your suggestion. Thank you for your time.
It's hard for me to tell if Texniccenter does something funny, since it is not installed on my linux. Try creating a new file with notepad (or something similar), saving it as .tex (but without the txt) with encoding utf8. You can choose the encoding while saving as.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p