Re: Mathematical macro definition???

2003-09-30 Thread Matej Cepl
On 2003-09-30, 04:27 GMT, Herbert Vo wrote:
 be sure, that you are always in mathmode!
 
 \newcommand{\test}[4]{
   $\left[\begin{array}{cc}
   \textit{#1}#4 \\
   \textrm{#2}\textrm{#3}
 \end{array}\right]$%
 }
 
 
 \test{verb}{VAL}{\test{SPR}{COMP}{intr}{a}}{a}
 
 
 or alternatively
 
 $\test{verb}{VAL}{$\test{SPR}{COMP}{intr}{a}$}{a}$

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?

   Thanks,

  Matej Cepl

-- 
Matej Cepl,
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488



Re: Mathematical macro definition???

2003-09-30 Thread Andre Poenitz
On Tue, Sep 30, 2003 at 12:39:40PM +0200, Christian Ridderström wrote:
 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)

For the same reason why math in \emph text is shown upright.

I.e. I do not understand the whole font attribute business and
nobody explained it to me so far or fixed math_support.C.

Andre'


Re: Mathematical macro definition???

2003-09-30 Thread Christian Ridderström
On Tue, 30 Sep 2003, [ISO-8859-2] Herbert Voß wrote:

 p.s.: do not use special classes and font settings
 for demo files.

And sending (back) a file from lyx 1.4.0 is ok?   ;-)

/Christian

-- 
Christian Ridderström   http://www.md.kth.se/~chr




Re: Mathematical macro definition???

2003-09-30 Thread Herbert Voß
Andre Poenitz schrieb:
On Tue, Sep 30, 2003 at 12:39:40PM +0200, Christian Ridderström wrote:

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)


For the same reason why math in \emph text is shown upright.

I.e. I do not understand the whole font attribute business and
nobody explained it to me so far or fixed math_support.C.
\DeclareSymbolFont{operators}   {OT1}{cmr} {m}{n}
\DeclareSymbolFont{letters} {OML}{cmm} {m}{it}
\DeclareSymbolFont{symbols} {OMS}{cmsy}{m}{n}
\DeclareSymbolFont{largesymbols}{OMX}{cmex}{m}{n}
\SetSymbolFont{operators}{bold}{OT1}{cmr} {bx}{n}
\SetSymbolFont{letters}  {bold}{OML}{cmm} {b}{it}
\SetSymbolFont{symbols}  {bold}{OMS}{cmsy}{b}{n}
\DeclareSymbolFontAlphabet{\mathrm}{operators}
\DeclareSymbolFontAlphabet{\mathnormal}{letters}
\DeclareSymbolFontAlphabet{\mathcal}   {symbols}
\DeclareMathAlphabet  {\mathbf}{OT1}{cmr}{bx}{n}
\DeclareMathAlphabet  {\mathsf}{OT1}{cmss}{m}{n}
\DeclareMathAlphabet  {\mathit}{OT1}{cmr}{m}{it}
\DeclareMathAlphabet  {\mathtt}{OT1}{cmtt}{m}{n}
\SetMathAlphabet\mathsf{bold}{OT1}{cmss}{bx}{n}
\SetMathAlphabet\mathit{bold}{OT1}{cmr}{bx}{it}
Herbert




Re: Mathematical macro definition???

2003-09-30 Thread Matej Cepl
On 2003-09-30, 04:27 GMT, Herbert Vo wrote:
 be sure, that you are always in mathmode!
 
 \newcommand{\test}[4]{
   $\left[\begin{array}{cc}
   \textit{#1}#4 \\
   \textrm{#2}\textrm{#3}
 \end{array}\right]$%
 }
 
 
 \test{verb}{VAL}{\test{SPR}{COMP}{intr}{a}}{a}
 
 
 or alternatively
 
 $\test{verb}{VAL}{$\test{SPR}{COMP}{intr}{a}$}{a}$

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?

   Thanks,

  Matej Cepl

-- 
Matej Cepl,
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488



Re: Mathematical macro definition???

2003-09-30 Thread Andre Poenitz
On Tue, Sep 30, 2003 at 12:39:40PM +0200, Christian Ridderström wrote:
 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)

For the same reason why math in \emph text is shown upright.

I.e. I do not understand the whole font attribute business and
nobody explained it to me so far or fixed math_support.C.

Andre'


Re: Mathematical macro definition???

2003-09-30 Thread Christian Ridderström
On Tue, 30 Sep 2003, [ISO-8859-2] Herbert Voß wrote:

 p.s.: do not use special classes and font settings
 for demo files.

And sending (back) a file from lyx 1.4.0 is ok?   ;-)

/Christian

-- 
Christian Ridderström   http://www.md.kth.se/~chr




Re: Mathematical macro definition???

2003-09-30 Thread Herbert Voß
Andre Poenitz schrieb:
On Tue, Sep 30, 2003 at 12:39:40PM +0200, Christian Ridderström wrote:

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)


For the same reason why math in \emph text is shown upright.

I.e. I do not understand the whole font attribute business and
nobody explained it to me so far or fixed math_support.C.
\DeclareSymbolFont{operators}   {OT1}{cmr} {m}{n}
\DeclareSymbolFont{letters} {OML}{cmm} {m}{it}
\DeclareSymbolFont{symbols} {OMS}{cmsy}{m}{n}
\DeclareSymbolFont{largesymbols}{OMX}{cmex}{m}{n}
\SetSymbolFont{operators}{bold}{OT1}{cmr} {bx}{n}
\SetSymbolFont{letters}  {bold}{OML}{cmm} {b}{it}
\SetSymbolFont{symbols}  {bold}{OMS}{cmsy}{b}{n}
\DeclareSymbolFontAlphabet{\mathrm}{operators}
\DeclareSymbolFontAlphabet{\mathnormal}{letters}
\DeclareSymbolFontAlphabet{\mathcal}   {symbols}
\DeclareMathAlphabet  {\mathbf}{OT1}{cmr}{bx}{n}
\DeclareMathAlphabet  {\mathsf}{OT1}{cmss}{m}{n}
\DeclareMathAlphabet  {\mathit}{OT1}{cmr}{m}{it}
\DeclareMathAlphabet  {\mathtt}{OT1}{cmtt}{m}{n}
\SetMathAlphabet\mathsf{bold}{OT1}{cmss}{bx}{n}
\SetMathAlphabet\mathit{bold}{OT1}{cmr}{bx}{it}
Herbert




Re: Mathematical macro definition???

2003-09-30 Thread Matej Cepl
On 2003-09-30, 04:27 GMT, Herbert Voß wrote:
> be sure, that you are always in mathmode!
> 
> \newcommand{\test}[4]{
>   $\left[\begin{array}{cc}
>   \textit{#1}  &  #4 \\
>   \textrm{#2}  &  \textrm{#3}
> \end{array}\right]$%
> }
> 
> 
> \test{verb}{VAL}{\test{SPR}{COMP}{intr}{a}}{a}
> 
> 
> or alternatively
> 
> $\test{verb}{VAL}{$\test{SPR}{COMP}{intr}{a}$}{a}$

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?

   Thanks,

  Matej Cepl

-- 
Matej Cepl,
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488



Re: Mathematical macro definition???

2003-09-30 Thread Andre Poenitz
On Tue, Sep 30, 2003 at 12:39:40PM +0200, Christian Ridderström wrote:
> 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)

For the same reason why math in \emph text is shown upright.

I.e. I do not understand the whole "font attribute business" and
nobody explained it to me so far or fixed math_support.C.

Andre'


Re: Mathematical macro definition???

2003-09-30 Thread Christian Ridderström
On Tue, 30 Sep 2003, [ISO-8859-2] Herbert Voß wrote:

> p.s.: do not use special classes and font settings
> for demo files.

And sending (back) a file from lyx 1.4.0 is ok?   ;-)

/Christian

-- 
Christian Ridderström   http://www.md.kth.se/~chr




Re: Mathematical macro definition???

