Re: examdesign layout, or multiple-choice questions in LyX
As requested, I've attached a sample LyX file that uses the exam layout. In this file you can see some of the tricks I used to get around a few of the shortcomings of exam.cls. I now use the examdesign.cls with ordinary LaTeX because it seems better for my own needs. --Jason Waskiewicz Bowman County High School #LyX 2.0.0beta1 created this file. For more info see http://www.lyx.org/ \lyxformat 407 \begin_document \begin_header \textclass exam \begin_preamble \usepackage{color} \shadedsolutions \renewcommand{\solutiontitle}{} \pagestyle{head} \lhead{\oddeven{\large\bf Biology\\ Eighth Test}} \chead[Score: \enspace\hbox to 0.33in{\hrulefill} {\numpoints}]{} \rhead{\oddeven{Name: \enspace\hbox to 2in{\hrulefill}\\ Date: \enspace\hbox to 2in{\hrulefill}}{}} \printanswers \pointsinrightmargin \addpoints \end_preamble \use_default_options false \maintain_unincluded_children false \language english \inputencoding auto \fontencoding global \font_roman default \font_sans default \font_typewriter default \font_default_family default \use_xetex false \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \default_output_format default \output_sync 0 \bibtex_command default \index_command default \paperfontsize default \spacing single \use_hyperref false \papersize letterpaper \use_geometry false \use_amsmath 1 \use_esint 1 \use_mhchem 1 \use_mathdots 1 \cite_engine basic \use_bibtopic false \use_indices false \paperorientation portrait \suppress_date false \use_refstyle 0 \branch Key \selected 1 \filename_suffix 0 \color #55ff7f \end_branch \index Index \shortcut idx \color #008000 \end_index \secnumdepth 0 \tocdepth 0 \paragraph_separation indent \paragraph_indentation default \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \html_math_output 0 \html_be_strict false \end_header \begin_body \begin_layout Standard \align center \noun on Closed Notes \end_layout \begin_layout Standard Answer questions clearly. Show work for partial credit. When you complete the closed notes section, place it on the corner of your desk. I will pick it up. \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash begin{questions} \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash question[5] \end_layout \end_inset \end_layout \begin_layout Standard Question 1 \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash begin{choices} \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash choice \end_layout \end_inset \end_layout \begin_layout Standard choice 1 \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash choice \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset Branch Key status open \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash begin{solution} \end_layout \end_inset \end_layout \end_inset \end_layout \begin_layout Standard choice 2 (correct answer) \end_layout \begin_layout Standard \begin_inset Branch Key status open \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash end{solution} \end_layout \end_inset \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash choice \end_layout \end_inset \end_layout \begin_layout Standard choice 3 \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash choice \end_layout \end_inset \end_layout \begin_layout Standard choice 4 \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash end{choices} \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash question[5] \end_layout \end_inset \end_layout \begin_layout Standard Second Question \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash begin{choices} \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash choice \end_layout \end_inset \end_layout \begin_layout Standard choice 1 \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash choice \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset Branch Key status open \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash begin{solution} \end_layout \end_inset
Re: examdesign layout, or multiple-choice questions in LyX
As requested, I've attached a sample LyX file that uses the exam layout. In this file you can see some of the tricks I used to get around a few of the shortcomings of exam.cls. I now use the examdesign.cls with ordinary LaTeX because it seems better for my own needs. --Jason Waskiewicz Bowman County High School #LyX 2.0.0beta1 created this file. For more info see http://www.lyx.org/ \lyxformat 407 \begin_document \begin_header \textclass exam \begin_preamble \usepackage{color} \shadedsolutions \renewcommand{\solutiontitle}{} \pagestyle{head} \lhead{\oddeven{\large\bf Biology\\ Eighth Test}} \chead[Score: \enspace\hbox to 0.33in{\hrulefill} {\numpoints}]{} \rhead{\oddeven{Name: \enspace\hbox to 2in{\hrulefill}\\ Date: \enspace\hbox to 2in{\hrulefill}}{}} \printanswers \pointsinrightmargin \addpoints \end_preamble \use_default_options false \maintain_unincluded_children false \language english \inputencoding auto \fontencoding global \font_roman default \font_sans default \font_typewriter default \font_default_family default \use_xetex false \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \default_output_format default \output_sync 0 \bibtex_command default \index_command default \paperfontsize default \spacing single \use_hyperref false \papersize letterpaper \use_geometry false \use_amsmath 1 \use_esint 1 \use_mhchem 1 \use_mathdots 1 \cite_engine basic \use_bibtopic false \use_indices false \paperorientation portrait \suppress_date false \use_refstyle 0 \branch Key \selected 1 \filename_suffix 0 \color #55ff7f \end_branch \index Index \shortcut idx \color #008000 \end_index \secnumdepth 0 \tocdepth 0 \paragraph_separation indent \paragraph_indentation default \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \html_math_output 0 \html_be_strict false \end_header \begin_body \begin_layout Standard \align center \noun on Closed Notes \end_layout \begin_layout Standard Answer questions clearly. Show work for partial credit. When you complete the closed notes section, place it on the corner of your desk. I will pick it up. \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash begin{questions} \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash question[5] \end_layout \end_inset \end_layout \begin_layout Standard Question 1 \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash begin{choices} \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash choice \end_layout \end_inset \end_layout \begin_layout Standard choice 1 \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash choice \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset Branch Key status open \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash begin{solution} \end_layout \end_inset \end_layout \end_inset \end_layout \begin_layout Standard choice 2 (correct answer) \end_layout \begin_layout Standard \begin_inset Branch Key status open \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash end{solution} \end_layout \end_inset \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash choice \end_layout \end_inset \end_layout \begin_layout Standard choice 3 \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash choice \end_layout \end_inset \end_layout \begin_layout Standard choice 4 \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash end{choices} \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash question[5] \end_layout \end_inset \end_layout \begin_layout Standard Second Question \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash begin{choices} \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash choice \end_layout \end_inset \end_layout \begin_layout Standard choice 1 \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash choice \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset Branch Key status open \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash begin{solution} \end_layout \end_inset
Re: examdesign layout, or multiple-choice questions in LyX
As requested, I've attached a sample LyX file that uses the exam layout. In this file you can see some of the tricks I used to get around a few of the shortcomings of exam.cls. I now use the examdesign.cls with ordinary LaTeX because it seems better for my own needs. --Jason Waskiewicz Bowman County High School #LyX 2.0.0beta1 created this file. For more info see http://www.lyx.org/ \lyxformat 407 \begin_document \begin_header \textclass exam \begin_preamble \usepackage{color} \shadedsolutions \renewcommand{\solutiontitle}{} \pagestyle{head} \lhead{\oddeven{\large\bf Biology\\ Eighth Test}} \chead[Score: \enspace\hbox to 0.33in{\hrulefill} {\numpoints}]{} \rhead{\oddeven{Name: \enspace\hbox to 2in{\hrulefill}\\ Date: \enspace\hbox to 2in{\hrulefill}}{}} \printanswers \pointsinrightmargin \addpoints \end_preamble \use_default_options false \maintain_unincluded_children false \language english \inputencoding auto \fontencoding global \font_roman default \font_sans default \font_typewriter default \font_default_family default \use_xetex false \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \default_output_format default \output_sync 0 \bibtex_command default \index_command default \paperfontsize default \spacing single \use_hyperref false \papersize letterpaper \use_geometry false \use_amsmath 1 \use_esint 1 \use_mhchem 1 \use_mathdots 1 \cite_engine basic \use_bibtopic false \use_indices false \paperorientation portrait \suppress_date false \use_refstyle 0 \branch Key \selected 1 \filename_suffix 0 \color #55ff7f \end_branch \index Index \shortcut idx \color #008000 \end_index \secnumdepth 0 \tocdepth 0 \paragraph_separation indent \paragraph_indentation default \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \html_math_output 0 \html_be_strict false \end_header \begin_body \begin_layout Standard \align center \noun on Closed Notes \end_layout \begin_layout Standard Answer questions clearly. Show work for partial credit. When you complete the closed notes section, place it on the corner of your desk. I will pick it up. \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash begin{questions} \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash question[5] \end_layout \end_inset \end_layout \begin_layout Standard Question 1 \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash begin{choices} \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash choice \end_layout \end_inset \end_layout \begin_layout Standard choice 1 \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash choice \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset Branch Key status open \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash begin{solution} \end_layout \end_inset \end_layout \end_inset \end_layout \begin_layout Standard choice 2 (correct answer) \end_layout \begin_layout Standard \begin_inset Branch Key status open \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash end{solution} \end_layout \end_inset \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash choice \end_layout \end_inset \end_layout \begin_layout Standard choice 3 \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash choice \end_layout \end_inset \end_layout \begin_layout Standard choice 4 \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash end{choices} \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash question[5] \end_layout \end_inset \end_layout \begin_layout Standard Second Question \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash begin{choices} \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash choice \end_layout \end_inset \end_layout \begin_layout Standard choice 1 \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash choice \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset Branch Key status open \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash begin{solution} \end_layout \end_inset
Re: examdesign layout, or multiple-choice questions in LyX
Liviu Andronic landronimirc at gmail.com writes: Dear all I'm coming back with a question that was raised several times on the list, but that didn't yet get a definitive answer: creating multiple-choice exams using LyX. The exam.layout posted on the list [1] can be useful is some cases, but cannot be used for multiple choice. The examdesign.layout posted by Paul [2] may work after a minor modification (see attached), With LyX, I use Hirschorn's exam class: http://www-math.mit.edu/~psh/#ExamCls I found a layout file that requires a lot of ERT, but does successfully utilize all of the features of this class. I will attach it at the end, but should note that the credit does NOT belong to me. I prefer the Examdesign class and use it as regular TeX. I have not figured out how to set up a layout file in LyX which uses the nesting. I hope you find something here that you can use. The limitation I see with LyX is the ability to nest in a layout file. --Jason Waskiewicz Bowman County High School #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass{exam} # Exam textclass definition file. # Author : ettr...@informatik.uni-tuebingen.de # Input general definitions Input stdclass.inc # There are no chapters in an article. NoStyle Chapter NoStyle Chapter* NoStyle Section NoStyle Section* NoStyle Subsection NoStyle Subsection* NoStyle Subsubsection NoStyle Subsubsection* NoStyle Paragraph NoStyle Paragraph* NoStyle Subparagraph NoStyle Subparagraph* NoStyle Abstract NoStyle Bibliography MaxCounterCounter_Section SecNumDepth3 TocDepth3 # Change a bit Part and Part* Style Part AlignLeft AlignPossibleLeft TopSep2 BottomSep 1.5 Font SizeLarger EndFont End Style Part* AlignLeft AlignPossibleLeft TopSep2 BottomSep 1.5 Font SizeLarger EndFont End
Re: examdesign layout, or multiple-choice questions in LyX
On Sun, Nov 14, 2010 at 9:26 AM, Jason Waskiewicz jason.waskiew...@sendit.nodak.edu wrote: With LyX, I use Hirschorn's exam class: http://www-math.mit.edu/~psh/#ExamCls After a couple of quick checks, this class is the same as the one shipped with TeX Live. I found a layout file that requires a lot of ERT, but does successfully utilize all of the features of this class. I will attach it at the end, but should note that the credit does NOT belong to me. Thanks. After checking the documentation 'exam' is much more capable than Andrés' exam.layout would have you believe. Do you think you could also post (or send privately) an example of multiple choice LyX document using this class (and ettrich's exam.layout)? You could use loremipsumize.py in elyxer to anonymize the document. I prefer the Examdesign class and use it as regular TeX. I have not figured out how to set up a layout file in LyX which uses the nesting. I hope you find something here that you can use. The limitation I see with LyX is the ability to nest in a layout file. Yes, Steve has been singling out this very issue, too. Is anyone aware of any progress regarding nesting in a layout files? Does 2.0 have anything new to offer? If this is technically feasible, should I file a bug report? Regards Liviu --Jason Waskiewicz Bowman County High School #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass{exam} # Exam textclass definition file. # Author : ettr...@informatik.uni-tuebingen.de # Input general definitions Input stdclass.inc # There are no chapters in an article. NoStyle Chapter NoStyle Chapter* NoStyle Section NoStyle Section* NoStyle Subsection NoStyle Subsection* NoStyle Subsubsection NoStyle Subsubsection* NoStyle Paragraph NoStyle Paragraph* NoStyle Subparagraph NoStyle Subparagraph* NoStyle Abstract NoStyle Bibliography MaxCounter Counter_Section SecNumDepth 3 TocDepth 3 # Change a bit Part and Part* Style Part Align Left AlignPossible Left TopSep 2 BottomSep 1.5 Font Size Larger EndFont End Style Part* Align Left AlignPossible Left TopSep 2 BottomSep 1.5 Font Size Larger EndFont End -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: examdesign layout, or multiple-choice questions in LyX
On Sunday 14 November 2010 06:03:35 Liviu Andronic wrote: On Sun, Nov 14, 2010 at 9:26 AM, Jason Waskiewicz jason.waskiew...@sendit.nodak.edu wrote: I hope you find something here that you can use. The limitation I see with LyX is the ability to nest in a layout file. Yes, Steve has been singling out this very issue, too. Is anyone aware of any progress regarding nesting in a layout files? Does 2.0 have anything new to offer? If this is technically feasible, should I file a bug report? Here is the email where I troubleshot the compile failures down to the practice of nesting LaTeX code inside LyX styles: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg66171.html The thread that follows goes into possible solutions and eventually comes to the conclusion that it's insoluble without modifying LyX files to take LaTeX out of LyX style defs. If one could somehow take all the Preamble...EndPreamble code out of LyX styles and put it in the document preamble, the compile problems would go away. The only solution I can think of that doesn't involve reconstructing existing LyX files that distribute with LyX is a script that recurses through all included LyX files, removes LaTeX embedded in LyX styles, and moves it up to the document preamble, and then use THAT MASSIVE FILE as your layout file. Ugly! SteveT Steve Litt Recession Relief Package http://www.recession-relief.US Twitter: http://www.twitter.com/stevelitt
Re: examdesign layout, or multiple-choice questions in LyX
On Sun, Nov 14, 2010 at 6:37 PM, Steve Litt sl...@troubleshooters.com wrote: of any progress regarding nesting in a layout files? Does 2.0 have anything new to offer? If this is technically feasible, should I file a bug report? Here is the email where I troubleshot the compile failures down to the practice of nesting LaTeX code inside LyX styles: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg66171.html The thread that follows goes into possible solutions and eventually comes to the conclusion that it's insoluble without modifying LyX files to take LaTeX out of LyX style defs. If one could somehow take all the Preamble...EndPreamble code out of LyX styles and put it in the document preamble, the compile problems would go away. I haven't looked at the two threads attentively, but on a quick check this wasn't discussed: what about using one of the following tricks [1]? \AtEndOfClass {code} \AtEndOfPackage {code} \AtBeginDocument {code} I'm not sure that the code included in the last command is actually included in the preamble, but I have a feeling that it is treated as if it were. Could this help? [1] http://tex.loria.fr/general/new/clsguide.html#Sec:delays The only solution I can think of that doesn't involve reconstructing existing LyX files that distribute with LyX is a script that recurses through all included LyX files, removes LaTeX embedded in LyX styles, and moves it up to the document preamble, and then use THAT MASSIVE FILE as your layout file. Ugly! Yes, this doesn't sound very nice. :) Regards Liviu SteveT Steve Litt Recession Relief Package http://www.recession-relief.US Twitter: http://www.twitter.com/stevelitt -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: examdesign layout, or multiple-choice questions in LyX
Liviu Andronic landronimirc at gmail.com writes: Dear all I'm coming back with a question that was raised several times on the list, but that didn't yet get a definitive answer: creating multiple-choice exams using LyX. The exam.layout posted on the list [1] can be useful is some cases, but cannot be used for multiple choice. The examdesign.layout posted by Paul [2] may work after a minor modification (see attached), With LyX, I use Hirschorn's exam class: http://www-math.mit.edu/~psh/#ExamCls I found a layout file that requires a lot of ERT, but does successfully utilize all of the features of this class. I will attach it at the end, but should note that the credit does NOT belong to me. I prefer the Examdesign class and use it as regular TeX. I have not figured out how to set up a layout file in LyX which uses the nesting. I hope you find something here that you can use. The limitation I see with LyX is the ability to nest in a layout file. --Jason Waskiewicz Bowman County High School #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass{exam} # Exam textclass definition file. # Author : ettr...@informatik.uni-tuebingen.de # Input general definitions Input stdclass.inc # There are no chapters in an article. NoStyle Chapter NoStyle Chapter* NoStyle Section NoStyle Section* NoStyle Subsection NoStyle Subsection* NoStyle Subsubsection NoStyle Subsubsection* NoStyle Paragraph NoStyle Paragraph* NoStyle Subparagraph NoStyle Subparagraph* NoStyle Abstract NoStyle Bibliography MaxCounterCounter_Section SecNumDepth3 TocDepth3 # Change a bit Part and Part* Style Part AlignLeft AlignPossibleLeft TopSep2 BottomSep 1.5 Font SizeLarger EndFont End Style Part* AlignLeft AlignPossibleLeft TopSep2 BottomSep 1.5 Font SizeLarger EndFont End
Re: examdesign layout, or multiple-choice questions in LyX
On Sun, Nov 14, 2010 at 9:26 AM, Jason Waskiewicz jason.waskiew...@sendit.nodak.edu wrote: With LyX, I use Hirschorn's exam class: http://www-math.mit.edu/~psh/#ExamCls After a couple of quick checks, this class is the same as the one shipped with TeX Live. I found a layout file that requires a lot of ERT, but does successfully utilize all of the features of this class. I will attach it at the end, but should note that the credit does NOT belong to me. Thanks. After checking the documentation 'exam' is much more capable than Andrés' exam.layout would have you believe. Do you think you could also post (or send privately) an example of multiple choice LyX document using this class (and ettrich's exam.layout)? You could use loremipsumize.py in elyxer to anonymize the document. I prefer the Examdesign class and use it as regular TeX. I have not figured out how to set up a layout file in LyX which uses the nesting. I hope you find something here that you can use. The limitation I see with LyX is the ability to nest in a layout file. Yes, Steve has been singling out this very issue, too. Is anyone aware of any progress regarding nesting in a layout files? Does 2.0 have anything new to offer? If this is technically feasible, should I file a bug report? Regards Liviu --Jason Waskiewicz Bowman County High School #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass{exam} # Exam textclass definition file. # Author : ettr...@informatik.uni-tuebingen.de # Input general definitions Input stdclass.inc # There are no chapters in an article. NoStyle Chapter NoStyle Chapter* NoStyle Section NoStyle Section* NoStyle Subsection NoStyle Subsection* NoStyle Subsubsection NoStyle Subsubsection* NoStyle Paragraph NoStyle Paragraph* NoStyle Subparagraph NoStyle Subparagraph* NoStyle Abstract NoStyle Bibliography MaxCounter Counter_Section SecNumDepth 3 TocDepth 3 # Change a bit Part and Part* Style Part Align Left AlignPossible Left TopSep 2 BottomSep 1.5 Font Size Larger EndFont End Style Part* Align Left AlignPossible Left TopSep 2 BottomSep 1.5 Font Size Larger EndFont End -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: examdesign layout, or multiple-choice questions in LyX
On Sunday 14 November 2010 06:03:35 Liviu Andronic wrote: On Sun, Nov 14, 2010 at 9:26 AM, Jason Waskiewicz jason.waskiew...@sendit.nodak.edu wrote: I hope you find something here that you can use. The limitation I see with LyX is the ability to nest in a layout file. Yes, Steve has been singling out this very issue, too. Is anyone aware of any progress regarding nesting in a layout files? Does 2.0 have anything new to offer? If this is technically feasible, should I file a bug report? Here is the email where I troubleshot the compile failures down to the practice of nesting LaTeX code inside LyX styles: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg66171.html The thread that follows goes into possible solutions and eventually comes to the conclusion that it's insoluble without modifying LyX files to take LaTeX out of LyX style defs. If one could somehow take all the Preamble...EndPreamble code out of LyX styles and put it in the document preamble, the compile problems would go away. The only solution I can think of that doesn't involve reconstructing existing LyX files that distribute with LyX is a script that recurses through all included LyX files, removes LaTeX embedded in LyX styles, and moves it up to the document preamble, and then use THAT MASSIVE FILE as your layout file. Ugly! SteveT Steve Litt Recession Relief Package http://www.recession-relief.US Twitter: http://www.twitter.com/stevelitt
Re: examdesign layout, or multiple-choice questions in LyX
On Sun, Nov 14, 2010 at 6:37 PM, Steve Litt sl...@troubleshooters.com wrote: of any progress regarding nesting in a layout files? Does 2.0 have anything new to offer? If this is technically feasible, should I file a bug report? Here is the email where I troubleshot the compile failures down to the practice of nesting LaTeX code inside LyX styles: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg66171.html The thread that follows goes into possible solutions and eventually comes to the conclusion that it's insoluble without modifying LyX files to take LaTeX out of LyX style defs. If one could somehow take all the Preamble...EndPreamble code out of LyX styles and put it in the document preamble, the compile problems would go away. I haven't looked at the two threads attentively, but on a quick check this wasn't discussed: what about using one of the following tricks [1]? \AtEndOfClass {code} \AtEndOfPackage {code} \AtBeginDocument {code} I'm not sure that the code included in the last command is actually included in the preamble, but I have a feeling that it is treated as if it were. Could this help? [1] http://tex.loria.fr/general/new/clsguide.html#Sec:delays The only solution I can think of that doesn't involve reconstructing existing LyX files that distribute with LyX is a script that recurses through all included LyX files, removes LaTeX embedded in LyX styles, and moves it up to the document preamble, and then use THAT MASSIVE FILE as your layout file. Ugly! Yes, this doesn't sound very nice. :) Regards Liviu SteveT Steve Litt Recession Relief Package http://www.recession-relief.US Twitter: http://www.twitter.com/stevelitt -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: examdesign layout, or multiple-choice questions in LyX
Liviu Andronic gmail.com> writes: > > Dear all > I'm coming back with a question that was raised several times on the > list, but that didn't yet get a definitive answer: creating > multiple-choice exams using LyX. > > The exam.layout posted on the list [1] can be useful is some cases, > but cannot be used for multiple choice. The examdesign.layout posted > by Paul [2] may work after a minor modification (see attached), With LyX, I use Hirschorn's exam class: http://www-math.mit.edu/~psh/#ExamCls I found a layout file that requires a lot of ERT, but does successfully utilize all of the features of this class. I will attach it at the end, but should note that the credit does NOT belong to me. I prefer the Examdesign class and use it as regular TeX. I have not figured out how to set up a layout file in LyX which uses the nesting. I hope you find something here that you can use. The limitation I see with LyX is the ability to nest in a layout file. --Jason Waskiewicz Bowman County High School #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass{exam} # Exam textclass definition file. # Author :# Input general definitions Input stdclass.inc # There are no chapters in an article. NoStyle Chapter NoStyle Chapter* NoStyle Section NoStyle Section* NoStyle Subsection NoStyle Subsection* NoStyle Subsubsection NoStyle Subsubsection* NoStyle Paragraph NoStyle Paragraph* NoStyle Subparagraph NoStyle Subparagraph* NoStyle Abstract NoStyle Bibliography MaxCounterCounter_Section SecNumDepth3 TocDepth3 # Change a bit Part and Part* Style Part AlignLeft AlignPossibleLeft TopSep2 BottomSep 1.5 Font SizeLarger EndFont End Style Part* AlignLeft AlignPossibleLeft TopSep2 BottomSep 1.5 Font SizeLarger EndFont End
Re: examdesign layout, or multiple-choice questions in LyX
On Sun, Nov 14, 2010 at 9:26 AM, Jason Waskiewiczwrote: > With LyX, I use Hirschorn's exam class: http://www-math.mit.edu/~psh/#ExamCls > After a couple of quick checks, this class is the same as the one shipped with TeX Live. > I found a layout file that requires a lot of ERT, but does successfully > utilize > all of the features of this class. I will attach it at the end, but should > note > that the credit does NOT belong to me. > Thanks. After checking the documentation 'exam' is much more capable than Andrés' exam.layout would have you believe. Do you think you could also post (or send privately) an example of multiple choice LyX document using this class (and ettrich's exam.layout)? You could use loremipsumize.py in elyxer to anonymize the document. > I prefer the Examdesign class and use it as regular TeX. I have not figured > out > how to set up a layout file in LyX which uses the nesting. > > I hope you find something here that you can use. The limitation I see with LyX > is the ability to nest in a layout file. > Yes, Steve has been singling out this very issue, too. Is anyone aware of any progress regarding nesting in a layout files? Does 2.0 have anything new to offer? If this is technically feasible, should I file a bug report? Regards Liviu > --Jason Waskiewicz > Bowman County High School > > #% Do not delete the line below; configure depends on this > # \DeclareLaTeXClass{exam} > # Exam textclass definition file. > # Author : > > # Input general definitions > Input stdclass.inc > > # There are no chapters in an article. > NoStyle Chapter > NoStyle Chapter* > NoStyle Section > NoStyle Section* > NoStyle Subsection > NoStyle Subsection* > NoStyle Subsubsection > NoStyle Subsubsection* > NoStyle Paragraph > NoStyle Paragraph* > NoStyle Subparagraph > NoStyle Subparagraph* > NoStyle Abstract > NoStyle Bibliography > MaxCounter Counter_Section > SecNumDepth 3 > TocDepth 3 > > # Change a bit Part and Part* > Style Part > Align Left > AlignPossible Left > TopSep 2 > BottomSep 1.5 > > Font > Size Larger > EndFont > End > > Style Part* > Align Left > AlignPossible Left > TopSep 2 > BottomSep 1.5 > > Font > Size Larger > EndFont > End > > > > -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: examdesign layout, or multiple-choice questions in LyX
On Sunday 14 November 2010 06:03:35 Liviu Andronic wrote: > On Sun, Nov 14, 2010 at 9:26 AM, Jason Waskiewicz > >wrote: > > I hope you find something here that you can use. The limitation I see > > with LyX is the ability to nest in a layout file. > > Yes, Steve has been singling out this very issue, too. Is anyone aware > of any progress regarding nesting in a layout files? Does 2.0 have > anything new to offer? If this is technically feasible, should I file > a bug report? Here is the email where I troubleshot the compile failures down to the practice of nesting LaTeX code inside LyX styles: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg66171.html The thread that follows goes into possible solutions and eventually comes to the conclusion that it's insoluble without modifying LyX files to take LaTeX out of LyX style defs. If one could somehow take all the Preamble...EndPreamble code out of LyX styles and put it in the document preamble, the compile problems would go away. The only solution I can think of that doesn't involve reconstructing existing LyX files that distribute with LyX is a script that recurses through all included LyX files, removes LaTeX embedded in LyX styles, and moves it up to the document preamble, and then use THAT MASSIVE FILE as your layout file. Ugly! SteveT Steve Litt Recession Relief Package http://www.recession-relief.US Twitter: http://www.twitter.com/stevelitt
Re: examdesign layout, or multiple-choice questions in LyX
On Sun, Nov 14, 2010 at 6:37 PM, Steve Littwrote: >> of any progress regarding nesting in a layout files? Does 2.0 have >> anything new to offer? If this is technically feasible, should I file >> a bug report? > > Here is the email where I troubleshot the compile failures down to the > practice of nesting LaTeX code inside LyX styles: > > http://www.mail-archive.com/lyx-users@lists.lyx.org/msg66171.html > > The thread that follows goes into possible solutions and eventually comes to > the conclusion that it's insoluble without modifying LyX files to take LaTeX > out of LyX style defs. > > If one could somehow take all the Preamble...EndPreamble code out of LyX > styles and put it in the document preamble, the compile problems would go > away. > I haven't looked at the two threads attentively, but on a quick check this wasn't discussed: what about using one of the following tricks [1]? \AtEndOfClass {code} \AtEndOfPackage {code} \AtBeginDocument {code} I'm not sure that the code included in the last command is actually included in the preamble, but I have a feeling that it is treated as if it were. Could this help? [1] http://tex.loria.fr/general/new/clsguide.html#Sec:delays > The only solution I can think of that doesn't involve reconstructing existing > LyX files that distribute with LyX is a script that recurses through all > included LyX files, removes LaTeX embedded in LyX styles, and moves it up to > the document preamble, and then use THAT MASSIVE FILE as your layout file. > Ugly! > Yes, this doesn't sound very nice. :) Regards Liviu > SteveT > > Steve Litt > Recession Relief Package > http://www.recession-relief.US > Twitter: http://www.twitter.com/stevelitt > > -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail