Tikzpicture in figure problemAligning 2 Minipages to the top of a figure and scaling nodesTikZ: Cropping the Bounding BoxRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?TikZ/ERD: node (=Entity) label on the insideInput/Output Nodes - Specification and Description LanguageTikZ: Drawing an arc from an intersection to an intersectionDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of them

What was the idiom for something that we take without a doubt?

Have 1.5% of all nuclear reactors ever built melted down?

Did people Unsnap to where they were?

Why does Mjolnir fall down in Age of Ultron but not in Endgame?

What is a really good book for complex variables?

How to respond to an upset student?

Python program to take in two strings and print the larger string

Caught 2 students cheating together on the final exam that I proctored

Count Even Digits In Number

A Riley Respite

What to keep in mind when telling an aunt how wrong her actions are, without creating further family conflict?

Where's this lookout in Nova Scotia?

What are these arcade games in Ghostbusters 1984?

How to use libraries with delays inside within a time critical STM32 HAL application?

Inconsistent results from Wolfram Could

Are these reasonable traits for someone with autism?

Which melee weapons have the Two-Handed property, but lack Heavy and Special?

Is it possible to remotely hack the GPS system and disable GPS service worldwide?

How long until a random word with letters "A", "B", "C" ends in the pattern "ABC"?

What is Theresa May waiting for?

My employer faked my resume to acquire projects

Can I tell a prospective employee that everyone in the team is leaving?

I know that there is a preselected candidate for a position to be filled at my department. What should I do?

How to Pin Point Large File eating space in Fedora 18



Tikzpicture in figure problem


Aligning 2 Minipages to the top of a figure and scaling nodesTikZ: Cropping the Bounding BoxRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?TikZ/ERD: node (=Entity) label on the insideInput/Output Nodes - Specification and Description LanguageTikZ: Drawing an arc from an intersection to an intersectionDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of them













2















Below is my MWE. My only problem is, I need the tikzpicture to be pagewidth (textwidth) and not overflow to the right. I tried adjustbox, fbox and resizebox.



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibrarymatrix, positioning,chains
usetikzlibrarycalc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols

usepackagecapt-of


tikzstylerounddiagram = [
%tikzset
>=stealth',
punktchain/.style=
rectangle,
rounded corners,
% fill=black!10,
draw=black, very thick,
text width=10em,
minimum height=3em,
text centered,
on chain,
line/.style=draw, thick, <-,
element/.style=
tape,
top color=white,
bottom color=blue!50!black!60!,
minimum width=8em,
draw=blue!40!black!90, very thick,
text width=10em,
minimum height=3.5em,
text centered,
on chain,
every join/.style=->, thick,shorten >=1pt,
decoration=brace,
tuborg/.style=decorate,
tubnode/.style=midway, right=2pt,
]%


begindocument
beginfigure

begintikzpicture
[style=rounddiagram, node distance=.8cm, start chain=going right]
node[punktchain, join]FairRun;
node[punktchain, join]Set I/O;
node[punktchain, join]CbmStsFindClusters;
node[punktchain, join]CbmStsFindHits;
endtikzpicture
endfigure
enddocument


Any help is appreciated.










share|improve this question



















  • 1





    welcome to text.se. quick, dirthy hack: add scale=0.8, transform shape,. i would reduce size of nodes and fonts inside it.

    – Zarko
    May 12 at 22:33











  • Thanks, but thats too dirty. Don't to mess with that until it finally fits. The paper is rather of importance. Thanks though!

    – Rhynden
    May 13 at 19:27











  • Another dirty solution is put hspace-7.5ex between beginfigure and begintikzpicture

    – vi pa
    May 15 at 11:30















2















Below is my MWE. My only problem is, I need the tikzpicture to be pagewidth (textwidth) and not overflow to the right. I tried adjustbox, fbox and resizebox.



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibrarymatrix, positioning,chains
usetikzlibrarycalc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols

usepackagecapt-of


tikzstylerounddiagram = [
%tikzset
>=stealth',
punktchain/.style=
rectangle,
rounded corners,
% fill=black!10,
draw=black, very thick,
text width=10em,
minimum height=3em,
text centered,
on chain,
line/.style=draw, thick, <-,
element/.style=
tape,
top color=white,
bottom color=blue!50!black!60!,
minimum width=8em,
draw=blue!40!black!90, very thick,
text width=10em,
minimum height=3.5em,
text centered,
on chain,
every join/.style=->, thick,shorten >=1pt,
decoration=brace,
tuborg/.style=decorate,
tubnode/.style=midway, right=2pt,
]%


begindocument
beginfigure

begintikzpicture
[style=rounddiagram, node distance=.8cm, start chain=going right]
node[punktchain, join]FairRun;
node[punktchain, join]Set I/O;
node[punktchain, join]CbmStsFindClusters;
node[punktchain, join]CbmStsFindHits;
endtikzpicture
endfigure
enddocument


Any help is appreciated.










share|improve this question



















  • 1





    welcome to text.se. quick, dirthy hack: add scale=0.8, transform shape,. i would reduce size of nodes and fonts inside it.

    – Zarko
    May 12 at 22:33











  • Thanks, but thats too dirty. Don't to mess with that until it finally fits. The paper is rather of importance. Thanks though!

    – Rhynden
    May 13 at 19:27











  • Another dirty solution is put hspace-7.5ex between beginfigure and begintikzpicture

    – vi pa
    May 15 at 11:30













2












2








2








Below is my MWE. My only problem is, I need the tikzpicture to be pagewidth (textwidth) and not overflow to the right. I tried adjustbox, fbox and resizebox.



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibrarymatrix, positioning,chains
usetikzlibrarycalc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols

usepackagecapt-of