2003-09-30 Thread Herbert Voß
Andre Poenitz schrieb:
On Tue, Sep 30, 2003 at 12:39:40PM +0200, Christian Ridderström wrote:

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)


For the same reason why math in \emph text is shown upright.

I.e. I do not understand the whole "font attribute business" and
nobody explained it to me so far or fixed math_support.C.
\DeclareSymbolFont{operators}   {OT1}{cmr} {m}{n}
\DeclareSymbolFont{letters} {OML}{cmm} {m}{it}
\DeclareSymbolFont{symbols} {OMS}{cmsy}{m}{n}
\DeclareSymbolFont{largesymbols}{OMX}{cmex}{m}{n}
\SetSymbolFont{operators}{bold}{OT1}{cmr} {bx}{n}
\SetSymbolFont{letters}  {bold}{OML}{cmm} {b}{it}
\SetSymbolFont{symbols}  {bold}{OMS}{cmsy}{b}{n}
\DeclareSymbolFontAlphabet{\mathrm}{operators}
\DeclareSymbolFontAlphabet{\mathnormal}{letters}
\DeclareSymbolFontAlphabet{\mathcal}   {symbols}
\DeclareMathAlphabet  {\mathbf}{OT1}{cmr}{bx}{n}
\DeclareMathAlphabet  {\mathsf}{OT1}{cmss}{m}{n}
\DeclareMathAlphabet  {\mathit}{OT1}{cmr}{m}{it}
\DeclareMathAlphabet  {\mathtt}{OT1}{cmtt}{m}{n}
\SetMathAlphabet\mathsf{bold}{OT1}{cmss}{bx}{n}
\SetMathAlphabet\mathit{bold}{OT1}{cmr}{bx}{it}
Herbert




Mathematical macro definition???

2003-09-29 Thread Matej Cepl
Hi,

trying to show what LyX can do for my wife (whom I am persuading 
to switch from Word :-) and I have not met success. She is 
a linguist, so she needs to create extremely complicated 
structures of bracketed matrices. Therefore I tried to create 
attached file with math macro definition (in LyX 1.3.2/Qt under 
Linux), but LyX breaks with a lot of errors which I do not 
understand. Moreover, when the file is reloaded to LyX, there are 
strange rectangles appearing in the upper left corner of both 
macro definition and its instance (see attached screenshot).

Any thoughts?

  Matej

--
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
A GOOD name is rather to be chosen than great riches.
  -- Proverbs 22:1
