{fun} concerns questions primarily posed for entertainment or intellectual challenges, not necessarily for academic or professional purposes

learn more… | top users | synonyms

49
votes
2answers
3k views

Text spirals with TikZ

I just ran across this, and I'm curious about whether it can be replicated in TeX... Ideally one would have the spiral getting tighter and tighter as one got to the centre, as in I know TikZ has ...
4
votes
1answer
154 views

list of all used commands in compiled *.tex-documents

Is it possible to get a list of all the commands used in the compiled documents? I mean, if I use in my various .tex-documents commands such as \emph, \section, \cite, \begin, \documentclass, ...
27
votes
6answers
2k views

Given a list of primes, how can I plot π(x)?

Given an arbitrarily-long list of primes (or any sequence, I suppose), I'd like to calculate and plot the pairs (x, count of numbers in my list less than or equal to x) Bonus points for skipping ...
66
votes
8answers
3k views

TeX - LaTeX in pop culture

I'm doing a research on free-software references in movies, TV series, etc. Things like: "in Dr. House they use KDE as DE" or "Sheldon from the The Big Bang Theory uses Ubuntu." And the like. I'd ...
41
votes
5answers
2k views

Please improve my logo to resemble our TeX.SX logo

It is free to use TikZ or PSTricks to answer my question. I want to recreate our TeX.SX logo. But my attempt is far from perfect. Please help me to make it more similar to the original one. ...
182
votes
16answers
28k views

How can we draw a Christmas tree with decorations, using TikZ?

I would like to use TikZ for drawing a christmas tree. Here's a start, I used the lindenmayersystems library for drawing a tree: \documentclass{article} \usepackage{tikz} ...
41
votes
3answers
1k views

December challenge: Create an Advent Calendar

While thinking about creating an own Advent Calendar for the beloved people around me – instead of buying a boring one with chocolate in it – a thought came to my mind: "How would I draw this in ...
130
votes
13answers
13k views

Can we make a love heart with LaTeX?

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. My Girlfriend's ...
5
votes
1answer
64 views

Accumulative subscript/superscripts?

With the objective of writing a textual aliasing package that would make it possible to write input that better approximates the output, I encountered the following problem: create a control sequence, ...
23
votes
3answers
1k views

Make fireworks with only text

For the holidays, I wanted to follow up to the question about making fireworks with tikz (How can we display fireworks?): How can we make fireworks with only text? I have made a crude attempt below. ...
356
votes
56answers
96k views

Nice scientific pictures show off

Task Show off your best scientific illustration ! The main purpose of this question is to share beautiful scientific pictures, preferably with an educational aspect. Content Your post must ...
6
votes
2answers
131 views

Bloody decorations

there is a family tree from the BBC Website and I'm wondering if it is possible to use tikz decorations to create such "blood lines". Does anybody have an idea?
41
votes
7answers
4k views

Draw a turkey, a pumpkin pie, or any other object traditionally associated with Thanksgiving

Using TeX- and LaTeX-related tools and packages, how would you draw a turkey, a pumpkin pie, a pecan pie, a gravy boat, or any other object(s) traditionally associated with Thanksgiving?
31
votes
5answers
5k views

Typeset the shrug ¯\_(ツ)_/¯ emoji

I'm completing a problem set, one problem for which I literally have no idea what to do on. The graders would prefer to have a physical copy of the problem so I thought it best to include the ...
38
votes
5answers
2k views

How can we make a pumpkin, jack-o-lantern, or other halloween spirit, ghoul, or skeleton?

We have questions about Christmas trees and Hearts for Valentines but we have no questions that specialize in Halloween or Dia de los Muertos art. Here it goes: Using TikZ or PSTricks or any other of ...
2
votes
1answer
94 views

Ideas for a Presentation on Tabular Environment [closed]

As above, I will soon need to give a presentation on tabular environment. You might very well wonder why. Apparently the aim of such presentation is to gain 'presentation' skills. Anyhow, my ...
3
votes
0answers
260 views

Cleaner Code for a Table design

in this question Showcase of beautiful wine bottle labels made with LaTeX/TikZ and friends I asked for wine bottle labels. Here is my own attempt. I still have to play with fonts. I'm quite happy ...
12
votes
5answers
1k views

How could I write my name, for example, to look like the \LaTeX logo?

How could I write my name, for example, in a \LaTeX style? It is just interesting, as in Google all other things pop up when I try to search for an answer!
425
votes
8answers
87k views

How do I make my document look like it was written by a Cthulhu-worshipping madman?

I want to type up some spells from the RPG Call of Cthulhu and give them to my players. I could just type them up in Word or LaTeX, but that seems too...neat. I'd like to make these things look like ...
25
votes
4answers
2k views

TiKZ: “hand-drawn” explosion

Is there an elegant way to simulate a handdrawn explosion as shown in the following image using tikz?
7
votes
1answer
292 views

``squeezed in word'' effect

Is there a way (with tikz) to get an effect like shown in the following image? I.e. what command \inserteffect would yield that effect instead of just inserting in brackets as is the case for the ...
3
votes
0answers
138 views

Are there any packages for knitting?

So I showed my girlfriend the braids package, and she asked if their are any packages for knitting patterns. I couldn't find any on ctan with a quick search, so I thought I'd ask here. Are their any ...
32
votes
1answer
931 views

Making cards for Magic: The Gathering and similar card games

I'm creating cards for a card game. They will be similar to cards in Magic: The Gathering (left-hand image below). What I have is in the right-hand image below. The problem is that the code ...
3
votes
2answers
257 views

Coffee (and wine (and nicotine)) stains on an entire document

Just to remind everyone of the amazing coffee stains package - coffee by Hanno Rein. This package makes it possible to add coffee stains to your document. This question is for a generalization of ...
75
votes
11answers
8k views

Are there other “fun” packages like the “coffee stains” package?

I'm trying to convert some friends to LaTeX and have come up against a (to me) unexpected objection: there are too few packages that support "fun" (really), to which I responded: I know there are ...
8
votes
5answers
468 views

A more elegant version of the \ifnot macro

A TUGboat article of 15 years ago mentions an \ifnot macro by David Kastrup whose implementation is: \def\ifnot#1{#1\else \expandafter\expandafter\fi \iffalse\iftrue\fi} However, this macro ...
17
votes
3answers
2k views

How to draw many crossroads?

(April Fools' Day joke) How do we draw something like this? I enclose a picture and a detail of it. Update: I enclose one more screenshot (with TeXs sitting at the crossroads) if somebody is actually ...
40
votes
5answers
2k views

Amusing exercise - ouroboros file - Output of TeX includes itself recursively ad infinitum

Clarification: The question may be related to the the quine fun question, but IMHO it is quite distinct. The question here to write an "ouroboros" in TeX, i.e., a file that includes itself as a ...
8
votes
1answer
93 views

How can I load the table of contents into an lt3graph?

Question's in the title, really. I'd like to load the table of contents in a graph data structure. I would like to somehow keep the sections (chapters, paragraphs, etc.) ordered, but I'm not quite ...
7
votes
2answers
914 views

How to draw a pretty dog leash from A to B?

I need help to draw a dog leash from A to B that seems to be 8m long. The house is 3 by 5 m. \documentclass[tikz]{standalone} \usepackage{graphicx} \usetikzlibrary{} \begin{document} ...
17
votes
4answers
1k views

On/Off switch (redefine a macro at each use)

I try do define a macro \onoff, which alternatively prints "on" and "off" each time it's used. For example the sequence \onoff \onoff \onoff would print on off on My first guess would be to use the ...
33
votes
3answers
2k views

Draw a coat of arms in LaTeX

Over at academia.sx we are trying to create a community ad to try and get us promoted out of beta. We are looking to create a university type coat of arms/seal. I have seen some really great artwork ...
4
votes
0answers
121 views

Are there any decorative, TeX-themed posters? [closed]

I'd love to put a TeX or LaTeX poster on the wall above my PC monitor. To make clear which kind of poster I'm talking about – this would be a nice example for an enthusiastic ubuntu user: Until ...
5
votes
1answer
300 views

How do I make a presentation that seems made on an overhead projector?

I want to do a presentation simulating an overhead projector which some professors used when I was a math student. I couldn't find an image to mimic the background produced by an overhead projector. ...
3
votes
2answers
124 views

one and the same command for different outputs depending on position in document

Update: I decided to use Daniel's simple solution: \newcommand\Einstein{Albert Einstein (1879-1955)\xdef\Einstein{Einstein}} With this, the first use of \Einstein prints the full name with ...
1
vote
0answers
35 views

why tikz will generate a series of .0.0.0.0? [duplicate]

I want to generate several point on a line, and this is the command: \documentclass{article} \usepackage{tikz,pgf} \usetikzlibrary{calc} \begin{document} \begin{figure} \begin{tikzpicture} % ...
254
votes
2answers
31k views

Create xkcd style diagram in TeX

The unique style of the diagrams at xkcd has an informative but nice hand-drawn touch. I guess they are actually drawn by hand but just recently on our partner site for Mathematica someone asked how ...
87
votes
5answers
8k views

How can we display fireworks?

Soon we can celebrate the New Year. How can we use TikZ for drawing fireworks? For example like this, photographed by Kurume-Shimin, found on Wikipedia: Click on Image search for getting further ...
11
votes
1answer
327 views

Just for fun: Globally replace one glyph with another

Once upon a time, when I used a WYSIWYG word processor, I took a completed document and used Find-Replace to turn all instances of "." into tiny smiley faces. It wasn't really a difference that ...
27
votes
1answer
33k views

Pirate Treasure Map

This one is mostly for fun, although seeing the TikZ tricks people come up with is often instructive. While I was looking for examples with torn pages, I ran across a few of these: Can one draw ...
23
votes
2answers
4k views

How to optimize pdf with many links and simple pages

So... I can play tic-tac-toe (naughts and crosses) in a pdf: each board configuration is one page, and each cell of the board is a link which goes to the page corresponding to playing that move. The ...
130
votes
12answers
17k views

Contest: Show Off Your Skillz in TeX & Friends [TeX.sx birthday]

Submission Deadline and Voting are over, thank you for participating! Results Academic Gonzalo Medina – 31 Andy – 19 cmhughes – 11 mbork – 6 Other Yiannis Lazarides – 38 szantaii – 20 Ant – ...
14
votes
3answers
1k views

How to show off TeX skills with a TeX-typeset CV?

Recently, I have been editing my CV, which is typeset with XeLaTeX. I realize that besides those trite TeX advantages, such as being neat and clean (and the TeX symbolic font of course), I am not ...
2
votes
0answers
158 views

What are the most horrible things you see in simple documents? [closed]

I once saw a poster similiar to my minimal example: The code is in the end of the post. What odd things confuse you most reading a non-latex document/ presentation? Where do I find the original ...
35
votes
6answers
2k views

Showcase of beautiful wine bottle labels made with LaTeX/TikZ and friends

Did anybody design wine bottle labels for self made wine with Latex/TikZ/PSTricks? I'm interested in unusual designs (like the nice label for Barnstorming Bitter at http://www.tug.org/texshowcase/).
91
votes
16answers
5k views

Showcase of optical illusions made with TeX/LaTeX/LuaTeX/ConTeXt

Optical illusions are fun, so I thought it would be a good idea to have a list of optical illusions designed using MetaPost, or PGF/TikZ, or PS-Tricks, or Asymptote. Each entry should display one ...
116
votes
14answers
18k views

What is the most bizarre thing you have seen done with TeX

I think the questions says it all! :) By TeX, I mean any derivative of TeX as long as the code is clearly a derivative of TeX, i.e. that it could belong on TeX.SX (and not pure Lua for example). ...
6
votes
1answer
874 views

How compose an image from a specific text?

I love playing around with ASCII art and, as you may know, there are tools to generate ASCII art from images, where the ASCII consists of those characters which will result in the best image, as this ...
28
votes
7answers
5k views

How to typeset Triforce?

What would be the best practice approach to typeset the Triforce symbol known from the Nintendo® Zelda™ series?
61
votes
5answers
5k views

How can I create a template for 2048 game situations?

I guess some of you might know the game 2048. A situation has the following shape: I would like to create a TikZ template that allows me to make similar drawings. MWE To create the following ...