| 
					
				 | 
			
			
				@@ -1124,9 +1124,7 @@ LEVEL indicates the default depth for export." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	      (save-restriction 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		(widen) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		(goto-char (point-min)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		(and (let ((case-fold-search t)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		       (re-search-forward 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			"^#\\+LaTeX_CLASS:[ \t]*\\(-[a-zA-Z]+\\)" nil t)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		(and (re-search-forward "^#\\+LaTeX_CLASS:[ \t]*\\(-[a-zA-Z]+\\)" nil t) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		     (match-string 1)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	    (plist-get org-export-latex-options-plist :latex-class) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	    org-export-latex-default-class) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1140,10 +1138,8 @@ LEVEL indicates the default depth for export." 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	      (save-restriction 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		(widen) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		(goto-char (point-min)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		(and (let ((case-fold-search t)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		       (re-search-forward 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			"^#\\+LaTeX_CLASS_OPTIONS:[ \t]*\\(.*?\\)[ \t]*$" nil t) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		       (match-string 1))))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		(and (re-search-forward "^#\\+LaTeX_CLASS_OPTIONS:[ \t]*\\(.*?\\)[ \t]*$" nil t) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		     (match-string 1)))) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	    (plist-get org-export-latex-options-plist :latex-class-options)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	org-export-latex-class 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	(or (car (assoc org-export-latex-class org-export-latex-classes)) 
			 |