Questions tagged [definition]

183 questions
5
votes
2 answers

What is the definition of \abc in this case?

When I compile the following code I get the error: "use of \abc doesn't match its definition" What is the definition of \abc? \documentclass{article} \begin{document} \def\foo#1{\def\abc#1{test}} \foo{gh} \abc x y z \end{document}
5
votes
1 answer

Use of ___ doesn’t match its definition

I am returning to LaTeX after a bit of a hiatus. Currently running Mac OS High Sierra (10.13.16) and TexShop 4.26. In the past, I have used the following definition command % In pre-amble \def\m3{m$^3$} % In text Blah...blah...blah..$\m3$ But…
3
votes
1 answer

The definition in my recompiled pdf is not working like I want

I have a hard time with the definition display. See below, to notice that the Definition A. n supposed to read Definition. An expression... How do I this: "supposed to read Definition. An expression..."? My attempt: I try to fix it with replace 1 in…
cba
  • 33
3
votes
1 answer

Redefine \choose as \binom

I did not know that I should be using \binom instead of \choose (and I ignored all the warnings). Now, instead of manually changing it at all places where I used \choose, I think there should be a way to redefine \choose as \binom right? However, I…
3
votes
1 answer

Second Argument to be set as Options

I have produced the below macros for generating the custom acronym \def\myacro#1[#2]#3{% \newcounter{#1}% \expandafter\edef\csname#1Acrshort\endcsname{#2} \expandafter\edef\csname#1Acrlong\endcsname{#3…
Saravanan.O
  • 595
  • 2
  • 5
  • 15
2
votes
1 answer

How to allow exceptions to \MakeLowercase or alternative macro

Please see attached mwe. How can we optionally protect characters or words from the effect of \MakeLowercase{}? \documentclass{article}% \def\thestring{A Pacific hurricane is a mature tropical cyclone that develops within the northeastern and…
2
votes
1 answer

Using \def inside mathematical environment

I have the following: \documentclass{article} \usepackage{amsmath} \usepackage{witharrows} \begin{document} \def\var{x} \[ \begin{WithArrows} \var\var&=\def\var{y}\var\var\\ \var …
Concept7
  • 645
2
votes
1 answer

problem in \def with if

I would like to make a definition in the form: \def\nameMYdef#1{ if (length of text #1) <= (width of the text on the page (? \textwidth ?) ) then (center(#1)) else ( justification(#1)) } Of course, this entry is only symbolic. I hope that it is…
Maniek
  • 21
1
vote
1 answer

How to edit form of Definition

In my project, in the section 1.1, I want to create a definition. When I use \begin{definition} abc \end{definition} the output goes as "Definition 1.11. abc" I want to change the format of my definition to "1.1.1. Definition. abc" How can I do that…
PermQi
  • 187
1
vote
1 answer

Declare math operator

I'm trying to create a command with which to write \declaremathoperator{ABC} to get \def\ABC{\operatorname{ABC}} I tried to implement it like \def\declaremathoperator#1 { \def\csname #1\endcsname{\operatorname{#1}} } but it doesn't work: Use of…
1
vote
1 answer

Huge set definition in latex

I am trying to write a set definition like the picture below in latex: How can I make such a clean set definition?
1
vote
1 answer

What is MVE an abreviation for?

I tried searching but neither google nor stackexchange gave me anything. I can almost infer that MVE is the header file of a latex document but I see some examples that include the header the body and the footer. At no point did I find any search…
acacia
  • 111
1
vote
0 answers

How to change the style of an environment

How would I display my definition as Definition 1.1 (Flow map)^1. (^1 is meant to be superscript and denotes a footnote). This is my…
1
vote
2 answers

Create definitions of symbols using LateX

I am trying to create legend for fraction some text \[Y = \frac{X_{A}}{X_{AB}}\] $\begin{array}{l l} X_{A}: & \text{Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's…
Ady96
  • 157
0
votes
1 answer

Commands already defined

I am getting the following problem (/home/hagbard/Opstk/bld/texlive/2022/texmf-dist/tex/latex/amsmath/amsopn.sty) ! LaTeX Error: Command \iint already defined. Or name \end... illegal, see p.192 of the manual. l.659…
Mahavir
  • 1
  • 4
1
2