Linked Questions

1
vote
0answers
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 ...
159
votes
12answers
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 ...
72
votes
5answers
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=...
63
votes
4answers
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 ...
61
votes
3answers
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 ...
30
votes
5answers
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 ...
33
votes
6answers
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 (...
41
votes
4answers
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 ...
22
votes
5answers
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. ...
16
votes
7answers
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} --> [...
22
votes
3answers
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 ...
11
votes
5answers
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 ->...
15
votes
3answers
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 \\...
16
votes
4answers
11k views

Commands that may take a variable number of arguments

I have a situation where I want to define a command that takes a variable number of arguments, where the number of arguments is known programmatically via a \count, and process the parameters in some ...
14
votes
2answers
4k views

Victory symbol in Salamanca

In Salamanca, Spain, it was customary when you finished your PhD degree in the city's University ---which is one of the oldest in Europe--- to write in the wall a kind of graffiti, as shown here: ...

15 30 50 per page
1
2 3 4 5