tikzstylerounddiagram = [
%tikzset
>=stealth',
punktchain/.style=
rectangle,
rounded corners,
% fill=black!10,
draw=black, very thick,
text width=10em,
minimum height=3em,
text centered,
on chain,
line/.style=draw, thick, <-,
element/.style=
tape,
top color=white,
bottom color=blue!50!black!60!,
minimum width=8em,
draw=blue!40!black!90, very thick,
text width=10em,
minimum height=3.5em,
text centered,
on chain,
every join/.style=->, thick,shorten >=1pt,
decoration=brace,
tuborg/.style=decorate,
tubnode/.style=midway, right=2pt,
]%


begindocument
beginfigure

begintikzpicture
[style=rounddiagram, node distance=.8cm, start chain=going right]
node[punktchain, join]FairRun;
node[punktchain, join]Set I/O;
node[punktchain, join]CbmStsFindClusters;
node[punktchain, join]CbmStsFindHits;
endtikzpicture
endfigure
enddocument


Any help is appreciated.










share|improve this question
















Below is my MWE. My only problem is, I need the tikzpicture to be pagewidth (textwidth) and not overflow to the right. I tried adjustbox, fbox and resizebox.



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibrarymatrix, positioning,chains
usetikzlibrarycalc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols

usepackagecapt-of


tikzstylerounddiagram = [
%tikzset
>=stealth',
punktchain/.style=
rectangle,
rounded corners,
% fill=black!10,
draw=black, very thick,
text width=10em,
minimum height=3em,
text centered,
on chain,
line/.style=draw, thick, <-,
element/.style=
tape,
top color=white,
bottom color=blue!50!black!60!,
minimum width=8em,
draw=blue!40!black!90, very thick,
text width=10em,
minimum height=3.5em,
text centered,
on chain,
every join/.style=->, thick,shorten >=1pt,
decoration=brace,
tuborg/.style=decorate,
tubnode/.style=midway, right=2pt,
]%


begindocument
beginfigure

begintikzpicture
[style=rounddiagram, node distance=.8cm, start chain=going right]
node[punktchain, join]FairRun;
node[punktchain, join]Set I/O;
node[punktchain, join]CbmStsFindClusters;
node[punktchain, join]CbmStsFindHits;
endtikzpicture
endfigure
enddocument


Any help is appreciated.







tikz-pgf floats tikz-styles adjustbox






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 12 at 23:59









jGaboardi

194113




194113










asked May 12 at 22:23









RhyndenRhynden

495




495







  • 1





    welcome to text.se. quick, dirthy hack: add scale=0.8, transform shape,. i would reduce size of nodes and fonts inside it.

    – Zarko
    May 12 at 22:33











  • Thanks, but thats too dirty. Don't to mess with that until it finally fits. The paper is rather of importance. Thanks though!

    – Rhynden
    May 13 at 19:27











  • Another dirty solution is put hspace-7.5ex between beginfigure and begintikzpicture

    – vi pa
    May 15 at 11:30












  • 1





    welcome to text.se. quick, dirthy hack: add scale=0.8, transform shape,. i would reduce size of nodes and fonts inside it.

    – Zarko
    May 12 at 22:33











  • Thanks, but thats too dirty. Don't to mess with that until it finally fits. The paper is rather of importance. Thanks though!

    – Rhynden
    May 13 at 19:27











  • Another dirty solution is put hspace-7.5ex between beginfigure and begintikzpicture

    – vi pa
    May 15 at 11:30







1




1





welcome to text.se. quick, dirthy hack: add scale=0.8, transform shape,. i would reduce size of nodes and fonts inside it.

– Zarko
May 12 at 22:33





welcome to text.se. quick, dirthy hack: add scale=0.8, transform shape,. i would reduce size of nodes and fonts inside it.

– Zarko
May 12 at 22:33













Thanks, but thats too dirty. Don't to mess with that until it finally fits. The paper is rather of importance. Thanks though!

– Rhynden
May 13 at 19:27





Thanks, but thats too dirty. Don't to mess with that until it finally fits. The paper is rather of importance. Thanks though!

– Rhynden
May 13 at 19:27













Another dirty solution is put hspace-7.5ex between beginfigure and begintikzpicture

– vi pa
May 15 at 11:30





Another dirty solution is put hspace-7.5ex between beginfigure and begintikzpicture

– vi pa
May 15 at 11:30










3 Answers
3






active

oldest

votes


















4














You can always compute the maximal width the nodes should have to fill the full page precisely. We need 4*(space taken by a node)+3*(node distance)=textwidth, where space taken by a node=(text width) + 2*(inner sep)+2*(outer sep). Note that tikzstyle is deprecated.



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibrarymatrix, positioning,chains
usetikzlibrarycalc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols

usepackagecapt-of


tikzsetrounddiagram/.style=>=stealth',
punktchain/.style=
rectangle,
rounded corners,
% fill=black!10,
draw=black, very thick,
text width=10em,
minimum height=3em,
text centered,
on chain,
% line/.style=draw, thick, <-,
% element/.style=
% tape,
% top color=white,
% bottom color=blue!50!black!60!,
% minimum width=8em,
% draw=blue!40!black!90, very thick,
% text width=10em,
% minimum height=3.5em,
% text centered,
% on chain,
every join/.style=->, thick,shorten >=1pt,
% decoration=brace,
% tuborg/.style=decorate,
% tubnode/.style=midway, right=2pt,



begindocument
beginfigure

begintikzpicture[rounddiagram, node distance=.8cm, start chain=going right]
pgfmathsetmacromynodewidth(textwidth-3*0.8cm)/4-4pt
beginscope[punktchain/.append style=text width=mynodewidth pt,inner sep=1pt,outer
sep=1pt]
node[punktchain, join]FairRun;
node[punktchain, join]Set I/O;
node[punktchain, join]CbmStsFindClusters;
node[punktchain, join]CbmStsFindHits;
endscope
endtikzpicture
endfigure
enddocument


