# Tag Info

4

1

If I add \nopagenumbers to the code above, saved as graph.tex, then do pdftex graph pdfcrop graph I get the following Getting an EPS from the PDF is easy, if you really need EPS. A rather straightforward translation into TikZ/PGF: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[x=.6mm,y=1.1mm] \draw[->] ...

0

None of the answers above satisfied me, so I wrote pnglatex. It works on Linux and internally uses latex and dvipng programs. It is as easy as: ./pnglatex -f "(a+b)^2=a^2+b^2+2ab" Other options are -b <color> to change background color (valid colors are White, Emerald, Transparent, ...); -d for display math environment; -o <output-file-name> ...

1

For the amount of effort to set the numeric label, you might just as well use the optional argument typically supported by \item: \documentclass{article} \usepackage{enumitem,xparse} \NewDocumentCommand{\fixeditem}{o}{% \IfNoValueTF{#1} {\item}% \fixeditem {\item[\scshape #1.]}% \fixeditem[..] } \newlist{subp}{enumerate}{1} ...

6

The back tick can be used to get the character code in numerical contexts: a or \a The numerical context can be provided by \number or the following example uses e-TeX's \numexpr for the subtraction. \documentclass{article} \newcommand*{\setcurrentlabel}[1]{\setcounter{enumi}{\numexpr#1-a\relax}} \begin{document} ...

Top 50 recent answers are included