[sword-svn] r3352 - trunk/utilities/diatheke

refdoc at crosswire.org refdoc at crosswire.org
Tue Mar 17 10:31:11 MST 2015


Author: refdoc
Date: 2015-03-17 10:31:11 -0700 (Tue, 17 Mar 2015)
New Revision: 3352

Modified:
   trunk/utilities/diatheke/corediatheke.cpp
Log:
improved output for LaTeX


Modified: trunk/utilities/diatheke/corediatheke.cpp
===================================================================
--- trunk/utilities/diatheke/corediatheke.cpp	2015-03-16 23:44:44 UTC (rev 3351)
+++ trunk/utilities/diatheke/corediatheke.cpp	2015-03-17 17:31:11 UTC (rev 3352)
@@ -514,13 +514,15 @@
 					if (outputformat == FMT_LATEX) {
 						VerseKey *outkey = new VerseKey(target->getKey());
 						if (outkey->getVerse() == 1) {
-							*output << "\n\\swordchapter{"
-							        << outkey->getChapter()
-							        << "}";
+							*output << "\n\\swordchapter{" 
+								<< outkey->getOSISRef() << "}{"
+								<< outkey->getText() << "}{" 
+								<< outkey->getChapter() << "}";
 						}
 						*output << "\\swordverse{"
-							<< outkey->getVerse()
-							<< "} ";
+							<< outkey->getOSISRef() << "}{"
+							<< outkey->getText() << "}{" 
+							<< outkey->getVerse() << "} ";
 						
 						}
 					else { 						
@@ -577,10 +579,16 @@
 				if (outputformat == FMT_LATEX) {
 					VerseKey *outkey = new VerseKey(target->getKey());
 					if (outkey->getVerse() == 1) {
-						*output << "\n\\swordchapter{"  << outkey->getChapter() << "}";
+						*output << "\n\\swordchapter{" 
+							<< outkey->getOSISRef() << "}{" 
+							<< outkey->getText() << "}{" 
+							<< outkey->getChapter() << "}";
 					}
 					
-					*output << "\\swordverse{" << outkey->getVerse() << "} ";
+					*output << "\\swordverse{"
+						<< outkey->getOSISRef() << "}{" 
+						<< outkey->getText() << "}{" 
+						<< outkey->getVerse() << "} ";
 					
 				}	
 				else { 						




More information about the sword-cvs mailing list