{macros} is for questions specifically concerning TeX's macro processor. Note that, because TeX uses macros ubiquitously, most questions about code that uses macros are not looking for information about how macros work, and so are not appropriate for this tag.
42
votes
0answers
1k views
A LaTeX log analyzer application (visualizing TeX expansion)
Consider the following MWE, test.tex:
\documentclass[12pt]{article}
\begin{document}
\tracingassigns=1
\tracingmacros=1
\def\aaa{something}
\def\bbb{else \aaa, else}
\edef\ccc{third \bbb, level}
...
8
votes
0answers
202 views
A flexible derivative macro with LaTeX3
In an earlier post I asked a question about writing a flexible derivative macro, and someone suggested that a LaTeX3 version might be easier to understand, so I decided to try my hand at writing one. ...
5
votes
0answers
323 views
Trying to make an automatic histogram (in pgfplots?)
How can I convert the automatic table generated by the macro, to an automatic histogram?
Is the best way do it using pgfplots?
\documentclass{article}
\RequirePackage{ifthen}
...
3
votes
0answers
74 views
XML or other markup to LaTeX?
In my university project I am doing software testing - planning, implementation, evaulation. All test documents have the format:
General information
Test categories
Test cases
Test implementation ...
3
votes
0answers
53 views
Can I define \supercite to act as \cite?
I have a document using supercite and it works fine, but I am now using a different set of packages and cite works better. So rather than me have to change them all, is there a way I can define ...
1
vote
0answers
39 views
Get confused about the `command` option in some ConTeX \setup*
Since I switched to ConTeXt from plain TeX, I always get confused about macros in it. Now it is the command option in \setup* of ConTeXt.
In ConTeXt, some macros, like \setuphead, \setuplist, have ...
1
vote
0answers
120 views
Is there a \newcommand manager program?
I type my latex document with gedit.
I use a lot of macro to facilitates typesettings.
I put all of them just after the begin{document} tag.
For a homework question says, I use at least 20 macros.
For ...
0
votes
0answers
70 views
tokenizer does not work
\documentclass[a4paper]{article}
\usepackage{comment}
\usepackage[trim]{tokenizer}
\usepackage{ifthen}
\usepackage{xargs}
\usepackage{xkeyval}
\usepackage{xfor}
\begin{document}
\makeatletter
...
0
votes
0answers
38 views
\end{tabu} in \newcommand
I want to put \end{tabu} within a \newcommand
\documentclass{article}
\usepackage{tabu}
\newcommand
{\tableBegin}[1]
{
\begin{tabu}[#1]
% some other stuff
}
\newcommand
{\tableEnd}
...
0
votes
0answers
36 views
TeX, LaTeX capabilities in counting occurrences in text of chars defined in a given list
I am asking this question in part because I am not completely aware of TeX, LaTeX capabilities. Imagine that I want to count the number occurrences of charecters defined in a certain list. The usage ...
0
votes
0answers
49 views
How to make a package using sagetex and sage-commands
I am trying to make my own package building on sagetex. It starts with
\RequirePackage{sagetex}
and I want it to execute some 'sagesilent' code as for instance
\newcommand{\loadsagefunction}{
...
