On 10/18/2014 03:13 AM, Bill Page wrote:
>> Admittedly, just one \frac{a}{b} on the top-level is a special case
>> and I would be happy if breqn.sty could handle this. I think I even
>> wrote a mail to all three of the maintainers and didn't get a reply. :-(> That is bit discouraging. As you have designed it, fricasmath > requires breqn. I looked but did not find any easy way to disable the > use of breqn. Oh. But that's easy. Nobody forces you to use fricasmath.sty. https://github.com/hemmecke/fricas/blob/tex-latex/src/doc/fricasmath.sty#L23 Simply redefine: \newenvironment{fricasmath}[1]% {\def\arg{#1}% \ifx\arg\empty \def\BEGIN{\begin{dmath}[compact]}% \else \def\BEGIN{\begin{dmath}[compact,number={#1}]}% \fi ... }% {\end{dmath}} to use simply amsmath or whatever you like. Something like this... \newenvironment{fricasmath}[1]% {\def\arg{#1}% \ifx\arg\empty \def\BEGIN{\begin{gather}[compact]}% \else \def\BEGIN{\begin{gather}\tag{#1}}% \fi ... }% {\end{gather}} Maybe you have to put \tag near \end{gather}. That would be a bit of work, since like for \BEGIN you would have to store the #1 inside an \END command to remember the value until the end of the environment. But otherwise, breqn would be gone. tex.spad does not know anything about breqn. And if for some environments you want to break the equations yourself, then you can redefine what tex.spad does depending on the top-level operator. https://github.com/hemmecke/fricas/blob/tex-latex/src/algebra/tex.spad#L944 >> That texbreak can handle this looks nice, but I'm still not in >> favour of texbreak. > > You mean because it is written in C ? No, because it doesn't calculate the width with true tex width of the current font etc. It has its own approximate width of certain things hardcoded inside. >> If only I could reliably say that "\frac is toplevel and the >> expression is too long", it would perhaps be passible to program >> a workaround for this case. But it needs a bit of TeX-knowledge to >> get the length of the line between the numerator and denominator >> correct. > > I significant part of texbreak is concerned exactly with this sort of > calculation. Well, since TeX is a programming language that's Turing complete, it could also be done in TeX, but the question is where to break numerator and denominator. If the width of both is known, drawing a line between numerator and denominator should be doable, but for \frac{a}{b} + \frac{c}{d} it's hard to decide whether it's better to break a or at + or maybe at c, if just a and c are too long to fit on one line. Currently, my TeX knowledge isn't good enough to program a solution for toplevel \frac. >> Actually, the link that is produced on the wiki is somewhat useless, >> since it simply points to itself. > Well this is fairly conventional HTML coding. The link is used to > generate a copyable reference to some output or equation, e.g. > > http://axiom-wiki.newsynthesis.org/ManipulatingExpressions#eq19 But all you want, is to set an anchor and give the user a way to copy it. On https://help.github.com/articles/tips-for-configuring-an-a-record-with-your-dns-provider/ they have solved it differently. You get an "chain" icon when you hover over a headline. But OK, only seems to work with javascript on. :-( <h3> <a name="configuring-a-www-subdomain" class="anchor" href="#configuring-a-www-subdomain"> <span class="octicon octicon-link"></span></a> Configuring a <code>www</code> subdomain</h3> > Yes, that should be easy. What does fricasmath do if I pass an empty > bracket or omit the bracket altogether? > > \begin{fricasmath}{} ... tex.spad generates exactly that if there is no equation number. And the fricasmath environemnt (see code snippet above deals with this via \def\arg{#1}\ifx\arg\empty ... \fi You *must* give an argument, because it's defined as \newenvironment{fricasmath}[1]{...}{...} Ralf -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/fricas-devel. For more options, visit https://groups.google.com/d/optout.
