Questions tagged [texdef]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
77 views

What is the equivalent PreTeXt equivalent of \def in Latex? [closed]

I am using Latex to write my course syllabi and I want to switch to PreTeXt does anyone know what is the equivalent of \def in PreTeXt? For example, in my syllabi I use the following: \def\officehours{...
12 votes
1 answer
978 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}} ...
2 votes
1 answer
2k 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 ...
4 votes
2 answers
612 views

How can I find the definition of latex macros? [duplicate]

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
0 answers
141 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)...
  • 91
14 votes
1 answer
236 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 ...
  • 184k
6 votes
2 answers
409 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 ...
  • 184k
0 votes
1 answer
91 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 ...
  • 2,188
1 vote
2 answers
459 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]{ ...
  • 595
3 votes
1 answer
1k views

Bug in TexDef: Unescaped left brace in regex is deprecated [closed]

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 ...
  • 5,962
2 votes
1 answer
88 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
1 answer
2k 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 ...
  • 908
5 votes
1 answer
479 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 \...
4 votes
1 answer
2k 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.
  • 2,145
4 votes
1 answer
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 ...
  • 205
12 votes
3 answers
1k 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
1 answer
291 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{...
  • 1,543
12 votes
1 answer
321 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 :)
  • 1,483
22 votes
4 answers
4k 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
2 answers
192 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 ...
  • 16.5k
11 votes
2 answers
309 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: \...
  • 34.8k
14 votes
2 answers
299 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 ...
  • 34.8k
7 votes
2 answers
183 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 ...
  • 34.8k