# Tag Info

428

(Improved answer thanks to Bruno's help on his code) I've implemented some of the things I mentioned in my earlier answer, but I felt this was different enough to get a separate answer. Once again, tex.sx provided me with a couple of things I needed for this. Bruno Le Floch wrote some code that rotates arguments at a random angle and helped shortening it ...

300

This has been a topic for a few questions on this site and you can find many examples of such human-like typesetting, the most famous being the great How do I make my document look like it was written by a Cthulhu-worshipping madman? and also slightly related ones Simulating hand-drawn lines TikZ two-blocks matrix that I can remember (because I've ...

295

The following image illustrates the blowup of a plane at a point--an important construction in algebraic geometry (compare the cover of this book). The image was produced using Asymptote. (Note: the code and the image have both been refined since they were first posted.) The vector image may be viewed by following this link. settings.outformat="pdf"; ...

250

Electric field due to 3 charges. The black one is a negative charge orbiting the other two positive charges. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-electricfield} \begin{document} \multido{\i=0+15}{24}{% \begin{pspicture*}(-4,-4)(4,4) \psElectricfield[Q={[-1 3 \i\space PtoC][1 1 1][1 -1 -1]},linecolor=red] \end{pspicture*}} \...

241

One that I'm most proud of is a three-dimensional illustration of a signpost with various loads applied, shown here. I used the TikZ package. Commercial fonts have been removed in the code I've posted below. Looking back at the code, I probably could have written it a bit more efficiently (styles for face shading, more relative positioning, etc.), but c'est ...

234

\documentclass[border=0pt,pstricks]{standalone} \usepackage{pst-coil,pstricks-add} \usepackage[nomessages]{fp} \FPset\CoilArm{0.25} \FPset\CoilWidth{0.3} \FPeval\CoilTurn{round(50/3:3)} \FPeval\DeltaY{0.5} \FPeval\Amp{1.5} \FPeval\FPS{25} \FPeval\Vx{2}% propagation speed \FPeval\Period{1}% second \psset { coilarm=\CoilArm, coilwidth=\CoilWidth, } \...

222

One of my favorites; this one's not so involved but I enjoy the simplicity of the code and the quality of the result. It uses pgfplots to display streamline data for vortex shedding from a square block at Re=100. The streamline data were computed by a Fortran code I wrote to model the flow. The code: \documentclass{standalone} \usepackage{pgfplots} % ...

179

Plan B as per tohecz: I'm a security engineer at Facebook and this is my fault. Properties of water and steam (IAPWS-SF95 formulation), enthalpy-entropy diagram, actually used by our students (and colleagues, from time to time). Compiled with lualatex for memory reasons. I'll not post the code here, as it is quite a lot and wouldn't work on other computers ...

169

I made a humble attempt of a cute document with memoir and some Inkscape graphics. :) Please bear with me, after all, cuteness is in the eye of the beholder. :) Spoiler alert: ! Don't laugh at my duck, please. Jake and I were talking in the TeX and friends chatroom a few months ago about funny chapter styles for memoir. For the fun of it, we made a ...

167

