Index: scan_ref.c
===================================================================
--- scan_ref.c	(revision 33929)
+++ scan_ref.c	(working copy)
@@ -12,6 +12,7 @@
 #define LOWER 0
 #define UPPER 1
 #define CENTER 2
+#define NONE 3
 
 static int xok, yok;
 static int ymatch(char *, int *);
@@ -51,6 +52,8 @@
 	*xref = LEFT;
     else if (strcmp(word, "right") == 0)
 	*xref = RIGHT;
+    else if (strcmp(word, "none") == 0)
+	*xref = NONE;
     else
 	return 0;
     xok = 1;
@@ -74,6 +77,8 @@
 	*yref = LOWER;
     else if (strcmp(word, "bottom") == 0)
 	*yref = LOWER;
+    else if (strcmp(word, "none") == 0)
+	*yref = NONE;
     else
 	return 0;
     yok = 1;
Index: do_labels.c
===================================================================
--- do_labels.c	(revision 33929)
+++ do_labels.c	(working copy)
@@ -20,6 +20,7 @@
 #define LOWER 0
 #define UPPER 1
 #define CENTER 2
+#define NONE 3
 
 int do_labels(int other)
 {
@@ -134,12 +135,16 @@
 		X_just_offset = -35;
 	    if (xref == CENTER)
 		X_just_offset = 0;
+	    if (xref == NONE)
+		X_just_offset = 0;
 	    if (yref == UPPER)
 		Y_just_offset = 35;
 	    if (yref == LOWER)
 		Y_just_offset = -35;
 	    if (yref == CENTER)
 		Y_just_offset = 0;
+	    if (yref == NONE)
+		Y_just_offset = 0;
 
 	    /* adjust padding for given rotation */
 	    if (rotate != 0.0)
Index: textbox.c
===================================================================
--- textbox.c	(revision 33929)
+++ textbox.c	(working copy)
@@ -10,6 +10,7 @@
 #define LOWER 0
 #define UPPER 1
 #define CENTER 2
+#define NONE 3
 
 int
 text_box_path(double x, double y, int xref, int yref, char *text,
@@ -29,6 +30,7 @@
     fprintf(PS.fp, " 0 ");
 
     switch (xref) {
+    case NONE:
     case LEFT:
 	fprintf(PS.fp, "LTX");
 	break;
@@ -48,6 +50,7 @@
 	fprintf(PS.fp, "UTY");
 	break;
 
+    case NONE:
     case LOWER:
 	fprintf(PS.fp, "LTY");
 	break;
Index: mtextbox.c
===================================================================
--- mtextbox.c	(revision 33929)
+++ mtextbox.c	(working copy)
@@ -10,6 +10,7 @@
 #define LOWER 0
 #define UPPER 1
 #define CENTER 2
+#define NONE 3
 
 int multi_text_box_path(double x, double y,
 			int xref, int yref, char *text, int fontsize,
@@ -91,6 +92,7 @@
     fprintf(PS.fp, " 0 ");
 
     switch (xref) {
+    case NONE:
     case LEFT:
 	fprintf(PS.fp, "LMX");
 	break;
@@ -109,6 +111,7 @@
     case UPPER:
 	fprintf(PS.fp, "UMY");
 	break;
+    case NONE:
     case LOWER:
 	fprintf(PS.fp, "LMY");
 	break;

