[XeTeX] problem xelatex+tikz
François Patte
francois.patte at mi.parisdescartes.fr
Thu Sep 11 19:43:45 CEST 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bonjour,
I am facing a problem with tikz: with the following MWE, if you change
the page dimensions, uncommenting
% \hoffset -1in
% \voffset -1in
% \setlength{\topmargin}{45mm}
% \setlength{\textwidth}{110mm}
% \setlength{\textheight}{175mm}
% \setlength{\oddsidemargin}{50mm}
% \setlength{\evensidemargin}{50mm}
The rightside image (nombres tétraédiques) disappear while you get it
if you do not modify the page dimensions...
This problem does not occur with lualatex...
<---- MWE ----
\documentclass[a4paper,11pt,twoside]{report}
%% dimensions du livre
% \hoffset -1in
% \voffset -1in
% \setlength{\topmargin}{45mm}
% \setlength{\textwidth}{110mm}
% \setlength{\textheight}{175mm}
% \setlength{\oddsidemargin}{50mm}
% \setlength{\evensidemargin}{50mm}
\usepackage{fontspec}
\setmainfont[Mapping=tex-text,Fractions=On]{FreeSerif}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{float}
\usepackage{caption}
\begin{document}
\begin{figure}[H]
\begin{minipage}[b]{0.46\linewidth}
\centering
\begin{tikzpicture}[scale=.5]
% \draw [help lines] (0,0) grid (3,3); %
\fill [black] ($(0,0)$) circle (10pt); %
\fill [color=black!70!white] ($(0,1)$) circle (10pt); %
\fill [color=black!70!white] ($(1,0)$) circle (10pt); %
\fill [color=black!50!white] ($(0,2)$) circle (10pt); %
\fill [color=black!50!white] ($(1,1)$) circle (10pt); %
\fill [color=black!50!white] ($(2,0)$) circle (10pt); %
\fill [color=black!30!white] ($(0,3)$) circle (10pt); %
\fill [color=black!30!white] ($(1,2)$) circle (10pt); %
\fill [color=black!30!white] ($(2,1)$) circle (10pt); %
\fill [color=black!30!white] ($(3,0)$) circle (10pt); %
\end{tikzpicture}
\caption*{Nombre triangulaire d'ordre 4}
\end{minipage}
\begin{minipage}[b]{0.46\linewidth}
\centering
\begin{tikzpicture}[z={(-.9mm,-3.4mm)},scale=.5]
\foreach \yy in{1,...,4}{%
\foreach \xx in {1,...,\yy}{%
\foreach \zz in {\xx,...,1}{%
\shade[ball color=gray,rotate=80] (\zz*.85-\yy*0.21,
\yy*.85, \xx-\yy*0.20) circle (.5cm); %
}%
}%
}%
\end{tikzpicture}
\caption*{Nombre tétraédrique d'ordre 4}
\end{minipage}
\end{figure}
\end{document}
<--- end MWE ------------
Is it a bug in xelatex (I tried both tl-2013 and tl-2014)?
Thank you for attention.
- --
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)1 8394 5849
http://www.math-info.univ-paris5.fr/~patte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iEYEARECAAYFAlQR30sACgkQdE6C2dhV2JWwvQCgr6xSDBpehs1JpiIV4lMzGwhF
5XoAoLeoXpj+fBo36ZjQypbKtzmBGGL/
=lX6C
-----END PGP SIGNATURE-----
More information about the XeTeX
mailing list