I'm trying to rotate an arrow based on an attribute but the arrow is off by 90 degrees.    Is there a method for doing a mathematical expression on the attribute within the sld?    I've gone over  and  but have not had any luck.  It so far everything I have found pertains to arrows on lines and not arrows alone  this is how Im currently rotating   &lt;se:PointSymbolizer&gt;             &lt;se:Graphic&gt;               &lt;se:Mark&gt;                 &lt;se:WellKnownName&gt;arrow&lt;/se:WellKnownName&gt;                 &lt;se:Fill&gt;                   &lt;se:SvgParameter name="fill"&gt;#236de5&lt;/se:SvgParameter&gt;                 &lt;/se:Fill&gt;                 &lt;se:Stroke&gt;                   &lt;se:SvgParameter name="stroke"&gt;#000000&lt;/se:SvgParameter&gt;                 &lt;/se:Stroke&gt;               &lt;/se:Mark&gt;               &lt;se:Size&gt;30&lt;/se:Size&gt;              &lt;se:Rotation&gt;                 &lt;ogc:PropertyName&gt;heading&lt;/ogc:PropertyName&gt;             &lt;/se:Rotation&gt;             &lt;/se:Graphic&gt;             &lt;/se:PointSymbolizer&gt;   After reviewing  along with reading the geoserver documentation again it is still unclear on where in the function you choose your operator.  In my case I would like to use addition.  The above question is for multiplication. I would be multiplying by 90 not adding 90, the documentation doe not have comparative examples of mathematical functions being used.  I do not see in the documentation where &lt;ogc:Mul&gt; is described. I can assume that &lt;ogc:Add&gt; would work but where is this supported with documentation.
121862
Is it possible to use simple Math in an SLD file on Geoserver? Suppose I want to read a text size property from a database and multiply its value, how can I do this?  &lt;sld:TextSymbolizer&gt;     ...     &lt;sld:CssParameter name="font-size"&gt;         &lt;ogc:PropertyName&gt;text_size&lt;/ogc:PropertyName&gt; * 2.1     &lt;/sld:CssParameter&gt;     ... &lt;/sld:TextSymbolizer&gt;   This simple approach obviously doesn't work, so I thought there must be some way to achieve this.
19967
I make frequent use of |- and -| with computed points in diagrams, like so:  \coordinate (a) at (0,0); \foreach \x in (1,...,10) {     \coordinate (b) at ({whateverFunction(\x)},{whateverOtherFunction(\x)});     \draw (a) |- (b); %Straight line segment     \draw (b) -| (a); %Another straight line segment     \coordinate (a) at (b); }   To get plots like:   I would like to be able to label the midpoint of each line segment, but doing something like node[midway,above] {a} does not act like expected:    I want something like:    Why does midway not work, and what is a good workaround here?
100545
I'm trying to write a new operator which modifies my geometry in some way, but I'm struggling with vertex manipulation. I can get the selected vertices fine and also print the individual components. So, lets say I have a vertex v. I can get the position of this vertex via v.co. But when I set a new value for this vertex with my operator it does not redraw in the 3D View. I assign a new value like this:  v.co = Vector((1,2,3))   Like said above the 3D View does not update. I have to quit my operator and navigate in the 3D View to update. What do I have to do to make blender update the 3D View correctly?
28606
My aim is to construct a relational symbol which is graphically equivalent the standard infinity sign (coded by\infty) crossed exactly in the middle of it. Yet I am not able to overcome something. To be more precise:    I would like to have slash sign moved exactly to the middle position of the infinity sign. The above was defined in the following way:  \documentclass{standalone} \begin{document} \newlength{\length} \settowidth{\length}{$\infty$} \newcommand\ninfty{\mathrel{\infty\hspace{-0.5\length/}}}   $\ninfty$ is not what I am aiming at.  \end{document}   So as you can see my idea was to define the length equal to the length of the infinity sign and then place slash sigh it halfway through it. As it can be seen above it was rather please quarter-way (backwards).  Could you please explain what I did wrong and how can I exactly determine the middle point (in terms of width) of a given mathematical glyph? Or a glyph in general?
121744
I am trying to make a map using US census data showing vacant housing to total housing on the same map.   I came across the "multiple attributes" feature under the symbology tab and wondered if this is the way to go and, if so, how to use it?   I have only been able to get one type of symbol, the gradient feature to appear.   I'm using ArcGIS Desktop 10.
11829
Why the arc does not fit over the circle if we use -latex arrow tip? Maybe some bug or some bad math computations?    MWE  \documentclass[11pt,margin=2pt]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta}  \begin{document} \begin{tikzpicture} \draw         (0:1cm) arc (0: 180:1cm) arc (180:0:1cm and 2cm); \draw         (0:1cm) arc (0:-180:1cm); \draw[-&gt;]     (0:1cm) arc (0:  80:1cm); \draw[-latex] (0:1cm) arc (0:- 80:1cm); \end{tikzpicture} \end{document}
113985
I had created the xml document with xml version="1.0".  In that document I need to use the greater than symbol &gt; and less than symbol &lt;.  How should I include those symbols? It's not working.  &amp;gt; and &amp;lt; are not working for me.  Is there any special encoder for this?
71101
In the duplication options for the dupli verts there is a option for Rotation. Witch brings me to my question, is there anyway to rotate a vertex? Vertex's have normals, is there any way to control which way the normal of a single unconnected vertex points?
45884
How can I rotate a brace to make it appear ?  I'm currently using this code:  \documentclass[french]{beamer} \usepackage{tikz} \usetikzlibrary{fit,calc,positioning,decorations.pathreplacing,matrix} \begin{document} \begin{frame} \begin{tikzpicture}[decoration={brace}][scale=2]  \node [rotate=270] (A) {\fontsize{8}{8}\selectfont A};  \node [fit=(A)] (fit) {};               \draw [decorate,line width=1pt]    ([yshift=7pt]fit.south west) -- ([yshift=-7pt]fit.north west); \end{tikzpicture} \end{frame} \end{document}   Thanks in advance!
30281
Why the shape (sB) is unknown in the following code ? How to avoid this ?  \documentclass[]{standalone} \usepackage{tikz,xparse} \usetikzlibrary{calc}  \tikzset{pics/.cd,     % Marque croix     Cross/.style args={#1 and #2}{%         code = {%         \draw[#2,rotate=45,scale=1.4] (0,#1 pt) -- (0,-#1 pt) ;         \draw[#2,rotate=-45,scale=1.4] (0,#1 pt) -- (0,-#1 pt) ;         }     },     Cross/.default={2 and black} }  \NewDocumentCommand{\Segment}{mO{}}{%     \begin{scope}[#2]     \path    (0,0) coordinate (sA) pic {Cross={1.5 and gray}}         -- (#1,0) coordinate (sB) pic {Cross={1.5 and gray}} ;     \draw (sA)--(sB) ; % Can't reuse (sB)     \end{scope} }   \begin{document}     \begin{tikzpicture}     \Segment{1.5}     \end{tikzpicture} \end{document}
42546
I am trying to create a beamer animation using tikz, but I can't even get basic rotating of a tikz image working as desired.  I have a rectangle specified by  \draw[rounded corners,dotted] (-3.5,0) rectangle (-0.5,2);   I would like to rotate this rectangle about the point (-1,.5) (which is near the bottom right corner of the rectangle).  I've tried:  {\rotatebox[origin=c,x=-1,y=.5]{130}{             \draw[rounded corners,dotted] (-3.5,0) rectangle (-0.5,2);}}   But this produces an error.  If I just use the origin=c option, it compiles, but it rotates the rectangle about the point (0,0).  I've also tried it with just the x=-1,y=.5 (without the origin option), and it fails to compile.  I have searched the documentation, which is where I learned about the options x=xdim and y=ydim.  However, I can't find a single example demonstrating how these options should be used.  Any suggestions would be greatly appreciated.    Also, if there is a better command for rotating things that will be more suitable for use in a beamer animation, please let me know.  Thanks!
118609
In the code below, building off solutions found , I am trying to use the \node and \subnode options to draw the arrow, but I cannot get the file to compile.  Can you help me to fix the code to get the arrow to point to the text and the highlighted cell like this  Here is the code:  \documentclass{article} \usepackage{tikz} \usepackage{blkarray} \usetikzlibrary{fit,calc,arrows,shapes,decorations.pathreplacing,pgfplots.groupplots, matrix} \tikzset{%   highlight/.style={rectangle,rounded corners,fill=red!15,draw,     fill opacity=0.5,thick,inner sep=0pt} } \newcommand{\tikzmark}[2]{\tikz[overlay,remember picture,   baseline=(#1.base)] \node (#1) {#2};} % \newcommand{\Highlight}[1][submatrix]{%     \tikz[overlay,remember picture]{     \node[highlight,fit=(left.north west) (right.south east)] (#1) {};} } \begin{document} \[   M = \left(\begin{array}{*5{c}}     \tikzmark{left}{1} &amp; 2 &amp; 3 &amp; 4 &amp; 5 \\     6 &amp; 7 &amp; 8 &amp; 9 &amp; 10 \\     11 &amp; 12 &amp; \tikzmark{right}{13} &amp; 14 &amp; 15 \\     16 &amp; 17 &amp; 18 &amp; 19 &amp; 20   \end{array}\right)   \Highlight[first]   \qquad   M^T = \left(\begin{array}{*5{c}}     \tikzmark{left}{1} &amp; 6 &amp; 11 &amp; 16 \\     2 &amp; 7 &amp; 12 &amp; 17 \\     3 &amp; 8 &amp; \tikzmark{right}{13} &amp; 18 \\     4 &amp; 9 &amp; 14 &amp; 19 \\     5 &amp; 10 &amp; 15 &amp; 20   \end{array}\right) \] \Highlight[second] % \tikz[overlay,remember picture] {   \draw[-&gt;,thick,red,dashed] (first) -- (second) node [pos=0.66,above] {Transpose};   \node[above of=first] {$N$};   \node[above of=second] {$N^T$}; }  \[ \begin{blockarray}{ccccc} x_{1} &amp; x_{2} &amp; x_{3} &amp; x_{4} &amp;  \\ \begin{block}{[cccc|c]}   1 &amp; 0 &amp; \tikzmark{left}{-1} &amp; 0 &amp; 0 \\   0 &amp; 1 &amp; 2 &amp; 0 &amp; 0 \\   0 &amp; 0 &amp; \tikz{\node{\subnode{d1}\tikzmark{right}{0}};} &amp; 1 &amp; 0 \\ \end{block} \end{blockarray} \Highlight[new1] \]  %\begin{tikzpicture}[remember picture,overlay] %    \node [shift={(3.0em,-4.0ex)}, anchor=west] at ({pic cs:starta}) (X) {Tip measurement}; %    \draw [mybluei, thick, -latex] (X.west) -| ($({pic cs:starta})!0.5!({pic cs:enda})+(0,-0.5ex)$); %\end{tikzpicture}  \end{document}
38613
Given an arbitrary arc, where you know the following values: end point (x1,y1), radius (r) and arc direction (e.g. clockwise or counterclockwise from start to end), how can I calculate the other endpoint of the arc (and I say endpoint because I think of an arc as line segment that is curved, which happens to lie on the circumference of the circle and it has two end points).   Though that's just how I interpret the problem and maybe I'm not thinking about it correctly.  EDIT: Yes, I know the Origin point and the length of the arc. Sorry I forgot to mention. Also, the that circle would be on a 2D Cartesian plain (x and y axis.) Sorry, my math terminology is lacking.   Also, I'm not trying to cheat on homework or anything. This is a legitimate problem for an SVG graph I'm trying to create using JavaScript and I've tried my best but I need help.  Thanks in advance.
96757
I am trying to make something that looks like   I am trying to go from here (works):  \begin{tikzcd} A \arrow{r}\arrow{rd} &amp;B \arrow{d}\arrow[leftarrow]{r} &amp;C \arrow{ld}\\ &amp;D \end{tikzcd}   to here (doesn't work):  \begin{tikzcd} A \arrow{r}\arrow{rd} \arrow{rdd} &amp;B \arrow{d}\arrow[leftarrow]{r} &amp;C \arrow{ld} \arrow{ldd} \\ &amp;D &amp;E\\ \end{tikzcd}   I try many combinations but don't see how the tikz@x-y-z values work. Any help is appreciated.  Thanks,  Brian
69433
&lt;Rule&gt;     &lt;PointSymbolizer&gt;      &lt;Graphic&gt;        &lt;ExternalGraphic&gt;          &lt;OnlineResource            xlink:type="simple"            xlink:href="glass.png" /&gt;          &lt;Format&gt;image/png&lt;/Format&gt;        &lt;/ExternalGraphic&gt;        &lt;Size&gt;28&lt;/Size&gt;      &lt;/Graphic&gt;    &lt;/PointSymbolizer&gt; &lt;/Rule&gt;   I want to use external graphics on my layers. I styled with geoserver admin panel. But external graphics are not working. I put my image into /var/www/geoserver/data/styles folder.  I tried some href options but not worked.   xlink:href="glass.png" xlink:href="file:///glass.png" xlink:href="/var/www/geoserver/glass.png"   I think another issue.
7738
I have this expression: |x-|x-|x-4||| Now, every | sign has the same size, but I'd like to make the outward pairs bigger.   Is it possible to do it automatically, or do I have to define the size of each | sign manually? It doesn't work with $\left| \right|$. In this case I have 3 abs signs. But what if there would be for example 12? Is it possible to do it automatically?  This works fine:   \[ \abs*{\VPhantomL x-\abs*{\VPhantomM x-\abs{x-4}}} \]     But the inline version doesn't:  $\abs*{\VPhantomL x-\abs*{\VPhantomM x-\abs{x-4}}}$
65190
Is there a way to put $\nLeftarrow$ instead of some arrows in TikZ? Specifically, how do I change it to "B does not imply A" in the following code.  \documentclass{article} \usepackage{tikz-cd} \begin{document} \begin{tikzcd}[arrows=Rightarrow]    A \arrow[out=30,in=150]{r}{}\arrow{d} &amp; B \arrow[out=210,in=330]{l}{}\arrow{d}  \\    E  \arrow{r}{} &amp; F \end{tikzcd} \end{document}   One very primite way is to do something similar to the following, where at the description part in the middle of the arrow, use \Big\backslash.  \documentclass{article} \usepackage{tikz-cd} \begin{document} \begin{tikzpicture} \matrix (m) [matrix of math nodes, row sep=3em, column sep=3em]              { A &amp; B \\           &amp; C \\ }; \path[-&gt;,font=\scriptsize] (m-1-1) edge node    {$\Big\backslash$} (m-1-2) edge node {$\Big\backslash$} (m-2-2);     \end{tikzpicture}  \end{document}   But then, how do I put a description in the middle of an arrow in the first code?