17.07.2013 Views

Reference Manual

Reference Manual

Reference Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

APPENDIX D: Sample FORMCAP File<br />

Sample FORMCAP entries are included here for dot-matrix (impact) and laser printed labels of several types and<br />

for a laser printed loan invoice. See pages D-8-D-11 for sample printouts corresponding to these entries.<br />

JD|Jar Labels/Dot Matrix<br />

device#1<br />

default_font=font_p_def_0_10_u_m_courier<br />

x_units=mm<br />

y_units=mm<br />

sheet_width#120.0<br />

sheet_height#140.0<br />

forms_across#1<br />

forms_down#2<br />

form_x_gap#0.0<br />

form_y_gap#3.0<br />

/* form_height = (sheet_height - (forms_down - 1) * form_y_gap) / forms_down */<br />

/* y_offset == ( form_height + form_y_gap ) * form_num */<br />

/* y_offset == (sheet_height + form_y_gap) / forms_down * form_num */<br />

top_margin#0.0<br />

y_ic_space#4.0<br />

right_margin#116.0<br />

degree_char=ª /* Include this line only when latitude and longitude are each a single field. */<br />

seconds_char=" /* Include this line only when latitude and longitude are each a single field. */<br />

left_margin#2.5<br />

x_center#55.0<br />

large_step#10.0<br />

medium_step#7.5<br />

small_step#4.3<br />

tiny_step#1.25<br />

(left_margin, 3.0) "EVERYBODY'S NATURAL HISTORY MUSEUM" center_justify font_p_def_10_10_i_b_courier<br />

(left_margin, * + medium_step) "ENHM "+primary.catalog_number font_p_def_5_20_u_m_courier<br />

(right_margin, *) taxdict.family+":"+primary.group_number right_justify<br />

(left_margin, * + small_step) primary.type_status font_p_def_10_10_u_m_courier<br />

(right_margin, *) "Alc "+primary.number_alch+", Skel "+primary.number_skel+", C&S "+primary.number_CS right_justify<br />

(left_margin, * + 2.0) "______________________________________________" font_p_def_10_10_u_b_courier<br />

(left_margin, * + medium_step) primary.genus+" "+primary.species+" "+primary.subspecies font_p_def_0_20_u_m_courier<br />

(*, *) " "+primary.questionable questionable_convert font_p_def_0_20_u_m_courier<br />

(left_margin, * + 3.0) "______________________________________________" font_p_def_10_10_u_b_courier<br />

(left_margin, * + 6.1) locality.cont_ocean<br />

(x_center, *) locality.country<br />

(left_margin, * + small_step) "State: "+locality.state<br />

(x_center, *) "County: "+locality.county<br />

(left_margin, * + small_step + tiny_step) locality.locality two_line_field font_p_def_12_10_u_l_elite<br />

(left_margin, * + large_step) "Determ: "+primary.determiner font_p_def_12_10_u_l_elite<br />

/* Include the following line only when latitude and longitude are each split into separate degrees, minutes and seconds fields. */<br />

(69.0, *) locality.lat_degrees+"ª"+locality.lat_minutes+"'"+locality.lat_seconds+"\q"+locality.lat_NS+" " delete_if_empty font_p_def_12_10_u_m_elite<br />

/* Include the following line only when latitude and longitude are each split into separate degrees, minutes and seconds fields. */<br />

(*, *) locality.long_degrees+"ª"+locality.long_minutes+"'"+locality.long_seconds+"\q"+locality.long_EW delete_if_empty font_p_def_12_10_u_m_elite<br />

/* Include the following line only when latitude and longitude are each a single field. */<br />

(69.0, *) locality.latitude+" "+locality.longitude lat_char delete_if_empty font_p_def_12_10_u_m_elite<br />

(left_margin, * + small_step) "Col: "+locality.collector font_p_def_12_10_u_l_elite<br />

/* Include the following line to print a single date, not a range of dates. */<br />

(right_margin, *) locality.date date_convert right_justify font_p_def_12_10_u_l_elite<br />

/* Include the following line to print a range of dates. */<br />

(right_margin, *) locality.date+locality.date_2 two_date_convert right_justify font_p_def_12_10_u_l_elite<br />

(left_margin, * + small_step) "Fld No: "+locality.field_number font_p_def_12_10_u_l_elite<br />

(right_margin, *) "Size: "+primary.size right_justify font_p_def_12_10_u_l_elite<br />

####<br />

JL|Jar Labels/Laser<br />

device#2 /* laser printer */<br />

tray#2<br />

default_font=font_p_def_0_10_u_m_helvetica<br />

D: Sample FORMCAP File

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!