Thanks for taking care of this so quickly. We are planning to upgrade to the new release over the winter break, so hopefully that will take care of it.
Rex Abert Associate Professor of Mathematics Tallahassee Community College ________________________________________ From: lon-capa-users-boun...@mail.lon-capa.org [lon-capa-users-boun...@mail.lon-capa.org] on behalf of Stuart Raeburn [raeb...@msu.edu] Sent: Tuesday, December 6, 2016 12:55 PM To: lon-capa-users@mail.lon-capa.org Subject: Re: [LON-CAPA-users] Possible bug in printing composite pages? Rex, That would be a bug. This issue occurs when the print option: "Selected Resources from page <name of page>" is chosen for a composite page, and the first selected item is an HTML file. I have filed a bug, see: http://bugs.loncapa.org/show_bug.cgi?id=6840 , and have implemented a solution; see the bug report for details, including how to patch a 2.11.1 LON-CAPA instance to eliminate the bug. If you don't want to make changes server-side at this time, a workaround is to add a published problem (containing a <part>) as the first resource, and then include the part ID for that single part in the setting for "List of hidden parts" for the resource in the course. (You might also set the weight parameter to zero). If you do that, the unwanted LaTeX header will be absent from the PDF printout (although there will be a horizontal rule -- i.e., the separator between the first (blank) resource and the next item (the content of the HTML file, which is the second resource). Stuart Raeburn LON-CAPA Academic Consortium Quoting Rex Abert <abe...@tcc.fl.edu>: > > > I've noticed that when printing composite pages that are assembled > from html files and problems, some of the LaTeX junk from the > preamble ends up on the pdf file. Has anyone encountered this and > found a work-around? > > Here is a link to a sample printout of a composite page > > http://www.math.fsu.edu/~rabert/05binomialTheorem.pdf > > Here is the beginning of the TeX file for the pdf created by Lon-Capa: > > > > % &Apache::lonxml::londefdef > \documentclass[letterpaper,twoside]{article}\raggedbottom\batchmode\newcommand{\keephidden}[1]{}\renewcommand{\deg}{$^{\circ}$}\usepackage{multirow}\usepackage{longtable}\usepackage{textcomp}\usepackage{makeidx}\usepackage[dvips]{graphicx}\usepackage{wrapfig}\usepackage{picins}\usepackage[T1]{fontenc} > \usepackage{lmodern} > \usepackage[postscript]{ucs} > \usepackage[utf8x]{inputenc} > \usepackage{pifont} > \usepackage{latexsym} > \usepackage{epsfig}\usepackage{xtab} > \usepackage{tabularx} > \usepackage{booktabs} > \usepackage{array} > \usepackage{colortbl} > \usepackage{xcolor} > \usepackage{calc}\usepackage{longtable}\usepackage{amsmath}\usepackage{soul}\usepackage{amssymb}\usepackage{amsfonts}\usepackage{amsthm}\usepackage{amscd}\usepackage{picins}\usepackage{calc} > \usepackage[T1]{fontenc} > \usepackage{lmodern} > \usepackage[postscript]{ucs} > \usepackage[utf8x]{inputenc} > \usepackage{pifont} > \newenvironment{choicelist}{\begin{list}{}{\setlength{\rightmargin}{0in}\setlength{\leftmargin}{0.13in}\setlength{\topsep}{0.05in}\setlength{\itemsep}{0.022in}\setlength{\parsep}{0in}\setlength{\belowdisplayskip}{0.04in}\setlength{\abovedisplayskip}{0.05in}\setlength{\abovedisplayshortskip}{-0.04in}\setlength{\belowdisplayshortskip}{0.04in}}}{\end{list}}\renewenvironment{theindex}{\begin{list}{}{{\vskip > 1mm \noindent \large\textbf{Index}} \newline > \setlength{\rightmargin}{0in}\setlength{\leftmargin}{0.13in}\setlength{\topsep}{0.01in}\setlength{\itemsep}{0.1in}\setlength{\parsep}{-0.02in}\setlength{\belowdisplayskip}{0.01in}\setlength{\abovedisplayskip}{0.01in}\setlength{\abovedisplayshortskip}{-0.04in}\setlength{\belowdisplayshortskip}{0.01in}}}{\end{list}}\textheight > 9.1 in \oddsidemargin= -0.25 in \evensidemargin= -0.25 in > \setlength{\topmargin}{0.275 > in} > \textwidth= 7.1 in > \newlength{\minipagewidth}\setlength{\minipagewidth}{\textwidth/1-0.2cm} > \renewcommand{\ref}{\keephidden}\usepackage{fancyhdr}\addtolength{\headheight}{\baselineskip}\pagestyle{fancy}\rhead{}\chead{}\lhead{\textbf{Rex > Abert} - MAC 1140, Fall 2016 \hfill \thepage \\ \textit{Learning Module - > Binomial > Theorem}}\usepackage{booktabs}\usepackage[USenglish]{babel} > \begin{document}{\normalsize > \voffset=-0.8 cm\setcounter{page}{1} > % &Apache::lonxml::londefdef > \documentclass[letterpaper,twoside]{article}\raggedbottom\batchmode\newcommand{\keephidden}[1]{}\renewcommand{\deg}{$^{\circ}$}\usepackage{multirow}\usepackage{longtable}\usepackage{textcomp}\usepackage{makeidx}\usepackage[dvips]{graphicx}\usepackage{wrapfig}\usepackage{picins}\usepackage[T1]{fontenc} > \usepackage{lmodern} > \usepackage[postscript]{ucs} > \usepackage[utf8x]{inputenc} > \usepackage{pifont} > \usepackage{latexsym} > \usepackage{epsfig}\usepackage{xtab} > \usepackage{tabularx} > \usepackage{booktabs} > \usepackage{array} > \usepackage{colortbl} > \usepackage{xcolor} > \usepackage{calc}\usepackage{amsmath}\usepackage{soul}\usepackage{amssymb}\usepackage{amsfonts}\usepackage{amsthm}\usepackage{amscd}\usepackage{picins}\usepackage{calc} > \usepackage[T1]{fontenc} > \usepackage{lmodern} > \usepackage[postscript]{ucs} > \usepackage[utf8x]{inputenc} > \usepackage{pifont} > \newenvironment{choicelist}{\begin{list}{}{\setlength{\rightmargin}{0in}\setlength{\leftmargin}{0.13in}\setlength{\topsep}{0.05in}\setlength{\itemsep}{0.022in}\setlength{\parsep}{0in}\setlength{\belowdisplayskip}{0.04in}\setlength{\abovedisplayskip}{0.05in}\setlength{\abovedisplayshortskip}{-0.04in}\setlength{\belowdisplayshortskip}{0.04in}}}{\end{list}}\renewenvironment{theindex}{\begin{list}{}{{\vskip > 1mm \noindent \large\textbf{Index}} \newline > \setlength{\rightmargin}{0in}\setlength{\leftmargin}{0.13in}\setlength{\topsep}{0.01in}\setlength{\itemsep}{0.1in}\setlength{\parsep}{-0.02in}\setlength{\belowdisplayskip}{0.01in}\setlength{\abovedisplayskip}{0.01in}\setlength{\abovedisplayshortskip}{-0.04in}\setlength{\belowdisplayshortskip}{0.01in}}}{\end{list}}\begin{document} > \keephidden{Title of the document: The Binomial Theorem} > \strut\newline {\large \textbf{The Binomial Theorem}}\vskip 0 mm > \par \strut\\\strut > The Binomial Theorem provides a method for the expansion of a > binomial raised to a power. For this class, we will be looking at > binomials raised to whole number powers, in the form \ensuremath{ > (A+B)^n }. > \par \strut\\\strut > > (....document continues) > > Rex Abert > Associate Professor of Mathematics > Tallahassee Community College > > > > _______________________________________________ > LON-CAPA-users mailing list > LON-CAPA-users@mail.lon-capa.org > http://mail.lon-capa.org/mailman/listinfo/lon-capa-users _______________________________________________ LON-CAPA-users mailing list LON-CAPA-users@mail.lon-capa.org http://mail.lon-capa.org/mailman/listinfo/lon-capa-users _______________________________________________ LON-CAPA-users mailing list LON-CAPA-users@mail.lon-capa.org http://mail.lon-capa.org/mailman/listinfo/lon-capa-users