enter image description here



The output suggests that you may either want to write the text of the third node in two lines, have different widths for different nodes or to make them smaller by using scale=(something <1) in the nodes.



Let's assume you only want to scale the text. The scale factor that makes the picture precisely fit can be computed as follows.



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibrarypositioning,chains,arrows


tikzsetrounddiagram/.style=>=stealth',
punktchain/.style=
rectangle,
rounded corners,
draw=black, very thick,
text width=10em,
minimum height=3em,
text centered,
on chain,
every join/.style=->, thick,shorten >=1pt


begindocument
beginfigure

begintikzpicture[rounddiagram, node distance=.8cm, start chain=going right]
defmyLstFairRun,Set I/O,CbmStsFindClusters,CbmStsFindHits
defmywidth0
foreach X [count=Y] in myLst

pgfmathsetmacromywidthmax(width("X"),mywidth)
xdefmywidthmywidth

pgfmathsetmacromynodewidth(textwidth-3*0.8cm)/4-4pt
pgfmathsetmacromyscale(mynodewidth-4)/mywidth
foreach X in myLst
node[punktchain,join,text width=mynodewidth pt,inner sep=1pt,outer
sep=1pt]scaleboxmyscaleX;
endtikzpicture
endfigure
enddocument


enter image description here



As you can see, all you need to do is to supply the code with the list myLst which contains the texts, everything else is automatic.






share|improve this answer

























  • Thanks, that's the cleanest way for me, though it's more complicated. But really works like a charm.

    – Rhynden
    May 13 at 19:33



















3














There are two approaches:



As @Zarko mentioned, you can change the font and reduce the size of the text width. The second approach is to leave everything the same and add transform canvas=xshift = 0.8cm to tikzpicture options.



Output



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibrarymatrix, positioning,chains
usetikzlibrarycalc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols

usepackagecapt-of


tikzstylerounddiagram = [
%tikzset
>=stealth',
punktchain/.style=
rectangle,
rounded corners,
% fill=black!10,
draw=black, very thick,
text width=7.5em,
minimum height=3em,
text centered,
font = footnotesize,
on chain,
line/.style=draw, thick, <-,
element/.style=
tape,
top color=white,
bottom color=blue!50!black!60!,
minimum width=8em,
draw=blue!40!black!90, very thick,
text width=10em,
minimum height=3.5em,
text centered,
on chain,
every join/.style=->, thick,shorten >=1pt,
decoration=brace,
tuborg/.style=decorate,
tubnode/.style=midway, right=2pt,
]%


begindocument
beginfigure
begintikzpicture
[style=rounddiagram, node distance=.8cm, start chain=going right]
node[punktchain, join]FairRun;
node[punktchain, join]Set I/O;
node[punktchain, join]CbmStsFindClusters;
node[punktchain, join]CbmStsFindHits;
endtikzpicture
endfigure

beginfigure
begintikzpicture
[style=rounddiagram, node distance=.8cm, start chain=going right, transform canvas=xshift = 0.8cm]
node[punktchain, join, text width=10em, font =normalsize]FairRun;
node[punktchain, join, text width=10em, font =normalsize]Set I/O;
node[punktchain, join, text width=10em, font =normalsize]CbmStsFindClusters;
node[punktchain, join, text width=10em, font =normalsize]CbmStsFindHits;
endtikzpicture
endfigure
enddocument





share|improve this answer























  • Thanks that worked well, but I stick to marmots answer. :)

    – Rhynden
    May 13 at 19:35











  • @Rhynden As you wish! He always have neat solutions.

    – M. Al Jumaily
    May 13 at 19:36


















3














i would change text width with minimum width which i would reduce to smaller size, for example to 7em. also I would all doubled TikZ libraries and use tikzset instead of tikzstyle:



enter image description here



(red lines indicate text borders)



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibraryarrows,
calc, chains,
decorations.pathreplacing, decorations.pathmorphing,
matrix,
positioning,
shapes.geometric, shapes.symbols,
trees


usepackagecapt-of


tikzsetrounddiagram/.style =
>=stealth',
punktchain/.style = rectangle, rounded corners, draw, very thick,
minimum width=7em, % <--- changed from "text width"
minimum height=5ex,
align=center, on chain,
line/.style = draw, thick, <-,
element/.style = tape, draw=blue!40!black!90, very thick,
top color=white, bottom color=blue!50!black!60!,
text width=10em, minimum height=7ex,
align=center, on chain,
every join/.style = ->, thick,shorten >=1pt,
decoration = brace,
tuborg/.style = decorate,
tubnode/.style = midway, right=2pt,


%---------------- show page layout. don't use in a real document!
usepackageshowframe
renewcommandShowFrameLinethickness0.15pt
renewcommand*ShowFrameColorcolorred
%---------------------------------------------------------------%


begindocument
beginfigure
centering
begintikzpicture[style=rounddiagram,
node distance=5mm,
start chain=going right,
punktchain/.append style = join
]
node[punktchain] FairRun;
node[punktchain] Set I/O;
node[punktchain] CbmStsFindClusters;
node[punktchain] CbmStsFindHits;
endtikzpicture
endfigure
enddocument





share|improve this answer

























  • Thanks that worked better than the scale option and wasn't dirty, though I stick to marmots answer. :)

    – Rhynden
    May 13 at 19:35











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f490541%2ftikzpicture-in-figure-problem%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














You can always compute the maximal width the nodes should have to fill the full page precisely. We need 4*(space taken by a node)+3*(node distance)=textwidth, where space taken by a node=(text width) + 2*(inner sep)+2*(outer sep). Note that tikzstyle is deprecated.



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibrarymatrix, positioning,chains
usetikzlibrarycalc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols

usepackagecapt-of


