Я использую Vim Latex Suite, и мне он нравится. Но есть некоторые моменты в который не делает то, что я хочу.
Из файла .vim / compiler / tex.vim
:
" Depending on the 'ignore-level', the following kinds of messages are
" ignored. An ignore level of 3 for instance means that messages 1-3 will be
" ignored. By default, the ignore level is set to 4.
"
" 1. LaTeX Warning: Specifier 'h' changed to 't'.
" This errors occurs when TeX is not able to correctly place a floating
" object at a specified location, because of which it defaulted to the
" top of the page.
" 2. LaTeX Warning: Underfull box ...
" 3. LaTeX Warning: Overfull box ...
" both these warnings (very common) are due to \hbox settings not being
" satisfied nicely.
" 4. LaTeX Warning: You have requested ...,
" This warning occurs in slitex when using the xypic package.
" 5. Missing number error:
" Usually, when the name of an included eps file is spelled incorrectly,
" then the \bb-error message is accompanied by a bunch of "missing
" number, treated as zero" error messages. This level ignores these
" warnings.
" NOTE: number 5 is actually a latex error, not a warning!
В этом списке ничего не упоминается об отсутствующих пакетах. Это можно заметить, если компиляция Tex-файла, имеющего \ usepackage
, которого нет в системе. m пытается использовать Selenium RC и WebDriver (по отдельности) для управления HTML-страницей. Источник содержит что-то вроде:
<a href="/logoff"><span>
<span>L</span>
ogoff
</span>
</a>
Я хочу настроить таргетинг на ссылку, содержащую текст «Выход из системы», так, чтобы она продолжала работать, даже если они переделают интервалы. Я использую XPath, поскольку он должен работать как в WebDriver, так и в Selenium RC. Это работает в IE, но немного хрупко:
//a[contains(., 'ogoff')]
и это было бы более надежно, но не работает:
//a[.='Logoff']
Вы можете объяснить, почему второй не работает? В частности, как следует .
интерпретироваться как строка, и как это делают Selenium и WebDriver?
Я пытаюсь заставить Selenium работать и с Firefox, так что это откроет еще один котел червей.