# Alignment of TikZ object [closed]

I'm using the classic thesis style by André Miede. As I have to import a lot of Matlab plots, I'm using matlab2tikz.

In the LaTeX document, I want the TikZ object to act like a normal jpg/png included by \includegraphicx.

When I include the TikZ object with

\begin{figure}
\input{thetikzfile.tex} % <thetikzfile> contains \begin{tikz} etc.
\end{figure}


it is not properly aligned to the text, which would be the case if I had inserted a jpg with the command \includegraphicx

I tried to align the TikZ object using \centering; however, I still get the same result.

-

## closed as too localized by Tom Bombadil, Heiko Oberdiek, Werner, cmhughes, mafpJun 4 '13 at 0:09

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Welcome to TeX.sx! If I am correct in assuming that your thetikzfile.tex file consists only of your tikzpicture environment, \include is not the appropriate command to use here; try \input instead. See this. – Jubobs Apr 9 '13 at 11:03
Have you tried input instead of include? I use the former all the time and it works perfectly. – Anke Apr 9 '13 at 11:04
I've edited the code. I did actually use \input. – Matthaeus Apr 9 '13 at 15:02
Can you describe how it is mis-aligned? Not centered? Have you tried to use a bounding box in your TikZ code? – Herr K. Apr 9 '13 at 15:12
@KevinC I've uploaded an example on imgur.link I haven't modified the tikzpicture, which I got from the matlab2tikz function, at all. I'll have a try when I'm back at home. – Matthaeus Apr 9 '13 at 15:25