tikzsetrounddiagram/.style=>=stealth',
punktchain/.style=
rectangle,
rounded corners,
% fill=black!10,
draw=black, very thick,
text width=10em,
minimum height=3em,
text centered,
on chain,
% line/.style=draw, thick, <-,
% element/.style=
% tape,
% top color=white,
% bottom color=blue!50!black!60!,
% minimum width=8em,
% draw=blue!40!black!90, very thick,
% text width=10em,
% minimum height=3.5em,
% text centered,
% on chain,
every join/.style=->, thick,shorten >=1pt,
% decoration=brace,
% tuborg/.style=decorate,
% tubnode/.style=midway, right=2pt,



begindocument
beginfigure

begintikzpicture[rounddiagram, node distance=.8cm, start chain=going right]
pgfmathsetmacromynodewidth(textwidth-3*0.8cm)/4-4pt
beginscope[punktchain/.append style=text width=mynodewidth pt,inner sep=1pt,outer
sep=1pt]
node[punktchain, join]FairRun;
node[punktchain, join]Set I/O;
node[punktchain, join]CbmStsFindClusters;
node[punktchain, join]CbmStsFindHits;
endscope
endtikzpicture
endfigure
enddocument


enter image description here



The output suggests that you may either want to write the text of the third node in two lines, have different widths for different nodes or to make them smaller by using scale=(something <1) in the nodes.



Let's assume you only want to scale the text. The scale factor that makes the picture precisely fit can be computed as follows.



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibrarypositioning,chains,arrows


tikzsetrounddiagram/.style=>=stealth',
punktchain/.style=
rectangle,
rounded corners,
draw=black, very thick,
text width=10em,
minimum height=3em,
text centered,
on chain,
every join/.style=->, thick,shorten >=1pt


begindocument
beginfigure

begintikzpicture[rounddiagram, node distance=.8cm, start chain=going right]
defmyLstFairRun,Set I/O,CbmStsFindClusters,CbmStsFindHits
defmywidth0
foreach X [count=Y] in myLst

pgfmathsetmacromywidthmax(width("X"),mywidth)
xdefmywidthmywidth

pgfmathsetmacromynodewidth(textwidth-3*0.8cm)/4-4pt
pgfmathsetmacromyscale(mynodewidth-4)/mywidth
foreach X in myLst
node[punktchain,join,text width=mynodewidth pt,inner sep=1pt,outer
sep=1pt]scaleboxmyscaleX;
endtikzpicture
endfigure
enddocument


enter image description here



As you can see, all you need to do is to supply the code with the list myLst which contains the texts, everything else is automatic.






share|improve this answer

























  • Thanks, that's the cleanest way for me, though it's more complicated. But really works like a charm.

    – Rhynden
    May 13 at 19:33
















4














You can always compute the maximal width the nodes should have to fill the full page precisely. We need 4*(space taken by a node)+3*(node distance)=textwidth, where space taken by a node=(text width) + 2*(inner sep)+2*(outer sep). Note that tikzstyle is deprecated.



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibrarymatrix, positioning,chains
usetikzlibrarycalc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols

usepackagecapt-of


tikzsetrounddiagram/.style=>=stealth',
punktchain/.style=
rectangle,
rounded corners,
% fill=black!10,
draw=black, very thick,
text width=10em,
minimum height=3em,
text centered,
on chain,
% line/.style=draw, thick, <-,
% element/.style=
% tape,
% top color=white,
% bottom color=blue!50!black!60!,
% minimum width=8em,
% draw=blue!40!black!90, very thick,
% text width=10em,
% minimum height=3.5em,
% text centered,
% on chain,
every join/.style=->, thick,shorten >=1pt,
% decoration=brace,
% tuborg/.style=decorate,
% tubnode/.style=midway, right=2pt,



begindocument
beginfigure

begintikzpicture[rounddiagram, node distance=.8cm, start chain=going right]
pgfmathsetmacromynodewidth(textwidth-3*0.8cm)/4-4pt
beginscope[punktchain/.append style=text width=mynodewidth pt,inner sep=1pt,outer
sep=1pt]
node[punktchain, join]FairRun;
node[punktchain, join]Set I/O;
node[punktchain, join]CbmStsFindClusters;
node[punktchain, join]CbmStsFindHits;
endscope
endtikzpicture
endfigure
enddocument


enter image description here



The output suggests that you may either want to write the text of the third node in two lines, have different widths for different nodes or to make them smaller by using scale=(something <1) in the nodes.



Let's assume you only want to scale the text. The scale factor that makes the picture precisely fit can be computed as follows.



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibrarypositioning,chains,arrows


tikzsetrounddiagram/.style=>=stealth',
punktchain/.style=
rectangle,
rounded corners,
draw=black, very thick,
text width=10em,
minimum height=3em,
text centered,
on chain,
every join/.style=->, thick,shorten >=1pt


begindocument
beginfigure

begintikzpicture[rounddiagram, node distance=.8cm, start chain=going right]
defmyLstFairRun,Set I/O,CbmStsFindClusters,CbmStsFindHits
defmywidth0
foreach X [count=Y] in myLst

pgfmathsetmacromywidthmax(width("X"),mywidth)
xdefmywidthmywidth

pgfmathsetmacromynodewidth(textwidth-3*0.8cm)/4-4pt
pgfmathsetmacromyscale(mynodewidth-4)/mywidth
foreach X in myLst
node[punktchain,join,text width=mynodewidth pt,inner sep=1pt,outer
sep=1pt]scaleboxmyscaleX;
endtikzpicture
endfigure
enddocument


enter image description here



As you can see, all you need to do is to supply the code with the list myLst which contains the texts, everything else is automatic.






share|improve this answer

























  • Thanks, that's the cleanest way for me, though it's more complicated. But really works like a charm.

    – Rhynden
    May 13 at 19:33














4












4








4







