public Scope getNextSweaveChunk()
{
ScopeList scopeList = new ScopeList(docDisplay_);
scopeList.selectAll(ScopeList.CHUNK);
final Position selectionEnd = docDisplay_.getSelectionEnd();
return scopeList.findFirst(new ScopePredicate()
{
@Override
public boolean test(Scope scope)
{
return scope.getPreamble().compareTo(selectionEnd) > 0;