Graphics, Figures & TablesMikTex via pdfLaTex fails to properly render MWE

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
gothed
Posts: 4
Joined: Sun Nov 02, 2014 11:44 am

MikTex via pdfLaTex fails to properly render MWE

Post by gothed »

Attempting to render the following MWE in MikTex via pdfLaTex results in no errors, however, incorrect rendering (see attachment: bad_render).

Code: Select all

% Dominik Gothe
% Based on Marco Miani's work on "Spherical and cartesian grids"
\documentclass[12pt]{article}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{amsmath}

\pgfplotsset{compat=1.9}
%\usetikzlibrary{calc,fadings,decorations.pathreplacing}
\tikzset{ >=latex } % Prettier Arrows
%% helper macros

\def\R{5} 			% Radius of Sphere
\def\D{5} 			% Distance to Project outside of Sphere
\def\tilt{10} 		% Tilt of Sphere
\def\zeroAz{-100}	% Zero Azimuth Reference Line
\def\leftLong{-25} 	% Longitude of point P
\def\midLong{-40}
\def\rightLong{-55} % longitude of point Q
\def\lowLat{30}  	% Low Latitude of FOV
\def\midLat{45}  	% Center Latitude
\def\highLat{60} 	% High Latitude of FOV



\newcommand\pgfmathsinandcos[3]{%
	\pgfmathsetmacro#1{sin(#3)}%
	\pgfmathsetmacro#2{cos(#3)}%
}
% Macro to define Longitudenal Planes
\newcommand\LongitudePlane[3][current plane]{
	\pgfmathsinandcos\sinEl\cosEl{#2}
	\pgfmathsinandcos\sint\cost{#3}
	\tikzset{#1/.estyle={cm={\cost,\sint*\sinEl,0,\cosEl,(0,0)}}}
}
% Macro to define Latitudenal Planes
\newcommand\LatitudePlane[3][current plane]{
  \pgfmathsinandcos\sinEl\cosEl{#2}
  \pgfmathsinandcos\sint\cost{#3}
  \pgfmathsetmacro\yshift{\cosEl*\sint}
  \tikzset{#1/.estyle={cm={\cost,0,0,\cost*\sinEl,(0,\yshift)}}}
}
% Drawing Longitudenal Circles (all Great-Circles)
\newcommand\DrawLongitudeCircle[2][1]{
    \LongitudePlane{\tilt}{#2}
    \tikzset{current plane/.prefix style={scale=#1}}
    \pgfmathsetmacro\angVis{atan(sin(#2)*cos(\tilt)/sin(\tilt))}
    \draw[current plane, thin, solid,  black] (\angVis:1) arc (\angVis:\angVis+180:1);
    \draw[current plane, thin, dashed, black] (\angVis-180:1) arc (\angVis-180:\angVis:1);
}
% Drawing Latitudenal Circles (not Great-Circles, except Horizon)
\newcommand\DrawLatitudeCircle[2][1]{
    \LatitudePlane{\tilt}{#2}
    \tikzset{current plane/.prefix style={scale=#1}}
    \pgfmathsetmacro\sinVis{sin(#2)/cos(#2)*sin(\tilt)/cos(\tilt)}
    \pgfmathsetmacro\angVis{asin(min(1,max(\sinVis,-1)))}
    \draw[current plane,thin,black] (\angVis:1) arc (\angVis:-\angVis-180:1);
    \draw[current plane,thin,dashed] (180-\angVis:1) arc (180-\angVis:\angVis:1);
}
% Draw Green Latitutdenal Planes (used to draw Horizon plane)
\newcommand\DrawLatPlane[2][\R]{
    \LatitudePlane{\tilt}{#2}
    \tikzset{current plane/.prefix style={scale=#1}}
    \pgfmathsetmacro\sinVis{sin(#2)/cos(#2)*sin(\tilt)/cos(\tilt)}
    \fill[current plane,green!60!black, opacity=.2] (0:1) arc (0:360:1);
}
% Used to draw spherical coordinate grids
% Draw a Longitudenal Line from leftLon to rightLon @ given angle
\newcommand\DrawLonGrid[2][1]{
	\LongitudePlane{\tilt}{#2}
	\tikzset{current plane/.prefix style={scale=#1}}
	\draw[current plane,thick,red] (180-\highLat:1) arc (180-\highLat:180-\lowLat:1);  
}
% Draw a Latitudenal Line from lowLat to highLat @ given angle
\newcommand\DrawLatGrid[2][1]{
    \LatitudePlane{\tilt}{#2}
    \tikzset{current plane/.prefix style={scale=#1}}
\draw[current plane,red,thick] (\rightLong:1) arc (\rightLong:\leftLong:1);
}

\pagestyle{empty}

\begin{document}
\begin{figure}[ht!]
	\begin{tikzpicture}[scale=1,every node/.estyle={minimum size=1cm}]   
    % Do some on-the-fly math
	\pgfmathsetmacro\H{\R*cos(\tilt)} 						% Distance to the North Pole
    \pgfmathsetmacro\DR{(\R+\D)*(2-cos(15))}				% Extra distance to elevate Rectilinear plane
	% Setup the Sphere and Horizon Plane  
    \fill[ball color=white!10] (0,0) circle (\R); 			% 3D Lighting Effect
    \DrawLatPlane[\R]{0}									% Draw the Horizon-plane
    % Define Working Planes
	\LongitudePlane[zeroAzPlane]    {\tilt}{\zeroAz}		% Zero Azimuth Plane
	\LongitudePlane[leftLongPlane]  {\tilt}{\leftLong}  	% Left Longitudenal Plane
    \LongitudePlane[centerLongPlane]{\tilt}{\midLong}		% Center Longitudenal Plane
	\LongitudePlane[rightLongPlane] {\tilt}{\rightLong} 	% Right Longitudenal Plane
    \LatitudePlane[horizonPlane]    {\tilt}{0}				% Horizon Plane (Latitudenal)
   	% Define Working Coordinates
	\coordinate (O) at (0,0);								% Origin of Sphere
	\coordinate (N) at (0,\H);				% North-Pole of Sphere
	\coordinate (S) at (0,-\H);			% South-Pole of Sphere
	\path[zeroAzPlane] (\R,0) coordinate (ZA);				% Zero Azimuth point on Horizon Plane
    \path[centerLongPlane] (\R,0) coordinate (AZ);			% Point on the Horizon corrosponding to the azimuth
	% Define Points Project outside of SPhere
	\path[rightLongPlane]  (\highLat:\DR) coordinate (TRO); % Top Right of FocalPlane projected onto Rectilinear
	\path[leftLongPlane]   (\highLat:\DR) coordinate (TLO); % Top Left of FocalPlane projected onto Rectilinear
    \path[centerLongPlane] (\midLat:\R+\D) coordinate (CO); % Center of FocalPlane projected onto Rectilinear
    \path[leftLongPlane]   (\lowLat:\DR)  coordinate (BLO); % Bottom Left of FocalPlane projected onto Rectilinear
    \path[rightLongPlane]  (\lowLat:\DR)  coordinate (BRO); % Bottom Right of FocalPlane projected onto Rectilinear
    % Draw some reference lines
    \draw[dashed] (N) -- (S);								% Connect the North and South Pole
    \draw[dashed] (O) -- (ZA);								% Draw a reference line to show where azimuth = 0 falls
%    \draw[dashed, thick] (O) -- (AZ);						% Draw a reference line corrosponding to the azimuth
        
	\draw[centerLongPlane, ->, very thick, red!30!blue] (0:0.5*\R)
    	to [bend right=30] node[midway, right, black] {$\mathbf{Elevation}$} (\midLat:0.5*\R);
    \draw[horizonPlane,    ->, very thick, red!30!blue] (\zeroAz:0.5*\R)
    	to [bend right=40] node[midway, below, black] {$\mathbf{Azimuth}$} (\midLong:0.5*\R);
    
	% Longitudenal bounds of the FOV
    \DrawLongitudeCircle[\R]{\leftLong}  			% Left Longitude Circle (great circle)
    \DrawLongitudeCircle[\R]{\rightLong} 			% Right Longitude Circle (great circle)
    % Latitudenal bounds of the FOV
    \DrawLatitudeCircle[\R]{\highLat}				% High Latitude Circle (not great circle)
    \DrawLatitudeCircle[\R]{\lowLat}				% Low Latitude Circle (not great circle)
    \DrawLatitudeCircle[\R]{0} 						% Horizon Circle
	% Project FocalPlane Defining Beams
	\draw[-, dashed, black, thick] (O) -- (TLO); 	% Top-Left corner
	\draw[-, dashed, black, thick] (O) -- (BLO); 	% Bottom-Left corner
    \draw[-, dashed, black, thick] (O) -- (BRO); 	% Bottom-Right corner
    \draw[-, dashed, black, thick] (O) -- (TRO); 	% Top-Right corner
    \draw[->, thick, red!30!blue]  (O) -- (CO);		% Actuall pointing
	% Grid on Sphere
    \foreach \t in {30,35,...,60}    { \DrawLatGrid[\R]{\t} }
	\foreach \t in {125,130,...,155} { \DrawLonGrid[\R]{\t} }
	% Grid Outside Sphere
    \foreach \t in {30,35,...,60}    { \DrawLatGrid[\R+\D]{\t} }
    \foreach \t in {125,130,...,155} { \DrawLonGrid[\R+\D]{\t} }
    % Rectilinear Grid Outside
    \fill[thick, red!30!blue, opacity=.1] (TLO) -- (BLO) -- (BRO) -- (TRO) -- (TLO);
    \draw[thick, black,       opacity=1] (TLO) -- (BLO) -- (BRO) -- (TRO) -- (TLO);
    % Some Labels
	\node[above=8pt] at (N) {$\mathbf{Zenith}$}; 	% Label the Zenith
	\draw[-latex,thick](4,-5.5)node[left]{$\mathsf{Grid(s)\ in\ Fig. \ (\ref{fig:Grid})}$} to[out=0,in=270] (5.8,-2.3);
    \draw[thick](3.6,-6)node[left]{$[\mathsf{Rectilinear}]$};
   
	\end{tikzpicture}
	\caption[cap]
    {WUts dis.}
	\label{fig:Grid}
\end{figure}

\end{document} 
The same code, however, renders beautifully in WriteLatex (see attachment: good_render) or visit WriteLatex.
https://www.writelatex.com/1728124nbzskd#/4317742/

Several questions:
1. Can someone reproduce this with MikTex?
2. Does this happen in Tex Live as well?
3. Why does WriteLatex render it correctly but my computer does not?
4. How do I fix it so that I can render it locally on my PC.

Thank You
Dominik Gothe
Attachments
good_render.PNG
good_render.PNG (39.82 KiB) Viewed 6611 times
bad_render.PNG
bad_render.PNG (21.11 KiB) Viewed 6611 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

MikTex via pdfLaTex fails to properly render MWE

Post by Stefan Kottwitz »

Hi Dominik,

welcome to the forum!

It's caused by a bug in a newer TikZ/pgf version. writeLaTeX still uses an older one, that's why the difference.

You can easily fix it by replacing .estyle by .style (styles for Longitudenal Planes, Latitudenal Planes, and at the beginning of the figure in the tikzpicture options).

We had the same here: Let us know if there's anything else where we could help.

Stefan
LaTeX.org admin
gothed
Posts: 4
Joined: Sun Nov 02, 2014 11:44 am

MikTex via pdfLaTex fails to properly render MWE

Post by gothed »

Stefan_K wrote:Hi gothed,
It's caused by a bug in a newer TikZ/pgf version. writeLaTeX still uses an older one, that's why the difference.

You can easily fix it by replacing .estyle by .style (styles for Longitudenal Planes, Latitudenal Planes, and at the beginning of the figure in the tikzpicture options).

We had the same here: Let us know if there's anything else where we could help.

Stefan
Stefan,

It does not render correctly when I use .style instead. I had tried this already. But due to lack of sleep I forgot to attach it yesterday in my post. See the attachment now. I was aware of the first link. Unlike the second link, manually specifying the points does not work for me. As of right now I am back to square one: MikTex does not render correctly, but WriteLatex does.

1. What causes this behavior?
2. Can someone else repeat it on their PC? I would love a reference against TexLive.

- Dominik Gothe
Attachments
bad_style_render.PNG
bad_style_render.PNG (25.16 KiB) Viewed 6554 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

MikTex via pdfLaTex fails to properly render MWE

Post by Stefan Kottwitz »

Hi Dominik,

for sure I will test it tomorrow when I'm on my TeX PC, with TeX Live 2014. It's great that you added a minimal example.

I just saw estyle and the missing latitude and longitude circles.

In the meantime, perhaps add \listfiles to your preamble and attach the .log file or post the listed file versions from the logfile. It's good to know the package versions, perhaps there's even a warning about an issue.

Stefan
LaTeX.org admin
gothed
Posts: 4
Joined: Sun Nov 02, 2014 11:44 am

MikTex via pdfLaTex fails to properly render MWE

Post by gothed »

Link to latest version of the code on writelatex:
https://www.writelatex.com/read/vwhwddcvsgsh

Latest Minimal (I removed a couple of lines in preamble)

Code: Select all

% Dominik Gothe
% Based on Marco Miani's work on "Spherical and cartesian grids"
\documentclass[12pt]{article}
\usepackage{tikz}
\usepackage{pgfplots}

\listfiles

\pgfplotsset{compat=1.11}
%% helper macros

\def\R{5} 			% Radius of Sphere
\def\D{5} 			% Distance to Project outside of Sphere
\def\tilt{10} 		% Tilt of Sphere
\def\zeroAz{-100}	% Zero Azimuth Reference Line
\def\leftLong{-25} 	% Longitude of point P
\def\midLong{-40}
\def\rightLong{-55} % longitude of point Q
\def\lowLat{30}  	% Low Latitude of FOV
\def\midLat{45}  	% Center Latitude
\def\highLat{60} 	% High Latitude of FOV



\newcommand\pgfmathsinandcos[3]{%
	\pgfmathsetmacro#1{sin(#3)}%
	\pgfmathsetmacro#2{cos(#3)}%
}
% Macro to define Longitudenal Planes
\newcommand\LongitudePlane[3][current plane]{
	\pgfmathsinandcos\sinEl\cosEl{#2}
	\pgfmathsinandcos\sint\cost{#3}
	\tikzset{#1/.style={cm={\cost,\sint*\sinEl,0,\cosEl,(0,0)}}}
}
% Macro to define Latitudenal Planes
\newcommand\LatitudePlane[3][current plane]{
  \pgfmathsinandcos\sinEl\cosEl{#2}
  \pgfmathsinandcos\sint\cost{#3}
  \pgfmathsetmacro\yshift{\cosEl*\sint}
  \tikzset{#1/.style={cm={\cost,0,0,\cost*\sinEl,(0,\yshift)}}}
}
% Drawing Longitudenal Circles (all Great-Circles)
\newcommand\DrawLongitudeCircle[2][1]{
    \LongitudePlane{\tilt}{#2}
    \tikzset{current plane/.prefix style={scale=#1}}
    \pgfmathsetmacro\angVis{atan(sin(#2)*cos(\tilt)/sin(\tilt))}
    \draw[current plane, thin, solid,  black] (\angVis:1) arc (\angVis:\angVis+180:1);
    \draw[current plane, thin, dashed, black] (\angVis-180:1) arc (\angVis-180:\angVis:1);
}
% Drawing Latitudenal Circles (not Great-Circles, except Horizon)
\newcommand\DrawLatitudeCircle[2][1]{
    \LatitudePlane{\tilt}{#2}
    \tikzset{current plane/.prefix style={scale=#1}}
    \pgfmathsetmacro\sinVis{sin(#2)/cos(#2)*sin(\tilt)/cos(\tilt)}
    \pgfmathsetmacro\angVis{asin(min(1,max(\sinVis,-1)))}
    \draw[current plane,thin,black] (\angVis:1) arc (\angVis:-\angVis-180:1);
    \draw[current plane,thin,dashed] (180-\angVis:1) arc (180-\angVis:\angVis:1);
}
% Draw Green Latitutdenal Planes (used to draw Horizon plane)
\newcommand\DrawLatPlane[2][\R]{
    \LatitudePlane{\tilt}{#2}
    \tikzset{current plane/.prefix style={scale=#1}}
    \pgfmathsetmacro\sinVis{sin(#2)/cos(#2)*sin(\tilt)/cos(\tilt)}
    \fill[current plane,green!60!black, opacity=.2] (0:1) arc (0:360:1);
}
% Used to draw spherical coordinate grids
% Draw a Longitudenal Line from leftLon to rightLon @ given angle
\newcommand\DrawLonGrid[2][1]{
	\LongitudePlane{\tilt}{#2}
	\tikzset{current plane/.prefix style={scale=#1}}
	\draw[current plane,thick,red] (180-\highLat:1) arc (180-\highLat:180-\lowLat:1);  
}
% Draw a Latitudenal Line from lowLat to highLat @ given angle
\newcommand\DrawLatGrid[2][1]{
    \LatitudePlane{\tilt}{#2}
    \tikzset{current plane/.prefix style={scale=#1}}
\draw[current plane,red,thick] (\rightLong:1) arc (\rightLong:\leftLong:1);
}

\pagestyle{empty}

\begin{document}
\begin{figure}[ht!]
	\begin{tikzpicture}[scale=1,every node/.style={minimum size=1cm}]   
    % Do some on-the-fly math
	\pgfmathsetmacro\H{\R*cos(\tilt)} 						% Distance to the North Pole
    \pgfmathsetmacro\DR{(\R+\D)*(2-cos(15))}				% Extra distance to elevate Rectilinear plane
	% Setup the Sphere and Horizon Plane  
    \fill[ball color=white!10] (0,0) circle (\R); 			% 3D Lighting Effect
    \DrawLatPlane[\R]{0}									% Draw the Horizon-plane
    % Define Working Planes
	\LongitudePlane[zeroAzPlane]    {\tilt}{\zeroAz}		% Zero Azimuth Plane
	\LongitudePlane[leftLongPlane]  {\tilt}{\leftLong}  	% Left Longitudenal Plane
    \LongitudePlane[centerLongPlane]{\tilt}{\midLong}		% Center Longitudenal Plane
	\LongitudePlane[rightLongPlane] {\tilt}{\rightLong} 	% Right Longitudenal Plane
    \LatitudePlane[horizonPlane]    {\tilt}{0}				% Horizon Plane (Latitudenal)
   	% Define Working Coordinates
	\coordinate (O) at (0,0);								% Origin of Sphere
	\coordinate (N) at (0,\H);				% North-Pole of Sphere
	\coordinate (S) at (0,-\H);			% South-Pole of Sphere
	\path[zeroAzPlane] (\R,0) coordinate (ZA);				% Zero Azimuth point on Horizon Plane
    \path[centerLongPlane] (\R,0) coordinate (AZ);			% Point on the Horizon corrosponding to the azimuth
	% Define Points Project outside of SPhere
	\path[rightLongPlane]  (\highLat:\DR) coordinate (TRO); % Top Right of FocalPlane projected onto Rectilinear
	\path[leftLongPlane]   (\highLat:\DR) coordinate (TLO); % Top Left of FocalPlane projected onto Rectilinear
    \path[centerLongPlane] (\midLat:\R+\D) coordinate (CO); % Center of FocalPlane projected onto Rectilinear
    \path[leftLongPlane]   (\lowLat:\DR)  coordinate (BLO); % Bottom Left of FocalPlane projected onto Rectilinear
    \path[rightLongPlane]  (\lowLat:\DR)  coordinate (BRO); % Bottom Right of FocalPlane projected onto Rectilinear
    % Draw some reference lines
    \draw[dashed] (N) -- (S);								% Connect the North and South Pole
    \draw[dashed] (O) -- (ZA);								% Draw a reference line to show where azimuth = 0 falls
%    \draw[dashed, thick] (O) -- (AZ);						% Draw a reference line corrosponding to the azimuth
        
	\draw[centerLongPlane, ->, very thick, red!30!blue] (0:0.5*\R)
    	to [bend right=30] node[midway, right, black] {$\mathbf{Elevation}$} (\midLat:0.5*\R);
    \draw[horizonPlane,    ->, very thick, red!30!blue] (\zeroAz:0.5*\R)
    	to [bend right=40] node[midway, below, black] {$\mathbf{Azimuth}$} (\midLong:0.5*\R);
    
	% Longitudenal bounds of the FOV
    \DrawLongitudeCircle[\R]{\leftLong}  			% Left Longitude Circle (great circle)
    \DrawLongitudeCircle[\R]{\rightLong} 			% Right Longitude Circle (great circle)
    % Latitudenal bounds of the FOV
    \DrawLatitudeCircle[\R]{\highLat}				% High Latitude Circle (not great circle)
    \DrawLatitudeCircle[\R]{\lowLat}				% Low Latitude Circle (not great circle)
    \DrawLatitudeCircle[\R]{0} 						% Horizon Circle
	% Project FocalPlane Defining Beams
	\draw[-, dashed, black, thick] (O) -- (TLO); 	% Top-Left corner
	\draw[-, dashed, black, thick] (O) -- (BLO); 	% Bottom-Left corner
    \draw[-, dashed, black, thick] (O) -- (BRO); 	% Bottom-Right corner
    \draw[-, dashed, black, thick] (O) -- (TRO); 	% Top-Right corner
    \draw[->, thick, red!30!blue]  (O) -- (CO);		% Actuall pointing
	% Grid on Sphere
    \foreach \t in {30,35,...,60}    { \DrawLatGrid[\R]{\t} }
	\foreach \t in {125,130,...,155} { \DrawLonGrid[\R]{\t} }
	% Grid Outside Sphere
    \foreach \t in {30,35,...,60}    { \DrawLatGrid[\R+\D]{\t} }
    \foreach \t in {125,130,...,155} { \DrawLonGrid[\R+\D]{\t} }
    % Rectilinear Grid Outside
    \fill[thick, red!30!blue, opacity=.1] (TLO) -- (BLO) -- (BRO) -- (TRO) -- (TLO);
    \draw[thick, black,       opacity=1] (TLO) -- (BLO) -- (BRO) -- (TRO) -- (TLO);
    % Some Labels
	\node[above=8pt] at (N) {$\mathbf{Zenith}$}; 	% Label the Zenith
	\draw[-latex,thick](4,-5.5)node[left]{$\mathsf{Grid(s)\ in\ Fig. \ (\ref{fig:Grid})}$} to[out=0,in=270] (5.8,-2.3);
    \draw[thick](3.6,-6)node[left]{$[\mathsf{Rectilinear}]$};
   
	\end{tikzpicture}
	\caption[cap]
    {WUts dis.}
	\label{fig:Grid}
\end{figure}

\end{document} 
File Versions:

Code: Select all

 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size12.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
    tikz.sty    2013/12/13 v3.0.0 (rcs-revision 1.142)
     pgf.sty    2013/12/18 v3.0.0 (rcs-revision 1.14)
  pgfrcs.sty    2013/12/20 v3.0.0 (rcs-revision 1.28)
everyshi.sty    2001/05/15 v3.00 EveryShipout Package (MS)
  pgfrcs.code.tex
 pgfcore.sty    2010/04/11 v3.0.0 (rcs-revision 1.7)
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
  pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)
 ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
  pgfsys.sty    2013/11/30 v3.0.0 (rcs-revision 1.47)
  pgfsys.code.tex
pgfsyssoftpath.code.tex    2013/09/09  (rcs-revision 1.9)
pgfsysprotocol.code.tex    2006/10/16  (rcs-revision 1.4)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
 pgfcore.code.tex
pgfcomp-version-0-65.sty    2007/07/03 v3.0.0 (rcs-revision 1.7)
pgfcomp-version-1-18.sty    2007/07/23 v3.0.0 (rcs-revision 1.1)
  pgffor.sty    2013/12/13 v3.0.0 (rcs-revision 1.25)
 pgfkeys.sty    
 pgfkeys.code.tex
 pgfmath.sty    
 pgfmath.code.tex
  pgffor.code.tex
    tikz.code.tex
pgfplots.sty    2014/08/04 v1.11 Data Visualization (1.11-3-g4c99d7a)
supp-pdf.mkii
I have tried to update all packages to the most recent. Thank you for your help so far.

- Dominik
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

MikTex via pdfLaTex fails to properly render MWE

Post by Stefan Kottwitz »

Hi Dominik,

if you click "Open in writeLaTeX" with the latest minimal example, it's broken similar in writeLaTeX. Noticed after also setting pgfplots compat level to 1.8 so that it compiles on writeLaTeX.

estyle is broken obviously, but while changing to style another calculation is broken. There must be a side effect with this coordinate transformation (cm=...) in styles.

Unfortunately I don't have an idea yet how to fix this. Only this crazy workaround: just for this single drawing, use TikZ 2.10. You could use writeLaTeX with that older version to generate just this drawing, such as with the standalone class, then including the drawing as small pdf image into your main document. Just for continuing work.

Stefan
LaTeX.org admin
gothed
Posts: 4
Joined: Sun Nov 02, 2014 11:44 am

Re: MikTex via pdfLaTex fails to properly render MWE

Post by gothed »

Thank you Stefan,

I am actually not opposed to writing my paper on writeLaTex, it is rather nice. That being said I am afraid they will upgrade soon and break the drawing as well. I have followed your advise already and generated a PDF of the drawing I want. I will be able to include this in later documents.

The reason why I was asking to have this fixed because I wanted to generated an animated drawing where the red patch moves around the sphere. It looks like that won't fly now.

Thanks again. And if you have any ideas on how to make this work please let me know.

Also does TeXLive behave the same?
And can I control Tikz version in MikTex? In other-words can I force it to use an old version? Where might I get these old versions?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

MikTex via pdfLaTex fails to properly render MWE

Post by Stefan Kottwitz »

Yes, TeX Live behaves the same.

You can download previous versions such as 2.10 from the TikZ sourceforge site. You could install such a version in the user texmf tree, so it has priority over the system tree version.

As it's clearly a bug and not backwards compatible, I think, it will be fixed in a next version of TikZ. The bug is reported as bug #331. Bug #306 is possibly related. Perhaps you won't need the workaround for a long time, hopefully.

Stefan
LaTeX.org admin
Post Reply