You can always compute the maximal width the nodes should have to fill the full page precisely. We need 4*(space taken by a node)+3*(node distance)=textwidth, where space taken by a node=(text width) + 2*(inner sep)+2*(outer sep). Note that tikzstyle is deprecated.



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibrarymatrix, positioning,chains
usetikzlibrarycalc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols

usepackagecapt-of


tikzsetrounddiagram/.style=>=stealth',
punktchain/.style=
rectangle,
rounded corners,
% fill=black!10,
draw=black, very thick,
text width=10em,
minimum height=3em,
text centered,
on chain,
% line/.style=draw, thick, <-,
% element/.style=
% tape,
% top color=white,
% bottom color=blue!50!black!60!,
% minimum width=8em,
% draw=blue!40!black!90, very thick,
% text width=10em,
% minimum height=3.5em,
% text centered,
% on chain,
every join/.style=->, thick,shorten >=1pt,
% decoration=brace,
% tuborg/.style=decorate,
% tubnode/.style=midway, right=2pt,



begindocument
beginfigure

begintikzpicture[rounddiagram, node distance=.8cm, start chain=going right]
pgfmathsetmacromynodewidth(textwidth-3*0.8cm)/4-4pt
beginscope[punktchain/.append style=text width=mynodewidth pt,inner sep=1pt,outer
sep=1pt]
node[punktchain, join]FairRun;
node[punktchain, join]Set I/O;
node[punktchain, join]CbmStsFindClusters;
node[punktchain, join]CbmStsFindHits;
endscope
endtikzpicture
endfigure
enddocument


enter image description here



The output suggests that you may either want to write the text of the third node in two lines, have different widths for different nodes or to make them smaller by using scale=(something <1) in the nodes.



Let's assume you only want to scale the text. The scale factor that makes the picture precisely fit can be computed as follows.



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibrarypositioning,chains,arrows


tikzsetrounddiagram/.style=>=stealth',
punktchain/.style=
rectangle,
rounded corners,
draw=black, very thick,
text width=10em,
minimum height=3em,
text centered,
on chain,
every join/.style=->, thick,shorten >=1pt


begindocument
beginfigure

begintikzpicture[rounddiagram, node distance=.8cm, start chain=going right]
defmyLstFairRun,Set I/O,CbmStsFindClusters,CbmStsFindHits
defmywidth0
foreach X [count=Y] in myLst

pgfmathsetmacromywidthmax(width("X"),mywidth)
xdefmywidthmywidth

pgfmathsetmacromynodewidth(textwidth-3*0.8cm)/4-4pt
pgfmathsetmacromyscale(mynodewidth-4)/mywidth
foreach X in myLst
node[punktchain,join,text width=mynodewidth pt,inner sep=1pt,outer
sep=1pt]scaleboxmyscaleX;
endtikzpicture
endfigure
enddocument


enter image description here



As you can see, all you need to do is to supply the code with the list myLst which contains the texts, everything else is automatic.






share|improve this answer















You can always compute the maximal width the nodes should have to fill the full page precisely. We need 4*(space taken by a node)+3*(node distance)=textwidth, where space taken by a node=(text width) + 2*(inner sep)+2*(outer sep). Note that tikzstyle is deprecated.



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibrarymatrix, positioning,chains
usetikzlibrarycalc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols

usepackagecapt-of


tikzsetrounddiagram/.style=>=stealth',
punktchain/.style=
rectangle,
rounded corners,
% fill=black!10,
draw=black, very thick,
text width=10em,
minimum height=3em,
text centered,
on chain,
% line/.style=draw, thick, <-,
% element/.style=
% tape,
% top color=white,
% bottom color=blue!50!black!60!,
% minimum width=8em,
% draw=blue!40!black!90, very thick,
% text width=10em,
% minimum height=3.5em,
% text centered,
% on chain,
every join/.style=->, thick,shorten >=1pt,
% decoration=brace,
% tuborg/.style=decorate,
% tubnode/.style=midway, right=2pt,



begindocument
beginfigure

begintikzpicture[rounddiagram, node distance=.8cm, start chain=going right]
pgfmathsetmacromynodewidth(textwidth-3*0.8cm)/4-4pt
beginscope[punktchain/.append style=text width=mynodewidth pt,inner sep=1pt,outer
sep=1pt]
node[punktchain, join]FairRun;
node[punktchain, join]Set I/O;
node[punktchain, join]CbmStsFindClusters;
node[punktchain, join]CbmStsFindHits;
endscope
endtikzpicture
endfigure
enddocument


enter image description here



The output suggests that you may either want to write the text of the third node in two lines, have different widths for different nodes or to make them smaller by using scale=(something <1) in the nodes.



Let's assume you only want to scale the text. The scale factor that makes the picture precisely fit can be computed as follows.



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibrarypositioning,chains,arrows


tikzsetrounddiagram/.style=>=stealth',
punktchain/.style=
rectangle,
rounded corners,
draw=black, very thick,
text width=10em,
minimum height=3em,
text centered,
on chain,
every join/.style=->, thick,shorten >=1pt


begindocument
beginfigure

begintikzpicture[rounddiagram, node distance=.8cm, start chain=going right]
defmyLstFairRun,Set I/O,CbmStsFindClusters,CbmStsFindHits
defmywidth0
foreach X [count=Y] in myLst

pgfmathsetmacromywidthmax(width("X"),mywidth)
xdefmywidthmywidth

pgfmathsetmacromynodewidth(textwidth-3*0.8cm)/4-4pt
pgfmathsetmacromyscale(mynodewidth-4)/mywidth
foreach X in myLst
node[punktchain,join,text width=mynodewidth pt,inner sep=1pt,outer
sep=1pt]scaleboxmyscaleX;
endtikzpicture
endfigure
enddocument


enter image description here



As you can see, all you need to do is to supply the code with the list myLst which contains the texts, everything else is automatic.







