mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 02:49:46 +00:00
Math.lyx: some formatting fixes
This commit is contained in:
parent
ead6eb8944
commit
d0a4b80256
@ -38454,33 +38454,55 @@ Math Macros for External Commands
|
|||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
Sometimes,
|
Sometimes,
|
||||||
you may need to use a LaTeX package which defines a math command that is not natively supported in LyX.
|
you may need to use a \SpecialChar LaTeX
|
||||||
|
package which defines a math command that is not natively supported in \SpecialChar LyX
|
||||||
|
.
|
||||||
This is easy enough to do:
|
This is easy enough to do:
|
||||||
Just include the package in the preamble and type out the command in math.
|
Just include the package in the preamble and type out the command in math.
|
||||||
As with commands defined in the preamble,
|
As with commands defined in the preamble,
|
||||||
however,
|
however,
|
||||||
the display in LyX will not be `nice'.
|
the display in \SpecialChar LyX
|
||||||
|
will not be
|
||||||
|
\begin_inset Quotes els
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
nice
|
||||||
|
\begin_inset Quotes ers
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
.
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
As of LyX 2.4,
|
As of \SpecialChar LyX
|
||||||
|
2.4,
|
||||||
this problem has been solved.
|
this problem has been solved.
|
||||||
Just define a math macro with empty LaTeX slot!
|
Just define a math macro with empty \SpecialChar TeX
|
||||||
The LyX part will be used for display,
|
slot!
|
||||||
but no corresponding LaTeX will be output.
|
The \SpecialChar LyX
|
||||||
|
part will be used for display,
|
||||||
|
but no corresponding \SpecialChar LaTeX
|
||||||
|
will be output.
|
||||||
For example,
|
For example,
|
||||||
the
|
the
|
||||||
|
\series bold
|
||||||
|
godelnum
|
||||||
|
\series default
|
||||||
|
package defines a
|
||||||
\begin_inset Flex Code
|
\begin_inset Flex Code
|
||||||
status collapsed
|
status collapsed
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
godelnum.sty
|
|
||||||
|
\backslash
|
||||||
|
Godelnum
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
package defines a Godelnum macro that puts a single argument into corner quotes.
|
macro that puts a single argument into corner quotes.
|
||||||
To get a nice LyX display of this macro,
|
To get a nice \SpecialChar LyX
|
||||||
|
display of this macro,
|
||||||
just do:
|
just do:
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user