Use shapepar to write your note: \documentclass[svgnames]{article} \usepackage{fontspec,microtype,shapepar,xcolor} \setmainfont{TeX Gyre Chorus} \begin{document} \textcolor{Crimson}{\heartpar{Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ...

146

\documentclass{article} \usepackage{upgreek,amssymb,amsmath,graphicx} \begin{document} \begin{minipage}{2cm} \Huge\obeylines\parskip-.7em \resizebox{1.8em}{1.5em}{$\;\;\Uplambda\!,\!\!,\!\!,\!\!,\!\!\Uplambda$} $\,\;_{\odot} {}_{\odot}$ {\small$\;\;\;\;\;\;\;\backslash\;\;\;\;\;\;\backslash$} \vskip.5em $\;\; ^{{(}\overset{{_\delta\;\;\;\,_\wr}}{}\!)}$ \...

145

Nothing too spectacular, but here's one from a presentation I did recently, showing the meaning of parton distribution functions. and a better view of the "floor": and the TikZ source: \documentclass[landscape]{article} \usepackage{siunitx} \usepackage{tikz} \usepackage{pgfplots} \usepackage{drawproton} \usetikzlibrary{calc} \usetikzlibrary{fadings} \...

145

Staightforward with a stack. \documentclass{article} \usepackage{stackengine,graphicx,trimclip,scalerel} \begin{document} \savestack\eye{\rotatebox{90}{$^\circ\mkern-6mu\raisebox{1pt}{)}$}} \savestack\nose{\raisebox{3pt}{\scalebox{1}[-1]{\clipbox{0pt 1pt 0pt 0pt}{?}}}} \savestack\mouth{\rotatebox{90}{(}} \scaleleftright{(}{\stackanchor[2pt]{\eye \nose \eye}{...

145

This is now available as the typewriter package on ctan and texlive etc Improved version with some Greek and mathematics, and avoiding small numbers being written using 2e-5 notation into the pdf (and crashing the pdf reader) This version assumes that the CM Unicode opentype fonts are available. 2nd update now works with texlive 2016 stable release, and ...

142

Going straight to the source, the H.P. Lovecraft Society offers a number of fonts (some free, some for sale), including Lovecraft Cursive (unfortunately not part of the free set). The whole set of 50 fonts is available for \$35.00 and contains more than 80 beautifully rendered digital props. A quick Google search for "free handwriting fonts" finds this site:...

141

Inspired by @Paul Gessler, the following is a statics problem from a class I taught. The problem was to find the maximum weight the crane could carry as a function of distance before it would tip over (the supports at D and E aren't bolted to the ground). It uses the drawing and plotting capabilities of TiKZ to draw the crane and the solution. Looking back, ...

139

This very same image was not used in a publication. I copied the idea from a journal article and remade it using PSTricks and pst-optexp: \documentclass{standalone} \usepackage{pst-optexp} \begin{document} \begin{pspicture}(-0.2,0)(12.3,8.8) \newpsobject{laser}{optbox}{position=start, innerlabel} \psset[optexp]{lens=2, phwidth=0.07, outerheight=0.6} \pnode(...

139

Probably most people don't remember what π is. The following animation will scientifically show that when a wheel rolls one lap without slipping, it travels a distance of 3++ times of its diameter. \documentclass[pstricks,border=12pt,12pt]{standalone} \usepackage{pst-plot} \psset{unit=2cm,dimen=m} \newdimen\Width\Width=3.64159265\psxunit \begin{document} ...

134

Taking up TeX's infamous tradition of logotypes, here's an asinine adaptation: \documentclass{article} \usepackage{graphicx} \usepackage{lmodern} \def\fontsss#1#2#3{\fontsize{#3\unitlength}{0pt}% \usefont{\encodingdefault}{\sfdefault}{#1}{#2}} \begin{document} \begin{picture}(50,20) \put(0,14){\rotatebox{145}{\fontsss{bx}{sl}{16}E}} \...

131

Merry Christmas everyone! \documentclass[11pt]{scrartcl} \usepackage[dvipsnames,svgnames]{xcolor} \usepackage{tikz} \usetikzlibrary{shapes,decorations.shapes} \newsavebox{\mycandle} \savebox{\mycandle}{ \begin{tikzpicture}[scale=.1] \shade[top color=yellow,bottom color=red] (0,0) .. controls (1,.2) and (1,.5) .. (0,2) .. controls (-1,.5) and (-1,.2) .....

131

Here is my take: Update: More "bling bling", more compilation time... (and trying @Stefan's brilliant idea) Update 2 Thanks to Stefan, I have seen that the previous version was only working in the QtikZ environment but nowhere(I guess) else. For some reason beyond me, the fadings are still not displayed correctly in Adobe Reader but at least it works (...

131

Manuel Luque's Syracuse website has a number of neat technical examples that includes some animations (forgive the loading; images/animations are linked to the source):

123

My humble attempt (thanks to xelatex): My code to question #29402 on TeX.SX I'm sorry, friends. TeX.SX seems to forbid answers with more than 30,000 characters. Mine was 50,138 - say again?! - so I had to paste the code on GitHub. Just because it was a TikZ-Cthulhu... :-P The output: I used the following font: YouMurderer BB

119

The scientific viewpoint of an egg on the frying pan. \documentclass[pstricks]{standalone} \usepackage{pst-node,pst-plot} \pstVerb{realtime srand} \begin{document} \psLoop{25}{% \begin{pspicture}(-2,-2)(2,2) \pscircle*[linecolor=orange]{0.75} \curvepnodes[plotpoints=73]{0}{360}{Rand 10 div 1.50 add t PtoC}{P} \psnccurve(0,\numexpr\Pnodecount-1){...

118

Here is a small bag of tips and tricks that I use to improve the handling and presentation of images in publications, which I want to share with you. Use non-floating images Most people think that the only way to insert an image in a publication is by using the LaTeX environment \begin{figure}...\end{figure}. This has many advantages but also many ...

118

Just in case the code isn't clear from behind the picture, here it is in full: \documentclass{article} \usepackage{listings} \usepackage{tikz} \usetikzlibrary{% lindenmayersystems, decorations.pathmorphing, decorations.markings, shapes.geometric, calc% } \tikzset{ tinsel/.style={ #1, rounded corners=10mm, ultra thin, decorate, ...

117

112

Update 4 : it's better with more rays and I add a decoration (Stephan's idea) but the result is aleatory. I change some arguments. With some shading in the center (idea from percusse and bloodworks): \documentclass{minimal} \usepackage[dvipsnames,svgnames]{xcolor} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{decorations,decorations....

111

This is one I like from my thesis. It illustrates the predicted boundaries for boundary layer transition mechanisms on a cylindrical afterbody at incidence: (1) free shear-layer instability, (2) attachment-line instability, (3) cross-flow instability, (4) streamwise-flow instability. \documentclass{standalone} \usepackage{calc,pgfplots} \pgfplotsset{...

104

Don't stare at this one for too long. \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \fill[color=black!40!white] (-6,-6) rectangle (6,6); \foreach \n/\r/\twist in {70/5/12,56/4/-12,42/3/12,28/2/-12}{ \foreach \m in {1,3,...,\n} \draw [thick,color=white,shift={(360/\n*\m:\r)},rotate=\twist+360/\n*\m] (...

Only top voted, non community-wiki answers of a minimum length are eligible