首页 \ 问答 \ 当某些应用程序代码被执行时,如何识别所有写入的表?(How can I identify all the tables that get written to, when some application code gets executed?)

当某些应用程序代码被执行时,如何识别所有写入的表?(How can I identify all the tables that get written to, when some application code gets executed?)

我想找出执行某些.net代码时被触摸的表。 我怎样才能做到这一点? 在一个事务中可能会有很多表被写入,并且获得某些受影响的列表会很有帮助。


I want to find out the tables that are being touched when some piece of .net code is executed. How can I do that? There may be quite a few tables that get written to in one transaction and it would be helpful to get some sort of listing of all those that get affected.


原文:https://stackoverflow.com/questions/19521771
更新时间:2023-04-20 21:04

最满意答案

这是此特定示例的预期行为。

MathJax的换行现在在MathML令牌元素中不起作用(此TeX示例将在内部转换为单个mtext元素)。 计划对此进行支持,但文档对这两个事实都不太清楚。

您需要退出\ text以获得休息(或者在其中使用$ ... $以便MathJax退出)。[实际上,请参阅下面的第二次更新]

注意,换行具有其他更一般的限制,例如,任何类似于表的环境只能在单元内断开。

有关真正响应方程式渲染的研究,请参阅https://github.com/mathjax/MathJax-RespEq


更新。 我之前忘了的东西。 您的示例也是内联数学,MathJax仅在等式长于行时才会中断。 实际上在文档中提到这一点。 但是,正如我所写,因为它在内部只是一个标记元素,所以在您的示例中也不会发生这种情况。


另一个更新。 实际上还有一个特定于内容的问题。 MathML换行算法只允许在<mo><mspace>元素处发生中断,MathJax遵循这一点(因为,如上所述,它是一个MathML渲染器)。 因此,即使您的示例被修改为类似\text{Avec $590$ €, puis-je acheter 2 billets à $240$ € et un troisième billet à $50$ % de réduction ?} ,您仍然不会看到换行符。 所以对于这种内容,最好不要将所有内容都推到\text{} (无论如何最好,imho)。


This is expected behavior for this specific example right now.

MathJax's line breaking does not work within MathML token elements right now (and this TeX example will internally be converted into a single mtext element). Support for this is planned but the docs are not too clear on either fact.

You would need to drop out of \text to get breaks (or have $...$ inside it for MathJax to drop out).[actually, see 2nd update below]

Note that line breaking has other, more general limitations, e.g., any table-like environment can only break within cells.

There is research into truly responsive equation rendering as well, see https://github.com/mathjax/MathJax-RespEq


Update. Something I forgot earlier. Your example is also inline math which MathJax only breaks if the equation is longer than the line. This is actually mentioned in the documentation. However, as I wrote, since it's internally just one token element, this does not happen in your example either.


Another update. There's one more content-specific problem, actually. The MathML line-breaking algorithm only allows breaks to happen at <mo> or <mspace> elements and MathJax follows this (since, as mentioned, it's a MathML renderer at heart). So even if your example is modified to something like \text{Avec $590$ €, puis-je acheter 2 billets à $240$ € et un troisième billet à $50$ % de réduction ?}, you still won't see line breaks. So for this kind of content, it's best not to push everything inside \text{} (which is best anyway, imho).

相关问答

更多
  • 实际上我不确定这在以前的版本中是如何工作的。 MathJax MediaWiki扩展的当前版本1.0需要完全本地安装MathJax 。 可以通过获取baseURL/MathJax/test来验证MathJax安装本身。 然后,扩展需要完全实现扩展的安装说明 ,这些说明比以前更加重要。 Actually I'm not sure how this was working in previous versions. The current version 1.0 of the MathJax MediaWiki ...
  • 当然可以使用mathjax与Jekyll。 要得到这个工作,请确保 如果您在降价中撰写帖子,您的降价解释器不会打击您的数学输入。 我发现的最好的保护方法是始终把
    元素和数组中的数学显示在元素中,大多数降级解释器都将离开。 javascript线在HTML源代码中是否正确显示? 我发现指向mathjax CDN而不是提供我自己的副本更容易和更快。 尝试使用该行