Questions tagged [texdef]

{texdef} is a tool for displaying the definitions of TeX commands.

Filter by
Sorted by
Tagged with
12
votes
1answer
246 views

About the definition of textcolor

I was curious and found the following definition for the macro textcolor defined in the package xcolor: \def\textcolor#1#{\@textcolor{#1}} \def\@textcolor#1#2#3{\protect\leavevmode{\color#1{#2}#3}} ...
1
vote
1answer
715 views

Install package from CTAN which is not available in TeX Live

The texdef package was recently updated to fix a critical bug. The package is updated on CTAN, but because TeX Live is in its "freeze" period, attempting to update the package via tlmgr update does ...
1
vote
2answers
158 views

How can I find the definition of latex macros?

So I've started to become more familiar with LaTeX, still a beginner but comfortable enough to try out the scary patchcmd from the etoolbox package. What has me mystified though is how people find out ...
0
votes
0answers
110 views

Neither latexdef.exe nor texdef.exe run, although they are installed. How's that?

I have these packages installed and both latexdef.exe and texdef.exe (I know they are actually the same thing) issue the following error messages: (la)texdef: The script could not be found. (la)...
13
votes
0answers
158 views

What is the recommended way to protect a TeX Live file from updates with no changes or to auto-patch it on such updates?

Many package managers allow users to prevent certain packages from being updated. Often this is called 'pinning'. A pinned package is protected from automatic updates. This is useful, for example, if ...
5
votes
2answers
309 views

How can I avoid this regex error when attempting to use texdef?

When I try to use texdef, I get the following error, even though texdef is just the same as it was when TeX Live 2016 was frozen and, indeed, just the same as it has been for several years, since it ...
0
votes
1answer
46 views

texdef script shows nothing for chapter

Following up this excellent question, I've tried to find the definition of the \chapter command via texdef -t latex -f chapter -s It shows then the following output: \chapter: undefined While ...
0
votes
2answers
206 views

How to define multiline in tabbing by \newcommand

How to define multiline tabbing by \newcommand like this: \documentclass{article} %\usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \renewcommand{\not}[2]{ ...
3
votes
0answers
873 views

Bug in TexDef: Unescaped left brace in regex is deprecated

I've been encountering some warnings when using texdef lately. Of course, the command itself works brilliantly. Running the command : texdef TeX produces this error-message: Unescaped left brace in ...
2
votes
1answer
68 views

How can I check a macro's definition or document?

I am trying to use "texdef" to get a marco/command's definition - but it seems only support a small portion or native marcos. for example, I use texdef -t latex -f itemize -s -E -F I can get a lot ...
1
vote
1answer
1k views

Minitoc conflict creating aux error defcounter refsection

While compiling my book, I encountered the following error: (./Book.aux ./Book.aux:94: Undefined control sequence. l.94 ...\defcounter {refsection}{0}\relax }\@write The thing is that a simple fix ...
5
votes
1answer
409 views

How to return \count value from \def

I wrote a macro which calculate remainder : \def\remainder#1#2 {% \newcount\dividendcount \dividendcount=#1 \newcount\quotientcount \quotientcount=#1 \divide\quotientcount #2 \...
2
votes
1answer
933 views

\maketitle definition on article

I am searching for the definition of \maketitle in the article class. I searched on CTAN but there is a lot of files. I don’t know in which one I can find this definition.
4
votes
1answer
4k views

Undefined Control Sequence section

I'm new to using LaTeX and I'm using someone else's template. I don't know but I keep getting Undefined Control Sequence error. I would really appreciate if someone could help me out in figuring out ...
12
votes
3answers
735 views

Click on macro name to jump to its definition?

Encouraged by a super response to my previous question on a similar topic, I shall persevere with a similar line of inquiry. I think it would be super if, in my LaTeX editor, I could click on a macro ...
4
votes
1answer
169 views

How to change an environment into newcommand?

Suppose that I want to create a new command named step, which functionally add Step 1., Step 2., and so on in the proof. This can be done by: \newcounter{stepnum} \newcommand{\step}{\stepcounter{...
12
votes
1answer
295 views

What are the TeX definitions for the hyphen and dashes -, --, and ---?

I've tried latexdef which does not handle --- as the operand. And \texemdash is defined as a character. So that leaves me once again leaning on the collective wisdom of the group :)
19
votes
4answers
2k views

LaTeX, package documentation look-up

I am on OS X (10.6 Snow Leopard) using TeXLive-2011 to typeset a simple .tex file I am editing in Vim and trying to learn. My problem is: how do I... gradually learn about what TeX can do for me get ...
1
vote
2answers
184 views

Bug with texdef (currfile) in frozen TexLive 2011

To keep in line with the Q&A format: I am on Ubuntu Lucid, with the frozen TexLive 2011, from where I installed texdef. Unfortunately, when I ran one of the examples from the help (and I ...
11
votes
2answers
292 views

How can texdef be made to return indented definitions?

With texdef it is easy to find definitions for (La)TeX commands. It can show what a definition for a given command is. For instance if I issue texdef -t latex \LaTeX I get the following definitions: \...
14
votes
2answers
252 views

Can texdef be forced to show the full definition for environments?

When using texdef to learn the definitions of environments sometimes not all the relevant lines are shown. I guess this has do with how the definitions are written. It seems that when environments are ...
7
votes
2answers
162 views

Can I get the line number for a definition from texdef?

With texdef it is easy to find definitions for (La)TeX commands. It can show what a definition for a given command is and also in what file it is to be found. Sometimes it would be convenient to also ...