3
votes
1answer
110 views

Can I use a TeX primitive in a “before” and “after” macro? (and how?)

The Question Can I use a TeX primitive in a "before" and "after" macro? (and how?) There are two questions that I found useful and related to my question, which sent me in the right direction: how ...
9
votes
3answers
204 views

How to customize enumeration to implement Brazilian law texts?

This is a standard model of a Brazilian contract: http://www.consultta.com/modelos_contratos/modelos_contrato/0215.htm It more or less follow the way Brazilian laws are written: as you can see, the ...
5
votes
1answer
102 views

Can I make an environment that defaults to include \item\relax tags in front of paragraphs?

This certainly sounds lazy, but my use case is designing a crude template for power point presenters to use in converting their content to a company's specific presentation standard, without their ...
3
votes
1answer
118 views

Redefine \item command to not typeset some items

Suppose I want to have an enumerate environment, in which I don't want to typeset certain items. I can obtain this in LateX using (let's ignore the problem that the numbers are wrong, this is easy to ...
4
votes
1answer
231 views

Exercise enumeration

In order to make it easier to write hand-in assigments, I want to create two environments Subexc and subexc, where I can write the entire exercise down before starting. Subexc is supposed to be run ...
5
votes
1answer
93 views

Empty List Environment

I created commands for resume fields. This is a simplified example of the desired outcome: Currently, I have to create two separate commands to do this, one with \begin{itemize} and the other ...
3
votes
2answers
120 views

How to store and append text for later use (inside enumerate environment)

I'd like to make a container in LaTeX in which I can store and append LaTeX-code for later use. I have found many solutions to what I'm basically try to do (here for instance), but if they work, ...
1
vote
2answers
162 views

Macro to format text

Good morning, I have the following problem, I have a file with 8000 questions in the following format: COD: 7 ¿A qué número de revoluciones se alcanza la potencia máxima de un motor? A Al número de ...
7
votes
1answer
255 views

Macro that repeats input of items in enumerate environment

My objective is to create Multiple Choice Answer Sheet. I have managed to create the circled letter environment using tikz but my question is that if one can create a macro that will repeat the ...
4
votes
1answer
366 views

Command to find current enum depth?

I was wondering if there was a command to find what at what depth of the enum counter (i.e. enumi, enumii, etc.) a command was at compile time. I'm attempting to create a \question command. What I ...
5
votes
2answers
307 views

Redefining \enumerate using \let - why does it behave this way and what can I do to bypass it?

The following code produces a result, that I find quite strange: \documentclass{article} \let\origenumerate\enumerate \renewenvironment{enumerate}{\begin{origenumerate}}{\end{origenumerate}} ...