share|improve this answer














share|improve this answer



share|improve this answer








edited May 13 at 1:55

























answered May 12 at 22:39









marmotmarmot

130k6164311




130k6164311












  • Thanks, that's the cleanest way for me, though it's more complicated. But really works like a charm.

    – Rhynden
    May 13 at 19:33


















  • Thanks, that's the cleanest way for me, though it's more complicated. But really works like a charm.

    – Rhynden
    May 13 at 19:33

















Thanks, that's the cleanest way for me, though it's more complicated. But really works like a charm.

– Rhynden
May 13 at 19:33






Thanks, that's the cleanest way for me, though it's more complicated. But really works like a charm.

– Rhynden
May 13 at 19:33












3














There are two approaches:



As @Zarko mentioned, you can change the font and reduce the size of the text width. The second approach is to leave everything the same and add transform canvas=xshift = 0.8cm to tikzpicture options.



Output



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibrarymatrix, positioning,chains
usetikzlibrarycalc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols

usepackagecapt-of


tikzstylerounddiagram = [
%tikzset
>=stealth',
punktchain/.style=
rectangle,
rounded corners,
% fill=black!10,
draw=black, very thick,
text width=7.5em,
minimum height=3em,
text centered,
font = footnotesize,
on chain,
line/.style=draw, thick, <-,
element/.style=
tape,
top color=white,
bottom color=blue!50!black!60!,
minimum width=8em,
draw=blue!40!black!90, very thick,
text width=10em,
minimum height=3.5em,
text centered,
on chain,
every join/.style=->, thick,shorten >=1pt,
decoration=brace,
tuborg/.style=decorate,
tubnode/.style=midway, right=2pt,
]%


begindocument
beginfigure
begintikzpicture
[style=rounddiagram, node distance=.8cm, start chain=going right]
node[punktchain, join]FairRun;
node[punktchain, join]Set I/O;
node[punktchain, join]CbmStsFindClusters;
node[punktchain, join]CbmStsFindHits;
endtikzpicture
endfigure

beginfigure
begintikzpicture
[style=rounddiagram, node distance=.8cm, start chain=going right, transform canvas=xshift = 0.8cm]
node[punktchain, join, text width=10em, font =normalsize]FairRun;
node[punktchain, join, text width=10em, font =normalsize]Set I/O;
node[punktchain, join, text width=10em, font =normalsize]CbmStsFindClusters;
node[punktchain, join, text width=10em, font =normalsize]CbmStsFindHits;
endtikzpicture
endfigure
enddocument





share|improve this answer























  • Thanks that worked well, but I stick to marmots answer. :)

    – Rhynden
    May 13 at 19:35











  • @Rhynden As you wish! He always have neat solutions.

    – M. Al Jumaily
    May 13 at 19:36















3














There are two approaches:



As @Zarko mentioned, you can change the font and reduce the size of the text width. The second approach is to leave everything the same and add transform canvas=xshift = 0.8cm to tikzpicture options.



Output



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibrarymatrix, positioning,chains
usetikzlibrarycalc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols

usepackagecapt-of


tikzstylerounddiagram = [
%tikzset
>=stealth',
punktchain/.style=
rectangle,
rounded corners,
% fill=black!10,
draw=black, very thick,
text width=7.5em,
minimum height=3em,
text centered,
font = footnotesize,
on chain,
line/.style=draw, thick, <-,
element/.style=
tape,
top color=white,
bottom color=blue!50!black!60!,
minimum width=8em,
draw=blue!40!black!90, very thick,
text width=10em,
minimum height=3.5em,
text centered,
on chain,
every join/.style=->, thick,shorten >=1pt,
decoration=brace,
tuborg/.style=decorate,
tubnode/.style=midway, right=2pt,
]%


begindocument
beginfigure
begintikzpicture
[style=rounddiagram, node distance=.8cm, start chain=going right]
node[punktchain, join]FairRun;
node[punktchain, join]Set I/O;
node[punktchain, join]CbmStsFindClusters;
node[punktchain, join]CbmStsFindHits;
endtikzpicture
endfigure

beginfigure
begintikzpicture
[style=rounddiagram, node distance=.8cm, start chain=going right, transform canvas=xshift = 0.8cm]
node[punktchain, join, text width=10em, font =normalsize]FairRun;
node[punktchain, join, text width=10em, font =normalsize]Set I/O;
node[punktchain, join, text width=10em, font =normalsize]CbmStsFindClusters;
node[punktchain, join, text width=10em, font =normalsize]CbmStsFindHits;
endtikzpicture
endfigure
enddocument





share|improve this answer























  • Thanks that worked well, but I stick to marmots answer. :)

    – Rhynden
    May 13 at 19:35











  • @Rhynden As you wish! He always have neat solutions.

    – M. Al Jumaily
    May 13 at 19:36













3












3








3







There are two approaches:



As @Zarko mentioned, you can change the font and reduce the size of the text width. The second approach is to leave everything the same and add transform canvas=xshift = 0.8cm to tikzpicture options.



Output



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibrarymatrix, positioning,chains
usetikzlibrarycalc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols

usepackagecapt-of


tikzstylerounddiagram = [
%tikzset
>=stealth',
punktchain/.style=
rectangle,
rounded corners,
% fill=black!10,
draw=black, very thick,
text width=7.5em,
minimum height=3em,
text centered,
font = footnotesize,
on chain,
line/.style=draw, thick, <-,
element/.style=
tape,
top color=white,
bottom color=blue!50!black!60!,
minimum width=8em,
draw=blue!40!black!90, very thick,
text width=10em,
minimum height=3.5em,
text centered,
on chain,
every join/.style=->, thick,shorten >=1pt,
decoration=brace,
tuborg/.style=decorate,
tubnode/.style=midway, right=2pt,
]%


