[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[eLyXer-users] Suggestion to add \stackrel support
From: |
Jose Ramon Alvarez Sanchez |
Subject: |
[eLyXer-users] Suggestion to add \stackrel support |
Date: |
Fri, 08 Oct 2010 23:08:35 +0200 |
Hi, I have added support for "\stackrel" (adapted from "\binom")
through a wrapper to my copy of elyxer.py by adding an element
directly into hybridfuncions dict.
But I suppose the correct way should be to insert the following
into conf/base.cfg section "[FormulaConfig.hybridfunctions]":
\stackrel:[{$1}{$2},f0{f1{$1}f2{$2}},span class="stackrel",span
class="upstackrel",span class="downstackrel"]
and also adding the following into lyx.css (a first approach to mimic
stackrel appearance):
------
span.stackrel {
display: inline-block;
vertical-align: bottom;
text-align: center;
}
span.upstackrel {
display: block;
padding: 0em;
position: relative;
bottom: -1ex;
font-size: 80%;
}
span.downstackrel {
display: block;
padding: 0em;
}
------
To test it, inside a LyX equation type \stackrel and fill in
both parts (e.g. "$x\stackrel{R}{\rightarrow}y$").
Best regards,
Jose R.
- [eLyXer-users] Suggestion to add \stackrel support,
Jose Ramon Alvarez Sanchez <=