This is TeX, Version 3.14159 (Web2C 7.3.7) (format=latex 2003.5.11)  29 SEP 2003 19:40
**math-macro
(./math-macro.tex
LaTeX2e 2001/06/01
Babel v3.7h and hyphenation patterns for american, french, german, ngerman, c
zech, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size11.clo
File: size11.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texmf/tex/latex/base/fontenc.sty
Package: fontenc 2001/06/05 v1.94 Standard LaTeX package

(/usr/share/texmf/tex/latex/base/t1enc.def
File: t1enc.def 2001/06/05 v1.94 Standard LaTeX file
LaTeX Font Info:Redeclaring font encoding T1 on input line 38.
))
(/usr/share/texmf/tex/latex/base/inputenc.sty
Package: inputenc 2001/07/10 v0.99a Input encoding file 

(/usr/share/texmf/tex/latex/base/latin1.def
File: latin1.def 2001/07/10 v0.99a Input encoding file 
))
(/usr/share/texmf/tex/latex/tools/verbatim.sty
Package: verbatim 2001/03/12 v1.5p LaTeX2e package for verbatim enhancements
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]@stream=\read1
)
(/usr/local/share/texmf/tex/latex/misc/rcs.sty
Package: rcs 1995/08/02 v2.9 typeset info from RCS fields
\rcsLogIntro=\toks16
)
(/usr/local/share/texmf/tex/latex/koma-script/typearea.sty
Package: typearea 2003/01/31 v2.9n LaTeX2e KOMA package

Package typearea, 2003/01/31 v2.9n LaTeX2e KOMA package
  Copyright (C) Frank Neukam, 1992-1994
  Copyright (C) Markus Kohm, 1994-2002

[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Package typearea Info: These are the values describing the layout:
(typearea) DIV  = 10
(typearea) BCOR = 0.0pt
(typearea) \paperwidth  = 597.50793pt
(typearea)  \textwidth  = 418.2pt
(typearea)  DIV-departure   = -7/100
(typearea)  \evensidemargin = 17.3562pt
(typearea)  \oddsidemargin  = 17.3562pt
(typearea) \paperheight = 845.04694pt
(typearea)  \textheight = 595.80026pt
(typearea)  \topmargin  = -25.16531pt
(typearea)  \headheight = 17.0pt
(typearea)  \headsep= 20.40001pt
(typearea)  \topskip= 11.0pt
(typearea)  \footskip   = 47.60002pt
(typearea)  \baselineskip   = 13.6pt
(typearea)  on input line 625.
)
[EMAIL PROTECTED]
 (/usr/local/share/texmf/tex/latex/ofs/ofs.sty
Package: ofs 2001/07/01 OFS based on NFSS

OFS (Olsak's Font System) based on NFSS initialized. Jul. 2001
) (/usr/local/share/texmf/tex/latex/ofs/allfonts.sty
Package: allfonts 

(/usr/local/share/texmf/tex/latex/ofs/a35.sty
Package: a35 
)
(/usr/local/share/texmf/tex/latex/ofs/storm/slido.sty
Package: slido 

(/usr/local/share/texmf/tex/latex/ofs/storm/se1ini.def
(/usr/local/share/texmf/tex/latex/ofs/storm/se1enc.def
File: se1enc.def SE1-StormExtraEncoding

OFS (l.43): The list of known font families:
defaults:
   [CMRoman/]   \rm, \bf, \it, \bi, \sl
   [CMSans/]\rm, \bf, \it,  -
   [CMTypewriter/]  \rm,  - , \it,  - , \sl
   [Times/] \rm, \bf, \it, \bi
   [Helvetica/] \rm, \bf, \it, \bi, \nrm, \nbf, \nit, \nbi
   [Courier/]   \rm, \bf, \it, \bia35.sty:
   [AvantGarde/]\rm, \bf, \it, \bi
   [Bookman/]   \rm, \bf, \it, \bi
   [NewCentury/]\rm, \bf, \it, \bi
   [Palatino/]  \rm, \bf, \it, \bi
   [ZapfChancery/]  \rm,  - , \it,  -
   [ZapfDingbats/]  \rm,  - ,  - ,  -
   [Symbol/]\rm,  - , \it,  -
slido.sty:
   [Lido/]  \rm, \bf, \it, \bi, \crm, \cbf
(/usr/share/texmf/tex/generic/babel/babel.sty
Package: babel 2001/03/01 v3.7h The Babel package

(/usr/share/texmf/tex/generic/babel/english.ldf
Language: english 2001/04/15 v3.3l English 

Re: Mathematical macro definition???

2003-09-29 Thread Herbert Vo
Matej Cepl schrieb:

\begin_inset FormulaMacro 
\newcommand{\test}[4]{\left[\begin{array}{cc}

\textit{#1}#4 \\
\textrm{#2}\textrm{#3}\end{array}\right]}
\end_inset 

\layout Standard

\begin_inset Formula $\test{verb}{VAL}{\test{SPR}{COMP}{intr}{a}}{a}$
\end_inset 
be sure, that you are always in mathmode!

\newcommand{\test}[4]{
$\left[\begin{array}{cc}
\textit{#1}#4 \\
\textrm{#2}\textrm{#3}
\end{array}\right]$%
}
\test{verb}{VAL}{\test{SPR}{COMP}{intr}{a}}{a}

or alternatively

$\test{verb}{VAL}{$\test{SPR}{COMP}{intr}{a}$}{a}$

Herbert




Mathematical macro definition???

2003-09-29 Thread Matej Cepl
Hi,

trying to show what LyX can do for my wife (whom I am persuading 
to switch from Word :-) and I have not met success. She is 
a linguist, so she needs to create extremely complicated 
structures of bracketed matrices. Therefore I tried to create 
attached file with math macro definition (in LyX 1.3.2/Qt under 
Linux), but LyX breaks with a lot of errors which I do not 
understand. Moreover, when the file is reloaded to LyX, there are 
strange rectangles appearing in the upper left corner of both 
macro definition and its instance (see attached screenshot).

Any thoughts?

  Matej

--
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
A GOOD name is rather to be chosen than great riches.
  -- Proverbs 22:1
This is TeX, Version 3.14159 (Web2C 7.3.7) (format=latex 2003.5.11)  29 SEP 2003 19:40
**math-macro
(./math-macro.tex
LaTeX2e 2001/06/01
Babel v3.7h and hyphenation patterns for american, french, german, ngerman, c
zech, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size11.clo
File: size11.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texmf/tex/latex/base/fontenc.sty
Package: fontenc 2001/06/05 v1.94 Standard LaTeX package

(/usr/share/texmf/tex/latex/base/t1enc.def
File: t1enc.def 2001/06/05 v1.94 Standard LaTeX file
LaTeX Font Info:Redeclaring font encoding T1 on input line 38.
))
(/usr/share/texmf/tex/latex/base/inputenc.sty
Package: inputenc 2001/07/10 v0.99a Input encoding file 

(/usr/share/texmf/tex/latex/base/latin1.def
File: latin1.def 2001/07/10 v0.99a Input encoding file 
))
(/usr/share/texmf/tex/latex/tools/verbatim.sty
Package: verbatim 2001/03/12 v1.5p LaTeX2e package for verbatim enhancements
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]@stream=\read1
)
(/usr/local/share/texmf/tex/latex/misc/rcs.sty
Package: rcs 1995/08/02 v2.9 typeset info from RCS fields
\rcsLogIntro=\toks16
)
(/usr/local/share/texmf/tex/latex/koma-script/typearea.sty
Package: typearea 2003/01/31 v2.9n LaTeX2e KOMA package

Package typearea, 2003/01/31 v2.9n LaTeX2e KOMA package
  Copyright (C) Frank Neukam, 1992-1994
  Copyright (C) Markus Kohm, 1994-2002

[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Package typearea Info: These are the values describing the layout:
(typearea) DIV  = 10
(typearea) BCOR = 0.0pt
(typearea) \paperwidth  = 597.50793pt
(typearea)  \textwidth  = 418.2pt
(typearea)  DIV-departure   = -7/100
(typearea)  \evensidemargin = 17.3562pt
(typearea)  \oddsidemargin  = 17.3562pt
(typearea) \paperheight = 845.04694pt
(typearea)  \textheight = 595.80026pt
(typearea)  \topmargin  = -25.16531pt
(typearea)  \headheight = 17.0pt
(typearea)  \headsep= 20.40001pt
(typearea)  \topskip= 11.0pt
(typearea)  \footskip   = 47.60002pt
(typearea)  \baselineskip   = 13.6pt
(typearea)  on input line 625.
)
[EMAIL PROTECTED]
 (/usr/local/share/texmf/tex/latex/ofs/ofs.sty
Package: ofs 2001/07/01 OFS based on NFSS

OFS (Olsak's Font System) based on NFSS initialized. Jul. 2001
) (/usr/local/share/texmf/tex/latex/ofs/allfonts.sty
Package: allfonts 

(/usr/local/share/texmf/tex/latex/ofs/a35.sty
Package: a35 
)
(/usr/local/share/texmf/tex/latex/ofs/storm/slido.sty
Package: slido 

(/usr/local/share/texmf/tex/latex/ofs/storm/se1ini.def
(/usr/local/share/texmf/tex/latex/ofs/storm/se1enc.def
File: se1enc.def SE1-StormExtraEncoding

OFS (l.43): The list of known font families:
defaults:
   [CMRoman/]   \rm, \bf, \it, \bi, \sl
   [CMSans/]\rm, \bf, \it,  -
   [CMTypewriter/]  \rm,  - , \it,  - , \sl
   [Times/] \rm, \bf, \it, \bi
   [Helvetica/] \rm, \bf, \it, \bi, \nrm, \nbf, \nit, \nbi
   [Courier/]   \rm, \bf, \it, \bia35.sty:
   [AvantGarde/]\rm, \bf, \it, \bi
   [Bookman/]   \rm, \bf, \it, \bi
   [NewCentury/]\rm, \bf, \it, \bi
   [Palatino/]  \rm, \bf, \it, \bi
   [ZapfChancery/]  \rm,  - , \it,  -
   [ZapfDingbats/]  \rm,  - ,  - ,  -
   [Symbol/]\rm,  - , \it,  -
slido.sty:
   [Lido/]  \rm, \bf, \it, \bi, \crm, \cbf
(/usr/share/texmf/tex/generic/babel/babel.sty
Package: babel 2001/03/01 v3.7h The Babel package

(/usr/share/texmf/tex/generic/babel/english.ldf
Language: english 2001/04/15 v3.3l English 

Re: Mathematical macro definition???

2003-09-29 Thread Herbert Vo
Matej Cepl schrieb:

\begin_inset FormulaMacro 
\newcommand{\test}[4]{\left[\begin{array}{cc}

\textit{#1}#4 \\
\textrm{#2}\textrm{#3}\end{array}\right]}
\end_inset 

\layout Standard

\begin_inset Formula $\test{verb}{VAL}{\test{SPR}{COMP}{intr}{a}}{a}$
\end_inset 
be sure, that you are always in mathmode!

\newcommand{\test}[4]{
$\left[\begin{array}{cc}
\textit{#1}#4 \\
\textrm{#2}\textrm{#3}
\end{array}\right]$%
}
\test{verb}{VAL}{\test{SPR}{COMP}{intr}{a}}{a}

or alternatively

$\test{verb}{VAL}{$\test{SPR}{COMP}{intr}{a}$}{a}$

Herbert




Mathematical macro definition???

2003-09-29 Thread Matej Cepl
Hi,

trying to show what LyX can do for my wife (whom I am persuading 
to switch from Word :-) and I have not met success. She is 
a linguist, so she needs to create extremely complicated 
structures of bracketed matrices. Therefore I tried to create 
attached file with math macro definition (in LyX 1.3.2/Qt under 
Linux), but LyX breaks with a lot of errors which I do not 
understand. Moreover, when the file is reloaded to LyX, there are 
strange rectangles appearing in the upper left corner of both 
macro definition and its instance (see attached screenshot).

Any thoughts?

  Matej

--
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
A GOOD name is rather to be chosen than great riches.
  -- Proverbs 22:1
This is TeX, Version 3.14159 (Web2C 7.3.7) (format=latex 2003.5.11)  29 SEP 2003 19:40
**math-macro
(./math-macro.tex
LaTeX2e <2001/06/01>
Babel  and hyphenation patterns for american, french, german, ngerman, c
zech, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size11.clo
File: size11.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texmf/tex/latex/base/fontenc.sty
Package: fontenc 2001/06/05 v1.94 Standard LaTeX package

(/usr/share/texmf/tex/latex/base/t1enc.def
File: t1enc.def 2001/06/05 v1.94 Standard LaTeX file
LaTeX Font Info:Redeclaring font encoding T1 on input line 38.
))
(/usr/share/texmf/tex/latex/base/inputenc.sty
Package: inputenc 2001/07/10 v0.99a Input encoding file 

(/usr/share/texmf/tex/latex/base/latin1.def
File: latin1.def 2001/07/10 v0.99a Input encoding file 
))
(/usr/share/texmf/tex/latex/tools/verbatim.sty
Package: verbatim 2001/03/12 v1.5p LaTeX2e package for verbatim enhancements
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]@stream=\read1
)
(/usr/local/share/texmf/tex/latex/misc/rcs.sty
Package: rcs 1995/08/02 v2.9 typeset info from RCS fields
\rcsLogIntro=\toks16
)
(/usr/local/share/texmf/tex/latex/koma-script/typearea.sty
Package: typearea 2003/01/31 v2.9n LaTeX2e KOMA package

Package typearea, 2003/01/31 v2.9n LaTeX2e KOMA package
  Copyright (C) Frank Neukam, 1992-1994
  Copyright (C) Markus Kohm, 1994-2002

[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Package typearea Info: These are the values describing the layout:
(typearea) DIV  = 10
(typearea) BCOR = 0.0pt
(typearea) \paperwidth  = 597.50793pt
(typearea)  \textwidth  = 418.2pt
(typearea)  DIV-departure   = -7/100
(typearea)  \evensidemargin = 17.3562pt
(typearea)  \oddsidemargin  = 17.3562pt
(typearea) \paperheight = 845.04694pt
(typearea)  \textheight = 595.80026pt
(typearea)  \topmargin  = -25.16531pt
(typearea)  \headheight = 17.0pt
(typearea)  \headsep= 20.40001pt
(typearea)  \topskip= 11.0pt
(typearea)  \footskip   = 47.60002pt
(typearea)  \baselineskip   = 13.6pt
(typearea)  on input line 625.
)
[EMAIL PROTECTED]
 (/usr/local/share/texmf/tex/latex/ofs/ofs.sty
Package: ofs 2001/07/01 OFS based on NFSS

OFS (Olsak's Font System) based on NFSS initialized. 
) (/usr/local/share/texmf/tex/latex/ofs/allfonts.sty
Package: allfonts 

(/usr/local/share/texmf/tex/latex/ofs/a35.sty
Package: a35 
)
(/usr/local/share/texmf/tex/latex/ofs/storm/slido.sty
Package: slido 

(/usr/local/share/texmf/tex/latex/ofs/storm/se1ini.def
(/usr/local/share/texmf/tex/latex/ofs/storm/se1enc.def
File: se1enc.def SE1-StormExtraEncoding

OFS (l.43): The list of known font families:
defaults:
   [CMRoman/]   \rm, \bf, \it, \bi, \sl
   [CMSans/]\rm, \bf, \it,  -
   [CMTypewriter/]  \rm,  - , \it,  - , \sl
   [Times/] \rm, \bf, \it, \bi
   [Helvetica/] \rm, \bf, \it, \bi, \nrm, \nbf, \nit, \nbi
   [Courier/]   \rm, \bf, \it, \bia35.sty:
   [AvantGarde/]\rm, \bf, \it, \bi
   [Bookman/]   \rm, \bf, \it, \bi
   [NewCentury/]\rm, \bf, \it, \bi
   [Palatino/]  \rm, \bf, \it, \bi
   [ZapfChancery/]  \rm,  - , \it,  -
   [ZapfDingbats/]  \rm,  - ,  - ,  -
   [Symbol/]\rm,  - , \it,  -
slido.sty:
   [Lido/]  \rm, \bf, \it, \bi, \crm, \cbf
(/usr/share/texmf/tex/generic/babel/babel.sty
Package: babel 2001/03/01 v3.7h The Babel package

(/usr/share/texmf/tex/generic/babel/english.ldf
Language: english 2001/04/15 v3.3l English support from the 

Re: Mathematical macro definition???

2003-09-29 Thread Herbert Voß
Matej Cepl schrieb:

\begin_inset FormulaMacro 
\newcommand{\test}[4]{\left[\begin{array}{cc}

\textit{#1}  &  #4 \\
\textrm{#2}  &  \textrm{#3}\end{array}\right]}
\end_inset 

\layout Standard

\begin_inset Formula $\test{verb}{VAL}{\test{SPR}{COMP}{intr}{a}}{a}$
\end_inset 
be sure, that you are always in mathmode!

\newcommand{\test}[4]{
$\left[\begin{array}{cc}
\textit{#1}  &  #4 \\
\textrm{#2}  &  \textrm{#3}
\end{array}\right]$%
}
\test{verb}{VAL}{\test{SPR}{COMP}{intr}{a}}{a}

or alternatively

$\test{verb}{VAL}{$\test{SPR}{COMP}{intr}{a}$}{a}$

Herbert