LaTeX forum ⇒ XeTeXProblems compiling with XeLaTeX

Information and discussion about XeTeX, an alternative for pdfTeX based on e-Tex
rais
Posts: 133
Joined: Sun Nov 16, 2014 8:51 pm

Problems compiling with XeLaTeX

Postby rais » Tue Jul 11, 2017 10:01 pm

I stand corrected...

Perhaps you should inform the Open SuSE community about this problem.

Anyway, I'm running under TL`17 (where the problem you're facing, well, isn't a problem)

KR
Rainer

Tags:

User avatar
Stefan Kottwitz
Site Admin
Posts: 8259
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Wed Jul 12, 2017 3:21 am

Also I tested the code part that was posted in the meantime, and it worked with MacTeX 2017 (based on TeXLive 2017) without that error.

Stefan
Site admin

fabioonier
Posts: 21
Joined: Thu Jul 06, 2017 5:37 am

Postby fabioonier » Wed Jul 12, 2017 4:02 pm

Hi, everybody.

I've tried to install TexLive 2017 in my Opensuse Leap 42.2 and always the TL2016 is installed. When I looked at the Opensuse page, it appears that the TL2017 is available for Opensuse Leap 42.3, which will be released in a few days.

I could solve the problem between pstricks and XeLaTeX updating the pstricks.sty file. Now my problem is with another package. Let me show you the error message:

(/usr/share/texmf/tex/generic/oberdiek/pdftexcmds.sty
Package: pdftexcmds 2017/03/19 v0.25 Utility functions of pdfTeX for LuaTeX (HO
)
(/usr/share/texmf/tex/generic/oberdiek/ifluatex.sty
Package: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
)
! Undefined control sequence.
l.191 \@PackageInfoNoLine
{pdftexcmds}{LuaTeX not detected}%
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.

As you can see, I tried to solve it updating the oberdiek package but it didn't work. What else can I do?

Thanks for your help.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8259
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Wed Jul 12, 2017 4:16 pm

Hi Fabio,

try \usepackage{infwarerr} before loading hyperref or other packages that use the oberdiek bundle. This package defines that macro \@PackageInfoNoLine.

Stefan
Site admin

rais
Posts: 133
Joined: Sun Nov 16, 2014 8:51 pm

Postby rais » Wed Jul 12, 2017 5:41 pm

Hi Fabio,

if Stefan's tip doesn't cut it for you and you're still interested in trying out TeXlive 2017, there's a package on CTAN: texlive-dummy-opensuse, fooling the (Linux) package manager into believing TL is installed (to satisfy dependencies for other packages like kile).
With that, you should be able to install the current version of TL and keep it maintained with tlmgr, the TeXLive (package) manager.

(since I don't need a specially-for-TeX-designed editor or anything else from the repo's requiring TeX, I didn't even need that dummy package)

KR
Rainer

fabioonier
Posts: 21
Joined: Thu Jul 06, 2017 5:37 am

Postby fabioonier » Wed Jul 12, 2017 6:17 pm

Hi, Stefan. What you suggested worked. Thanks!

Now I have another error message (I don't know why XeLaTeX is son complicated!).

Package pdftexcmds Info: LuaTeX not detected.
Package pdftexcmds Info: pdfTeX >= 1.30 not detected.
! Undefined control sequence.
l.219 \ltx@IfUndefined
{pdftexversion}{%
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.219 \ltx@IfUndefined{p
dftexversion}{%
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
! Undefined control sequence.
l.221 \ifnum\pdftexversion
>120 % 1.21a supports \ifeof18
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Missing number, treated as zero.
<to be read again>
>
l.221 \ifnum\pdftexversion>
120 % 1.21a supports \ifeof18
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

I have made my research and I don't get how to solve this new error.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8259
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Thu Jul 13, 2017 5:39 am

Hm, can you add the command \listfiles to your document preamble, and post the .log file here, as attachment? Below the text edit field, when writing, there is an "Attachment" link.

I guess packages or the whole TeX installation is pretty outdated. \ltx@IfUndefined is a macro of the ltxcmds package, part of the oberdiek bundle, available since many years. I guess that should implicitly be loaded.

Perhaps make it yourself and add to your preamble:

\usepackage{ltxcmds}

Stefan
Site admin

fabioonier
Posts: 21
Joined: Thu Jul 06, 2017 5:37 am

Postby fabioonier » Thu Jul 13, 2017 3:04 pm

Algebra_lineal.log
This is the LOG file.
(159.5 KiB) Downloaded 2 times
Hi, Stefan. I added the package ltxcmds in the preamble... and it worked!!!!!!!!!

I don't know why XeLaTeX is so complicated! But, for now, I'm very happy because there is no error message when I compile with XeLaTeX.

Just I got a new problem. After I compile with XeLaTeX the PDF output generated is wrong: it only shows one picture and nothing about the text or the rest of the book.

I attached the Log file.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8259
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Thu Jul 13, 2017 6:15 pm

Strange. Can you please attach the (mostly empty) pdf file of that run?

Stefan
Site admin

fabioonier
Posts: 21
Joined: Thu Jul 06, 2017 5:37 am

Postby fabioonier » Tue Jul 18, 2017 4:54 pm

Hi, Stefan. I've been very busy these days and I coudn't answer before.

This is the file tha I get after compilation. It only shows the graphs made by \pstricks and they aren't shown completely.

Algebra_lineal.pdf
(44.62 KiB) Downloaded 1 time


I don't understand what is happening. It's like XeLaTeX is incompatible with pstricks. If it is the case, why it doesn't show the text instead of graphics?

I post the preamble of my document.
  1. \documentclass[letterpaper,reqno]{book}
  2. \listfiles
  3. \usepackage{makeidx}
  4. \usepackage[spanish,es-nosectiondot]{babel}
  5. \usepackage[utf8]{inputenc}
  6. \usepackage{fontspec}
  7. \usepackage{infwarerr}
  8. \usepackage{color}
  9. \usepackage{verbatim} %Para comentar bloques de texto
  10. \usepackage[text={168mm,240mm},centering]{geometry}%Define el ancho y la altura del texto (Página)
  11. \usepackage{amssymb,amsmath,amsthm}
  12. \usepackage{epsfig,graphicx,psfrag,float}
  13. \usepackage{ltxcmds}
  14. \usepackage[pdf]{pstricks}
  15. \usepackage{pstricks-add,pst-math,pst-xkey,pst-pdf,auto-pst-pdf}
  16. \usepackage[all]{xy}
  17. \usepackage{tocloft}% Este paquete modifica los parámetros de la Tabla de Contenidos (ToC)
  18. \usepackage{fancyhdr}
  19. \usepackage{titlesec}
  20. \usepackage{sectsty}
  21. \usepackage{enumerate}
  22. \usepackage{hyperref}
  23.  
  24. \makeindex
  25.  
  26. \DeclareMathOperator{\hocolim}{hocolim}
  27. \DeclareMathOperator{\map}{map}
  28. \DeclareMathOperator{\mor}{Mor}
  29. \DeclareMathOperator{\ob}{Ob}
  30. \DeclareMathOperator{\cone}{cone}
  31. \DeclareMathOperator{\inc}{inc}
  32. \DeclareMathOperator{\pr}{pr}
  33. \DeclareMathOperator{\torsion}{torsion}
  34. \DeclareMathOperator{\im}{im}
  35. \DeclareMathOperator{\coker}{coker}
  36. \DeclareMathOperator{\iso}{Isom}
  37. \DeclareMathOperator{\inte}{int}
  38. \definecolor{Gris}{gray}{0.92}
  39.  
  40. %Se definen las tipografias que se van a usar: Calibri para titulos y Georgia para el cuerpo
  41. \setmainfont{georgia.TTF}[%Fuente para el cuerpo
  42. Path=/usr/share/fonts/Win10/,
  43. BoldItalicFont=georgiaz.TTF,
  44. BoldFont =georgiab.TTF,
  45. ItalicFont =georgiai.TTF]
  46.  
  47. \newfontfamily\myfont{calibri.TTF}[%Fuente para secciones
  48. Path=/usr/share/fonts/Win10/,
  49. BoldItalicFont=calibriz.TTF,
  50. BoldFont =calibrib.TTF,
  51. ItalicFont =calibrii.TTF]
  52.  
  53. %Se redefinen las fuentes que se usarán en las secciones
  54. \titleformat{\chapter}[display]
  55. {\huge\myfont}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
  56. \allsectionsfont{\myfont}
  57.  
  58.  
  59. %Se redefinen los ambientes de lemma, theorem, definition, etc con las características solicitadas
  60. \newtheoremstyle{lemma}% Nombre del ambiente
  61. {3pt}% Space above
  62. {3pt}% Space below
  63. {\itshape}% Body font
  64. {}% Indent amount (empty = no indent, \parindent = para indent)
  65. {\bfseries}% Thm head font
  66. {}% Punctuation after thm head
  67. {.5em}% Space after thm head: " " = normal interword space;
  68. % \newline = linebreak
  69. {}% Thm head spec (can be left empty, meaning `normal')
  70. \theoremstyle{lemma}
  71. \newtheorem{lemma}{Lema}[chapter]
  72.  
  73. \newtheoremstyle{definition}% name
  74. {3pt}% Space above
  75. {3pt}% Space below
  76. {\itshape}% Body font
  77. {}% Indent amount (empty = no indent, \parindent = para indent)
  78. {\bfseries}% Thm head font
  79. {}% Punctuation after thm head
  80. {.5em}% Space after thm head: " " = normal interword space;
  81. % \newline = linebreak
  82. {}% Thm head spec (can be left empty, meaning `normal')
  83. \theoremstyle{definition}
  84. \newtheorem{definition}{Definición}[chapter]
  85.  
  86. \newtheoremstyle{proposition}% name
  87. {3pt}% Space above
  88. {3pt}% Space below
  89. {}% Body font
  90. {}% Indent amount (empty = no indent, \parindent = para indent)
  91. {\bfseries}% Thm head font
  92. {}% Punctuation after thm head
  93. {.5em}% Space after thm head: " " = normal interword space;
  94. % \newline = linebreak
  95. {}% Thm head spec (can be left empty, meaning `normal')
  96. \theoremstyle{proposition}
  97. \newtheorem{proposition}[lemma]{Proposición}
  98.  
  99. \newtheoremstyle{theorem}% name
  100. {3pt}% Space above
  101. {3pt}% Space below
  102. {\itshape}% Body font
  103. {}% Indent amount (empty = no indent, \parindent = para indent)
  104. {\bfseries}% Thm head font
  105. {}% Punctuation after thm head
  106. {.5em}% Space after thm head: " " = normal interword space;
  107. % \newline = linebreak
  108. {}% Thm head spec (can be left empty, meaning `normal')
  109. \theoremstyle{theorem}
  110. \newtheorem{theorem}[lemma]{Teorema}
  111.  
  112. \newtheoremstyle{procedure}% name
  113. {3pt}% Space above
  114. {3pt}% Space below
  115. {}% Body font
  116. {}% Indent amount (empty = no indent, \parindent = para indent)
  117. {\bfseries}% Thm head font
  118. {}% Punctuation after thm head
  119. {.5em}% Space after thm head: " " = normal interword space;
  120. % \newline = linebreak
  121. {}% Thm head spec (can be left empty, meaning `normal')
  122. \theoremstyle{procedure}
  123. \newtheorem{procedure}{\textbf{Procedimiento}}[chapter]
  124.  
  125. \newtheorem*{main}{Main Theorem}
  126.  
  127. \newtheoremstyle{corollary}% name
  128. {3pt}% Space above
  129. {3pt}% Space below
  130. {\itshape}% Body font
  131. {}% Indent amount (empty = no indent, \parindent = para indent)
  132. {\bfseries}% Thm head font
  133. {}% Punctuation after thm head
  134. {.5em}% Space after thm head: " " = normal interword space;
  135. % \newline = linebreak
  136. {}% Thm head spec (can be left empty, meaning `normal')
  137. \theoremstyle{corollary}
  138. \newtheorem{corollary}[lemma]{Corolario}
  139.  
  140. \newtheoremstyle{exercise}% name
  141. {3pt}% Space above
  142. {3pt}% Space below
  143. {}% Body font
  144. {}% Indent amount (empty = no indent, \parindent = para indent)
  145. {\bfseries}% Thm head font
  146. {}% Punctuation after thm head
  147. {.5em}% Space after thm head: " " = normal interword space;
  148. % \newline = linebreak
  149. {}% Thm head spec (can be left empty, meaning `normal')
  150. \theoremstyle{exercise}
  151. \newtheorem{exercise}{}[chapter]
  152.  
  153. \newtheoremstyle{example}% name
  154. {3pt}% Space above
  155. {3pt}% Space below
  156. {}% Body font
  157. {}% Indent amount (empty = no indent, \parindent = para indent)
  158. {\bfseries}% Thm head font
  159. {}% Punctuation after thm head
  160. {.5em}% Space after thm head: " " = normal interword space;
  161. % \newline = linebreak
  162. {}% Thm head spec (can be left empty, meaning `normal')
  163. \theoremstyle{example}
  164. \newtheorem{example}{Ejemplo}[chapter]
  165.  
  166. \newtheoremstyle{notation}% name
  167. {3pt}% Space above
  168. {3pt}% Space below
  169. {}% Body font
  170. {}% Indent amount (empty = no indent, \parindent = para indent)
  171. {\bfseries}% Thm head font
  172. {}% Punctuation after thm head
  173. {.5em}% Space after thm head: " " = normal interword space;
  174. % \newline = linebreak
  175. {}% Thm head spec (can be left empty, meaning `normal')
  176. \theoremstyle{notation}
  177. \newtheorem{notation}{Notación}[chapter]
  178.  
  179. \newtheoremstyle{remark}% name
  180. {3pt}% Space above
  181. {3pt}% Space below
  182. {}% Body font
  183. {}% Indent amount (empty = no indent, \parindent = para indent)
  184. {\bfseries}% Thm head font
  185. {}% Punctuation after thm head
  186. {.5em}% Space after thm head: " " = normal interword space;
  187. % \newline = linebreak
  188. {}% Thm head spec (can be left empty, meaning `normal')
  189. \theoremstyle{remark}
  190. \newtheorem{remark}{Observación}
  191.  
  192. \renewcommand{\chaptername}{Capítulo}
  193.  
  194. %Los siguientes \renewcommand son para modificar la manera en que aparecen los capítulos en la Tabla de Contenidos (paquete tocloft)
  195. \renewcommand{\cftchappresnum}{Capítulo }%Aparece "Capítulo" antes del número correspondiente
  196. \renewcommand{\cftchapaftersnum}{}%Lo que aparece después de "Capítulo n"
  197. \renewcommand{\cftchapaftersnumb}{\\ }%Cambio de línea para que el Chapter name quede en otra línea
  198. \renewcommand{\cftchapnumwidth}{0mm}
  199.  
  200. \pagestyle{myheadings}
  201. \renewcommand{\chaptermark}[1]{%Se redefine la forma de los encabezados
  202. \markboth{Álgebra lineal con el uso de MATLAB}{\chaptername\ \thechapter.\ #1}}
  203.  
  204. \numberwithin{lemma}{chapter}
  205. \numberwithin{remark}{chapter}
  206. \numberwithin{exercise}{section}
  207. \numberwithin{definition}{chapter}
  208.  
  209. \begin{document}
  210.  
  211. \pagenumbering{roman}
  212.  
  213. \tableofcontents
  214.  
  215. \pagenumbering{arabic}
  216.  
  217. \addcontentsline{toc}{chapter}{Prefacio}
  218.  
  219. %\include{Prefacio} % si queremos que aparezca en el índice
  220. \include{algebradematrices}
  221. %\include{espaciosvectoriales}
  222. %\include{transformacioneslineales}
  223. %\include{ortogonalidad}
  224. %\include{determinantes}
  225. %\include{valorespropios}
  226. %\include{Aplicaciones}
  227. \appendix
  228. %\include{comandosMATLAB}
  229. \addcontentsline{toc}{chapter}{Índice alfabético}
  230. %\include{Index}
  231.  
  232. \printindex
  233.  
  234. \end{document}


Thanks for your help.


Return to “XeTeX”

Who is online

Users browsing this forum: No registered users and 1 guest