• Florilegium both margins at same page
    by CrocoDuck on November 13, 2026 at 5:20 pm

    I tried placing flowers on both sides of the text using "florilegium," but without success. \documentclass[11pt,a4paper]{article} \usepackage{fontspec} \usepackage[a4paper, left=55.1mm, right=55mm, top=10mm, bottom=30mm]{geometry} \usepackage[grown, density=.6]{florilegium} \begin{document} \vline \end{document} There is also Tikzflora, but it produces much larger files; the file for the image below -- even when empty and set to a density of 0.1 -- is 2.7 MB, whereas a file using "florilegium" is 350 KB.

  • why i get this error [duplicate]
    by Tldi You on November 13, 2026 at 10:53 am

    Why I get this error when I run this code \documentclass[border=5pt,tikz]{standalone} \usepackage[T1]{fontenc} \usepackage{newtxtext} \usepackage{newtxmath} \usepackage{tikz} \usetikzlibrary{arrows.meta,patterns} \begin{document} \begin{tikzpicture}[ x=1cm, y=0.38cm, font=\normalsize, line cap=round, line join=round, >=Stealth ] % ------------------------------------------------------------ % Ground surface % ------------------------------------------------------------ \draw[thin] (0,0) -- (10.6,0); % Small irregular strokes representing the ground texture \foreach \x in {0.12,0.30,...,1.55}{ \draw[very thin] (\x,-0.08) -- ++(0.08,-0.28) (\x,-0.10) -- ++(-0.06,-0.24) (\x+0.05,-0.19) -- ++(-0.10,-0.20); } % ------------------------------------------------------------ % Table and vertical depth axis % ------------------------------------------------------------ \draw[thin,-{Stealth[length=2.5mm,width=1.8mm]}] (1.65,0) -- (1.65,-17.25); \draw[thin] (2.85,0) -- (2.85,-16.25); \draw[thin] (4.18,0) -- (4.18,-16.25); \node[above=3pt] at (2.25,0) {$P_1$}; \node[above=3pt] at (3.51,0) {$E$}; \node[above=3pt,anchor=south west] at (4.28,-0.15) {$(\mathrm{kPa})$}; % Depth ticks \foreach \z in {1,...,16}{ \draw[thin] (1.57,-\z) -- (1.65,-\z); } \node[below=3pt] at (1.65,-17.25) {$z\;(\mathrm{m})$}; % Depth annotations \node[left=6pt] at (1.57,-5) {$5$}; \node[left=6pt] at (1.57,-6.5) {$6{,}5$}; \node[left=6pt] at (1.57,-9.3) {$9{,}3$}; \node[left=6pt] at (1.57,-10) {$10$}; \node[left=6pt] at (1.57,-15) {$15$}; % Soil names \node[anchor=west] at (0.22,-1.4) {Argile}; \node[anchor=west] at (0.10,-7.7) {Limon}; % ------------------------------------------------------------ % Numerical data % ------------------------------------------------------------ \foreach \z/\p/\e in { 1/1500/11000, 2/1200/13000, 3/1700/20000, 4/1700/16000, 5/1700/27000, 6/1800/40000, 7/1800/35000, 8/1400/24000, 9/1900/35000, 10/1800/37000, 11/2100/70000, 12/1700/55000, 13/2200/60000, 14/2300/70000, 15/2300/75000, 16/3000/80000 }{ \node at (2.25,-\z) {$\p$}; \node at (3.51,-\z) {$\e$}; } % ------------------------------------------------------------ % E profile % ------------------------------------------------------------ \draw[thin] plot coordinates { (4.455,-1) (4.485,-2) (4.590,-3) (4.530,-4) (4.695,-5) (4.890,-6) (4.815,-7) (4.650,-8) (4.815,-9) (4.845,-10) (5.340,-11) (5.115,-12) (5.190,-13) (5.340,-14) (5.415,-15) (5.490,-16) }; \foreach \x/\z in { 4.455/1,4.485/2,4.590/3,4.530/4, 4.695/5,4.890/6,4.815/7,4.650/8, 4.815/9,4.845/10,5.340/11,5.115/12, 5.190/13,5.340/14,5.415/15,5.490/16 }{ \fill (\x,-\z) circle[radius=1.05pt]; } % ------------------------------------------------------------ % Footing and vertical column % ------------------------------------------------------------ \path[ draw=black, thin, pattern=dots, pattern color=gray ] (8.95,-1.70) -- (10.45,-1.70) -- (10.45,-0.92) -- (9.84,-0.92) -- (9.84,0.68) -- (9.55,0.68) -- (9.55,-0.92) -- (8.95,-0.92) -- cycle; % Applied load \draw[ line width=1.8pt, -{Stealth[length=3.7mm,width=2.5mm]} ] (9.695,1.25) -- (9.695,-1.62); \node[anchor=east] at (9.48,1.10) {$P=66000\ \mathrm{kN}$}; \end{tikzpicture} \end{document} error message expl3.sty: erreur: 78: Mismatched LaTeX support files detected. \ExplLoaderFileDate{expl3.sty}} essai_pressio.tex: avertissement: : No file essai_pressio.aux.

  • How to make the `\ddots` centering of the bounding box?
    by Explorer on October 17, 2026 at 4:37 pm

    This post is similar to this one, but not exactly the same... With the following code: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{matrix} \setlength{\fboxsep}{0pt} \begin{document} \[ \begin{tikzpicture} \matrix (magic) [ matrix of math nodes, nodes={circle,draw=magenta,minimum size=1cm}, left delimiter=(, right delimiter=) ] { 1 \\ & 1 \\ & & \ddots \\ & & & \fbox{$\ddots$} \\ & & & & 1 \\ }; \draw[teal,dashed] (magic-1-1.center) -- (magic-5-5.center); \end{tikzpicture} \] \end{document} What I want was the following: only typeset three dots, thus \Ddots with nicematrix was not so flexible; I want the "slope" of \ddots was parallel with the teal,dashed line; I want to ellnimate the extra height of the bounding box of \ddots(why?It looks not good...) It recalled the classical \rvdots here, and we know: $ latexdef \ddots \ddots: macro:->\protect \ddots \ddots : macro:->\mathinner {\mkern 1mu\raise 7\p@ \vbox {\kern 7\p@ \hbox {.}}\mkern 2mu \raise 4\p@ \hbox {.}\mkern 2mu\raise \p@ \hbox {.}\mkern 1mu} I guessed slightly modify the commands could help? Any suggestions? \makeatletter % \DeclareRobustCommand{\rvdots}{% % \vbox{ % \baselineskip4\p@\lineskiplimit\z@ % \kern-\p@ % \hbox{.}\hbox{.}\hbox{.} % }} \DeclareRobustCommand{\rddots}{% \mathinner {% \mkern 1mu\raise 7\p@% \vbox{\kern 1\p@ \hbox {.}}% \mkern 0.4mu \raise 4\p@ \hbox {.}% \mkern 0.4mu\raise \p@ \hbox {.}% \mkern 1mu% }% } \makeatother Edit1 If I zoomed in with with cfr's answer: \makeatletter \newcommand\exddots {% \mathinner {% \mkern 1mu\raise 3.5\p@ % 7 -> 3.5 \vbox {\kern 0\p@ \hbox {.}}% 7 -> 0 \mkern 2mu \raise -0.5\p@ \hbox{.}% 4 -> -0.5 \mkern 2mu \raise -4\p@ \hbox{.}% \p@ -> -4 \mkern 1mu }% } \makeatother Edit2 Just to show the example of cfr's comment: Is the content or, at least, the size of the content in the matrix fixed? because the angle of the diagonal obviously will vary if that varies. so unless you want this only as a one-off, you maybe need to think about how this should work. should \exddots really look different each time and different from any use in maths mode? or do you want to fix the matrix dimensions to keep the angle constant? or ...? I don't think it will look so good if the dots look different in different cases. at least, that is not how it usually would work in latex? \documentclass{article} \usepackage{amsmath} \usepackage{nicematrix} \usepackage{tikz} % \usepackage{kpfonts-otf} \begin{document} \[ \begin{pNiceMatrix} 3 & & & \\ & 555 & & \\ & & \ddots & \\ & & & 66666 \CodeAfter \tikz{ \draw[teal, ultra thin] (1-1.center) -- (4-4.center); \draw[magenta, ultra thin] (2-2.south east) -- (4-4.north west); } \end{pNiceMatrix}\qquad \begin{pNiceMatrix} 3 & & & \\ & 555 & & \\ & & \Ddots & \\ & & & 66666 \CodeAfter \tikz{ \draw[teal, ultra thin] (1-1.center) -- (4-4.center); \draw[magenta, ultra thin] (2-2.south east) -- (4-4.north west); } \end{pNiceMatrix} \] \[ \begin{pNiceMatrix} a & & & \\ & b & & \\ & & \ddots & \\ & & & d \CodeAfter \tikz{ \draw[teal, ultra thin] (1-1.center) -- (4-4.center); \draw[magenta, ultra thin] (2-2.south east) -- (4-4.north west); } \end{pNiceMatrix}\qquad \begin{pNiceMatrix} a & & & \\ & b & & \\ & & \Ddots & \\ & & & d \CodeAfter \tikz{ \draw[teal, ultra thin] (1-1.center) -- (4-4.center); \draw[magenta, ultra thin] (2-2.south east) -- (4-4.north west); } \end{pNiceMatrix} \] \[ \begin{pNiceMatrix} x & & & & \\ & x+y & & & \\ & & \ddots & & \\ & & & \sqrt{x-y} & \\ & & & & \dfrac{x}{y} \CodeAfter \tikz{ \draw[teal, ultra thin] (1-1.center) -- (4-4.center); \draw[magenta, ultra thin] (2-2.south east) -- (4-4.north west); } \end{pNiceMatrix}\qquad \begin{pNiceMatrix} x & & & & \\ & x+y & & & \\ & & \Ddots & & \\ & & & \sqrt{x-y} & \\ & & & & \dfrac{x}{y} \CodeAfter \tikz{ \draw[teal, ultra thin] (1-1.center) -- (4-4.center); \draw[magenta, ultra thin] (2-2.south east) -- (4-4.north west); } \end{pNiceMatrix} \] \end{document} With latin-modern-math: With kpfonts-otf:

  • I want a command which can take two arbitrary ellipses, and shade the region between them, bounded by their mutual tangents
    by Jasper on November 2, 2025 at 9:31 pm

    I want a command which can take two arbitrary ellipses, and shade the region between them, bounded by their mutual tangents. \documentclass[tikz,border=1cm]{standalone} \begin{document} \begin{tikzpicture} \fill (-5,0) ellipse[x radius = 1, y radius = pi]; \fill ({sqrt(2)},e) ellipse[x radius = {sqrt(pi)}, y radius = {sqrt(e^sqrt(pi))}]; \end{tikzpicture} \end{document}

  • Draw Realistic 3D crystal structure of Diamond using Tikz
    by Akhil Akkapelli on August 24, 2022 at 1:32 pm

    Can I draw this same exact picture(from Draw realistic 3D crystal structures (diamond)) using TikZ in LaTeX? This is what I got till now. from the code: \documentclass[tikz,border=5pt]{standalone} \usepackage{tikz-3dplot} \begin{document} \begin{tikzpicture} \tdplotsetmaincoords{0}{60}{140} \pgfmathsetmacro{\d}{2.5} \draw[] (0,0,0) -- (4*\d,0,0) -- (4*\d,4*\d,0) -- (0,4*\d,0) -- (0,0,0); \draw[] (0,0,4*\d) -- (4*\d,0,4*\d) -- (4*\d,4*\d,4*\d) -- (0,4*\d,4*\d) -- (0,0,4*\d); \draw[] (0,0,4*\d) -- (4*\d,0,4*\d) -- (4*\d,0,0) -- (0,0,0) -- (0,0,4*\d); \draw[] (0,4*\d,4*\d) -- (4*\d,4*\d,4*\d) -- (4*\d,4*\d,0) -- (0,4*\d,0) -- (0,4*\d,4*\d); \coordinate (Aa) at (0,0,0); \coordinate (Ab) at (4*\d,0,0); \coordinate (Ac) at (0,4*\d,0); \coordinate (Ad) at (4*\d,4*\d,0); \coordinate (Ae) at (2*\d,2*\d,0); \coordinate (Ba) at (\d,\d,\d); \coordinate (Bb) at (3*\d,3*\d,\d); \coordinate (Ca) at (2*\d,0,2*\d); \coordinate (Cb) at (0,2*\d,2*\d); \coordinate (Cc) at (4*\d,2*\d,2*\d); \coordinate (Cd) at (2*\d,4*\d,2*\d); \coordinate (Da) at (3*\d,\d,3*\d); \coordinate (Db) at (\d,3*\d,3*\d); \coordinate (Ea) at (0,0,4*\d); \coordinate (Eb) at (4*\d,0,4*\d); \coordinate (Ec) at (0,4*\d,4*\d); \coordinate (Ed) at (4*\d,4*\d,4*\d); \coordinate (Ee) at (2*\d,2*\d,4*\d); \begin{scope}[line width=10,shade,shading angle=30] \draw[] (Ba) -- (Aa); \draw[] (Ba) -- (Ae); \draw[] (Bb) -- (Ae); \draw[] (Bb) -- (Ad); \draw[] (Ba) -- (Ca); \draw[] (Bb) -- (Cc); \draw[] (Bb) -- (Cd); \draw[] (Da) -- (Ca); \draw[] (Da) -- (Cc); \draw[] (Db) -- (Cb); \draw[] (Db) -- (Cd); \draw[] (Da) -- (Eb); \draw[] (Da) -- (Ee); \draw[] (Db) -- (Ee); \draw[] (Db) -- (Ec); \end{scope} \node[draw,circle,minimum size=1cm,shading=ball] at (Aa) {}; \node[draw,circle,minimum size=1cm,shading=ball] at (Ab) {}; \node[draw,circle,minimum size=1cm,shading=ball] at (Ac) {}; \node[draw,circle,minimum size=1cm,shading=ball] at (Ad) {}; \node[draw,circle,minimum size=1cm,shading=ball] at (Ae) {}; \node[draw,circle,minimum size=1cm,shading=ball] at (Ba) {}; \node[draw,circle,minimum size=1cm,shading=ball] at (Bb) {}; \node[draw,circle,minimum size=1cm,shading=ball] at (Ca) {}; \node[draw,circle,minimum size=1cm,shading=ball] at (Cb) {}; \node[draw,circle,minimum size=1cm,shading=ball] at (Cc) {}; \node[draw,circle,minimum size=1cm,shading=ball] at (Cd) {}; \node[draw,circle,minimum size=1cm,shading=ball] at (Da) {}; \node[draw,circle,minimum size=1cm,shading=ball] at (Db) {}; \node[draw,circle,minimum size=1cm,shading=ball] at (Ea) {}; \node[draw,circle,minimum size=1cm,shading=ball] at (Eb) {}; \node[draw,circle,minimum size=1cm,shading=ball] at (Ec) {}; \node[draw,circle,minimum size=1cm,shading=ball] at (Ed) {}; \node[draw,circle,minimum size=1cm,shading=ball] at (Ee) {}; \end{tikzpicture} \end{document}

  • How to best produce a nomogram representing an epicyclic geartrain
    by John W. de Burgh on December 14, 2021 at 11:21 am

    I have a rather philosophical question. I need to produce several so-called nomograms, they represent the relations of an epicyclic gear train used in automatic gearboxes or for the power split device in Toyota hybrids. In the figure below, you can see the equation and the diagram. I did the diagram by brute force, but I would like to generate one using variables. I could do that in the code below, but perhaps pgfplots would be better. What do you think? I hope that the comments in the code are clear enough. Inputs are the revolutions for the electric motor, the internal combustion engine (ICE) and the number of teeth z_crown and z_sun. Output is the third vertical axis. P.S: I just corrected an error in the formula, the equation in the picture is different now. I have also introduced parameters. \documentclass[border=3mm,tikz]{standalone} \usetikzlibrary{arrows,calc} \usetikzlibrary{patterns,decorations.pathreplacing} \newcommand\revem{2600/1000} \newcommand\revice{0} \newcommand\zcrown{78/10} \newcommand\zsun{30/10} \newcommand\zdiv{2.6} \def\revgen{\revice+\revice*\zdiv-\revem*\zdiv} \begin{document} \begin{tikzpicture} % x-axis \draw[thick, red] (0,0) -- (12,0); % first y-axis \draw[thick, red,->] (0,0) -- (0,5); \node at (0,5.5) {\Large $\omega_{em}$}; % revolutions electric motor \draw[very thick, blue] (0,0) -- (0,\revem); % second y-axis \draw[thick, red,->] (\zsun,0) -- (\zsun,5); \node at (\zsun,5.5) {\Large $\omega_{ice}$}; % revolutions ICE \draw[very thick, blue] (\zsun,0) -- (\zsun,\revice); % third y-axis \draw[thick, red,->] (\zcrown+\zsun,0) -- (\zcrown+\zsun,5); \node at (\zcrown+\zsun,5.5) {\Large $\omega_{gen}$}; % revolutions generator \draw[very thick, blue] (\zcrown+\zsun,0) -- (\zcrown+\zsun, \revgen); % connecting revolutions with line \draw[very thick, blue] (0,\revem) -- (\zcrown+\zsun,\revgen); \draw [ thick, decoration={ brace, mirror, raise=0.1cm }, decorate ] (0,0) -- (\zsun,0) node [pos=0.5,anchor=north,yshift=-0.55cm] {$z_{sun}$}; \draw [ thick, decoration={ brace, mirror, raise=0.1cm }, decorate ] (\zsun,0) -- (\zcrown+\zsun,0) node [pos=0.5,anchor=north,yshift=-0.55cm] {$z_{crown}$}; \node at (4,-6) {\Large $\omega_{gen}=\omega_{ice}+(\omega_{ice}-\omega_{em})\frac{z_{crown}}{z_{sun}}$}; \node at (4,-7) {\Large $\omega_{gen}=0+(0-2600)\frac{78}{30}=-6760$}; \end{tikzpicture} \end{document}

  • TikZ data visualization legends: reverse direction strategy or add empty entries?
    by equaeghe on March 30, 2021 at 8:59 am

    I use the data visualization library of TikZ. I have a scatter plot with multiple sets. I have setup a preferred style sheet combination for the plot marks. These are ordered. I have also added legend texts. Now, because of the semantic meaning of the different sets, reflected in the legend text length, they are best grouped in a certain way. That grouping is incompatible with the plot mark order and any available legend direction strategy. It would be compatible with a reversed legend direction strategy. I could also fix it, if I could insert empty legend entries. Minimal example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{datavisualization,plotmarks} \begin{document} \begin{tikzpicture} \datavisualization [ scientific axes={inner ticks}, x axis={ attribute=x, label={meaning of $x$ axis}, logarithmic,min value=10,max value=50000, ticks={minor steps between steps} }, y axis={ attribute=y, label={meaning of $y$ axis}, min value=18.5,max value=29.5, ticks={minor steps between steps=1} }, all axes=grid, visualize as scatter/.list={G,GF,simple,combined,new}, legend={above,columns=2}, % the following two should fill a column G={label in legend={text={a bit longer}}}, GF={label in legend={text=short}}, % the following three should fill another column simple={label in legend={text={quite a bit longer (simple, old)}}}, combined={label in legend={text={quite a bit longer (combined, old)}}}, new={label in legend={text={quite a bit longer (multiple)}}}, style sheet=cross marks, style sheet=strong colors ] data [set=G] { x, y 17513, 21.4 1000 , 19.8 2988 , 19.5 30113, 28.9 600 , 23.0 31979, 21.2 } data [set=GF] { x, y 6000 , 27.4 } data [set=simple] { x, y 71 , 24.3 } data [set=combined] { x, y 40 , 22.6 } data [set=new] { x, y 180 , 21.6 }; \end{tikzpicture} \end{document} Result:

  • Viviani curve with no self intersection
    by Sachchidanand Prasad on October 18, 2020 at 5:26 pm

    I was trying to make the following in TiKz which I made using Mathematica, which is the intersection of a sphere and cylinder similar to the Viviani's curve. . I want to highlight the shaded region of the intersection of a solid ball with a cylinder (the intersection is the blue curve and the region is the region bounded by the blue curve) which I was unable to make into TiKz. I don't have a good amount of knowledge of TiKz (still in learning process). I tried to change the code but unable to get the required one. Any help will be appreciated. Thanks in advance. Edit I am not getting how the parameterization is being used in the code. I have the following parametrization:

  • Format line properties when it appears behind another object in TikZ
    by Sid on June 28, 2020 at 11:18 am

    I am using the tikz-3dplot-circleofsphere package to draw circles of a sphere using tikz-3dplot. Consider the following MWE from the documentation: \documentclass{standalone} \usepackage{tikz-3dplot-circleofsphere} \begin{document} \centering \def\r{3} \tdplotsetmaincoords{60}{125} \begin{tikzpicture}[tdplot_main_coords] \draw[tdplot_screen_coords,thin,black!30] (0,0,0) circle (\r); \foreach \a in {-75,-60,...,75} {\tdplotCsDrawLatCircle[thin,black!29]{\r}{\a}} \foreach \a in {0,15,...,165} {\tdplotCsDrawLonCircle[thin,black!29]{\r}{\a}} \tdplotCsDrawGreatCircle[red,thick,/.style={opacity=0}]{4}{105}{-23.5} \end{tikzpicture} \end{document} which generates the following image How can I get the dashed red line to appear when it is only behind the sphere. I.e. in this case I have chosen a radii for the red circle that is larger than that of the sphere.

  • How to change the direction of arrows on Feynman diagrams in LaTeX?
    by David LeNir on April 6, 2020 at 5:45 pm

    I am having a lot of difficulty writing Feynman diagrams in LaTeX. In particular, getting the direction of arrows correct for my external fermion lines. On overleaf I used the code they wrote as an example: \feynmandiagram [horizontal=a to b] { i1 -- [fermion] a -- [fermion] i2, a -- [photon] b, f1 -- [fermion] b -- [fermion] f2, }; I should get the following output Instead overleaf gives me this: How can I change the direction of my external fermion lines? Any help would be appreciated. Thanks!

  • Cylindrical coordinates plot
    by Bakkune on April 6, 2020 at 2:19 am

    I wonder how can I plot this 3D object by using only tikz-3dplot:

  • How to make the axes physically properly clip through a sphere?
    by Jack Tiger Lam on September 28, 2019 at 7:46 am

    I have only seen questions where people wanted the axis to be overlaid on top of the plot. I want to do something more advanced. I want the axes to be rendered behind where you would expect them to be inside the surface, and rendered in front where you would expect them to be outside the surface. The first image is what I currently have. The second image is approximately what I would like to have. (apologies for the poor paint edit) \documentclass{article} \usepackage[a4paper,top=3cm,bottom=3cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry} \usepackage{amsmath} \usepackage{amssymb} \usepackage{tikz} \usepackage{pgfplots} \usepgfplotslibrary{patchplots} \usepgfplotslibrary{colormaps} \pgfplotsset{compat=1.8} \usetikzlibrary{arrows.meta} \usetikzlibrary{shadings} \usepackage{xcolor} \begin{document} \begin{tikzpicture}[scale=2] \begin{axis}[axis equal image, axis lines=center, ticks=none, view/h=120, view/v=20, enlarge x limits={abs=27pt}, enlarge y limits={abs=13.3pt}, enlarge z limits={abs=10pt}] %sphere \addplot3[surf, shader=interp ,colormap={custom}{rgb255=(200,200,200)rgb255=(200,200,200)}, opacity=0.5, z buffer = sort, samples = 50, variable = \u, variable y = \v, domain = 0:180, y domain = 0:360] ({2*cos(u)*sin(v)}, {2*sin(u)*sin(v)}, {2*cos(v)}); %viviani cylinder parts \addplot3[surf, shader=interp, colormap={grayslate}{rgb255=(50,50,50)rgb255=(200,200,200)}, opacity=0.5, z buffer = sort, samples = 35, variable = \u, variable y = \v, domain = 0:360, y domain = -2:0, ] ({1+cos(u)}, {sin(u)}, {max(-sqrt(2*(2-x)),v)}); \addplot3[surf, shader=interp, colormap={grayslate}{rgb255=(50,50,50)rgb255=(200,200,200)}, opacity=0.5, z buffer = sort, samples = 35, variable = \u, variable y = \v, domain = 0:360, y domain = 0:2, ] ({1+cos(u)}, {sin(u)}, {min(sqrt(2*(2-x)),v)}); %viviani window edge \addplot3+[domain=0:4*pi, samples=50, samples y=0, no marks, smooth, thick, black]({1+cos(deg(x))},{sin(deg(x))},{2*sin(deg(x)/2)}); %equator \addplot3+[domain=0:2*pi, samples=50, samples y=0, no marks, smooth, dotted, black, line width=0.5pt]({2*cos(deg(x))},{2*sin(deg(x))},{0}); %equator cylinder \addplot3+[domain=0:2*pi, samples=30, samples y=0, no marks, smooth, solid, thick, black]({1-cos(deg(x))},{sin(deg(x))},{0}); \end{axis} \end{tikzpicture} \end{document}

  • How to keep a background color behind a background picture in beamer?
    by LukeB on August 18, 2019 at 8:02 pm

    Forgive me if this question is easy, but I haven't found an answer. I am trying to use photos in the background of my Beamer slides. Some of these photos do not take up the whole slide, and I'd like to have some background color other than white for the rest of the slide. Unfortunately, using tikz to set a picture seems to ensure that the background of the slide becomes white. I'd like to make it so that this picture can go on the slide against a black background. MWE: \documentclass[xcolor=x11names,compress,14pt]{beamer} \usepackage{xltxtra} \usepackage[fallback]{xeCJK} \usepackage{xunicode} \usepackage{xcolor} \usepackage{etoolbox} \usepackage{fontspec} \usepackage{microtype} \usepackage{relsize} \usepackage{graphicx} \usepackage{tikz} \usepackage{pdfpages} \usetikzlibrary{backgrounds} \setbeamercolor{normal text}{fg=white,bg=black} \begin{document} \begin{frame}{This Background is Black} Text \end{frame} { \usebackgroundtemplate{ \tikz[overlay,remember picture] \node[opacity=1, at=(current page.south east),anchor=south east,inner sep=0pt,yshift=0mm,xshift=0mm]{\includegraphics[height=.95\paperheight]{OracleBone1.jpg}}; } \begin{frame}{This Background is White} Text \end{frame} \end{document}

  • Drawing text in between arrows using TIKZ
    by NoName on June 15, 2019 at 6:58 pm

    Hi dear TeX community! I hope you can help me out a bit with some matrices I have drawn (with the community's help of course) using the TIKZ package. I think that I need to post almost the whole code so that you get an appropriate picture of the problem, so sorry for that. \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{positioning,matrix} \newcommand{\mb}[1]{{\bullet #1}} % mean with bullet; dbl brackets to maintain subscript \newcommand{\xq}{\bar{x}} \begin{document} \begin{tikzpicture} \matrix [matrix of math nodes,left delimiter=(, right delimiter=)] (mat1) { x_{11} & x_{22} & \ldots & x_{1j} & \ldots & x_{1k} \\ x_{22} & x_{22} & \ldots & x_{2j} & \ldots & x_{2k} \\ \vdots & \vdots & & \vdots & & \vdots \\ x_{i1} & x_{i2} & \ldots & x_{ij} & \ldots & x_{ik} \\ \vdots & \vdots & & \vdots & & \vdots \\ x_{n1} & x_{n2} & \ldots & x_{nj} & \ldots & x_{nk} \\ }; \matrix[matrix of math nodes, left delimiter=(, right delimiter= ), below=7em of mat1, xshift=-8em] (mat2) { \xq_\mb{1} & \xq_\mb{2} & \ldots & \xq_\mb{2} & \ldots & \xq_\mb{j} \\ \xq_\mb{1} & \xq_\mb{2} & \ldots & \xq_\mb{2} & \ldots & \xq_\mb{j} \\ \vdots & \vdots & & \vdots & & \vdots \\ \xq_\mb{1} & \xq_\mb{2} & \ldots & \xq_\mb{2} & \ldots & \xq_\mb{j} \\ \vdots & \vdots & & \vdots & & \vdots \\ \xq_\mb{1} & \xq_\mb{2} & \ldots & \xq_\mb{2} & \ldots & \xq_\mb{j} \\ }; \node[anchor=west] at (mat2.south east){$\overline{x}_{\bullet \bullet} $}; \matrix[matrix of math nodes, right=4em of mat2, left delimiter=(, right delimiter=)] (mat3) { r_{11} & r_{12} & \ldots & r_{1j} & \ldots & r_{1k} \\ r_{21} & r_{22} & \ldots & r_{2j} & \ldots & r_{2k} \\ \vdots & \vdots & & \vdots & & \vdots \\ r_{i1} & r_{i2} & \ldots & r_{ij} & \ldots & r_{ik} \\ \vdots & \vdots & & \vdots & & \vdots \\ r_{n1} & r_{n2} & \ldots & r_{nj} & \ldots & r_{nk} \\ }; \foreach \X/\Y in {2/{\mathrm{IN}},3/{\mathrm{ZW}}} {\draw[-latex] (mat1) -- (mat\X); \draw[-latex] (mat\X.south) -- ++ (0,-4em) node[below] (G\X) {$\widehat{\sigma}^2_{\Y}$};} \path (mat2) -- (mat3) node[midway]{$+$} (G2) -- (G3) node[midway,below=3.5em] (F) {$ \displaystyle F = \frac{\hat{\sigma}^2_{\mathrm{ZW}}} {\hat{\sigma}^2_{\mathrm{IN}}} = \frac{\frac{1}{k-1} \sum_{j=1}^{k} \sum_{i=1}^{n} (\xq_\mb{j} - \xq_{\bullet \bullet})^2} {\frac{1}{N-k} \sum_{j=1}^{k} \sum_{i=1}^{n} ( x_{ij} - \xq_{\bullet j} )^2} $}; \foreach \X/\Y in {2,3} {\draw[-latex] (G\X) -- (F);} \end{tikzpicture} \end{document} So the questions that I have are 1.) Is it possible to insert this equation centered in between the uppermost two arrows? and 2.) to draw a red "double-arrow" going from $\bar{x}_{\bullet 1}$ to $\bar{x}_{\bullet \bullet}$ and one from $r_{11}$ to \bar{x}_{\bullet 1}? Thank you guys so so much! This is what it looks like at the moment: This is the output I kind of imagined (roughly):

  • Gray shaded sphere with tikz-3dplot
    by Pascal Romon on July 12, 2017 at 9:47 am

    How do I draw a grayscale shaded sphere with tikz-3dplot? I tried using \tdplotsphericalsurfaceplot with radius equal to 1, and parametricfill depending on the spherical angles. However, it looks like I can only prescribe the color's hue (in HSB space), according to the following post, which does not suit me. I could go all the way and redefine \tdplotdosurfaceplot, but that seems overkill. Let me emphasize that I want true 3D drawing (the rest of my picture requires 3D coordinates: I need to draw arcs), so I cannot use 2D tricks such as \draw [ball color=white] (0,0,0) circle (1) ; so this is not a duplicate of how-to-draw-a-shaded-sphere. I explicitly want a 3d drawing, preferably with tikz-3dplot, though I'm open to other 3d packages. Here are two MWEs: the first sphere uses uniform coloring, while the second uses a linear combination of the spherical angles: \begin{tikzpicture}[tdplot_main_coords] \tdplotsphericalsurfaceplot[parametricfill]{24}{24}{1} {black}{50}{}{}{} \begin{scope}[xshift=4cm] \tdplotsphericalsurfaceplot[parametricfill]{24}{24}{1} {black}{\tdplottheta+\tdplotphi}{}{}{} \end{scope} \end{tikzpicture} I would also like to get rid of the parametric lines... Maybe this is not the right package to work with, or the right command in the package.

  • Tikz picture: Volume between two surfaces
    by S. Doe on July 27, 2016 at 12:57 pm

    I would like to draw such a picture in Tikz, especially to emphasize the volume between these two paraboloids. Since Tikz looks quite complicated to me I ask you for some help (not to present me the code on a silver tray) how to tackle my problem. I appreciate any constructive help 🙂 Thank you!

  • 3D spherical coordinate system in pgf plots
    by Tony Mau on June 27, 2016 at 5:01 am

    I just learned 3d rectangular graphs in pgf-plots, and now I need to graph in spherical coordinates. Ive been reading the manual and cant find an answer. Is there a simple way to plot something such as rho=1+sin(theta)*sin(phi). Thank you for the help. \begin{tikzpicture} \begin{axis}[ xmin=-5,xmax=5, ymin=-5,ymax=5, zmin=-5,zmax=5, xlabel={$x$}, ylabel={$y$}, zlabel={$z$}, zlabel style={rotate=90}, view={75}{20}] addplot3[surf,opacity=0.75,domain=-360:360,y domain=-360:360,samples=20]({x},{y},{1+0.2*sin(x)*sin(y)}); \end{axis} \end{tikzpicture}

  • How to use MOdiagram for d-orbital splitting?
    by nbingo on March 7, 2016 at 4:27 am

    I've been trying to use the package MOdiagram to simply draw the orbital diagram of one atom, but I have the problem that MOdiagram (as far as I know) only allows you to input s, p, d, and f orbitals, all of which have a set number of suborbitals (so just blank lines), but in d-orbital splitting I only need two lines on one level. Since I'm terrible with words, here's a picture below of what I basically want to do (the lines can be boxes, so don't worry about trying to make that fancy too): If it's possible to add labels (which I've seen in the documentation supposedly is), then the picture below would be even better! In both of the pictures, as I said, the lines can be boxes (it doesn't make much of a difference for me). Also, I don't need the two levels to be perfectly centered one over another or so ridiculously close as I drew them. Any help would be greatly appreciated, and I'll try to answer any questions as quickly as possible! Thank you! P.S. Sorry for my messy handwriting! EDIT: I did further digging in the documentation and found this, which did what I wanted in my first picture (albeit it's very sketchy), but I still can't get labels underneath or to the sides. \begin{MOdiagram}[style=square] \atom{left}{ 2p = {0; pair, up, up} } \AO(0cm){s}{1; up} \AO(0.7cm){s}{1; up} \end{MOdiagram} Community edit: \documentclass[10pt,border=3mm,tikz]{standalone} \usepackage{modiagram} \begin{document} \begin{MOdiagram}[style=square] \atom{left}{ 2p = {0; pair, up, up} } \AO(0cm){s}{1; up} \AO(0.7cm){s}{1; up} \end{MOdiagram} \end{document}

  • Can pgfplots display the intersection of two surfaces?
    by Brian Fitzpatrick on February 29, 2016 at 7:08 am

    I'm trying to depict Viviani's curve with tikz. Ideally my picture would look like this one: (source) My code is \documentclass[]{standalone} \usepackage{pgfplots} \usepackage{tikz} \begin{document} \begin{tikzpicture} \begin{axis}[axis lines=center, ticks=none, view/h=120, view/v=5] \addplot3+[domain=0:4*pi, samples=100, samples y=0, no marks, smooth, ultra thick,black]( {1+cos(deg(x))}, {sin(deg(x))}, {2*sin(deg(x)/2)} );% node[blue,circle,fill,pos=0.3]{} node[red,draw,pos=0.65,thick]{}; \addplot3[% opacity = 0.1, mesh, blue, z buffer = sort, samples = 50, variable = \u, variable y = \v, domain = 0:180, y domain = 0:360, ] ({2*cos(u)*sin(v)}, {2*sin(u)*sin(v)}, {2*cos(v)}); \addplot3[% opacity = .1, mesh, red, z buffer = sort, samples = 50, variable = \u, variable y = \v, domain = 0:360, y domain = -2:2, ] ({1+cos(u)}, {sin(u)}, {v}); \end{axis} \end{tikzpicture} \end{document} This produces The plot doesn't convey the intersection very well. Is my code salvageable?

  • Draw an ecuator circle given a unit 3D vector (the North pole)
    by Herman Jaramillo on November 11, 2015 at 4:59 pm

    I found the package tikz-3dplot extremely useful and really appreciate all the effort and good work Jeff Hein put on this. After seen so many ways to describe the $\alpha-\beta-\gamma$ in terms of: Euler Angles Nautical Angles (pitch,yaw, roll) Matrix Rotations, etc. I have to confess that those confuse me a lot. It might be my skills at rotating three axes in my head (three times!) and know where I will land. In particular the function tdplotsetrotatedcoords in the manual linked above, is of great importance. I propose that given a unit vector we find the three rotation angles and from there the great circle corresponding to it. That is, for example, if my vector is $(1,0,0)$ the great circle is in the $y-z$, plane if my vector is $(0,0,1)$ my great circle is in the $x-y$ plane. In this way, I just need to know the direction of the new "north pole" (which is the $z$ axis after the three rotations) to find my tilted equator. The advantage of this parameterization is that a unit vector is easy to imagine, and there is one and only one equator for each unit vector (considered as the north pole). The parametrization seems easy by using some basic trigonometry. I will start this task now, but if someone knows that this is job done already please let me know. I do not want to re-invent the wheel. The final product should be a macro which is a wrapper of tdplotsetrotatedcoords where instead of $\alpha, \beta, \gamma$, we enter three coordinates corresponding to the new north pole. These three components cannot all be zero, of coruse since they lie in the surface of a unit sphere. Thanks. H.

  • 3D effects for hollow and solid cylinder in tikz
    by ravi on November 4, 2015 at 6:01 am

    I want to make following things in tikz- Solid Cylinder Hollow Cylinder The solid cylinder is little tilted and touching the top surface of hollow cylinder. The hollow cylinder is open from both the ends. Below is my code- \begin{tikzpicture}[scale=0.5, transform shape] \begin{scope}[shift={(0,0)},rotate=30] \coordinate (ll) at (-2,0); %lower left \coordinate (lr) at ( 2,0); %lower right \coordinate (ul) at (-2,4); %upper left \coordinate (ur) at ( 2,4); %upper right \shade [shading angle=90] (ll) arc (-180:-60:2 cm and .75cm) -- +(0,4) arc (-60:-180:2 cm and .75cm) -- cycle; \shade [shading angle=270] (lr) arc (0:-60:2 cm and .75cm) -- +(0,4) arc (-60:0:2 cm and .75cm) -- cycle; \draw [thick] (ll) arc (-180:0:2 cm and .75cm) -- (ur) arc (0:-180:2 cm and .75cm) -- cycle; \draw [thick, shade, shading angle=30] (ul) arc (-180:180:2 cm and .75cm); \end{scope} \fill [top color=gray!50!black,bottom color=gray!10,middle color=gray,shading=axis,opacity=0.25] (0,0) circle (2cm and 0.5cm); \fill [left color=gray!50!black,right color=gray!50!black,middle color=gray!50,shading=axis,opacity=0.25] (2,0) -- (2,-6) arc (360:180:2cm and 0.5cm) -- (-2,0) arc (180:360:2cm and 0.5cm); \fill [top color=gray!90!,bottom color=gray!2,middle color=gray!30,shading=axis,opacity=0.25] (0,-6) circle (2cm and 0.5cm); \draw (-2,-6) -- (-2,0) arc (180:360:2cm and 0.5cm) -- (2,-6) ++ (-2,0) circle (2cm and 0.5cm); \draw [densely dashed] (-2,0) arc (180:0:2cm and 0.5cm); \end{tikzpicture} Below is the generated picture - The above output is fine but it is difficult to differentiate between hollow and solid object. How to achieve it? Please suggest.

  • LaTeX beamer: get a picture in the foreground
    by stephan mc on July 22, 2014 at 1:31 pm

    I am trying to write some style file for a poster framework, we can use. The header is almost ready: \setbeamertemplate{headline} { \begin{beamercolorbox}[ht=15cm]{headline} \begin{tikzpicture}[overlay, remember picture] %title text \node [anchor=north west,inner sep=0pt,text width=60cm] at ($(current page.north west)+(4.5cm,-2.8cm)$) { {\usebeamerfont{title}\usebeamercolor{headline}\color{fg}\inserttitle\par}% \ifx\insertsubtitle\@empty% \else% \vskip28mm\par% {\usebeamerfont{subtitle}\usebeamercolor{headline}\color{fg}\insertsubtitle\par}% \fi% %{\usebeamerfont{subtitle}\usebeamercolor{headline}\color{fg}\insertauthor\par}% % {\usebeamerfont{institute}\usebeamercolor{headline}\color{fg}\insertinstitute\par} }; %hzdr logo \node [anchor=north east,inner sep=0pt] at ($(current page.north east)-(2cm,2.8cm)$) {\includegraphics[width=22.39cm,hiresbb]{HIF_E_weiss_auf_transparent}}; % \node [anchor=north east, inner sep=0pt] at ($(current page.north east)-(-3cm,13cm)$) {\includegraphics[hiresbb]{PIKTO_ENGL_300DPI21}}; \end{tikzpicture} \end{beamercolorbox} } The last picture is out of the actual header. And it should be visible, i.e. should stay in the forerground, not matter what to add under the header of the poster. Mainly the poster is made of other beamercolorboxes: \newcommand\posterblock[4][] { \fcolorbox{hzdr-blue}{white}{ \begin{beamercolorbox}[colsep*=1ex,#1]{bgblock}%use bigger values for colsep* if you want to make the box around the text bigger;warning: if you use the option rounded this will disable the horizontal spaces around the text \begin{block}{\usebeamerfont{block title}#2}\justify {\usebeamerfont{small block title}\color{hzdr-blue}{#3}}\vspace{2ex} {\usebeamerfont{block body}#4} \end{block} \end{beamercolorbox}} \quad } But when I am using this posterblock, it will always over the picture. Can anybody help and make the picture stay in the foreground?

  • Draw in cylindrical and spherical coordinates
    by Kiyoshi on February 9, 2014 at 10:41 am

    I can try to draw this in TikZ: I managed to draw the coordinate axis. The first image is in cylindrical coordinates and the second in spherical coordinates. I don't know draw in spherical coordinate system, the arrow labels, curved lines, and many other things. I have started to read the manual of Till Tantau, but for now I'm a newbie with TikZ and I don't understand many things of this manual.

  • Draw realistic 3D crystal structures (diamond)
    by strpeter on October 29, 2013 at 10:44 pm

    I want to draw a realistic 3D crystal structure, e.g. diamond. The point where I struggle is to draw connecting 3D rods. Desired result In the end it should describe the cubic cell of diamond, e.g. like the following picture from Phase Transformations & Complex Properties Research Group. Comments To me it seemed not reasonable at all to use TikZ as the picture gets useless at different view angles as I recognized by asking the question Unordered layers in tikz-3dplot (3d effect). Even the example in question Help creating solid cylinders along a path in Tikz for crystal lattice diagram using asymptote has unrealistic 3D layers (i.e. all atoms in front of the connecting rods - and the atoms are semitransparent in contrast to the image presented there). Example Here is a pstricks example: \documentclass{standalone} \usepackage{pstricks} \usepackage{pst-solides3d} \begin{document} \begin{pspicture}(-4,-4)(14,14) \psSolid[object=cylindre, h=6, r=1, fillcolor=yellow](0,0,0) \psSolid[object=sphere, r=2, fillcolor=red!25](0,0,0) \psSolid[object=sphere, r=2, fillcolor=red!25](0,0,6) \end{pspicture} \end{document} Result:

  • Can we make a love heart with LaTeX?
    by Sibbs Gambling on October 20, 2013 at 4:48 pm

    I understand that this post may cause some down votes because it seems a bit off-topic, but having seen the discussions on Christmas Tree with LaTeX I am still willing to try. How do you draw a red cute love heart using LaTeX?

  • How to draw spherical using 3dplot
    by Froop on April 18, 2013 at 9:14 am

    I would like do draw some sphericals using the package 3dplot. Does anybody know how to draw spericals with different diameter and postition in a coordinate system like that one? \documentclass[a4paper, 12pt,]{scrartcl} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage[english,ngerman]{babel} \usepackage{graphicx} \usepackage{epstopdf} \usepackage{tikz, tikz-3dplot} \begin{document} \tdplotsetmaincoords{60}{130} \begin{tikzpicture}[scale=4,tdplot_main_coords] \coordinate (O) at (0,0,0); \draw[thick,->] (0,0,0) -- (1,0,0) node[anchor=north east]{$x$}; \draw[thick,->] (0,0,0) -- (0,1,0) node[anchor=north west]{$y$}; \draw[thick,->] (0,0,0) -- (0,0,1) node[anchor=south]{$z$}; \end{tikzpicture} \end{document} Edit: Here is some more code I wrote. I would like to put a sphere at each corner to draw a crystal lattice. \documentclass[a4paper, 12pt,]{scrartcl} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage[english,ngerman]{babel} \usepackage{graphicx} \usepackage{epstopdf} \usepackage{tikz, tikz-3dplot} \begin{document} \tdplotsetmaincoords{60}{130} \begin{tikzpicture}[scale=4,tdplot_main_coords] \coordinate (O) at (0,0,0); \draw[thick,->] (0,0,0) -- (1,0,0) node[anchor=north east]{$x$}; \draw[thick,->] (0,0,0) -- (0,1,0) node[anchor=north west]{$y$}; \draw[thick,->] (0,0,0) -- (0,0,1) node[anchor=south]{$z$}; \tdplotsetcoord{P1}{.8}{30}{90} \tdplotsetcoord{P2}{.8}{30}{30} \tdplotsetcoord{P3}{.8}{30}{330} \tdplotsetcoord{P4}{.8}{30}{270} \tdplotsetcoord{P5}{.8}{30}{210} \tdplotsetcoord{P6}{.8}{30}{150} \draw[color=blue] (P1)--(P2)--(P3)--(P4)--(P5)--(P6)--cycle; \draw[color=blue] (P1xy)--(P2xy)--(P3xy)--(P4xy)--(P5xy)--(P6xy)--cycle; \draw[color=blue] (P1xy)--(P1); \draw[color=blue] (P2xy)--(P2); \draw[color=blue] (P3xy)--(P3); \draw[color=blue] (P4xy)--(P4); \draw[color=blue] (P5xy)--(P5); \draw[color=blue] (P6xy)--(P6); \end{tikzpicture} \end{document}

  • Intersection of 2 surface plots in pgfplots
    by meep.meep on September 24, 2012 at 6:42 pm

    My question is pretty much a duplicate of this one. I'd like pgfplots to display the intersection between tho surface plots properly. Unfortunately, my function is quite different from the one in the mentioned question, so I don't know, where the surfaces will meet. Would there be any kind of workaround for this kind of function? \documentclass{scrartcl} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[domain=0.01:30] \addplot3[surf] {0}; \addplot3[surf] {(1-0.3)*e^(-x*(y/100)*(1-0.3))-e^(-x*(y/100))}; \end{axis} \end{tikzpicture} \end{document}

  • How do we Draw a Bird in LaTeX
    by user10274 on March 4, 2012 at 8:33 pm

    Yes, it's that time of the month again. It's time for somebody to ask how we can draw X in LaTeX. This time I'm asking the question and X is a bird. The reason why I'm interested in this question is that drawing "non-geometrical" shapes is difficult. Addign symmetry makes it even more difficult and I'd like to see the different solutions that are used. I welcome any answers but I'm especially keen on birds with symmetry. All solutions have to be original. The following is a possible example of what I'm looking for. First the design, which is inspired by Escher, but based on an original idea: Next the LaTeX output: Following the suggestion of @Hooked, I provide a possible solution below.

  • Drawing simple 3D cylinders in TikZ
    by Jake on October 14, 2011 at 9:42 am

    I'm trying to draw some simple 3D objects in TikZ. I can do spheres and cuboids okay, but I'm struggling with circular cylinders: When rotating the scene (I use tikz-3dplot for this), the end faces have to be transformed from circles into ellipses. Using \draw ... circle; doesn't work, because a path defined like that will always stay circular. If I use \draw ... to ... to ... constructs with the in and out set to adequate values, I can "simulate" circles that transform slightly better: The "corner" points of the circle end up in the right place, but the in and out angles are not transformed appropriately. What can I do to get "3D circles", i.e. circles that turn into ellipses when the 3D space is rotated? Here's an example showing the problem: \documentclass{article} \usepackage{tikz} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{40}{20} \noindent The vertical cylinder walls\\ are not aligned properly \ldots \begin{tikzpicture}[tdplot_main_coords] \draw (0,0) circle [radius=1cm]; \end{tikzpicture} \begin{tikzpicture}[tdplot_main_coords] \draw (1,0,2) -- (0,1,2) -- (-1,0,2) -- (0,-1,2) -- cycle (-1,0,0) -- (0,-1,0) -- (0,-1,2) -- (-1,0,2) -- cycle (1,0,2) -- (0,-1,2) -- (0,-1,0) -- (1,0,0) -- cycle; \end{tikzpicture} \begin{tikzpicture}[tdplot_main_coords] \draw [in=225, out=-45, relative] (0.5,0.5,2) to (-0.5,0.5,2) to (-0.5,-0.5,2) to (0.5,-0.5,2) to (0.5,0.5,2) (0.5,0.5,0) to (-0.5,0.5,0) to (-0.5,-0.5,0) to (0.5,-0.5,0) to (0.5,0.5,0) (0.5,0.5,2) -- (0.5,0.5,0) (-0.5,-0.5,2) -- (-0.5,-0.5,0); \end{tikzpicture} \tdplotsetrotatedcoords{40}{50}{-30}\vspace{0.5cm} \noindent\ldots and the support points\\don't get transformed correctly \begin{tikzpicture}[tdplot_rotated_coords] \draw (0,0) circle [radius=1cm]; \end{tikzpicture} \begin{tikzpicture}[tdplot_rotated_coords] \draw (1,0,2) -- (0,1,2) -- (-1,0,2) -- (0,-1,2) -- cycle (-1,0,0) -- (0,-1,0) -- (0,-1,2) -- (-1,0,2) -- cycle (1,0,2) -- (0,-1,2) -- (0,-1,0) -- (1,0,0) -- cycle; \end{tikzpicture} \begin{tikzpicture}[tdplot_rotated_coords] \draw [in=225, out=-45, relative] (0.5,0.5,2) to (-0.5,0.5,2) to (-0.5,-0.5,2) to (0.5,-0.5,2) to (0.5,0.5,2) (0.5,0.5,0) to (-0.5,0.5,0) to (-0.5,-0.5,0) to (0.5,-0.5,0) to (0.5,0.5,0) (0.5,-0.5,2) -- (0.5,-0.5,0) (-0.5,0.5,2) -- (-0.5,0.5,0); \end{tikzpicture} \end{document}

  • How to make beamer overlays with Tikz node
    by Peter Smit on November 29, 2010 at 7:23 am

    I have a diagram of 4 nodes in my beamer slide. \begin{figure}[h] \begin{centering} \begin{tikzpicture}[system/.style={draw,rectangle,rounded corners=3,minimum width=2cm,text width=1.8cm,text centered}] \node [system] (fe) {Feature Extraction}; \node [system] (am) [right=of fe] {Acoustic Model}; \node [system] (lm) [right=of am] {Language Model}; \node [system] (d) [below=of lm] {Decoder}; \draw[->] (fe) |- (am); \draw[->] (am) |- (d); \draw[->] (lm) -- (d.north); \end{tikzpicture} \end{centering} \end{figure} How can I in a second slide "highlight" one of the nodes, like I can do with <alert@n> for a item in a list? With highlighting I mean for example giving a color and thickening the lines.