Bounding box is not set properly with arrows

View: New views
2 Messages — Rating Filter:   Alert me  

Bounding box is not set properly with arrows

by Christophe Jorssen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Consider the fellowing example (save the file as test.tex). The arrows
do not show up because (I think) of a bad bounding box. Is there a way
to fix it ?

Thanks in advance.

\documentclass{minimal}

\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize{test}

\begin{document}

\tikzset{external/remake next}
\begin{tikzpicture}
   \draw[<->,very thick] (0,0) -- (2,0);
\end{tikzpicture}
\end{document}

--
Christophe

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users

Re: Bounding box is not set properly with arrows

by Alain Matthes-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Le 13 sept. 2009 à 16:15, Christophe Jorssen a écrit :

> Hello,
>
> Consider the fellowing example (save the file as test.tex). The arrows
> do not show up because (I think) of a bad bounding box. Is there a way
> to fix it ?
>
> Thanks in advance.
>
> \documentclass{minimal}
>
> \usepackage{tikz}
> \usetikzlibrary{external}
> \tikzexternalize{test}
>
> \begin{document}
>
> \tikzset{external/remake next}
> \begin{tikzpicture}
>   \draw[<->,very thick] (0,0) -- (2,0);
> \end{tikzpicture}
> \end{document}

Yes there is a problem with bounding box

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{tikzpicture}
   \draw[<->,very thick] (0,0) -- (2,0);
     \draw[<->,very thick,red] (-0.5,1) -- (3.5,1);
\end{tikzpicture}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
"bricolage"


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{minimal}

\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize{test}

\begin{document}

\tikzset{external/remake next}
\begin{tikzpicture}
\path[use as bounding box] (0,-.25) rectangle (2,.25);
\draw[<->,very thick] (0,0) -- (2,0);
\end{tikzpicture}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


But the problem exists also with


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{minimal}

\usepackage{tikz}
% \usetikzlibrary{external}
% \tikzexternalize{test}
\usepackage[active,pdftex,tightpage]{preview}
\PreviewEnvironment[]{tikzpicture}
\begin{document}

% \tikzset{external/remake next}
\begin{tikzpicture}
% \path[use as bounding box] (0,-.25) rectangle (2,.25);
\draw[<->,very thick] (0,0) -- (2,0);
\end{tikzpicture}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




Best Regards

Alain Matthes
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users