begindocument
beginfigure
begintikzpicture
[style=rounddiagram, node distance=.8cm, start chain=going right]
node[punktchain, join]FairRun;
node[punktchain, join]Set I/O;
node[punktchain, join]CbmStsFindClusters;
node[punktchain, join]CbmStsFindHits;
endtikzpicture
endfigure

beginfigure
begintikzpicture
[style=rounddiagram, node distance=.8cm, start chain=going right, transform canvas=xshift = 0.8cm]
node[punktchain, join, text width=10em, font =normalsize]FairRun;
node[punktchain, join, text width=10em, font =normalsize]Set I/O;
node[punktchain, join, text width=10em, font =normalsize]CbmStsFindClusters;
node[punktchain, join, text width=10em, font =normalsize]CbmStsFindHits;
endtikzpicture
endfigure
enddocument





share|improve this answer













There are two approaches:



As @Zarko mentioned, you can change the font and reduce the size of the text width. The second approach is to leave everything the same and add transform canvas=xshift = 0.8cm to tikzpicture options.



Output



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibrarymatrix, positioning,chains
usetikzlibrarycalc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols

usepackagecapt-of


tikzstylerounddiagram = [
%tikzset
>=stealth',
punktchain/.style=
rectangle,
rounded corners,
% fill=black!10,
draw=black, very thick,
text width=7.5em,
minimum height=3em,
text centered,
font = footnotesize,
on chain,
line/.style=draw, thick, <-,
element/.style=
tape,
top color=white,
bottom color=blue!50!black!60!,
minimum width=8em,
draw=blue!40!black!90, very thick,
text width=10em,
minimum height=3.5em,
text centered,
on chain,
every join/.style=->, thick,shorten >=1pt,
decoration=brace,
tuborg/.style=decorate,
tubnode/.style=midway, right=2pt,
]%


begindocument
beginfigure
begintikzpicture
[style=rounddiagram, node distance=.8cm, start chain=going right]
node[punktchain, join]FairRun;
node[punktchain, join]Set I/O;
node[punktchain, join]CbmStsFindClusters;
node[punktchain, join]CbmStsFindHits;
endtikzpicture
endfigure

beginfigure
begintikzpicture
[style=rounddiagram, node distance=.8cm, start chain=going right, transform canvas=xshift = 0.8cm]
node[punktchain, join, text width=10em, font =normalsize]FairRun;
node[punktchain, join, text width=10em, font =normalsize]Set I/O;
node[punktchain, join, text width=10em, font =normalsize]CbmStsFindClusters;
node[punktchain, join, text width=10em, font =normalsize]CbmStsFindHits;
endtikzpicture
endfigure
enddocument






share|improve this answer












share|improve this answer



share|improve this answer










answered May 12 at 22:44









M. Al JumailyM. Al Jumaily

1,1661210




1,1661210












  • Thanks that worked well, but I stick to marmots answer. :)

    – Rhynden
    May 13 at 19:35











  • @Rhynden As you wish! He always have neat solutions.

    – M. Al Jumaily
    May 13 at 19:36

















  • Thanks that worked well, but I stick to marmots answer. :)

    – Rhynden
    May 13 at 19:35











  • @Rhynden As you wish! He always have neat solutions.

    – M. Al Jumaily
    May 13 at 19:36
















Thanks that worked well, but I stick to marmots answer. :)

– Rhynden
May 13 at 19:35





Thanks that worked well, but I stick to marmots answer. :)

– Rhynden
May 13 at 19:35













@Rhynden As you wish! He always have neat solutions.

– M. Al Jumaily
May 13 at 19:36





@Rhynden As you wish! He always have neat solutions.

– M. Al Jumaily
May 13 at 19:36











3














i would change text width with minimum width which i would reduce to smaller size, for example to 7em. also I would all doubled TikZ libraries and use tikzset instead of tikzstyle:



enter image description here



(red lines indicate text borders)



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibraryarrows,
calc, chains,
decorations.pathreplacing, decorations.pathmorphing,
matrix,
positioning,
shapes.geometric, shapes.symbols,
trees


usepackagecapt-of


tikzsetrounddiagram/.style =
>=stealth',
punktchain/.style = rectangle, rounded corners, draw, very thick,
minimum width=7em, % <--- changed from "text width"
minimum height=5ex,
align=center, on chain,
line/.style = draw, thick, <-,
element/.style = tape, draw=blue!40!black!90, very thick,
top color=white, bottom color=blue!50!black!60!,
text width=10em, minimum height=7ex,
align=center, on chain,
every join/.style = ->, thick,shorten >=1pt,
decoration = brace,
tuborg/.style = decorate,
tubnode/.style = midway, right=2pt,


%---------------- show page layout. don't use in a real document!
usepackageshowframe
renewcommandShowFrameLinethickness0.15pt
renewcommand*ShowFrameColorcolorred
%---------------------------------------------------------------%


begindocument
beginfigure
centering
begintikzpicture[style=rounddiagram,
node distance=5mm,
start chain=going right,
punktchain/.append style = join
]
node[punktchain] FairRun;
node[punktchain] Set I/O;
node[punktchain] CbmStsFindClusters;
node[punktchain] CbmStsFindHits;
endtikzpicture
endfigure
enddocument





share|improve this answer

























  • Thanks that worked better than the scale option and wasn't dirty, though I stick to marmots answer. :)

    – Rhynden
    May 13 at 19:35















3














i would change text width with minimum width which i would reduce to smaller size, for example to 7em. also I would all doubled TikZ libraries and use tikzset instead of tikzstyle:



enter image description here



(red lines indicate text borders)



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibraryarrows,
calc, chains,
decorations.pathreplacing, decorations.pathmorphing,
matrix,
positioning,
shapes.geometric, shapes.symbols,
trees


usepackagecapt-of


