Hi, everybody.
I could solve the last problem in a very simple way. Let me explain it in a few steps:
First: I compiled with the sequence LaTeX+dvips+ps2pdf+see PDF. This sequence produces a PDF file in which every single page is just one image produced by pspicture command.
Second: every single image was edited by inkscape and saved, again, as a PDF file.
Third and last: I imported every image with \includefigure.
Now I have a very strange problem: XeLaTeX seems to be incompatuble with the fontspec package. I'm going to explain it with simple examples:
1. This example is good: it produces the right output
Code: Select all
\documentclass[reqno]{book}
\usepackage[spanish,es-nosectiondot]{babel}
\usepackage[utf8]{inputenc}
%\usepackage{fontspec}
\usepackage{verbatim} %Para comentar bloques de texto
\usepackage[paperheight=254.81mm,paperwidth=184.81mm,text={130mm,186mm},centering]{geometry}
\usepackage{amssymb,amsmath,amsthm}
\usepackage{enumerate}
\usepackage{lipsum}
\usepackage{multicol}
%\setmainfont{georgia.TTF}[%Fuente para el cuerpo
%Path=/usr/share/fonts/Win10/,
%BoldItalicFont=georgiaz.TTF,
%BoldFont =georgiab.TTF,
%ItalicFont =georgiai.TTF]
%\newfontfamily\myfont{calibri.TTF}[%Fuente para secciones
%Path=/usr/share/fonts/Win10/,
%BoldItalicFont=calibriz.TTF,
%BoldFont =calibrib.TTF,
%ItalicFont =calibrii.TTF]
\begin{document}
$x=\frac{1}{2}at^2+v_0t+x_0$
\begin{center}
\begin{multicols}{2}
\begin{enumerate}
\item $ W_1 = \left\{ f \in V \bigg| \displaystyle{\lim_{x\rightarrow 0^-}}f(x)=+\infty \right\} $
\item $ W_2 = \bigg\{ f \in V \bigg| \displaystyle{\lim_{x\rightarrow -\infty}}f(x)=0 \bigg\} $
\end{enumerate}
\end{multicols}
\end{center}
\lipsum[1-2]
\end{document}
2. If I use the fontspec package in order to use the Calibri and Georgia fonts, the output is good.
Code: Select all
\documentclass[reqno]{book}
\usepackage[spanish,es-nosectiondot]{babel}
\usepackage[utf8]{inputenc}
\usepackage{fontspec}
\usepackage{verbatim} %Para comentar bloques de texto
\usepackage[paperheight=254.81mm,paperwidth=184.81mm,text={130mm,186mm},centering]{geometry}
\usepackage{amssymb,amsmath,amsthm}
\usepackage{enumerate}
\usepackage{lipsum}
\usepackage{multicol}
\setmainfont{georgia.TTF}[%Fuente para el cuerpo
Path=/usr/share/fonts/Win10/,
BoldItalicFont=georgiaz.TTF,
BoldFont =georgiab.TTF,
ItalicFont =georgiai.TTF]
\newfontfamily\myfont{calibri.TTF}[%Fuente para secciones
Path=/usr/share/fonts/Win10/,
BoldItalicFont=calibriz.TTF,
BoldFont =calibrib.TTF,
ItalicFont =calibrii.TTF]
\begin{document}
$x=\frac{1}{2}at^2+v_0t+x_0$
%\begin{multicols}{2}
%\begin{enumerate}
% \item $ W_1 = \left\{ f \in V \bigg| \displaystyle{\lim_{x\rightarrow 0^-}}f(x)=+\infty \right\} $
% \item $ W_2 = \bigg\{ f \in V \bigg| \displaystyle{\lim_{x\rightarrow -\infty}}f(x)=0 \bigg\} $
%\end{enumerate}
%\end{multicols}
\lipsum[1-2]
\end{document}
3. But If I use the math expression with \lim... there is the problem!!!
Code: Select all
\documentclass[reqno]{book}
\usepackage[spanish,es-nosectiondot]{babel}
\usepackage[utf8]{inputenc}
\usepackage{fontspec}
\usepackage{verbatim} %Para comentar bloques de texto
\usepackage[paperheight=254.81mm,paperwidth=184.81mm,text={130mm,186mm},centering]{geometry}
\usepackage{amssymb,amsmath,amsthm}
\usepackage{enumerate}
\usepackage{lipsum}
\usepackage{multicol}
\setmainfont{georgia.TTF}[%Fuente para el cuerpo
Path=/usr/share/fonts/Win10/,
BoldItalicFont=georgiaz.TTF,
BoldFont =georgiab.TTF,
ItalicFont =georgiai.TTF]
\newfontfamily\myfont{calibri.TTF}[%Fuente para secciones
Path=/usr/share/fonts/Win10/,
BoldItalicFont=calibriz.TTF,
BoldFont =calibrib.TTF,
ItalicFont =calibrii.TTF]
\begin{document}
$x=\frac{1}{2}at^2+v_0t+x_0$\\
\begin{multicols}{2}
\begin{enumerate}
\item $ W_1 = \left\{ f \in V \bigg| \displaystyle{\lim_{x\rightarrow 0^-}}f(x)=+\infty \right\} $
\item $ W_2 = \bigg\{ f \in V \bigg| \displaystyle{\lim_{x\rightarrow -\infty}}f(x)=0 \bigg\} $
\end{enumerate}
\end{multicols}
\lipsum[1-2]
\end{document}
And the error message is this:
! You can't use `\char' after \the.
\EU1\i ->\char
"0131\relax
l.30 ... \left\{ f \in V \bigg| \displaystyle{\lim
_{x\rightarrow 0^-}}f(x)=+...
I'm forgetting what you said and using zero instead.
Missing character: There is no ^^@ in font [/usr/share/fonts/Win10/georgia]/OT:
script=latn;language=DFLT;mapping=tex-text;!
Missing character: There is no ^^S in font [/usr/share/fonts/Win10/georgia]/OT:
script=latn;language=DFLT;mapping=tex-text;!
Overfull \hbox (13.50108pt too wide) in paragraph at lines 30--31
[]$\OML/cmm/m/it/10 W[] \OT1/cmr/m/n/10 = []$
[]
! You can't use `\char' after \the.
\EU1\i ->\char
"0131\relax
l.31 ... \bigg\{ f \in V \bigg| \displaystyle{\lim
_{x\rightarrow -\infty}}f(...
I'm forgetting what you said and using zero instead.
Missing character: There is no ^^@ in font [/usr/share/fonts/Win10/georgia]/OT:
script=latn;language=DFLT;mapping=tex-text;!
Missing character: There is no ^^S in font [/usr/share/fonts/Win10/georgia]/OT:
script=latn;language=DFLT;mapping=tex-text;!
LaTeX Font Info: Font shape `EU1/georgia.TTF(0)/m/sl' in size <10> not avail
able
(Font) Font shape `EU1/georgia.TTF(0)/m/it' tried instead on input
line 37.
What is the error and how can i solved?
Thanks for your help.