XeTeXProblem creating captions and labels

Information and discussion about XeTeX, an alternative for pdfTeX based on e-Tex
Post Reply
paulsp
Posts: 2
Joined: Wed Jun 26, 2013 12:24 pm

Problem creating captions and labels

Post by paulsp »

Hello! I'm a relative novice with LaTeX and am in teh process of modifying some of my old pdfLaTeX scripts to run under XeLaTex. I've managed to get everything working except labels and captions.

When I run the script I get teh following error:

!LaTeX Error: Command \nobreakspace unavailable in encoding T1.

... then it terminates.

Here is the offending section of the script

Code: Select all

\begin{figure}[htb]
\adjustbox{trim=1.3cm 14.7cm 3cm 4.7cm,clip}{%
\includegraphics{filename}
}
\caption{the caption}
\label{figg}
\end{figure}
Any suggestions would be very gratefully received.

Recommended reading 2024:

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

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem creating captions and labels

Post by localghost »

paulsp wrote:[…] Here is the offending section of the script […] Any suggestions would be very gratefully received. […]
A self-contained and minimal example would be much better as part of an adequate problem description. Otherwise it is almost impossible to give specific help here.

I only wonder why you need the adjustbox package instead of just using the trim option for the \includegraphics command provided by graphicx.


Best regards and welcome to the board
Thorsten
Post Reply