<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style>
</head>
<body><div style="font-family:Arial;">Doug, Lucas, and Justin,<br></div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">Thank you very much for your reply.<br></div>
<div style="font-family:Arial;">This is exactly what I wanted, and will employ, for problems that I code.<br></div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">What can be done for problems that others have authored?<br></div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">Thanks<br></div>
<div style="font-family:Arial;">Itay<br></div>
<div style="font-family:Arial;"><br></div>
<div><br></div>
<div>On Mon, 5 Mar 2018, at 23:08, Justin Gray wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div style="font-family:Arial;">Here is a sample problem that uses a block for after solved:<br></div>
<div><br></div>
<div><div><problem><startouttext />Enter the correct answer 42 to see the hidden text or image:<endouttext /><br></div>
<div><numericalresponse answer="42"><br></div>
<div><br></div>
<div><br></div>
<div>    <textline readonly="no" spellcheck="none" /><br></div>
<div>    <br></div>
<div></numericalresponse><br></div>
<div><span style="white-space:pre;"></span><br></div>
<div><span style="white-space:pre;"></span><solved><br></div>
<div>    <img encrypturl="no" /><startouttext /><p>Hooray!</p><endouttext /><br></div>
<div><span style="white-space:pre;"></span></solved><br></div>
<div></problem><br></div>
</div>
<div><br></div>
<div>Note that the solution could be, for example, a text/HTML block or an image.<br></div>
<div><br></div>
<div>Justin<br></div>
</div>
<div><div style="font-family:Arial;"><br></div>
<div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><br></div>
<div style="color:rgb(102, 102, 102);">Justin Gray | Senior Lecturer<br></div>
<div style="font-family:Arial;"><span class="colour" style="color:rgb(102, 102, 102)">Department of Mathematics | Simon Fraser University</span><br></div>
<div style="font-family:Arial;"><span class="colour" style="color:rgb(102, 102, 102)">8888 University Drive, Burnaby | V5A 1S6 | Canada</span><br></div>
<div style="font-family:Arial;"><span class="colour" style="color:rgb(102, 102, 102)">Tel: +1 778.782.4237</span><br></div>
</div>
<div dir="ltr"><span class="colour" style="color:rgb(102, 102, 102)"></span><br></div>
<div dir="ltr"><img src="cid:0786efd7371599bc51452b5fedd54d152d0fae84@zimbra" style="color:rgb(0, 0, 0);font-family:verdana,helvetica,sans-serif;font-size:16px;" width="200" height="30"><span class="colour" style="color:rgb(102, 102, 102)"></span><br></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="font-family:Arial;"><br></div>
<div defang_data-gmailquote="yes"><div style="font-family:Arial;">On Mon, Mar 5, 2018 at 1:03 PM, Mills, Douglas G <span dir="ltr"><<a href="mailto:dmills@illinois.edu">dmills@illinois.edu</a>></span> wrote:<br></div>
<blockquote defang_data-gmailquote="yes" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div bgcolor="white" lang="EN-US"><div><p><span class="font" style="font-family:Calibri"><span class="size" style="font-size:13pt">HI Itay,<u></u><u></u></span></span><br></p><p><span class="font" style="font-family:Calibri"><span class="size" style="font-size:13pt"><u></u> <u></u></span></span><br></p><p><span class="font" style="font-family:Calibri"><span class="size" style="font-size:13pt">There these very handy "Blocks" you can insert in your problem code and I think the "postanswerdate" block will do what you want, but I'm including all four that can be found from the Insert
 menu on the "colorful" editor.  I would describe these as predefined conditionals so the postanswerdate pair, for example, will only display what is within the opening and closing tags after the answer has become available.  If you put your link to a solution
 PDF inside a pair of postanswerdate tags, that should do what you're looking for. The others work analogously I believe.<u></u><u></u></span></span><br></p><p><span class="font" style="font-family:Calibri"><span class="size" style="font-size:13pt"><u></u> <u></u></span></span><br></p><p><span class="font" style="font-family:Calibri"><span class="size" style="font-size:13pt">            <postanswerdate></<wbr>postanswerdate><u></u><u></u></span></span><br></p><p><span class="font" style="font-family:Calibri"><span class="size" style="font-size:13pt">            <preduedate></preduedate><u></u><u></u></span></span><br></p><p><span class="font" style="font-family:Calibri"><span class="size" style="font-size:13pt">            <solved></solved><u></u><u></u></span></span><br></p><p><span class="font" style="font-family:Calibri"><span class="size" style="font-size:13pt">            <notsolved></notsolved><u></u><u></u></span></span><br></p><p><span class="font" style="font-family:Calibri"><span class="size" style="font-size:13pt"><u></u> <u></u></span></span><br></p><p><span class="font" style="font-family:Calibri"><span class="size" style="font-size:13pt"><u></u> <u></u></span></span><br></p><div><p><span class="colour" style="color:black"><span class="font" style="font-family:Calibri"><u></u> <u></u></span></span><br></p><div><p><span class="colour" style="color:black"><span class="font" style="font-family:Calibri">Doug<u></u><u></u></span></span><br></p></div>
