LaTeX forum ⇒ 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
geronimo
Posts: 3
Joined: Mon Sep 05, 2011 9:53 pm

exam | Compilation fails on Ubuntu

Postby geronimo » Mon Sep 05, 2011 10:06 pm

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:
  1. \documentclass[addpoints]{exam}
  2. \textheight 9.75in
  3. \usepackage[italian]{babel}
  4. \usepackage{amssymb}
  5. \usepackage[latin1]{inputenc}
  6.  
  7. \header{III B}{Questionario di Prova}{12 Ottobre 2011}
  8. \firstpagefooter{}{Pagina \thepage\ di \numpages}{}
  9. \runningfooter{}{Pagina \thepage\ di \numpages}{}
  10. \headrule
  11. \footrule
  12.  
  13. \checkboxchar{$\Box$}
  14.  
  15. \pointpoints{ punto}{ punti}
  16.  
  17. \begin{document}
  18.  
  19. \begin{questions}
  20.  
  21. \question Question
  22.  
  23. \begin{checkboxes}
  24. \choice Answer A
  25. \choice Answer B
  26. \choice Answer C
  27. \choice Answer D
  28. \end{checkboxes}
  29. \end{questions}
  30.  
  31.  
  32. \end{document}

Thank you all!

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am
Location: Amherst, MA

Postby frabjous » Mon Sep 05, 2011 10:13 pm

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.

Link:
BBcode:
HTML:
Hide post links
Show post links

geronimo
Posts: 3
Joined: Mon Sep 05, 2011 9:53 pm

Postby geronimo » Mon Sep 05, 2011 10:30 pm

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.

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am
Location: Amherst, MA

Postby frabjous » Mon Sep 05, 2011 10:40 pm

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.

Link:
BBcode:
HTML:
Hide post links
Show post links

geronimo
Posts: 3
Joined: Mon Sep 05, 2011 9:53 pm

Postby geronimo » Mon Sep 05, 2011 10:51 pm

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!

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
sommerfee
Posts: 495
Joined: Mon Apr 09, 2007 4:20 pm
Contact:

Postby sommerfee » Tue Sep 06, 2011 6:36 am

See also:

viewtopic.php?f=12&t=10920&start=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.

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am
Location: Amherst, MA

Postby frabjous » Tue Sep 06, 2011 1:38 pm

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!

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
sommerfee
Posts: 495
Joined: Mon Apr 09, 2007 4:20 pm
Contact:

Postby sommerfee » Tue Sep 06, 2011 7:07 pm

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").

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am
Location: Amherst, MA

Postby frabjous » Tue Sep 06, 2011 7:17 pm

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 3429 times

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
sommerfee
Posts: 495
Joined: Mon Apr 09, 2007 4:20 pm
Contact:

Postby sommerfee » Tue Sep 06, 2011 8:03 pm

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.)

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “TeX Live and MacTeX”

Who is online

Users browsing this forum: No registered users and 1 guest