[LON-CAPA-users] Answer Box issue & Style File - THANKS
Alison A Baski/FS/VCU
lon-capa-users@mail.lon-capa.org
Mon, 26 Feb 2007 13:07:42 -0500
This is a multipart message in MIME format.
--=_alternative 006394428525728E_=
Content-Type: text/plain; charset="US-ASCII"
Hi Todd,
THANK YOU so much for pointing out the units problem to me. Now, I have
exactly what I need (and know a little bit about LaTex now).
Alison
Todd Ruskell <truskell@mines.edu>
Sent by: lon-capa-users-admin@mail.lon-capa.org
02/26/2007 11:25 AM
Please respond to
lon-capa-users@mail.lon-capa.org
To
lon-capa-users@mail.lon-capa.org
cc
Subject
Re: [LON-CAPA-users] Answer Box issue & Style File
Alison,
The arguments of \framebox and \parbox need units. Something like
\parbox{150mm}
Todd
Alison A Baski/FS/VCU wrote:
>
> Hi Guy,
>
> Thanks for the pointers about the style file. I have created a style
> file (see below) that makes a box that I like when creating a PDF file
> (using Selected Problems from folder).
>
>
> *_HOWEVER_*, when I create a PDF file for a student (using Selected
> Problems from folder for Selected People), LaTeX does not successfully
> parse the text file.
>
> The following error message is created:
> Illegal unit of measure (pt inserted).
> 1.8\framebox[150]{\parbox{150}{ \vspace*{1cm}}}
>
> Is there something I am doing wrong here?
>
> Thanks,
> Alison
>
>
>
> _Style file_:
> <definetag name="textline">
> <render>
> <tex>\framebox[150]{\parbox{150}{ \vspace*{1cm}}}</tex>
> </render>
> </definetag>
>
>
>
>
>
> *Guy Albertelli II <guy@albertelli.com>*
> Sent by: lon-capa-users-admin@mail.lon-capa.org
>
> 02/26/2007 02:44 AM
> Please respond to
> lon-capa-users@mail.lon-capa.org
>
>
> To
> lon-capa-users@mail.lon-capa.org
> cc
>
> Subject
> Re: [LON-CAPA-users] Change size of "Answer" box
appearing on PDF printout?
>
>
>
>
>
>
>
>
> Hi Alison,
>
> You can turn the <textline /> into arbitray LaTeX code for printing.
>
> You'll need to create in CSTR a lon-capa style file
>
> (in CSTR
> Select action 'New Style File:' and give it a name.)
>
> In the edit mode change the contents of the .sty file to
>
> <definetag name="textline">
> <render>
> <tex>
> LaTeX you'd prefer to appear in replacment of the existing
> box. Examples of what you would want here are later in this
> email.
> </tex>
> </render>
> </definetag>
>
> Then publish this .sty file.
>
> Enter your course and
> - Click Main Menu
> - Click PARM
> - Click 'Set Course Environment'
> - Change the field 'Default XML Style File' to point to the file you
> just published. (You can use the 'Select Style File' link to get a
> window to navigate to it and pick it.)
> - Click 'Set Course Environment' to make this take effect
>
> Now if you navigate to the problem and print it should have the change
> you wanted.
>
> - this is a global change to your course, all problems that have a
> textline will print with the above change as long as the 'Default
> XML Style File' is set to this. By deleting this set value the
> printing will revert back to the way it worked before.
> (Ther are ways to work around this using the <block> tag inside of
> the <tex> tag in the .sty file, but I'll save that for a later email
> if still needed/wanted.)
>
> - If you want to change the effects of the sty file, chanign the sty
> and re-publishing it will take effect immeadiately if the PARM is
> set fo the course.
>
> Some examples of what to put between the <tex></tex>and their effects:
>
> This will leave a 3cm gap where the box previously appeared:
>
> <tex>\vspace*{3cm}</tex>
>
>
> This will create a box the width of the column of the sheet, and 3cm
> tall:
>
> <tex>\framebox[\textwidth]{\parbox{\textwidth}{ \vspace*{3cm} }}</tex>
>
>
> This will crate a box with 2 lines around it the width of a column of
> the sheet, ad 3cm tall:
>
> <tex>\fbox{\framebox[\textwidth]{\parbox{\textwidth}{
> \vspace*{3cm}}}}</tex>
>
>
> Hopefully this will work better for you?
>
>
> --
> guy@albertelli.com 0-7-0-9-27,137
> _______________________________________________
> LON-CAPA-users mailing list
> LON-CAPA-users@mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
>
--
Dr. Todd Ruskell
Senior Lecturer, Department of Physics Office: Meyer Hall 326
Colorado School of Mines Phone: 303-384-2080
1523 Illinois Street Fax: 303-273-3919
Golden, CO 80401
_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
--=_alternative 006394428525728E_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">Hi Todd,</font>
<br>
<br><font size=2 face="sans-serif">THANK YOU so much for pointing out the
units problem to me. Now, I have exactly what I need (and know a
little bit about LaTex now).</font>
<br>
<br><font size=2 face="sans-serif">Alison</font>
<br>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Todd Ruskell <truskell@mines.edu></b>
</font>
<br><font size=1 face="sans-serif">Sent by: lon-capa-users-admin@mail.lon-capa.org</font>
<p><font size=1 face="sans-serif">02/26/2007 11:25 AM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
lon-capa-users@mail.lon-capa.org</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">lon-capa-users@mail.lon-capa.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [LON-CAPA-users] Answer Box issue
& Style File</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>Alison,<br>
<br>
The arguments of \framebox and \parbox need units. Something like<br>
\parbox{150mm}<br>
<br>
Todd<br>
<br>
Alison A Baski/FS/VCU wrote:<br>
> <br>
> Hi Guy,<br>
> <br>
> Thanks for the pointers about the style file. I have created a style<br>
> file (see below) that makes a box that I like when creating a PDF
file<br>
> (using Selected Problems from folder).<br>
> <br>
> <br>
> *_HOWEVER_*, when I create a PDF file for a student (using Selected<br>
> Problems from folder for Selected People), LaTeX does not successfully<br>
> parse the text file.<br>
> <br>
> The following error message is created:<br>
> Illegal unit of measure (pt inserted).<br>
> 1.8\framebox[150]{\parbox{150}{ \vspace*{1cm}}}<br>
> <br>
> Is there something I am doing wrong here?<br>
> <br>
> Thanks,<br>
> Alison<br>
> <br>
> <br>
> <br>
> _Style file_:<br>
> <definetag name="textline"><br>
> <render><br>
> <tex>\framebox[150]{\parbox{150}{ \vspace*{1cm}}}</tex><br>
> </render><br>
> </definetag><br>
> <br>
> <br>
> <br>
> <br>
> <br>
> *Guy Albertelli II <guy@albertelli.com>*<br>
> Sent by: lon-capa-users-admin@mail.lon-capa.org<br>
> <br>
> 02/26/2007 02:44 AM<br>
> Please respond to<br>
> lon-capa-users@mail.lon-capa.org<br>
> <br>
> <br>
> To<br>
> lon-capa-users@mail.lon-capa.org<br>
> cc<br>
> <br>
> Subject<br>
> Re:
[LON-CAPA-users] Change size of "Answer" box appearing on PDF
printout?<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> Hi Alison,<br>
> <br>
> You can turn the <textline /> into arbitray LaTeX code for printing.<br>
> <br>
> You'll need to create in CSTR a lon-capa style file<br>
> <br>
> (in CSTR<br>
> Select action 'New Style File:' and give it a name.)<br>
> <br>
> In the edit mode change the contents of the .sty file to<br>
> <br>
> <definetag name="textline"><br>
> <render><br>
> <tex><br>
> LaTeX you'd prefer to appear
in replacment of the existing<br>
> box. Examples of what you
would want here are later in this<br>
> email.<br>
> </tex><br>
> </render><br>
> </definetag><br>
> <br>
> Then publish this .sty file.<br>
> <br>
> Enter your course and<br>
> - Click Main Menu<br>
> - Click PARM<br>
> - Click 'Set Course Environment'<br>
> - Change the field 'Default XML Style File' to point to the file you<br>
> just published. (You can use the 'Select Style File' link to
get a<br>
> window to navigate to it and pick it.)<br>
> - Click 'Set Course Environment' to make this take effect<br>
> <br>
> Now if you navigate to the problem and print it should have the change<br>
> you wanted.<br>
> <br>
> - this is a global change to your course, all problems that have a<br>
> textline will print with the above change as long as the 'Default<br>
> XML Style File' is set to this. By deleting this set value the<br>
> printing will revert back to the way it worked before.<br>
> (Ther are ways to work around this using the <block> tag
inside of<br>
> the <tex> tag in the .sty file, but I'll save that for
a later email<br>
> if still needed/wanted.)<br>
> <br>
> - If you want to change the effects of the sty file, chanign the sty<br>
> and re-publishing it will take effect immeadiately if the PARM
is<br>
> set fo the course.<br>
> <br>
> Some examples of what to put between the <tex></tex>and
their effects:<br>
> <br>
> This will leave a 3cm gap where the box previously appeared:<br>
> <br>
> <tex>\vspace*{3cm}</tex><br>
> <br>
> <br>
> This will create a box the width of the column of the sheet, and 3cm<br>
> tall:<br>
> <br>
> <tex>\framebox[\textwidth]{\parbox{\textwidth}{ \vspace*{3cm}
}}</tex><br>
> <br>
> <br>
> This will crate a box with 2 lines around it the width of a column
of<br>
> the sheet, ad 3cm tall:<br>
> <br>
> <tex>\fbox{\framebox[\textwidth]{\parbox{\textwidth}{<br>
> \vspace*{3cm}}}}</tex><br>
> <br>
> <br>
> Hopefully this will work better for you?<br>
> <br>
> <br>
> -- <br>
> guy@albertelli.com 0-7-0-9-27,137<br>
> _______________________________________________<br>
> LON-CAPA-users mailing list<br>
> LON-CAPA-users@mail.lon-capa.org<br>
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users<br>
> <br>
<br>
-- <br>
Dr. Todd Ruskell<br>
Senior Lecturer, Department of Physics Office: Meyer
Hall 326<br>
Colorado School of Mines
Phone: 303-384-2080<br>
1523 Illinois Street
Fax: 303-273-3919<br>
Golden, CO 80401<br>
_______________________________________________<br>
LON-CAPA-users mailing list<br>
LON-CAPA-users@mail.lon-capa.org<br>
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users<br>
</font></tt>
<br>
--=_alternative 006394428525728E_=--