Re: Mathematical macro definition???
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???
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???
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???
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???
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???
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???
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???
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???
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???
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???
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???
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???
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
Re: Mathematical macro definition???
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
Re: Mathematical macro definition???
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