New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tikz "\clip" does not seem to be taken into account #791

Closed
kaagithub opened this Issue Jul 25, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@kaagithub

kaagithub commented Jul 25, 2016

Hi,

I just tested the 0.8.2 version and this still does not seem to work (I waited to post it): the clipping presented in the following example does not seem to appear correctly in the Epub I generated (I tested several viewers this time ;-)

http://www.texample.net/tikz/examples/venn-diagram/

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{shapes,backgrounds}
\begin{document}
\pagestyle{empty}
% Suppose we have three circles or ellipses or whatever. Let us define
% commands for their paths since we will need them repeatedly in the
% following:

\def\firstcircle{(0,0) circle (1.5cm)}
\def\secondcircle{(45:2cm) circle (1.5cm)}
\def\thirdcircle{(0:2cm) circle (1.5cm)}

% Now we can draw the sets:
\begin{tikzpicture}
    \draw \firstcircle node[below] {$A$};
    \draw \secondcircle node [above] {$B$};
    \draw \thirdcircle node [below] {$C$};

    % Now we want to highlight the intersection of the first and the
    % second circle:

    \begin{scope}
      \clip \firstcircle;
      \fill[red] \secondcircle;
    \end{scope}

\end{tikzpicture}

\end{document}

@dginev dginev added this to the LaTeXML-0.8.4 milestone Jul 25, 2016

@brucemiller

This comment has been minimized.

Owner

brucemiller commented Dec 5, 2016

I don't know if there's something specific about ePub or ePub viewers here, but when I tested generating html (html5 w/ svg), it looks exactly the same in the browser as the pdf. The \clip just causes the red portion to be the intersection of circles A & B, right? Seems to work in the current code.

@brucemiller

This comment has been minimized.

Owner

brucemiller commented Dec 10, 2016

I just tried the Venn diagram example from TeXamples, and it works fine in html. It's hard to see how conversion to ePub could break it, but if you're convinced that's the case, please reopen.

@dginev dginev modified the milestones: LaTeXML-0.8.3, LaTeXML-0.8.4 Sep 8, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment