LaTeX forum ⇒ XeTeXProblem 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

Postby paulsp » Wed Jun 26, 2013 12:41 pm

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:

  1. \begin{figure}[htb]
  2. \adjustbox{trim=1.3cm 14.7cm 3cm 4.7cm,clip}{%
  3. \includegraphics{filename}
  4. }
  5. \caption{the caption}
  6. \label{figg}
  7. \end{figure}


Any suggestions would be very gratefully received.

Tags:

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

Postby localghost » Wed Jun 26, 2013 7:00 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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ 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 5 guests