🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: bit.listserv.wp50-l
3 messages
3 total messages Started by Alan Lacy Fri, 17 Jan 1992 21:17
(no)print text sections
#181
Author: Alan Lacy
Date: Fri, 17 Jan 1992 21:17
26 lines
1937 bytes
From a WP non-wizard ...
I use WP for typing many quizzes, exercise sheets, etc., in the courses I
teach.  What I would like to do is type the document once, including
underlining, etc, but with all the correct answers included.  I would then
like to have the ability to print out this master document once with the
answers NOT printed (to be used as masters for duplication), and then a
second time with all the additional information also printed. The idea is
to be able to do this printing by setting one switch.  It also naturally
eliminates almost-duplicate documents. 

The method which I presently use is the following:
The text is typed in normally, except that I enter each section of text for
suppression as a graphics equation box.  (I have set up a macro to enter
this, so that's not complicated now.) When I want the version to be printed
with blanks, I set GRAPHICS at 'Do Not Print' under S-F7, and when I make a
copy with full text, I can reset the Graphics switch at one of the other
levels.  This works, but I am not happy with the graphics text font used. 

Does anyone have a better idea, or failing that, does anyone know how to 
gain control of the characters generated by graphics?

Thanks in advance.

Alan F. Lacy
Marquette University
6160lacya@vms.csd.mu.edu
Re: (no)print text sections
#184
Author: Herbert E Sitz
Date: Sat, 18 Jan 1992 02:09
230 lines
11222 bytes
In article <00954C68.50946520@vms.csd.mu.edu> 6160lacya@vms.csd.mu.edu writes:
>From a WP non-wizard ...
>I use WP for typing many quizzes, exercise sheets, etc., in the courses I
>teach.  What I would like to do is type the document once, including
>underlining, etc, but with all the correct answers included.  I would then
>like to have the ability to print out this master document once with the
>answers NOT printed (to be used as masters for duplication), and then a
>second time with all the additional information also printed. The idea is
>to be able to do this printing by setting one switch.  It also naturally
>eliminates almost-duplicate documents. 
>
>The method which I presently use is the following:
>The text is typed in normally, except that I enter each section of text for
>suppression as a graphics equation box.  (I have set up a macro to enter
>this, so that's not complicated now.) When I want the version to be printed
>with blanks, I set GRAPHICS at 'Do Not Print' under S-F7, and when I make a
>copy with full text, I can reset the Graphics switch at one of the other
>levels.  This works, but I am not happy with the graphics text font used. 
>
>Does anyone have a better idea, or failing that, does anyone know how to 
>gain control of the characters generated by graphics?
>
>Thanks in advance.
>
>Alan F. Lacy
>Marquette University
>6160lacya@vms.csd.mu.edu



I think the WordPerfect merge function may provide a better
solution for your problem.  You can create a "secondary" file which
contains the questions and answers as separate "fields".  Then you
can create a primary file which instructs WP to "merge" specified
fields into a new file as laid out in a "primary" file.  When you
want just the questions to print out, just merge the secondary file
with a primary file specifying inclusion of only the question
field.  When you want both questions and answers to print out,
merge the secondary file with a primary file including both
question fields and answer fields.

This process might sound confusing at first, but is actually fairly
easy.  It has the added advantage over graphic boxes of allowing
you to see and edit the text of both questions and answers on
screen at the same time.  (Read the summary at the end of this post
for a quick overview of what is actuall going on.)

I will suggest how I would design the secondary file, and then
suggest what I would put in the primary file.

SECONDARY FILE (name it something like 'test.sec'):

     This is the main file you would use to enter the text of all
     questions and answers.  Enter all the text as you normally
     would, including bold, underline, etc.  But, as you go along,
     wherever the text of a question ends, enter a <ctrl-R> ('^R')
     (or in WP 5.1, an '{End Field}').  This '^R' tells WP that the
     current field (question field) has ended, and that the next
     field (answer field) has begun.

     Then enter the text for the answer.  Where the text for the
     answer ends, enter another '^R', and then enter a <ctrl-E>
     ('^E).  This tells WP that the answer field has ended (with
     the '^R'), and that this question answer combination is done
     so the next field will be the question field of a new "record"
     (in other words, a new question/answer combination).

     This sounds confusing, but is really simple.  Your secondary
     file would look like this:

               [Question 1 text: xxxxxx xxxxxx xxxxxx xxxxxxx
               xxxxxx xxxxxx xxxxxxx xxxxxx xxxxxxx]^R[HRt]
               [Answer 1 text: xxxxxx xxxxxx xxxxxx xxxxxxx xxxxxx
               xxxxxx xxxxxxx xxxxxx xxxxxxx]^R[HRt]
               ^E[HRt] (or [HPg])
               [HRt]
               [HRt]
               [Question 2 text: xxxxxx xxxxxx xxxxxx xxxxxxx
               xxxxxx xxxxxx xxxxxxx xxxxxx xxxxxxx]^R[HRt]
               [Answer 2 text: xxxxxx xxxxxx xxxxxx xxxxxxx xxxxxx
               xxxxxx xxxxxxx xxxxxx xxxxxxx]^R[HRt]
               ^E[HRt] (or [HPg])
               [HRt]
               [HRt]
               [Question 3 text: xxxxxx xxxxxx xxxxxx xxxxxxx
               xxxxxx xxxxxx xxxxxxx xxxxxx xxxxxxx]^R[HRt]
               [Answer 3 text: xxxxxx xxxxxx xxxxxx xxxxxxx xxxxxx
               xxxxxx xxxxxxx xxxxxx xxxxxxx]^R[HRt]
               ^E[HRt] (or [HPg])

     This example contains three "records", each composed of a
     question "field" and an answer "field".  Don't worry about the
     ^R's and the ^E's; this file will never be printed.  It will
     only be used with the primary file to create a merged file.
     The merged file will then be printed; but don't worry, it
     won't have any strange characters in it.  The control
     characters merely make it possible for WP to know what to
     merge where.

PRIMARY FILES:

     These are very simple files which simply tell WP what fields
     to take out of the secondary file when creating a merged file.
     You will create two primary files: one will contain
     instructions to merge only the question field into the merged
     document.  The other will contain instructions to merge both
     question and answer fields.

     Questions only primary file (perhaps named 'testqst.pri'):

          In WP 5.0 this file will contain only: ^F1^[HRt]^N^P^P.
          The ^F1^ character is created by typing <shft-F9>, 'F'
          (for field), and then '1' (for field# 1).  The other
          control characters can be typed in directly using <ctrl-
          N> and <ctrl-P>, or by using <shft-F9>,N or <shft-F9>,
          P.

          How it works:  The ^F1^ code tells WP to grab the text
          in the current record of the secondary file and put it
          in the merge file.  ^N then tells WP to move to the next
          record of the secondary file (that is, the next question
          answer combination).  ^P^P then sends WP back to the
          beginning of the primary file (^F1^) and the process
          begins all over again.  (The ^N^P^P would not normally
          be needed, but if they are ommitted, the questions will
          be merged with hard page breaks between them, and we you
          don't want that.)

     Questions with answers primary file (named testq&a.pri):

          This file will contain:

               ^F1^[HRt]
               ^F2^[HRt]^N^P^P

          The codes work the same as in the other primary file, but
          ^F2^ tells WP to include the second field in each record
          (the answer field) in addition to the first field.

MERGING THE FILES:

     Once the primary files are set up you can forget about them.
     They will never need to be changed.  The secondary file will
     be used to add/edit questions and answers.

     Merging questions only:

          When you want to print out the questions you "merge" the
          secondary file with the "questions only" primary file.
          Depending on the names you have given them, the process
          might look something like this:

               <ctrl-F9> (merge key)
               'M' (to specify 'merge', not sort)
               Primary file: testqst.pri
               Secondary file: test.sec

          The files will then be quickly merged and you will end
          up with a printable document on screen which contains
          only questions, not answers.

     Merging both questions and answers:

          To merge both questions and answers into a printable
          document, the process is the same as for merging
          questions only.  But when you are asked for the name of
          the primary file, give the name of the primary file
          specifying inclusion of both questions and answers:
          testq&a.pri.

NOTES:

1.   If you see mistakes in the text of the merged document after
     a merge is performed, don't edit them there.  Go back to the
     secondary file and make the edits, then do the merge over
     again.  If you edit only the merged file, the next time you
     merge the secondary file the mistake will reappear.

2.   For a better appearance in the merged document, you will want
     to make sure the questions/answers are separated by some hard
     returns.  You can do this either by including hard returns in
     the text of the secondary file, or by separating the ^F1^ and
     the ^F2^ in the primary file by several hard returns, and
     following the ^F2^ with several hard returns before the ^N^P^P
     codes.  Putting the hard returns in the primary file is easier
     because you only need to put in one set, rather than putting
     them in individually for every record in the secondary file.
     But the secondary file can be hard to read anyway if no hard
     returns are included in it.  So do whatever works best for
     you.

3.   The merge codes I have specified are those used by WP 5.0.
     WP 5.1 has many new merge codes and commands, but the
     secondary file can be entered the same way with ^R's and ^E's.
     The primary file is created in the same way, but WP 5.1 will
     display on the screen {Field}1~ instead of, for example, ^F1^.
     Also, instead of '^N^P^P', you can enter a {No Hard Page}
     code.  Do this by typing <shft-F9>, then selecting the 'No
     Hard Page' option.

SUMMARY:

The process looks complicated at first, but is actually very
simple.  You can design two different primary files and then forget
about them.  Just remember their names so you can specify them when
you run the 'merge' command.

Then enter and maintain the questions and answers in the secondary
file, making sure to observe the conventions of separating
questions from answers by a '^R', and of separating each answer
from the following question by both a '^R' and a '^E'.

Then, whenever you want to print a set of questions or
questions/answers, just merge (<ctrl-F9>) the appropriate primary
file with the secondary file and the desired document will appear
on screen.  The "switch" for determining what gets printed is the 
name of the primary file to use when merging.

The same two primary files can be used with an unlimited number of
secondary files.  Each test could be put in a different secondary
file.  You might for example have test1.sec, test2.sec, test3.sec,
etc.  All can be merged with either testqst.pri and testq&a.pri.


----------------------------------------------

Herb Sitz
hsitz@umaxc.weeg.uiowa.edu

______________________________________________
(no)print text sections
#241
Author: Ad Aerts
Date: Sat, 18 Jan 1992 23:34
26 lines
1945 bytes
In article <00954C68.50946520@vms.csd.mu.edu> 6160lacya@vms.csd.mu.edu writes:
  > From a WP non-wizard ...
  > I use WP for typing many quizzes, exercise sheets, etc., in the courses I
  > teach.  What I would like to do is type the document once, including
  > underlining, etc, but with all the correct answers included.  I would then
  > like to have the ability to print out this master document once with the
  > answers NOT printed (to be used as masters for duplication), and then a
  > second time with all the additional information also printed. The idea is
  > to be able to do this printing by setting one switch.  It also naturally
  > eliminates almost-duplicate documents. 

Another option could be a style code.  Create a 'closed' style code
that switches to 'white' print and returns to black print on exit.  In
another style file, make sure the same style code prints in black.
You'll still have extra whitespace.

Let me know if you run into a better trick.

BTW, I use a dutch WP, so the names I use may not equal the ones in a
non-Dutch version. I hope you understand what I mean anyway.

-------- Ad Aerts                   e-mail:                      -------------
-------- Sandenburg 77                                              ----------
-------- 2036 PB Haarlem            aerts@media02.uucp                 -------
-------- Netherlands                aerts%media02@nluug.nl                ----
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads