TeX Live and MacTeXexam | Compilation fails on Ubuntu

Information and discussion about TeX Live distribution for all platforms (Windows, Linux, Mac OS X) and the related MacTeX: installing, updating, configuring
Post Reply
geronimo
Posts: 3
Joined: Mon Sep 05, 2011 9:53 pm

exam | Compilation fails on Ubuntu

Post by geronimo »

Hi,

I am not sure i have chosen the right place for this thread.

The problem is quite simple: I have prepared a questionnaire with the package "exam". The file compiles nicely in Windows (MiKTeX 2.9 and Texmaker) but does not in Ubuntu (Tex Live and Texmaker), where I get the message "Unknown checkboxes environment". The package "exam" seems to be installed, of course.

Here is a short code that works nicely in Windows:

Code: Select all

\documentclass[addpoints]{exam}
\textheight 9.75in
\usepackage[italian]{babel}
\usepackage{amssymb}
\usepackage[latin1]{inputenc}

\header{III B}{Questionario di Prova}{12 Ottobre 2011}
\firstpagefooter{}{Pagina \thepage\ di \numpages}{}
\runningfooter{}{Pagina \thepage\ di \numpages}{}
\headrule
\footrule

\checkboxchar{$\Box$}

\pointpoints{ punto}{ punti}

\begin{document}

\begin{questions}

\question Question

\begin{checkboxes}
\choice Answer A
\choice Answer B
\choice Answer C
\choice Answer D
\end{checkboxes}
\end{questions}


\end{document}
Thank you all!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: exam | Compilation fails on Ubuntu

Post by frabjous »

It compiles fine for me with TeXlive 2011 on Arch Linux. If you're still using the Ubuntu TeXlive packages, they may be out of date. Try putting \listfiles at the beginning of the code, and post the list of versions of the files that gets put in the .log. Compare the Windows/Ubuntu results, and it may shed some light.
geronimo
Posts: 3
Joined: Mon Sep 05, 2011 9:53 pm

Re: exam | Compilation fails on Ubuntu

Post by geronimo »

Hi frabjous,

I also downloaded the package from CTAN and tried to install it in Ubuntu, but the package comes without the file exam.ins.

I will do the check you suggest (I am working with Windows at the moment).
Do you know how I can install TexLive 2011 in Ubuntu?

Thank you a lot.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

exam | Compilation fails on Ubuntu

Post by frabjous »

geronimo wrote: Do you know how I can install TexLive 2011 in Ubuntu?
See here in the section "Vanilla TeXlive on Debian" for instructions on installing and creating a dummy package satisfying the Debian/Ubuntu package manager dependencies.
geronimo
Posts: 3
Joined: Mon Sep 05, 2011 9:53 pm

exam | Compilation fails on Ubuntu

Post by geronimo »

frabjous wrote:
See here in the section "Vanilla TeXlive on Debian" for instructions on installing and creating a dummy package satisfying the Debian/Ubuntu package manager dependencies.
It does not sound easy, at least for me, I am not a Linux expert. I will have a closer look at it tomorrow.

Thnak you very much!
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Re: exam | Compilation fails on Ubuntu

Post by sommerfee »

See also:

http://www.latex-community.org/forum/vi ... =20#p44096

Please note that there is no option "Create symlinks to standard directories" in the TL2011 installer (anymore), but one can easily do this in the TeXlive Manager GUI after installation.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

exam | Compilation fails on Ubuntu

Post by frabjous »

sommerfee wrote: Please note that there is no option "Create symlinks to standard directories" in the TL2011 installer (anymore), but one can easily do this in the TeXlive Manager GUI after installation.
That option was still there when I installed TL 2011!
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

exam | Compilation fails on Ubuntu

Post by sommerfee »

frabjous wrote:That option was still there when I installed TL 2011!
I just downloaded the actual installer (install-tl-20110906) and the option is not available when I start the default, non-gui install process (via "./install-tl").

But it is indeed available when using the installation with GUI (via "./install-tl -gui perltk").
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

exam | Compilation fails on Ubuntu

Post by frabjous »

sommerfee wrote:
frabjous wrote:That option was still there when I installed TL 2011!
I just downloaded the actual installer (install-tl-20110906) and the option is not available when I start the default, non-gui install process (via "./install-tl").

But it is indeed available when using the installation with GUI (via "./install-tl -gui perltk").
I didn't use the GUI, and it definitely is there anyway. You need to press O for options. Here's a screenshot of the options menu (it's not on the main menu, so maybe that's the issue):
tl.png
tl.png (40.06 KiB) Viewed 10701 times
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

exam | Compilation fails on Ubuntu

Post by sommerfee »

frabjous wrote:I didn't use the GUI, and it definitely is there anyway.
Oh yes, you are right!
You need to press O for options.
When pressing "O" you'll see six options, and the latest one is about the symlinks. But in the main menu only the first five options are shown. :shock: (For that reason I thought this option has gone since AFAIR this was different in the TL2010 installer, all six options where shown there in the main menu as well.)
Post Reply