On Mon, 29 Sep 2003, Matej Cepl wrote:

> Shouldn't this be done by LyX? I have just created these macros with LyX
> through math-macro (and I have sent .lyx file to the list to show it).
> And how should I actually achieve it in LyX? Could you please send me
> back corrected .lyx file, which would compile?
> 
I think the problem is that you are using \textrm and \textit, I've 
attached a file that uses \mathrm and \mathit instead. Unfortunately, the 
\mathit-text only shows up as italics in the DVI-file.
(I'll post a question in devel as to why \mathit isn't italics on screen)

Oh.. I didn't have the 'groff...something' class, so this is in 
article-class instead.

/Christian

-- 
Christian Ridderström                           http://www.md.kth.se/~chr
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard


\begin_inset FormulaMacro 
\newcommand{\test}[4]{\left[\begin{array}{cc}
\mathit{#1} & \mathit{#4}\\
\mathrm{#2} & \mathrm{#3}\end{array}\right]}
\end_inset 


\layout Standard


\begin_inset Formula $\test{verb}{VAL}{huh}{a}$
\end_inset 


\layout Standard


\begin_inset Formula $\test{verb}{VAL}{\test{SPR}{COMP}{intr}{a}}{a}$
\end_inset 


\layout Standard


\begin_inset Formula $\test{verb}{VAL}{\test{SPR}{COMP}{intr}{text}}{text}$
\end_inset 


\the_end

Reply via email to