Subject: mailing-list for TeXmacs Users
List archive
From : Karl Hegbloom <address@hidden>- To: Corey Sweeney <address@hidden>
- Cc: address@hidden
- Subject: Re: [TeXmacs] Folding, for exams with answer key?
- Date: Wed, 09 Nov 2005 23:25:48 -0800
On Wed, 2005-11-09 at 17:07 -0600, Corey Sweeney wrote:
> Insert->fold->folded->default
> Then type "this is the exposed part" click the blue circle (which will
> become a blue dot). a new line will appear. type in the new line
> "this is the hidden part". your done entering. Now click the blue
> circle several times and see the hidden part disapear and reapear.
No, not quite. What I want is for it to have a certain amount of vspace
for the student to perform the calculations and write in the answer when
it's printed as an exam. When it's printed as the answer key, it should
show the answer.
With the standard folding, if you put the vspace in the part that shows
when it's folded, it's still there when the answer is showing.
Hmmm... It just occurred to me that I could *nest* the folds. At the
top level of the outer fold, is another fold. When it's folded, it's
blank. When it's unfolded...
Ok; I've got it *mostly* figured out. See the attached document for
details. I'm still stuck wrt creating a single macro that makes the
folded answer block happen. I tried to create \answer, but it won't let
me move inside of it to edit. I can't figure out the right \drd-props
magic to make it work the way I want.
I'll keep reading the manual, but if anyone knows how I can do it,
please let me know.
--
Karl Hegbloom <address@hidden>
<TeXmacs|1.0.5.11>
<style|<tuple|exam|tmdoc-keyboard|tmdoc-markup|exam-answer>>
<\body>
<\hide-preamble>
<assign|folded|<value|folded-plain>>
<assign|unfolded|<value|unfolded-plain>>
</hide-preamble>
<class|<TeXmacs> 101 -- Karl Hegbloom
<verbatim|\<less\>address@hidden\<gtr\>>><title-date|<date|>>
<\title>
Sample Exam with embedded answer key
</title>
<\problem>
The problem is that you want to embed an answer key into the document.
When it is printed as an exam, there should be enough blank paper between
problems for the student to perform calculations and write the answer.
<with|font-shape|italic|To find out the answer, press <key|F11>. Notice
how space for writing the answer appears below the problem description.
Now push <key|F11> again, or click the <menu|Insert|Fold|Unfold|Text>
menu.>
<\folded>
<fold-back|<unfolded|<hflush>( \ /10)|<vspace|1in>>>
<|folded>
The solution involves, as you see, the use of nested folding blocks of
text. \ Here's the sequence that created this block, using the menus or
keyboard:
<\enumerate-numeric>
<item><menu|Insert|Fold|Folded|Default>, or type the shortcut <key|\\
f o l d e d> (and press <key|Enter> to activate it).
<item><menu|Insert|Fold|Traversal|Fold Back>, or type the shortcut
<key|\\ f o l d - b a c k>.
<item>Repeat step 1, and then type <key|Meta-Tab> to get flush-right
text, and enter the ``( \ /10)''. That is in the always-shown part of
the inside fold.
<item>Press <key|Shift-F11> to unfold the inner fold, and then type
<key|\\ v s p a c e> to create the vertical space. Enter a
measurement, such as ``1.5in', and press <key|Enter> again. Note that
nothing will seem to happen unless there is text below where you are.
Later, when this fold is displayed and there is text below it, the
vertical space will be evident.
<item>Push <key|F10 Home Left Shift-F11> and type the answer key.
</enumerate-numeric>
When you are done typing the exam, go to the menu, and select
<menu|Insert|Fold|Fold|All>, then <menu|Insert|Fold|Unfold|Vspace> to
open up the writing spaces so you can print the student exam. Then,
select <menu|Insert|Fold|Unfold|All>, and finally
<menu|Insert|Fold|Fold|Vspace> to display the answer key.
</folded>
</problem>
<\problem>
The second problem is ...
<\enumerate-alpha>
<item>That's a lot of typing and menuing around. It would be nice to
cut down on the number of keystrokes required.
<\folded>
<fold-back|<unfolded|<hflush>( \ /10)|<vspace|1in>>>
<|folded>
Todo: Write the answer here after learning it.
</folded>
<item>The blue dots from the <markup|folded-std> environment are
visible in the postscript output. I don't think they are supposed to
be, but they are. \ How can this be fixed?
<\folded>
<fold-back|<unfolded|<hflush>( \ /10)|<vspace|1in>>>
<|folded>
Go to <menu|Document|Part|Create/Show Preamble>, and use the toolbar
and keyboard to enter:
<\tm-fragment>
<inactive*|<assign|folded|<value|folded-plain>>>
<no-indent><inactive*|<assign|unfolded|<value|unfolded-plain>>>
</tm-fragment>
That's ``assign'', ``folded'', ``value'', ``folded-plain'' <emdash>
you can see it in this sample exam's preamble.
</folded>
<item>To be continued...
<\folded>
<fold-back|<unfolded|<hflush>( \ /10)|<vspace|1in>>>
<|folded>
Todo: Write the answer here.
</folded>
</enumerate-alpha>
</problem>
<hrule>
This is just some text below the above so you can see that something is
happening when you unfold the vertical space in the question above.
</body>
<\initial>
<\collection>
<associate|language|american>
<associate|page-medium|paper>
<associate|page-show-hf|true>
<associate|page-type|letter>
<associate|par-hyphen|professional>
<associate|preamble|false>
</collection>
</initial>
<\references>
<\collection>
<associate|auto-1|<tuple|1|1>>
<associate|auto-2|<tuple|1|?>>
<associate|auto-3|<tuple|2|?>>
<associate|auto-4|<tuple|5|?>>
<associate|auto-5|<tuple|5|?>>
<associate|auto-6|<tuple|5|?>>
<associate|auto-7|<tuple|5|?>>
<associate|auto-8|<tuple|b|?>>
<associate|prob:2b|<tuple|b|?>>
</collection>
</references>
<\auxiliary>
<\collection>
<\associate|idx>
<tuple|<tuple|<with|font-family|<quote|ss>|Insert>|<with|font-family|<quote|ss>|Fold>|<with|font-family|<quote|ss>|Unfold>>|<pageref|auto-1>>
</associate>
</collection>
</auxiliary>
- Folding, for exams with answer key?, Karl Hegbloom, 11/09/2005
- Re: [TeXmacs] Folding, for exams with answer key?, Corey Sweeney, 11/10/2005
- Re: [TeXmacs] Folding, for exams with answer key?, Karl Hegbloom, 11/10/2005
- Re: [TeXmacs] Folding, for exams with answer key?, Karl Hegbloom, 11/10/2005
- Re: [TeXmacs] Folding, for exams with answer key., Karl Hegbloom, 11/10/2005
- Re: [TeXmacs] Folding, for exams with answer key?, Joris van der Hoeven, 11/11/2005
- Re: [TeXmacs] Folding, for exams with answer key?, Karl Hegbloom, 11/10/2005
- Re: [TeXmacs] Folding, for exams with answer key?, Corey Sweeney, 11/10/2005
Archive powered by MHonArc 2.6.19.