Qse: Quikscript Editor

Qse: Layout macros (macros.qs)

macros.qs is an example of how macros can be used in Qse. (Note that macros are not handled in Qs, but are interpreted by Qse in generating the PostScript that will be previewed or printed.) A set of Quikscript instructions is given a simple synonym, reducing the amount of typing and in this case allowing most features of a document style affecting size or alignment of text to be held in a single file, avoiding repetition of the same information within a document.

%M,Title% Very large, bold, centred line of text at the top of the page.
%M,Section% Large, bold text, separated from previous text by a larger inter-paragraph gap, and suitable to head a new major section of the document.
%M,Head% Large, bold text, separated from previous text by a larger inter-paragraph gap, and suitable for a sub-heading which will not interfere with the surrounding paragraph layout.
%M,Body% Normal text, preceded by a paragraph gap.
%M,Note% Small, bold text, intended as a heading for "Detail" text, preceded by an inter-paragraph gap.
%M,Detail% Smaller text, for giving explanatory detail about material given earlier, starting with an inter-paragraph gap.
%M,Small% Very small text at the current point in the document. This can be undone with %SZ%.
%M,DList% Start of a list of dot-points, with the first dot placed.
%M,DP% Next dot-point in the current list.
%M,DEnd% End of the list of dot-points.
%M,List% Start of a list, using a hanging first line style. Use either %T% or %L% according to preference to enlarge on the hanging text. Use %P% to go to the next list item.
%M,LEnd% End of a list using hanging first line style.
%M,Code% The following test is to be output using a monospaced font a little smaller than the normal text.
%M,Norm% Mark the end of "Code", reverting to previous font and size.
%M,Asis% Treat all white space and new-lines as intended in the output.
%M,Fmt% Ignore new-line characters, filling the output lines except when layout marks indicate otherwise.
%M,1% to %M,10% Output the number as white within a black circle.
%M,mi% Minus sign.
%M,rarrw% Right-pointing arrow.
%M,uparrw% Upwards-pointing arrow.

Tabs are preset to positions every 15 MM, accessible using %T,?1% etc. using numbers from 1-4 and then from 15-19.