Tag Info

New answers tagged

1

A try with MetaPost and its boxes package, included in a LuaLaTeX program for convenience. (It can be made independent of LuaLaTeX if desired.) Edit Note that it needs luamplib version 2.10.1 or higher. Previous versions had a bug concerning the vardef macros defined with a suffix (i.e. the @# of the dot@# macro here). ...


3

A PSTricks solution: \documentclass{article} \usepackage{expl3} \ExplSyntaxOn \cs_new_eq:NN \calc \fp_eval:n \ExplSyntaxOff \usepackage{pstricks-add} \def\Label(#1)(#2)#3{% \psline{->}(#1)(#2) \pcline[linestyle = none, offset = 8pt](#1)(#2) \ncput*[nrot = :U]{$#3$}} \def\pointL(#1)#2{% \psdot[dotstyle = o, fillcolor = green!80!blue](#1) ...


2

You already solve the difficult part of problem: position of vertex label. The easy part is labels of edges. There you just add option sloped. So, the code of your MWE is: \documentclass{article} \usepackage{tkz-berge} \usetikzlibrary{fit,shapes,arrows} \definecolor{myblue}{RGB}{80,80,160} \definecolor{mygreen}{RGB}{80,160,80} ...


1

You specify compat twice. If you use just \pgfplotsset{compat=1.12} it works fine. At some point in its development, PGFPLOTS made draw commands in an axis environment default to the axis cs coordinate system. Using the earlier compat=1.5, \draw uses the generic PGF coordinates, and it looks like PGF axes are drawn at PGF (0,0).


5

You have used compat two times with \pgfplotsset{compat=1.5.1} at the last. So this prevails over compat=1.12. In older versions of pgfplots the coordinates for drawing should be mentioned as \draw[black] (axis cs: 0,0) ellipse [... Note the axis cs:. If you don't use axis cs:, the tikz coordinates are used for which the origin (0,0) lies at the lower ...


0

This is not a direct answer to the question. Rather it illustrates the outcome of the process which involved this question. %% Copyright 2015 Clea F. Rees \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{prooftrees}[2015/05/10 v0.05 prooftrees] \RequirePackage{forest} \newcounter{prooftree@countlevels}% count the levels in the proof tree ...


4

replace by and other dynamic tree keys check if their argument is a node specification simply by checking if the argument starts with a [ (see the definition of \forest@nodehandleby@nnb@checkfirst). In your case, it does not, so forest tries to interpret @+\prooftreeleaping{#1}{#2} as a node walk. I guess this should be mentioned in the documentation. Will ...


6

Here's a more dynamic approach in which you do not have to write out each of the vertices' names. \documentclass{article} \usepackage{etoolbox} \usepackage{tkz-berge} \def\myInstance#1#2{$#1_{#2}$} \newcommand\aeAssignLabels[3]{%% \let\myexecutable\relax \foreach \myn in {#3} {%% \ifx\myexecutable\relax ...


3

The answer that you linked to does tell you how to add the labels. You first need to stop the labels being printed using \SetVertexNoLabel and then you need to manually specify the labels that you want using \AssignVertexLabel: Here's the full code to manually change the labels: \documentclass{article} \usepackage{tkz-berge} \begin{document} ...


3

From PGF 3.0 there is a node font key which sets the font for the node and is used as the font in node dimension calculations using em and ex. See section 17.4.2 ("Text Parameters: Font") in the PGF 3.0 manual. \documentclass[tikz, border=5]{standalone} \begin{document} \begin{tikzpicture}[every node/.style={fill=gray!50, anchor=south west}] \node [inner ...


3

Proposed solution for original question: \documentclass[tikz,border=2mm]{standalone} %\usepackage{MinionPro} \usepackage{tikz} \usetikzlibrary{positioning, shapes.geometric, arrows.meta} \begin{document} \begin{tikzpicture}[ball/.style={ellipse, minimum width=2cm, minimum height=1cm, draw}, >=LaTeX] \node[ball] (dis) {Disconfirmation}; \node[ball, below ...


4

Solution 1 as asked in the first version of the OP: I leave the fine tuning to you. Just adapt the height and width of the ellipses and set \begin{tikzcd}[column sep=xxx, row sep=xxx]... as you please. If you want to change the arrow heads, you will do some search on this site here. Plenty of help is given all over the place. % arara: pdflatex ...


1

The problem arises here because your line to path uses the border of the nodes not only to draw the edges but also to position the nodes along that path. If you would use the .center anchors of the nodes to position the edge labels they would be on the same height for the same position. I changed a little bit of your figure setup, for instance I used the ...


5

Here's a variation of the tree you produced using forest. Note that part of the problem here is that I have no idea how to hyphenate something like text1lenght2. I've therefore assumed that these cannot be hyphenated. If they could, you could create a nicer result. To avoid allowing the tree to expand beyond reason, I've therefore defined a style ...


2

To make the picture look better, I finally figured out how to install forest. I opened package manager of MikTex from StatMenu->Programs->MikTex->PackageManger. I installed forest. From installation directory, I copied forest.sty and pasted in the current working directory. Using forest, this is how the above diagram looks like. Code: ...


5

Let us fix this meta-path. \documentclass[border=9,tikz]{standalone} \usetikzlibrary{decorations.pathmorphing} \begin{document} \tikzset{ demo decoration/.style={ gray, postaction={draw=red,decorate,decoration=#1} } } \begin{tikzpicture}[remember picture] \path(0,0)coordinate(A){}(3.7,0)coordinate(B){}(3.8,0)coordinate(C){}; ...


1

To modify the styling of the axis lines, use <axis> axis line style={<styles>}, where <axis> is the axis to modify (x, y, z, or omit to style all axes) and <styles> is the styling to apply. So, we can use axis line style={-} in the axis options to override the axisStyle and locally set no arrow tip for the axis line. Here I've ...



Top 50 recent answers are included