<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">By the way, here is the result:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><img width="746" height="379" id="Picture_x0020_2" src="cid:image003.png@01CCB2B3.6FFCCB70"></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Also amend the \vspace[3ex] to your liking depending on how large your handwriting may be. This is to adjust the vertical height provided for the fill in lines.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Hubert Lam
<br>
<b>Sent:</b> Sunday, December 04, 2011 6:29 PM<br>
<b>To:</b> 'Amber K'; texhax@tug.org<br>
<b>Subject:</b> RE: [texhax] TeX underline & \hfill question<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi Amber K,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Are you trying to create lines for people to handwrite/fill in (cloze)?
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">If so here’s my implementation.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:solid windowtext 1.0pt;padding:1.0pt 4.0pt 1.0pt 4.0pt">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1F497D">\documentclass{article}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1F497D">\usepackage{calc}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1F497D">\newcommand{\Cloze}[1]{\begin{minipage}[b]{\widthof{\Huge \textbf{#1}}} \vspace{</span><span style="font-size:11.0pt;font-family:Consolas;color:#1F497D">3</span><span style="font-size:11.0pt;font-family:Consolas;color:#1F497D">ex}
 \dotfill \end{minipage}}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1F497D">% creates a minipage of the width of the required text which \dotfill can fill up
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1F497D">\begin{document}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1F497D">A \textbf{relation} is a \Cloze{rule} that maps \Cloze{elements} from the \Cloze{domain} to the \Cloze{range}.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1F497D">\end{document}<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">This will create dotted lines with variable length \dotfill s. The package calc does the magic in calculating the hspace required.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hubert<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a href="mailto:texhax-bounces@tug.org">texhax-bounces@tug.org</a> <a href="mailto:[mailto:texhax-bounces@tug.org]">
[mailto:texhax-bounces@tug.org]</a> <b>On Behalf Of </b>Amber K<br>
<b>Sent:</b> Sunday, December 04, 2011 5:40 PM<br>
<b>To:</b> <a href="mailto:support@tug.org">support@tug.org</a><br>
<b>Subject:</b> [texhax] TeX underline & \hfill question<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal">When I create lesson plans, I like to make handouts with lines that fill the page as well a solutions keys where I put text on the lines.  I've been manually adjusting the widtch value in inches one line at a time until they line up, and
 I'm really hoping there is an easier way.  <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Right now, if the handout looks like: <o:p></o:p></p>
</div>
<div>
<p style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0"><span style="color:#0060BF">Conclusion: \hrulefill</span><o:p></o:p></p>
<p style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0"><o:p> </o:p></p>
<p style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0">I am typing this for the key:<o:p></o:p></p>
<p style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0"><span style="color:#0060BF">Conclusion: \underline{\makebox[4.94in][s]{\color{red}{Answers will vary but should be based on evidence collected}{\hfill}}}<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0"><o:p> </o:p></p>
<p style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0">Where the 4.94in part was the value I needed to manually adjust.  When I want to have everything underlined, I found a suggestion online to do something like this: <o:p></o:p></p>
<p style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0"><o:p> </o:p></p>
<p style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0"><span style="color:#0060BF">\underline{\makebox[5.7in][s]{Choice 2: \color{red}{Students should select a second choice from one of the five options below. They }{\hfill}}}</span><o:p></o:p></p>
<p style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0"><o:p> </o:p></p>
<p style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0">This works extremely well for those cases, but I'm hoping there is way to do something like that without having to either have everything underlined or nothing at all.  I searched for a way to remove
 underlining from part of the command (like \textnormal) but I haven't found anything to work for removing underlining.  Any suggestion would be very greatly appreciated.<o:p></o:p></p>
<p style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0"><o:p> </o:p></p>
<p style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0">Thanks,<o:p></o:p></p>
<p style="margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0">Amber<o:p></o:p></p>
</div>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif""><o:p> </o:p></span></p>
</div>
</div>
</div>
</body>
</html>