logical markup and noweb articles

2009-07-24 Thread Sam Liddicott
The logical markup module's code markup:
   \code{code here}

works fine, unless a noweb article is selected, in which case the
typewriter font runs through to the rest of the document. The other
logical markup types seem to work fine.

Any clues for me? (Lyx 1.6.2)

Sam


Re: logical markup and noweb articles

2009-07-24 Thread Sam Liddicott
* Sam Liddicott wrote, On 24/07/09 11:13:
 The logical markup module's code markup:
\code{code here}
 
 works fine, unless a noweb article is selected, in which case the
 typewriter font runs through to the rest of the document. The other
 logical markup types seem to work fine.
 
 Any clues for me? (Lyx 1.6.2)


I found that it is because noweb.sty also defines a \code

I'll try and combine some variant of:
\newcommand{\ncode}{\code}
before the noweb declarations start

Sam


Re: logical markup and noweb articles

2009-07-24 Thread Sam Liddicott
* Sam Liddicott wrote, On 24/07/09 11:13:
 The logical markup module's code markup:
\code{code here}
 
 works fine, unless a noweb article is selected, in which case the
 typewriter font runs through to the rest of the document. The other
 logical markup types seem to work fine.
 


As far as I can tell, noweb.sty doesn't actually use it's \code and
\edoc commands directly, and as noweb/lyx doesn't either, I just added
this line to my documents Latex preamble:

\renewcommand{\code}[1]{\texttt{#1}}

Sam


logical markup and noweb articles

2009-07-24 Thread Sam Liddicott
The logical markup module's code markup:
   \code{code here}

works fine, unless a noweb article is selected, in which case the
typewriter font runs through to the rest of the document. The other
logical markup types seem to work fine.

Any clues for me? (Lyx 1.6.2)

Sam


Re: logical markup and noweb articles

2009-07-24 Thread Sam Liddicott
* Sam Liddicott wrote, On 24/07/09 11:13:
 The logical markup module's code markup:
\code{code here}
 
 works fine, unless a noweb article is selected, in which case the
 typewriter font runs through to the rest of the document. The other
 logical markup types seem to work fine.
 
 Any clues for me? (Lyx 1.6.2)


I found that it is because noweb.sty also defines a \code

I'll try and combine some variant of:
\newcommand{\ncode}{\code}
before the noweb declarations start

Sam


Re: logical markup and noweb articles

2009-07-24 Thread Sam Liddicott
* Sam Liddicott wrote, On 24/07/09 11:13:
 The logical markup module's code markup:
\code{code here}
 
 works fine, unless a noweb article is selected, in which case the
 typewriter font runs through to the rest of the document. The other
 logical markup types seem to work fine.
 


As far as I can tell, noweb.sty doesn't actually use it's \code and
\edoc commands directly, and as noweb/lyx doesn't either, I just added
this line to my documents Latex preamble:

\renewcommand{\code}[1]{\texttt{#1}}

Sam


logical markup and noweb articles

2009-07-24 Thread Sam Liddicott
The logical markup module's code markup:
   \code{code here}

works fine, unless a noweb article is selected, in which case the
typewriter font runs through to the rest of the document. The other
logical markup types seem to work fine.

Any clues for me? (Lyx 1.6.2)

Sam


Re: logical markup and noweb articles

2009-07-24 Thread Sam Liddicott
* Sam Liddicott wrote, On 24/07/09 11:13:
> The logical markup module's code markup:
>\code{code here}
> 
> works fine, unless a noweb article is selected, in which case the
> typewriter font runs through to the rest of the document. The other
> logical markup types seem to work fine.
> 
> Any clues for me? (Lyx 1.6.2)


I found that it is because noweb.sty also defines a \code

I'll try and combine some variant of:
\newcommand{\ncode}{\code}
before the noweb declarations start

Sam


Re: logical markup and noweb articles

2009-07-24 Thread Sam Liddicott
* Sam Liddicott wrote, On 24/07/09 11:13:
> The logical markup module's code markup:
>\code{code here}
> 
> works fine, unless a noweb article is selected, in which case the
> typewriter font runs through to the rest of the document. The other
> logical markup types seem to work fine.
> 


As far as I can tell, noweb.sty doesn't actually use it's \code and
\edoc commands directly, and as noweb/lyx doesn't either, I just added
this line to my documents Latex preamble:

\renewcommand{\code}[1]{\texttt{#1}}

Sam