67 questions linked to/from Cunning (La)TeX tricks
159 views

### What is the best _hack_ you have seen or written in (La)TeX? [duplicate]

Possible Duplicate: Cunning (La)TeX tricks Here, by hack I mean a short, elegant, or even counterintuitive definition/macro etc. that solves a task, often in a surprising way. Background Many ...
28k 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 – 15 ...
9k views

### How can I see the “implementation” of protected commands such as \LaTeX?

After reading another question relating to how to see definitions of commands, I tried: \documentclass{article} \begin{document} \show\LaTeX \end{document} But this shows me in my logfile: \LaTeX=...
5k views

### How do I display pi in LaTeX like Don?

Way back in 1979, Donald Knuth, tried to give the feeling that π is irrational using the idea of infinite sequence of smaller and smaller font sizes like what I have tried to do here using HTML and ...
13k views

### Display source for a command

When using renewcommand, sometimes I wish to first check what the original source code for a particular command, such as chapter was before I change it, so that I can be certain that I do not make ...
3k views

### Shear transform a “box”

Using the graphicx package, I can make any arbitrary box rotated using the \rotatebox{...}{...} command. Is there a comparable command in any package that lets me shear a box, i.e., producing a kind ...
9k views

### Reading data from a relational database into a LaTeX table

I'm using Tex Live 2009 on Debian squeeze. I can upgrade if I really, really have to, but I'd rather not. I was wondering if it would be possible to do the following. Given some data in a (...
2k views

### TeX macro idioms, or: understanding advanced macros

I often find that when I look at solutions from the experts here, the macro definitions are completely inscrutable to me. Trying to use standard techniques one would use to understand code in most ...
19k views

### Create an array of variables

I'm creating a package for my question papers. (I'm aware of the exam class but I don't want to use that.) I have everything ready but I want to create a grading table at the top of the first page. ...
1k views

### recursive list type like definition in LaTeX

I'm trying to typeset an OCaml like list and would like to define a command mylist for it. The expected result is something like below: \mylist{} --> [] \mylist{aa} --> [...
5k views

### Upright Greek font fitting to Computer Modern

I'm looking for an upright Greek font for single Greek characters (like "β-decay" or "µ-metal") which fits to the default CM/latin style, i.e. the upright version of the default italic math mode Greek ...
846 views

### Create a command for 'menu sequences'

I'm trying to create an extendable command that can take in a single argument (possibly in the following form): \menuentry{File:New:Class} And generate something like: \texttt{File -> New ->...
753 views

### Is it possible to use the pipe character, |, to separate cells in a table?

I was wondering if it is possible to use the pipe character, |, instead of the & to separate cells. Something like this: c1 | c2 | c3 \\ c4 | c5 | c6 \\ instead of this: c1 & c2 & c3 \\...