3
votes
2answers
73 views

Vertical and Horizontal aligment with several figures and tikz figures

I've been having some trouble aligning multiple figures. The problem is present with png figures and tikz figures, so I guess I am missing something. tikz figures not properly aligned: the ...
3
votes
3answers
137 views

Tikz-Create a Picture Legend

I am trying to create a legend inside a tikzpicture. The picture shows an accelerator and I would like to make a legend that will explain each part. My code is \documentclass{standalone} ...
3
votes
1answer
94 views

How to make right alignment when using Tikz

I use tikz to draw an image, below is part of the image. But the variable name is central alignment, how to make it right alignment? Below is the related code \foreach \i [count=\j from 1] in ...
7
votes
3answers
100 views

Tikz matrix arrows alignment

I have a problem that I cannot solve for myself. The following code produces the following image, which I do not really like. \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix, ...
1
vote
0answers
64 views

Centering TikZ picture inside poster box

I would like to center a tikzpicture inside a posterbox (baposter) \headerbox{Vorgehensweise}{name=definitions,column=3,below=problem,span=3}{ \usetikzlibrary{shapes.geometric, ...
3
votes
1answer
61 views

Centering / horizontal alignment of text inside tikz boxes

I am facing a problem with centering the text inside the boxes: \documentclass[a4paper,fontsize=12pt,a4paper,DIV=10,BCOR=10mm,twoside,titlepage=false,openany,pagesize]{scrbook} ...
0
votes
0answers
50 views

Aligning figures in a table

I'm trying to align four figures vertically and horizontally. But I couldn't get it right in spite of repeated tweaks. I guess its a fairly small error. Can someone help me out? Here is a MWE -- there ...
1
vote
1answer
56 views

after end axis messes up pgfplots axis position

Latex and Tikz are going to get the life out of me... I saw Need to do some changes to pgfplots axis #39099, and that example was working fine for me; so I modified it a bit, and came up with the ...
1
vote
2answers
209 views

Placing text, includegraphics or a table above and below Tikz picture in standalone

The documents I am working with produce very large Tikz pictures (using Forest package) that span multiple horizontal and vertical pages in PDF. These pictures need to have titles, compbined of text, ...
1
vote
2answers
87 views

How to center an ellipse into a frame?

How to center an ellipse into a frame ? I've tried this but it wouldn't work : \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{frame} \begin{tikzpicture} ...
2
votes
0answers
126 views

How to draw “stacked blocks” with tikz?

I want to draw using tikz a figure which looks like the following: I started writing it using nodes and positioning them using right of =, above of = but I don't know how to avoid using hard coded ...
4
votes
2answers
131 views

Align tikzpicture to body text with node as reference

In a example like the one below I would like to adjust the figure horizontally so that the grid aligns with the surrounding text and the y-axis and the label protrudes into the margin. Note that the ...
6
votes
1answer
108 views

Aligning and centering a lstlisting with two columns on a page

Consider the following code taken from here to produce a fancy listing : % PACKAGES \documentclass[11pt,a4paper]{book} \usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry} ...
0
votes
1answer
81 views

How can I have a node spanned over multiple columns push to its cell borders' borders?

I'd like to have the (big) node with Long text long text span from the very left of cell m-2-2 to the very right of cell m-2-5. How can I achieve that? MWE \documentclass[ 11pt ]{scrartcl} ...
2
votes
1answer
79 views

How to center text in a schemabox?

I would like the text in the nodes between the arrows to be centered rather than left aligned. Using \centering or \begin{center} ... \end{center} around the minipage or setting text align=center in ...
7
votes
1answer
258 views

Overlay two .tikz files from input

I have some plots generated from matlab2tikz which I would like to overlay. Each plot is a seperate .tikz file which I input using \input. My code currently is: \pgfplotsset{ every axis/.append ...
3
votes
2answers
88 views

Tikz aligning text in nodes

I am working on a Tikz picture of a calendar. The headings of the calendar are the months and I add them with nodes. But they aren't aligned. \begin{tikzpicture}[scale = 1.3] \path (0,0)node[minimum ...
3
votes
3answers
159 views

How do I horizontally align equations with graphical calculus?

I have a graphical proof in category theory that I wrote with TikZ and the align environment (Thanks to Henri's answer in this question). The diagrams on each line have a recurring feature, a vertical ...
1
vote
1answer
127 views

Align table side by side with graph

I'm trying to get my csv table aligned to the left of my graph. The graph is appearing below (and indented) the table. Any ideas? \begin{minipage}{0.5\textwidth} \pgfplotstabletypeset[col sep=comma, ...
15
votes
2answers
1k views

Placing TikZ drawings in a minipage side by side

I've some problems with aligning some drawings I made with TikZ: I want these two TikZ pictured below to be displayed side by side with the two captions being on the same horizontal level. ...
7
votes
3answers
262 views

Maintaining alignment between irregularly vertically spaced TikZ matrix nodes

I'm trying to create a diagram with pairs of rectangles of different sizes, each separated by a fixed interval. Additionally, I want each pair to be left-aligned at the same point. Here's an example ...
3
votes
1answer
99 views

Tikz: Alignment of labels relative to a split rectangle

Is there a way for accurate placement of labels relative to the center of each of the parts of a split rectangle? The following example shows two errors: Alignment is with the left side of the ...
2
votes
1answer
378 views

How to center a tikz figure in a beamer frame

I was told to use the standalone package, which I use, but it does not seem to center the figure. What options to do I miss? Concretely, here is the main file: \documentclass{beamer} ...
2
votes
1answer
642 views

Centering text in TikZ tree node

I'd like to have my text inside TikZ tree nodes centered; below is my progress so far: \documentclass[10pt, a4paper]{article} \usepackage{tikz} \usetikzlibrary{arrows} \begin{document} \tikzset{ ...
3
votes
2answers
364 views

Tikz, rectangle split, first part aligned abnormally

Some little code two draw a rectangle with 4 parts, from library shapes.multiparts. \tikzset{ font=\sffamily, BLOCK/.style={ draw, align=center, text height=0.4cm, ...
6
votes
1answer
110 views

Align to TikZ additional separation space

In TikZ I have a styled node, in this case a matrix with an addition separation space and a dashed border. Left and right of this matrix I want to align additional nodes with the north dashed border. ...
4
votes
2answers
550 views

Text alignment using fix anchor positions in TikZ

I created some biological drawings using Dia and exported them as TikZ TeX code. I want to define some commands that insert these drawings and add some text to them. As there is a lot of text and ...
8
votes
3answers
186 views

box the size of A containing B

A thing I'd often like to do is put in my document a box the size of some text A and containing some other text B. For instance, I have two tikz nodes, one containing $n$ and one containing $n+1$, and ...
5
votes
1answer
424 views

TikZ graph not aligning

I am having two issues with TikZ pictures. I have three graphs side by side, and I am having issues, but only with some of them, which is very odd. First the x-axis is going out of alignment (some ...
2
votes
1answer
309 views

TikZ table text alignment

I'm having trouble aligning text inside a TikZ table. It currently just centres the middle letter, despite the align=left. I also tried using: row 1/.style={nodes={align=left}} (as suggested in ...
2
votes
1answer
348 views

Align tikz node labels

I have created the following picture using tikz: \tikzset{ graphnode/.style={ draw,fill, circle, minimum size=0.7mm, inner sep=0 }, } \begin{tikzpicture}[every ...
4
votes
1answer
216 views

callout boxes not aligning with aligned environment content

I've been able to create the split rectangle successfully. I've been able to work with \tikzmark and callout boxes. But now that I'm combining the two, something is going seriously wrong. Here's my ...
2
votes
2answers
1k views

Tikz picture, align left in column using beamer

I'm currently struggling with aligning a tikzpicture, within a figure environment, at the left of a column. It seems like the figure is always align centre, or right Using beamer, for a presentation. ...
8
votes
2answers
169 views

Included graphics with text: Alignment

tl;dr How do I align text to text within \included graphics? Let's look at the following logo, which I want to include (in a vector format, e.g. pdf or svg). The blue/red lines are my annotations. ...
3
votes
1answer
191 views

How can I center a tikzpicture horizontally by a certain point/coordinate?

this is a rather nit-picky question but I wanted to ask anyway. Is is possible to center the tikz figure horizontally with using the coordinate indicated by the red circle? The catch is, I have ...
8
votes
3answers
471 views

TikZ Matrix - How can I align content horizontally which is spanning over multiple cells/rows?

I'd like to finetune the big rectangle in the last column and its content, i.e. that it's all aligned to the third column's center. It is currently too far on the right: So far I have been unable ...
62
votes
1answer
8k views

Manual/automatic line breaks and text alignment in TikZ nodes

How can I insert a line break in a TikZ node? Simply putting \\ where I want the break doesn't work (see MWE). Is there a way to make lines break automatically at some specified width? And can I ...
5
votes
1answer
199 views

Array Alignment using TikZ Matrices; cell over a complete row

I want to align subplots in a pgfplot. with \matrix it is easy to align pictures. My problem is, that I need several rows with two columns/pictures and a last row with a picture over both columns. ...
1
vote
0answers
53 views

Tikz Matrix (alignment?) [duplicate]

I have the following example: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{equation} \begin{tikzpicture}[baseline=(current ...
3
votes
1answer
643 views

Alignment of tikz nodes in a chain

How can the north anchors of the nodes in a going to the right chain be aligned in a tikz picture? As can be demonstrated by the following example, by default they seem to be aligned by the center ...
8
votes
4answers
442 views

Decimal separator and axis label centering with Tikz

The following code creates a figure with Tikz without the use of pfgplots (that I want to avoid here): % compilation: pdflatex --jobname=Runge-f1 Runge.tex \documentclass[12pt]{book} ...
1
vote
1answer
345 views

Alignement of tikz-pictures and tables in subfigures

Basically, I'm trying to explain the depth-first search. I'd like to align my images in the following manner: I'd like to put two graphs in each single line, with the corresponding 'table' ...
4
votes
4answers
384 views

Tikz : node filling with text

Here is a minimal working example %!TEX TS-program = xelatex \documentclass{article} %%%%%%%%%% % Colors % %%%%%%%%%% \usepackage{xcolor} \definecolor{green}{HTML}{C2E15F} ...
1
vote
1answer
180 views

alignment of tikzpicture

I have several plots which I create with tikzpicture. The plot dimension is set to \begin{tikzpicture}[x=\textwidth]. I try to align these plots right with \begin{flushright} and \end{flushright} but ...
6
votes
1answer
1k views

Horizontal alignment of text nodes of varying length in Tikz matrix like in Tex tabular

In tablular, we use {r|c|l} to define alignment. Is there anything similar for Tikz matrix. For example, by using matrix, the following MWE produces matrix of nodes, which appear to be center aligned ...
2
votes
2answers
218 views

Tikzpicture horizontal alignment with to[grid with coordinates]

I'm trying to align horizontally three grids, two of them in one figure. Below is the sample code: \documentclass[twocolumn]{article} %% ...
2
votes
1answer
105 views

TikZ object misaligned with main document: slightly shifted to the right

The TikZ picture is not aligned with the main content of the document. It slightly shifts to the right. Notice how the words go outside the frame on the right side. Any hints on how to correct this ...
4
votes
1answer
147 views

Why does \centering have no effect in my code?

It seems that when I use the \centering command to center a TikZ picture within a Beamer frame, it only works if there is a blank line between the \end{tikzpicture} and \end{frame}. Can someone ...
1
vote
0answers
140 views

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 ...
1
vote
0answers
146 views

Why is centering a TikZ picture from an external file not the same as a centering a .png figure? [closed]

Why can't I put a Tikz picture inside \makebox? \begin{figure}[!ht] \centering \makebox[\textwidth][c]{\includegraphics[width=.8\textwidth]{./Figures/chapter5/procedure_contacts.pdf}} \end{figure} ...