Skip to main content

Questions tagged [definition]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
83 views

Redefining special commands in ConTeXt

i want to use itemgroup for typesetting side by side poems, this MWE works well: \defineitemgroup[myPoem] \starttext \startitemgroup[myPoem][horizontal,two] \startitem first sentence \stopitem\...
seyal's user avatar
  • 67
5 votes
4 answers
678 views

How can I make this kind of list 1., 1.1, 1.1.1, ... and 1.2, 1.2.1, 1.2.1.1, ...?

Code \documentclass[draft,a4paper,12pt,finnish]{article} \usepackage{babel} \usepackage[showframe]{geometry} \usepackage[backend=bibtex]{biblatex} % before hyperref \usepackage[obeyspaces,spaces]{...
Léo Léopold Hertz 준영's user avatar
0 votes
0 answers
28 views

Redefine "empty citation" string in biblatex [duplicate]

In biblatex, when no citestring is provided in a cite command, the package prints . I want to re-define this string. However, I have not found a documented command or option to do this. In biblatex....
SensorGate's user avatar
0 votes
0 answers
47 views

Weird numbering system for theorems, definitions, propositions, etc

I am using many packages in my .tex file, I believe it is because of the abntex2 package that I am using for compliance with Brazilian ABNT standards that this problem is ocurring, not that as far as ...
Felipe Dilho's user avatar
2 votes
1 answer
58 views

Locally redefine figure environment as figure* for automated export

I'm using a workflow based on pandoc and Latex to produce papers with my companies layout. Part of the formatting are captions set inside the margin and sometimes using images that span text and ...
lukeflo's user avatar
  • 1,597
1 vote
1 answer
57 views

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 ...
PermQi's user avatar
  • 187
1 vote
1 answer
85 views

Hack 'minted' definition with NewTCBListing und RenewDocumentEnvironment

A colleague and myself are trying to hack the minted environment by assigning the original meaning to oldminted using \NewEnvironmentCopy and then use this saved version in a redefinition of minted ...
lukeflo's user avatar
  • 1,597
0 votes
0 answers
30 views

Underlining a \def text [duplicate]

So basically I have defined a term: \def\Title{Lorem ipsum dolor sit amet consectetur adipiscing elit risus, maecenas nisl imperdiet aliquet taciti ac.} And I want to underline it, but when I do so ...
Keith Kamson's user avatar
2 votes
4 answers
301 views

`{` in the definition of a macro?

I know that using article to obtain chapters is idiotic, but the code to improve is long and depends on this. In the following code I define a new macro \Section*, but I must remove curly braces from ...
Przemysław Scherwentke's user avatar
14 votes
1 answer
678 views

TeX jargon - Difference between "argument" and "parameter" in TeX?

What's the difference between the term "parameter" and the term "argument" in TeX jargon? Are outermost enclosing pairs of matching curly braces of undelimited arguments to be ...
user avatar
3 votes
1 answer
229 views

Where is the definition of the math mod environment `$$...$$`?

I have a problem with display math modes $$...$$ and \[...\], see The display math mode and the `center` environment. So, I want to find the definition of the display math mode $$...$$ for ...
phchon's user avatar
  • 51
1 vote
0 answers
84 views

How to delete a command in the \BODY macro of environment defined by \NewEnviron

My environment defined by \NewEnviron macro contains a macro \mymacro. How can to delete the macro \mymacro in the \BODY macro, when it executes? \documentclass{article} \NewEnviron{myenviron}{\...
phchon's user avatar
  • 51
0 votes
1 answer
96 views

Commands already defined [duplicate]

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, ...
Mahavir's user avatar
2 votes
0 answers
74 views

Expl3: understand how new command using sequence processes arguments

I'm just getting started with expl3. I had a previous question which initiated about automating the process of printing authors of a specific paper and their further informations. The solution by Alan ...
lukeflo's user avatar
  • 1,597
1 vote
1 answer
54 views

Function of "Elements" without Backslash in Command-Definitions

I have a general question which I couldn't solve so far. It came up a few days ago, while I was trying to redefine the different parts of the footer of the scrlayer-scrpage package (this still isn't ...
lukeflo's user avatar
  • 1,597
1 vote
2 answers
83 views

How to find macros to adjust footer (lefoot, cefoot etc.) with scrlayer-scrpage

I'm still working on a Latex-template for my institution. So far everything runs fine and the former questions i asked here helped me a lot. Now, i want to adjust the different parts of the journals ...
lukeflo's user avatar
  • 1,597
1 vote
1 answer
76 views

Beamer: Definitions not in blocks [duplicate]

In my Beamer presentation I would like to write definition as in the Article environment, so without blocks. How can I do it? \documentclass[10pt,aspectratio=169]{beamer} \usetheme{Frankfurt} \...
LaRausi's user avatar
  • 13
0 votes
1 answer
34 views

How to place a defined variable at multiple locations

I would like to use the defined variable - \arrows[#1] - from this tikz example: https://texample.net/tikz/examples/overlapping-arrows/ % Overlapping arrows % Author: Elena Botoeva \documentclass{...
David Cross's user avatar
1 vote
0 answers
24 views

beamer definition numbered [duplicate]

I would like to display a definition block in beamer (I'm preparing some slides) but block should be numbered, something link "Definition 1", "Definition 2", etc. Using the code ...
Alessandro's user avatar
0 votes
0 answers
164 views

Redefinition of \maketitle is ignored

I would like to change some elements of my title page, but without completely creating my own titlepage environment (as e.g. demonstrated here), because I am using commands like \extratitle and \...
mapf's user avatar
  • 241
1 vote
2 answers
106 views

How to Produce a Footnote Like This for Some Lyric Sheets

Consider the code \documentclass[14pt]{memoir} \begin{document} \thispagestyle{empty} \begin{verse} \begin{bfseries} \hskip -12pt* A special footnote \\[1pt] \hskip 15pt To be put \textit{this way;} \\...
DDS's user avatar
  • 9,456
0 votes
1 answer
102 views

Define coloneq (def) with redefined \=

For my own convenience, I tried to define some short-cut key for ``define'' as \usepackage{mathtools} \NewCommandCopy{\tmp}{\=} \AtBeginDocument{% \DeclareRobustCommand{\=}{\ =\ }% } \def\:={\ \...
Seung Hyeon Yu's user avatar
8 votes
2 answers
349 views

Opposite of csname

If I have a macro \Name that expands to a macro name, I can use that with \csname or the various tools from etoolbox. Can I do the opposite, i.e., get the name of a macro? My use case is the following:...
Bubaya's user avatar
  • 2,539
1 vote
0 answers
34 views

Looking for Global Solution to Insufficient Apostrophe Kerning with Cabin

In How to Increase the Space Between a Letter and Its Apostrophe with Cabin, it was suggested that in order to increase the kerning between a letter and the adjoining apostrophe, one may use \mbox{'} ...
DDS's user avatar
  • 9,456
2 votes
1 answer
44 views

use \def\@plus{plus} etc to save token space

In the LaTeX kernel, we can see these definitions: \def\@plus{plus} \def\@minus{minus} \def\@height{height} \def\@depth{depth} \def\@width{width} It is said that these definitions can be used to save ...
Stephen's user avatar
  • 4,259
1 vote
0 answers
34 views

Using \ifdefined for a definition inside \DeclareOption

I'm checking for a command declared inside \DeclareOption but \ifdefined doesn't seem to work as expected. Here's a MWE: % example23.sty \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{example23}[2023/01/01 ...
Abdul Fatir's user avatar
1 vote
2 answers
152 views

Custom colorful definition

My MWE: \documentclass[a4paper]{article} \usepackage[most]{tcolorbox} \usepackage{xcolor, soul} \usepackage{amsthm} \definecolor{columbiablue}{rgb}{0.61, 0.87, 1.0} \newcommand{\highlight}[1]{\...
WinnieNotThePooh's user avatar
2 votes
1 answer
86 views

Why doesn't TikZ accept conditional colors?

I want to use conditional colors. I produced the following MWE but it does not work. What is the issue? \documentclass{article} \usepackage{tikz} \begin{document} %\def\versionNB{} \def\versionColor{...
Colas's user avatar
  • 6,842
5 votes
2 answers
313 views

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{...
Daniel Huff's user avatar
4 votes
4 answers
1k views

What is \fam command?

I defined the following command \NewDocumentCommand{\fam}{O{\mathbb{N}}mm}{\left\{ #2_#3 \right\}_{#3 \in #1}} % Family notation (set with indices) but I get the compile error Command '\fam' ...
Fral's user avatar
  • 79
13 votes
2 answers
1k views

Is this the right way to understand \let \def \edef \gdef \xdef \newcommand \renewcommand \providecommand?

I've already looked at at least ten different q&as explaining the differences of a subset of the commands listed above. While experimenting with them and trying to understand the subtle ...
mbly82553's user avatar
  • 131
8 votes
3 answers
451 views

TeX point command

I try to get my own command to work to output a point in standard german notation. My code (adapted version of wipet's code): \documentclass[12pt]{article} \def\punkt#1{\left(\punktA#1,,\right)} \def\...
realGottlob's user avatar
5 votes
2 answers
110 views

Redefine a definition with itself, without evaluate its content

I have this MWE : \documentclass{article} \usepackage[TS1,T1]{fontenc} \usepackage[french]{babel} \newcounter{nbrefpage} \newcommand\setindex[1] {% \stepcounter{nbrefpage}% ...
Pierre Dufays's user avatar
0 votes
2 answers
73 views

Evaluate just one part of a definition, and not the other part

Let's assume we have: \def\tmpnbrefpage{sometestpagetoken} how can we define a storedpageref variable, like (in pseudo-language): "storedpageref" = \pageref{\tmpnbrefpage} where ...
Pierre Dufays's user avatar
1 vote
1 answer
46 views

Redefine def by itself without evaluate

If I have \csname var:\foo\endcsname, how can I do that : \expandafter\gdef\csname var:\foo\endcsname{\csname var:\foo\endcsname, \bar} ? I know I can do it with edef (or xdef for global), but in my ...
Pierre Dufays's user avatar
1 vote
3 answers
154 views

Defining an Em Dash with Length Greater Than the Cabin Default

I have noticed that the length of an em dash is not always uniform, depending upon the font being used. Consider the following code which defines an em dash: \documentclass{book} \usepackage[T1]{...
DDS's user avatar
  • 9,456
5 votes
1 answer
129 views

Using \def in csv range

I would like to use a predefined list of numbers in the csvsimple-l3 range option. The MWE will explain better: \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{csvsimple-l3} \...
user125198's user avatar
0 votes
1 answer
815 views

Simple boxes for definitions, theorems, lemmas, and proofs with tcolorbox

I would like to have something that looks like this: I don't want to add Box 1 to the definition environment each time. And this also goes for properties, lemmas, and theorems of the environment \...
Educ's user avatar
  • 4,392
8 votes
3 answers
531 views

How to create \in-symbol with underbar that has rounded edges and correct vertical spacing?

The aim is to create a new symbol \ineq. The appearence of \ineq would be to \in as \subseteq is to \subset. Output from attempt at making \ineq: Problems with attempt in decreasing order of ...
Linear Christmas's user avatar
1 vote
1 answer
131 views

Why does this command defined with \NewDocumentCommand behave differently from \def inside tabular column specification?

On the first glance \NewDocumentCommand{\foo}{m}{#1} and \def\foo#1{#1} should be identical and in most scenarios they actually are, but when the argument is not explicitly follows \foo, the command ...
antshar's user avatar
  • 4,612
4 votes
1 answer
234 views

How to limit scope of microtype's letterspacing command \textls to non-math environment?

Package microtype has the command \textls to manipulate letterspacing in an ad hoc manner. While its use is usually frowned upon by typographists, according to microtype's user manual (p 23 footnote), ...
Linear Christmas's user avatar
4 votes
3 answers
235 views

How would I define a character to start and end an environment in plain TeX?

In TeX, starting and ending math mode is done with the same symbol, namely $. Suppose I would like to start and end an environment like this, perhaps with the text italic, using the character *, as ...
btshepard's user avatar
  • 680
0 votes
1 answer
56 views

Declare new command to denote the condition with additional settings

Can someone tell me how to set the parameters of a declared new command similar to how it is set in the TikZ package? More specifically, I would like to declare a function \condVert{} that sets a ...
Sssur's user avatar
  • 97
2 votes
1 answer
329 views

Changing theoremstyle

I wanted to change the way "Definition 1.1" is displayed. Specifically, I want to make the name of the definition (green box in attached image) appear in bold (which I know I could do with \...
Pablo's user avatar
  • 77
1 vote
3 answers
125 views

How to define a LaTeX shorthand for nested indentation "contexts"

I am looking for a convenient way to code nestable "contexts" whose extents are displayed through indentation. Each context consists of a sequence of "statements" (i.e. lines) and/...
kjo's user avatar
  • 861
0 votes
1 answer
60 views

Why is this \def failing?

This is just a small snippet, for debugging: \documentclass[12pt]{article} \usepackage{amsmath} \def\block#1{\begin{array}{ll}\ &{#1}\end{array}} \def\sub#1#2{\text{#1}:\\\block{#2}} \begin{...
kjo's user avatar
  • 861
2 votes
2 answers
567 views

Defining a new command, the output of which depends on an internal parameter

Maybe someone can tell me how to define a new command in \LaTeX, which can take one mandatory value and another optional value (parameter) as input. In this case, depending on the value of the ...
Sssur's user avatar
  • 97
2 votes
2 answers
85 views

Generate command definitions that take arguments

I want to define a command \NewSmartOp such that: \NewSmartOp \MYOP \myop would produce the following code (or anything equivalent): \makeatletter \def\MYOP{\@ifstar\MYOP@star\MYOP@nostar} \def\...
Maëlan's user avatar
  • 256
2 votes
1 answer
491 views

Why double curly brackets in `\long\def\bold#1{{\bf#1}}`

I'm reading The TeXbook by Knuth. Page 205 has If you actually want a control sequence to allow arguments with \par tokens, you can define it to be a “long” macro by saying ‘\long’ just before ‘\def’. ...
Gqqnbig's user avatar
  • 564
0 votes
2 answers
812 views

Constructing \definition in latex

Does there exist \begin{definition} in latex? And how can I construct one? Is everything derived from \newtheorem command.
Veak's user avatar
  • 1