Linked Questions

4
votes
2answers
65 views

How to store the definition of a command? Or, how to disable locally a command?

what? I would like to "store" the definition of \includegraphics into \something so that the following logics will work: % the following line is what I am looking for store(\includegraphics, \...
3
votes
1answer
78 views

Adding content to nonexpandable commands without a huge hassle

I'm wondering if there is a package or method to add content around delicate commands without changing the command's name. For example, let's say I want to change \sqrt[#1]{#2} command to yield \...
0
votes
1answer
209 views

change \eqref format with \RenewDocumentCommand (or other way)

This is a follow on for an answer in: What is the correct way to type "See Eq. (n) \documentclass[12pt]{report} \usepackage[UKenglish]{babel} \usepackage{graphicx} \usepackage{epstopdf} ...
4
votes
1answer
122 views

Program package confliction

I want to write pseudo-codes in my survey using program package. Since I'm writing in other languages rather than English, I have to alter the names of those environments, like theorem and proof, etc (...
3
votes
0answers
369 views

Can I make a “deep copy” of a macro? [duplicate]

I would like to make a deep copy of macro that I don't have control of, because various packages might change it. So I want to take the current meaning of the macro, patching it, but without changing ...
3
votes
1answer
176 views

Repeat an enumerate list in different order - an enumitem question

I want an enumerate list be repeated in a different order (for example, a list of two statements and later a list of two proofs: first the second statement proof and then the first statement proof). I ...
1
vote
1answer
165 views

Override \item optional arguments in \newlist

I am trying to create a list environment where \item's optional argument can be used to augment, rather than replace, the item number. I would like \begin{myenum} \item First Item \item[x] ...
4
votes
1answer
53 views

perltex fails when using fourier package macro expression as argument to perl macro

After some search for errors, I have defined the following little example to show my issue. The command perltex can nicely translate the following document: \documentclass{article} \usepackage{...
2
votes
1answer
63 views

Relabeling commands before redefining them

I would like to rename a couple of commands so that the commands match the words I think of when I want to use them. I would like to have \iso be what is by default \cong (an equals sign with a \sim ...
2
votes
1answer
80 views

Pagenumber within \cref command

I am writing a script for a lecture in math and have quite a few cross-references in it. Now i have the problem, that the cross-references are sometimes pretty far away from the theorems they refer to....
1
vote
1answer
78 views

Append .eps to included figures [duplicate]

Is there a way to define a new command so that existing \includegraphics[scale=x]{fig_name} becomes \includegraphics[scale=x]{fig_name.eps} for any x and fig_name? This is for automatic conversion ...
2
votes
1answer
77 views

Rename \href command to check arguments first

I want to check the url given to \href. For that I have rename \href to execute some code. I think something is wrong parsing the arguments, because the code enters a loop and TeX capacity is ...
2
votes
2answers
31 views

Change function argument globally in renewcommand

I want to set one argument of a function permanently to a specific value. In my case it is the function \TextField which has the argument bordercolor. I want to set it globally to "nothing" instead of ...
2
votes
1answer
63 views

use lining figures in references

I use lowercase/old style figures in most of my document, but want to use uppercase/lining figures in references (as they're "proper nouns" I think). I'm using the following at the moment: \...
0
votes
1answer
44 views

How to create a enumerate list adding a custom prefix before each item number?

I found this question Adding some common text to enumerated description lists to be the closest: \documentclass{scrbook} \usepackage{enumitem} \newcounter{descriptcount} \newlist{enumdescript}{...

15 30 50 per page