newverbatim

theodore.norvell's picture

Hi.  I'm having trouble adding a new "verbatim" environment to by CST file.   The problem is that it does not save properly.  When I save as portable LaTeX there is no \begin or \end command.  I've also had trouble saving as a SW/SWP file, but problem is not consistently reproducible.

Any help will be greatly appreciated.

Attached are the .cst file, a screen shot, and the result of saving as a portable LaTeX file.

Below is an excerpt from the .cst.

[FILTER]
\newenvironment{error}{}{}
\newenvironment{code}{}{}
\newenvironment{indent}{}{}
\newenvironment{comment}{}{}
\newcommand{\file}[1]{}
\newverbatim{lstlisting}{}{}
\newverbatim{lstfloatinglisting}{}{}
\TCIEnd

...

[lstlisting]
TAG_TYPE=PARA
ALIAS=Nonfloating Listing
PARAGRAPH_INDENT_RIGHT=0
PARAGRAPH_INDENT_LEFT=0
TAG_BEHAVIOR=FORCESTEXT|NOLINEBREAK|PRESERVESPACES
FONT_FACE=Courier New
FONT_SIZE=10
...

AttachmentSize
mun-thesis.cst21.79 KB
screen.png62.74 KB
testListings.tex1.18 KB
pviton's picture

You might try changing the

You might try changing the TAG_TYPE to ENV (for environment).

If that produces an error when loading/starting a document, you might also try changing the type in the [FILTER] section to \newenvironment rather than \newlisting