private RenderableObject generateLatex(Scanner inFile) {
		Point loc = null;
		String t = "";
		String current = inFile.next();
		while (inFile.hasNext()
				&& !(isCloseTag(current) && parseTag(current) == LegalTag.Object)) {
			if (isOpenTag(current)) {
				switch (parseTag(current)) {
				case Location:
					loc = new Point(inFile.nextInt(), inFile.nextInt());
					break;
				case Source:
					Pattern p = inFile.delimiter();
					inFile.useDelimiter("</Source>");
					t = inFile.next();
					inFile.useDelimiter(p);
					break;
				default:
					break;
				}
			}
			current = inFile.next();

		}
		RenderableLatex latex = new RenderableLatex(t);

		latex.setLocation(loc);

		return latex;
	}