@Override
	public Line getPrecFromTitle() {
		Section containingSection = ((TitleImp) this.getParent()).getParent();
		if(containingSection.getIndex() >= 1) {
			return containingSection.getParent().getSubSection(containingSection.getIndex() -1).getLastLine();
		}
		if (((TitleImp) this.getParent()).getParent().getParent() instanceof DocumentImp) {
			return ((DocumentImp) ((TitleImp) this.getParent()).getParent()
					.getParent()).getTextIntro().getLastLine();
		} else {
			Section parentSection = ((TitleImp) this.getParent()).getParent();
			Section precSection = parentSection.getPrecSection();
			// if the preceding section is the parent section, it returns the
			// last line of the textintro, or the title if the textintro is
			// empty
			if (precSection.equals(parentSection.getParent())) {
				if(precSection.getTextIntro().getLineNb() == 0)
					return precSection.getTitle().getLine();
				else
					return precSection.getTextIntro().getLastLine();
			}
			return parentSection.getPrecSection().getLastLine();
		}
	}