I would like to draw a Sydnone with chemfig. How do I get the -+ into the ring?     \documentclass{article}   \usepackage{tikz} \usepackage{chemfig}  \begin{document}   \chemfig{N**5(-[,,1]\chembelow{N}{H}-[,,1]-[,3,1](=[,1,1]O)-[,3,]O-[,3])} \end{document}
121824
I would like to draw in chemfig the following picture:    But I am struggling with the "+" sign in the middle of the circle. Is there a way to draw it? Thank you!  What I have so far is this:  \documentclass{article} \usepackage{chemfig} \begin{document}  \chemfig{   N**[0,-150,dash pattern=on 2pt off 2pt]5(     (-R)-(-R^1)-[,,1,2]{+\hspace{0.3cm}}|{O}-[,,2,1]--   ) }  \end{document}   which does the work, but I really don't like the way it is done (e.g. it does not scale).
79857
I'm new to Latex and I'm having some trouble with a simple chemical equation. I have the following code:  \documentclass{article} \usepackage[version=3]{mhchem} % Package for chemical equation typesetting \usepackage{amssymb}  \begin{document} \begin{equation} \ce{N2(g) + 3H2(g) -&gt; 2NH3(g)}} \end{equation}   $\Delta H_{\mathrm{f}}^\circ = \SI{-92.5}{kJ}$ \end{document}   This prints everything that I need, but on separate lines. I would just like the heat of formation (deltaH=-92.5kj) to be inline with the equation. I've tried multiple approaches, but keep getting stuck. I haven't seen this discussed on TEX or elsewhere.
36716
Open to any and all suggestions / alternative layouts. Need to be able to cleanly circle a number inside of a table. Currently I have this (stolen from elsewhere) and it produces output as attached.    \usepackage{tikz}  \newcommand*\circled[1]{\tikz[baseline=(char.base)]{             \node[shape=circle,draw,inner sep=2pt] (char) {#1};}}  % A completed self assessment sheet (see end of this document). \section{Self Assessment}  \begin{table}[h] \begin{tabular}{llllllllllllll} Level 1 &amp; A &amp; 18 &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; \circled{10} \\ Level 2 &amp; V &amp; 12 &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; \circled{10} \\ Level 3 &amp; AA &amp; 10 &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; \circled{9} &amp; 10 \\ Level 4 &amp; S &amp; 12 &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; \circled{8} &amp; 9 &amp; 10 \\ Level 5 &amp; I &amp; 10 &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; \circled{8} &amp; 9 &amp; 10 \\ Level 6 &amp; S &amp; 10 &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; \circled{8} &amp; 9 &amp; 10 \\ Level 7 &amp; C &amp; 6  &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; \circled{7} &amp; 8 &amp; 9 &amp; 10 \\ Level 8 &amp; R &amp; 16 &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; \circled{8} &amp; 9 &amp;    \end{tabular} \end{table}
25184
I'm attempting to draw a battery (using the battery1 component) that includes positive and negative signs at the appropriate ends. A  that was answered here (using version 2.4) shows exactly what I mean:    Only, of course, I want to be using a battery1 symbol instead. So, I have my code as follows:  \usepackage[americanvoltages,fulldiodes,siunitx]{circuitikz} \begin{document} \begin{circuitikz}     \draw (0,0) to [battery1=\SI{9}{V}] (3,0)                 to [pC,v=$v_C$] (6,0); \end{circuitikz} \end{document}   And I end up with this:    Notice the lack of +/- signs (I know how circuits work so I don't need to be actually shown these signs, but for the sake of copying my class notes diagrams I want these signs to be included in my latex diagram).  In either case, I think it may have something to do with the version of Circuitikz I'm using because I'm using the latest version (I believe, 0.3.0) but in the previous question linked above, they were using 2.4 and it worked out for them.  I would really like to find a way to add +/- without having to manually add it with Tikz or something, i.e. just have it naturally part of the component without having to add nodes or extra Tikz code etc. If that's not possible, then I'll have to settle for that as a last result.   Thank you for your help!  EDIT: I should also mention that I've tried using battery1, v=$9V$ instead of battery1=\SI{9}{V} and to no avail (the +/- signs still don't show up).
74537
I have found a strange behavior in TikZ. When using the \draw ... to ... syntax and trying to place nodes along the line with the node[...]{...} syntax, the nodes do not turn up at the expected location.  \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}   \draw(0,0) to[out=60,in=120] (1,0) node[midway]{x}; \end{tikzpicture} \end{document}     How is this done properly?
51771
Look at this image:   This is what I get from this:     \begin{tikzpicture}     \draw[style=help lines] (-5,-5) grid (5,5);     \draw (-4,0)--(4,0);     \draw (0,-4)--(0,4);     \foreach \y in {-4,-3,...,4} {         \draw (0 - 0.1,\y) -- (0+0.1,\y);         \draw (\y,0 - 0.1) -- (\y,0+0.1);     }      %Nodes:     \node (a0) at (-4,-4) {};     \draw[fill] (a0) circle [radius=1.5pt];     \node (a1) at (-2,4) {};     \draw[fill] (a1) circle [radius=1.5pt];     \node (a2) at (2,-2) {};     \draw[fill] (a2) circle [radius=1.5pt];     \node (a3) at (4,2) {};     \draw[fill] (a3) circle [radius=1.5pt];               \draw (-4,-4) to (-2,4) to (2,-2) to (4,2); % to (a2) to (a3);  \end{tikzpicture}   I'm trying to to get a line between them (the dots) that will be like a function (not a straight line - a curve like a polynomial).  Is this possible?  Thank you!
63436
I'm trying to draw arrows with / marks and numbers like in the following picture:    My current solution looks like this:  \begin{tikzpicture}     [         inverter/.style={rectangle,draw,inner sep=2pt,minimum size=6mm},         dot/.style={circle,inner sep=0pt,minimum size=0.5mm,draw,fill=black}     ]     \node (x) at (0,0) {$x$};     \node (delta) at (1,0) [shape=rectangle,draw,minimum height=18mm,minimum width=6mm] {$\delta$};      \node(ah)     at ( 2,  0.5) [inverter] {$a_h$};     \node(al)     at ( 2, -0.5) [inverter] {$a_l$};      \draw [-&gt;] (x) -- (delta);      \draw [-&gt;,dashed,dash pattern=on 1pt off 1pt] (delta.58.75) -- (ah);     \node at ($ (ah) - (0.55, 0) $) {\scriptsize /};     \node at ($ (ah) - (0.5, 0.2) $) {\tiny 4};     \draw [-&gt;,dashed,dash pattern=on 1pt off 1pt] (delta.-58.75) -- (al);     \node at ($ (al) - (0.55, 0) $) {\scriptsize /};     \node at ($ (al) - (0.5, 0.2) $) {\tiny 4}; \end{tikzpicture}   which is pretty hacky and doesn't look nice. I tried strike out shapes but found the line to be much too long. However, positioning a / and a number manually seems like a pretty bad solution to me. I've seen a similar question that revolved around striking out lines or arrows, but without any numbering. Any input would be most welcome.
58126
I'm about to use this diagram to make computing 3x3 determinants clear and easy for my students. I tried to add this picture to my lecture but it's blurred due to the bad quality of the picture. So i want to create exactly the same figure using latex.  I've searched and read a few topics about highlighting elements and diagonals in matrix but it does not work in this case. I want to add plus signs and minus signs as in the picture, and highlight elements in the matrice with elements outside the matrice.  I appreciate all your help and your advice. Thank you in advance !
65624
I want to draw a Lewis structure as in the picture. I tried to do with chemfig but does not perform the separation of the points and a minus in the superscript.
109903
I'm having problems understanding the excersice: E) Define $D_n$ as the group of symmetries of a regular n-gon. Name the vertices $V=\{V_0,V_1,...,V_{n-1}\}$ so that $$V_{k}=\exp({i\cdot\dfrac{2\pi k}{n})}$$ Let $S$ be the symmetry along the x-axis, and $R$ the rotation by $\dfrac{2\pi}{n}$. Show that $\{R,S\}$ generate $D_n$.  I tried to define something like $$R:\exp(i\cdot\dfrac{2\pi k}{n})\mapsto \exp(i\cdot\dfrac{2\pi (k+1)}{n}) $$   $$S:\exp(i\cdot\dfrac{2\pi k}{n})\mapsto \exp(i\cdot\dfrac{2\pi (-k)}{n}))$$ but these are not binary operation so $(V,R) ; (V,S)$ are not groups. To me it's clear that there are n rotations and n reflection so there are 2n symmetries on the n-gon; also fixing one reflection we can get the others by some combination of $r,s$.  I tried to solve the problem by defining $R,S$ as permutation of vertices and the vertices as coordinates in a lattice and it solves nicely, but I don't seem to understand this way of approaching the definitions.
18164
I am currently learning how to use TikZ/PGF to make some figures for a project report, and so I have a question:     Is there is a practical way of making a particular object into a node?   The object I have in mind is shown in the Figure below. I want the object to consist in the big circle, the two circular arcs, the label and anchors at north, south, east and west. The dotted lines are simply there to indicate that I am going to have paths going out of these points, which is why I need the anchors there.     I include the source, in the case that it is useful to anyone.  \begin{tikzpicture} \draw[help lines, gray, dotted] (-2,-2) grid (2,2);  \begin{scope}[shift={ (0,0) } ]     \begin{scope}[rotate=90]         \draw[thick] (-1,0) arc[start angle=-90, delta angle=90, %                               x radius=1, y radius=1] -- (0,1) %NW                      (0,-1) arc[start angle=180, delta angle=-90, %                                    x radius=1, y radius=1] -- (1,0); %SE         \draw[gray] (0,0) circle (1);     \end{scope} % Anchor replacements     \node(N1)       at (0,1)    {};     \node(S1)       at (0,-1)   {};     \node(E1)       at (1,0)    {};     \node(W1)       at (-1,0)   {}; % Label     \node(Crossing number) at (0,0) {1}; \end{scope}  \path[thick, gray, dotted] [ out=90,   in=270]     (N1.center) edge (0,2) [ out=180,  in=0]       (W1.center) edge (-2,0) [ out=270,  in=90]      (S1.center) edge (0,-2) [ out=360,  in=180]     (E1.center) edge (2,0); \end{tikzpicture}   PS. I have had a look at the Manual, but I could not find a description of how to do this.
77380
Consider the following code:   \begin{document}    \begin{figure} \begin{tikzpicture}[&gt;=stealth',shorten &gt;=1pt,auto,node distance=5 cm, scale = 1, transform shape]   \node[initial,state] (A)                                    {$s_0$}; \node[state]         (B) [right of=A]                       {$s_2$}; \node[state]         (C) [above of=B]                       {$s_1$}; \node[state]         (D) [below of=B]                       {$s_3$};  \path[-&gt;] (A) edge [left]       node [align=center]  {$ c = c + 1 $} (C)       (A) edge [above]      node [align=center]  {$ c = c + 5 $} (B)       (A) edge [left]       node [align=center]  {$ c = c - 1 $} (D)       (B) edge [right]      node [align=center]  {$ c = c - 1 $} (D)       (C) edge [loop above] node [align=center]  {$ c = c + 1 $} (C)       (D) edge [loop below] node [align=center]  {$ c = c - 2 $} (D);  \end{tikzpicture} \caption{An example of SST} \end{figure}  \end{document}   I get the following automaton :    How can I draw S2 and S4 as final states (double circle)?
63385
I am able to draw a nice right triangle with  \begin{tikzpicture}[thick]   \draw (0,0)  -- (4,0) node[midway,below]{$f$} -- (4,2) node[midway,right]{$\frac{x}{2}$}-- cycle; \end{tikzpicture}   Now I want to label the left angle of the triangle and I am stuck on how to do this.
72409
In GAP, working with elements of the symmetric group $S_k$ is straightforward. E.g. one can write  (1,2)*(2,3);   to obtain (1,3,2).  Is there a similar functionality to work with group rings, say $\mathbb{Q}[S_k]$? E.g., what would be the standard approach to evaluate expressions such as  [3*() - (1,2)] * [-(1,2) + 1/3*(2,3)]   I'm aware that one can create $\mathbb{Q}[S_k]$ by   G:= SymmetricGroup(k); KG:= GroupRing(Rationals, G);   After that step however I don't know how to create actual elements of $\mathbb{Q}[S_k]$.
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
97347
Here is the code which has an equation in the form of \[... \]:  \documentclass[12pt]{report} \usepackage{braket} \usepackage{amssymb} \usepackage{amsmath} \begin{document} \textbf{Proof-} Every element of $\Delta(G)\Delta(G,N)\subset N'$ can be written as \((x-1)y(n-1)\) where \(x,y\in G\) and \(n\in N\). Now, because we can write \((x-1)y=xy-y=(xy-1)-(y-1)\) we also can write every $(g-1)$ in the form : \[g-1=\sum_{i,j}a_{ij}(x_i-1)(n_j-1), \hspace{2pt}\ a_{ij}\in \mathbb{Z}, x_i\in G, n_j\in N \] \end{document}   My question is how to label the last formula as (*)? All the answers I can find has aligned equations, but in this case I only have one \[...\] equation which I want to label. One way is to use \hspace and then put label,  but is there any other way?
82713
I wish to use the symbol as in the following picture, however, I can not find it. Can someone help me?