## LaTeX forum ⇒ XeTeX ⇒ Problem creating captions and labels

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

### Problem creating captions and labels

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:

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

Tags:

localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm
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
LaTeX Community Moderator

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

Return to “XeTeX”

### Who is online

Users browsing this forum: No registered users and 3 guests