New answers tagged automation
1
As it seems that no existing package was able to provide this feature, I did it myself and created the conteq package. It does not (yet) do automatic layout selection, but provides a few layout and new ones can easily be added.
6
Here's a possible solution. It requires xindy rather than makeindex. If you really don't want to use xindy, it's possible to adjust the code, but it's more complicated.
% arara: pdflatex
% arara: makeglossaries
% arara: pdflatex
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
...
6
If you want also to print the theorem number, here's a schematic solution:
\documentclass{article}
\usepackage{lipsum}% just for the example
\newcommand{\shorttheorem}[1]{%
\xdef\shorttheoremlist{%
\unexpanded\expandafter{\shorttheoremlist}%
\noexpand\item[Theorem \thethm:]
\unexpanded{#1}}}
\newcommand\shorttheoremlist{}
...
4
This makes a table at the end, which is I think what you wanted:
\documentclass{article}
\makeatletter
\def\shortthms{}
\def\shorttheorem#1{\g@addto@macro\shortthms{#1\\}}
\makeatother
\newtheorem{thm}{Theorem}
\begin{document}
\begin{thm}
\shorttheorem{$x + y = y + x$}
Let $x,y$ be integers. Then $x+y=y+x$.
\end{thm}
\begin{thm}
...
3
It's important to understand that (La)TeX essentially processes files sequentially, in one pass from beginning to end. Since references to labels can appear earlier in the document than the label itself, it's clear that one run through LaTeX will not be enough. You need at least two runs, and you need to somehow pass information from the first run to the ...
6
I guess that question was aimed at me...
\documentclass{article}
\usepackage[leqno]{amsmath}
\renewcommand\theequation{\alph{equation}}
\newenvironment{brqalign}[1][]{%
\ifx\relax#1\relax
\def\colwidth{}%
\else
\def\colwidth{to \dimexpr(\linewidth/#1)-1em\relax}%
\fi
% START CODE
%%%%%%%%%%%%
% Do everything an a box, as you can not remove
% things ...
Top 50 recent answers are included