TeX Live and MacTeXTroubles With Memoir and MacTeX

Information and discussion about TeX Live distribution for all platforms (Windows, Linux, Mac OS X) and the related MacTeX: installing, updating, configuring
Post Reply
cjohnson
Posts: 6
Joined: Fri May 08, 2009 3:11 am

Troubles With Memoir and MacTeX

Post by cjohnson »

Hello. I have a document I've been working on for the past week on a Windows system with MikTeX. Yesterday I decided I wanted to work on my MacBook, which has MacTeX installed, but quickly ran into trouble. This isn't my only trouble, but one thing I've had issues with is using the pedersen chapterstyle in the memoir document class.

As an example, the following code

Code: Select all

\documentclass[a4paper,12pt]{memoir}
\begin{document}
\chapterstyle{pedersen}  
\chapter{Uno}
Stuff.
\end{document}
produces the error

Code: Select all

! Undefined control sequence.
<argument> \resizebox 
                      {!}{\midchapskip }{\chapnumfont \thechapter }
l.4 \chapter{Uno}
when I run 'xelatex test.tex'. I don't know if this is something really minor that I'm not seeing or if I'm missing something with my MacTeX install or what, so any help would be most appreciated! Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Troubles With Memoir and MacTeX

Post by Stefan Kottwitz »

Hi,

loading the graphicx package will fix it:

Code: Select all

\usepackage{graphicx}
Stefan
LaTeX.org admin
cjohnson
Posts: 6
Joined: Fri May 08, 2009 3:11 am

Troubles With Memoir and MacTeX

Post by cjohnson »

What you said worked, but I have another issue now. The image below was generated using MikTeX on Windows,
Image
The same code, when run through MacTeX on OS X gives this, however:
Image

(Here are the links to the images http://img132.imageshack.us/img132/4190/picture1tgu.png and http://img132.imageshack.us/img132/3316/picture2hoq.png in case they're not displaying right above.)
The actual code that's in the images above is

Code: Select all

\chapter{Semigroups \& Monoids} 
One of the most basic algebraic structures we can place on a set is
that of a magma.  A \definition{def:magma}{magma} is simply a set
along with a binary operation -- some way of
\marginpar{A binary operation on a set $S$ is a function $\cdot : S
  \times S \to S$ where we usually write $x \cdot y$ for $\cdot(x, y)$.}
combining two elements in the set and
getting another element in the set.
Where I'm using the memoir document class and the following in my preamble:

Code: Select all

\setlength{\marginparwidth}{1.2in}
\definecolor{grey}{gray}{0.5}
\let\oldmarginpar\marginpar
\renewcommand\marginpar[1]{\-\oldmarginpar[\raggedleft\footnotesize \textcolor{grey}{#1}]%
{\raggedright\footnotesize \textcolor{grey}{#1}}}

\let\oldchapter\chapter
\renewcommand\chapter[1]{\chapterstyle{pedersen} \oldchapter{#1}}
Any ideas?
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Troubles With Memoir and MacTeX

Post by josephwright »

Check the versions you are using of all of your packages with \listfles. It's quite likely one or more do not match.
Joseph Wright
Post Reply