<div><div><p><span class="colour" style="color:black"><span class="font" style="font-family:Calibri"><u></u> <u></u></span></span><br></p></div>
<div><p><span class="colour" style="color:black"><span class="font" style="font-family:Calibri">Douglas Mills<u></u><u></u></span></span><br></p></div>
<div><p><span class="colour" style="color:black"><span class="font" style="font-family:Calibri">Director of Instructional Technology<u></u><u></u></span></span><br></p></div>
<div><p><span class="colour" style="color:black"><span class="font" style="font-family:Calibri">Department of Chemistry<u></u><u></u></span></span><br></p></div>
<div><p><span class="colour" style="color:black"><span class="font" style="font-family:Calibri">University of Illinois<u></u><u></u></span></span><br></p></div>
</div>
</div>
<p><span class="font" style="font-family:Calibri"><span class="size" style="font-size:13pt"><u></u> <u></u></span></span><br></p><p><span class="font" style="font-family:Calibri"><span class="size" style="font-size:13pt"><u></u> <u></u></span></span><br></p><div style="border-right-width:medium;border-bottom-width:medium;border-left-width:medium;border-right-style:none;border-bottom-style:none;border-left-style:none;border-right-color:currentcolor;border-bottom-color:currentcolor;border-left-color:currentcolor;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image-source:none;border-image-slice:100% 100% 100% 100%;border-image-width:1 1 1 1;border-image-outset:0 0 0 0;border-image-repeat:stretch stretch;border-top-width:1pt;border-top-style:solid;border-top-color:rgb(181, 196, 223);padding-top:3pt;padding-right:0in;padding-bottom:0in;padding-left:0in;"><p style="margin-left:0.5in;"><b><span class="colour" style="color:black"><span class="font" style="font-family:Calibri">From: </span></span></b><span class="colour" style="color:black"><span class="font" style="font-family:Calibri">LON-CAPA-users <<a href="mailto:lon-capa-users-bounces@mail.lon-capa.org">lon-capa-users-bounces@mail.<wbr>lon-capa.org</a>> on behalf of Itay <<a href="mailto:itayf@nospammail.net">itayf@nospammail.net</a>><br> <b>Reply-To: </b>Discussion list for LON-CAPA users <<a href="mailto:lon-capa-users@mail.lon-capa.org">lon-capa-users@mail.lon-capa.<wbr>org</a>><br> <b>Date: </b>Monday, March 5, 2018 at 2:34 PM<br> <b>To: </b>Discussion list for LON-CAPA users <<a href="mailto:lon-capa-users@mail.lon-capa.org">lon-capa-users@mail.lon-capa.<wbr>org</a>><br> <b>Subject: </b>[LON-CAPA-users] How to automatically display solution for a problem?<u></u><u></u></span></span></p></div>
<div><div><div><p style="margin-left:0.5in;"><u></u> <u></u><br></p></div>
<div><p style="margin-left:0.5in;"><span class="font" style="font-family:Arial">Hi<u></u><u></u></span><br></p></div>
<div><p style="margin-left:0.5in;"><span class="font" style="font-family:Arial"><u></u> <u></u></span><br></p></div>
<div><p style="margin-left:0.5in;"><span class="font" style="font-family:Arial">I failed to find a solution to this seemingly simple and universal issue.<u></u><u></u></span><br></p></div>
<div><p style="margin-left:0.5in;"><span class="font" style="font-family:Arial">Conditional sequences might be the mechanism I am looking for, but I could not find enough details and examples of implementation.<u></u><u></u></span><br></p></div>
<div><p style="margin-left:0.5in;"><span class="font" style="font-family:Arial"><u></u> <u></u></span><br></p></div>
<div><p style="margin-left:0.5in;"><span class="font" style="font-family:Arial">Assume I prepared and published a problem  'some.problem', and a corresponding solution 'solution.pdf'.<u></u><u></u></span><br></p></div>
<div><p style="margin-left:0.5in;"><span class="font" style="font-family:Arial">I imported the problem into a course and set the parameters duedate and answerdate.<u></u><u></u></span><br></p></div>
<div><p style="margin-left:0.5in;"><span class="font" style="font-family:Arial"><u></u> <u></u></span><br></p></div>
<div><p style="margin-left:0.5in;"><span class="font" style="font-family:Arial">I am looking for a mechanism that will allow me<u></u><u></u></span><br></p></div>
<div><p style="margin-left:0.5in;"><span class="font" style="font-family:Arial">(1) to include a reference to the 'solution.pdf' inside 'some.problem'; and<u></u><u></u></span><br></p></div>
<div><p style="margin-left:0.5in;"><span class="font" style="font-family:Arial">(2) will display 'solution.pdf' to the students only when 'answerdate' is reached and the answer for 'some.problem' is displayed.<u></u><u></u></span><br></p></div>
<div><p style="margin-left:0.5in;"><span class="font" style="font-family:Arial">And I would like to achieve this for every problem inside a folder and/or a course.<u></u><u></u></span><br></p></div>
<div><p style="margin-left:0.5in;"><span class="font" style="font-family:Arial"><u></u> <u></u></span><br></p></div>
<div><p style="margin-left:0.5in;"><span class="font" style="font-family:Arial">I would appreciate any hints on how to achieve that.<u></u><u></u></span><br></p></div>
<div><p style="margin-left:0.5in;"><span class="font" style="font-family:Arial"><u></u> <u></u></span><br></p></div>
<div><p style="margin-left:0.5in;"><span class="font" style="font-family:Arial">Thanks in advance,<u></u><u></u></span><br></p></div>
<div><p style="margin-left:0.5in;"><span class="font" style="font-family:Arial">Itay<u></u><u></u></span><br></p></div>
<div><p style="margin-left:0.5in;"><span class="font" style="font-family:Arial"><u></u> <u></u></span><br></p></div>
<div><p style="margin-left:0.5in;"><span class="font" style="font-family:Arial"><u></u> <u></u></span><br></p></div>
</div>
</div>
</div>
</div>
<div style="font-family:Arial;"><br></div>
<div style="font-family:Arial;">______________________________<wbr>_________________<br></div>
<div style="font-family:Arial;"> LON-CAPA-users mailing list<br></div>
<div style="font-family:Arial;"> <a href="mailto:LON-CAPA-users@mail.lon-capa.org">LON-CAPA-users@mail.lon-capa.<wbr>org</a><br></div>
<div style="font-family:Arial;"> <a href="http://mail.lon-capa.org/mailman/listinfo/lon-capa-users">http://mail.lon-capa.org/<wbr>mailman/listinfo/lon-capa-<wbr>users</a><br></div>
<div style="font-family:Arial;"> <br></div>
</blockquote></div>
</div>
<div><u>_______________________________________________</u><br></div>
<div>LON-CAPA-users mailing list<br></div>
<div><a href="mailto:LON-CAPA-users@mail.lon-capa.org">LON-CAPA-users@mail.lon-capa.org</a><br></div>
<div><a href="http://mail.lon-capa.org/mailman/listinfo/lon-capa-users">http://mail.lon-capa.org/mailman/listinfo/lon-capa-users</a><br></div>
</blockquote><div style="font-family:Arial;"><br></div>
</body>
</html>