tikzsetrounddiagram/.style =
>=stealth',
punktchain/.style = rectangle, rounded corners, draw, very thick,
minimum width=7em, % <--- changed from "text width"
minimum height=5ex,
align=center, on chain,
line/.style = draw, thick, <-,
element/.style = tape, draw=blue!40!black!90, very thick,
top color=white, bottom color=blue!50!black!60!,
text width=10em, minimum height=7ex,
align=center, on chain,
every join/.style = ->, thick,shorten >=1pt,
decoration = brace,
tuborg/.style = decorate,
tubnode/.style = midway, right=2pt,


%---------------- show page layout. don't use in a real document!
usepackageshowframe
renewcommandShowFrameLinethickness0.15pt
renewcommand*ShowFrameColorcolorred
%---------------------------------------------------------------%


begindocument
beginfigure
centering
begintikzpicture[style=rounddiagram,
node distance=5mm,
start chain=going right,
punktchain/.append style = join
]
node[punktchain] FairRun;
node[punktchain] Set I/O;
node[punktchain] CbmStsFindClusters;
node[punktchain] CbmStsFindHits;
endtikzpicture
endfigure
enddocument





share|improve this answer

























  • Thanks that worked better than the scale option and wasn't dirty, though I stick to marmots answer. :)

    – Rhynden
    May 13 at 19:35













3












3








3







i would change text width with minimum width which i would reduce to smaller size, for example to 7em. also I would all doubled TikZ libraries and use tikzset instead of tikzstyle:



enter image description here



(red lines indicate text borders)



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibraryarrows,
calc, chains,
decorations.pathreplacing, decorations.pathmorphing,
matrix,
positioning,
shapes.geometric, shapes.symbols,
trees


usepackagecapt-of


tikzsetrounddiagram/.style =
>=stealth',
punktchain/.style = rectangle, rounded corners, draw, very thick,
minimum width=7em, % <--- changed from "text width"
minimum height=5ex,
align=center, on chain,
line/.style = draw, thick, <-,
element/.style = tape, draw=blue!40!black!90, very thick,
top color=white, bottom color=blue!50!black!60!,
text width=10em, minimum height=7ex,
align=center, on chain,
every join/.style = ->, thick,shorten >=1pt,
decoration = brace,
tuborg/.style = decorate,
tubnode/.style = midway, right=2pt,


%---------------- show page layout. don't use in a real document!
usepackageshowframe
renewcommandShowFrameLinethickness0.15pt
renewcommand*ShowFrameColorcolorred
%---------------------------------------------------------------%


begindocument
beginfigure
centering
begintikzpicture[style=rounddiagram,
node distance=5mm,
start chain=going right,
punktchain/.append style = join
]
node[punktchain] FairRun;
node[punktchain] Set I/O;
node[punktchain] CbmStsFindClusters;
node[punktchain] CbmStsFindHits;
endtikzpicture
endfigure
enddocument





share|improve this answer















i would change text width with minimum width which i would reduce to smaller size, for example to 7em. also I would all doubled TikZ libraries and use tikzset instead of tikzstyle:



enter image description here



(red lines indicate text borders)



documentclass[
a4paper, % Papierformat A4
12pt, % Schrift 12-Punkt
headsepline, % mit Linie unter der Kopfzeile
numbers=noenddot, % Nummern ohne Punkt am Ende
bibliography=totoc, % Literaturverzeichnis mit Nummer im
Inhaltsverzeichnis (``TO Table Of Contents'')
index=totoc, % Index mit Nummer im Inhaltsverzeichnis
fleqn, % Formeln werden linksbündig statt zentriert
angeordnet
headings=normal % Etwas kleinere Überschriften
]scrbook

usepackagetikz
usetikzlibraryarrows,
calc, chains,
decorations.pathreplacing, decorations.pathmorphing,
matrix,
positioning,
shapes.geometric, shapes.symbols,
trees


usepackagecapt-of


tikzsetrounddiagram/.style =
>=stealth',
punktchain/.style = rectangle, rounded corners, draw, very thick,
minimum width=7em, % <--- changed from "text width"
minimum height=5ex,
align=center, on chain,
line/.style = draw, thick, <-,
element/.style = tape, draw=blue!40!black!90, very thick,
top color=white, bottom color=blue!50!black!60!,
text width=10em, minimum height=7ex,
align=center, on chain,
every join/.style = ->, thick,shorten >=1pt,
decoration = brace,
tuborg/.style = decorate,
tubnode/.style = midway, right=2pt,


%---------------- show page layout. don't use in a real document!
usepackageshowframe
renewcommandShowFrameLinethickness0.15pt
renewcommand*ShowFrameColorcolorred
%---------------------------------------------------------------%


begindocument
beginfigure
centering
begintikzpicture[style=rounddiagram,
node distance=5mm,
start chain=going right,
punktchain/.append style = join
]
node[punktchain] FairRun;
node[punktchain] Set I/O;
node[punktchain] CbmStsFindClusters;
node[punktchain] CbmStsFindHits;
endtikzpicture
endfigure
enddocument






share|improve this answer














share|improve this answer



share|improve this answer








edited May 13 at 0:02

























answered May 12 at 22:44









ZarkoZarko

135k872179




135k872179












  • Thanks that worked better than the scale option and wasn't dirty, though I stick to marmots answer. :)

    – Rhynden
    May 13 at 19:35

















  • Thanks that worked better than the scale option and wasn't dirty, though I stick to marmots answer. :)

    – Rhynden
    May 13 at 19:35
















Thanks that worked better than the scale option and wasn't dirty, though I stick to marmots answer. :)

– Rhynden
May 13 at 19:35





Thanks that worked better than the scale option and wasn't dirty, though I stick to marmots answer. :)

– Rhynden
May 13 at 19:35

















draft saved

draft discarded
















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f490541%2ftikzpicture-in-figure-problem%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020