Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [definition]

The tag has no usage guidance.

1
vote
2answers
53 views

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 ...
0
votes
0answers
35 views

Validating command with in command

I have planed to create SIunits based macro to support SIunits package in my XML conversion process. In this process i have found few issues while handing the \per command i have tried the following ...
3
votes
1answer
31 views

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{#...
0
votes
0answers
32 views

change \DeclareRobustCommand to \def [closed]

i'm using the package "makerobust" to control the expansion of commands writing in the toc. during this process i'm defining the \, as \MakeRobustCommand{\,} for controlling the expansion of the thin ...
1
vote
2answers
51 views

Vertically centering text on all pages of document

I have formatted one page of my document in a particular way. (including alignments) Now I want to have that particular setting for every page of my document. This would have been very easy if the ...
1
vote
1answer
38 views

Definition before \multicolumn or the like?

Is it possible to have definitions take effect at the beginning of the first cell of a tabular row (using array.sty, if relevant), and still leave room for \multicolumn, \hline, etc.? The problem is, ...
7
votes
1answer
56 views

Use of \noexpand in the implementation of \TextOrMath for eTeX

In latexrelease 2015/01/01, there are two implementations of \TextOrMath: one for regular TeX, the other one for eTeX-like engines (more precisely: those which support \protected). My question ...
1
vote
1answer
40 views

How to retain actual input newline/end-of-line (hex 0x0a) in macro definition

I am using filecontents package and want to include it in a macro in order to factorize some complex processing. The problem is that \begin{filecontents} needs be followed by nothing except spaces and ...
2
votes
1answer
43 views

How can I cancel Math-mode, which is inside a function, from the outside?

So the problem is simple. A function takes something and puts it inside math-mode ($$). Can I influence that from the outside? Example: \documentclass{article} \def\mathmod#1{$#1$} \begin{document} ...
0
votes
0answers
89 views

What does \fi means? [duplicate]

I want to know the meaning of \fi in LaTeX. I don't understand the use. And don't find an easy definition online.
0
votes
0answers
23 views

New command and catcode [duplicate]

I have a command that may contain the ampersand charater: &. Sometimes, when I use this command, I want that ampersand interpreted as a space. This is why I wanted to use the TeX command \catcode. ...
0
votes
0answers
67 views

mapsto and function definition / definition environment [duplicate]

Ok, these are 2 questions in one, but they are different. I am trying to define a function f mapping from X to Y. So what i am doing is: open the equation environment and writing: $f:X{\rightarrow}Y$....
0
votes
0answers
82 views

File ended while scanning definition of \LT@ii

I'm having some real trouble compiling thesis. I'm very confused as yesterday my document would compile fine, however today (having not touched the document) this error message has appeared and I can'...
0
votes
0answers
22 views

Repeating Definitions

I'm using the following to create a new definition. \documentclass{article} \usepackage{amsthm} \theoremstyle{definition} \newtheorem{definition}{Definition}[section] \begin{document} \begin{...
5
votes
2answers
109 views

Including default parameter into \def

I'm using the classic thesis style with the \graffito command (example here). How can I modify the command below to add some vertical spacing before the text which is set to a standard value by ...
1
vote
1answer
86 views

clean up definition file

I've got a problem with my custom definitions-file. The file has hundreds of command definitions (with \newcommand or \renewcommand; mainly shortcuts for mathematical terms, programm names,...). I ...
3
votes
3answers
80 views

what .bib files do for bibtex, is there something for \href?

I wasn't even sure how to formulate this question, nor the appropriate tags, so there may be some editing or even deletion if this is a stupid question... But I think it is a feature that people would ...
1
vote
2answers
64 views

Conflict with \fi in figure captions

I have the following preamble: \documentclass[11pt]{book} % PACKAGES % graphics packages \usepackage{graphics} \usepackage[pdftex]{graphicx} % negative phantoms (\nphantom, \nhphantom, \...
4
votes
2answers
156 views

Define macro as wrapper for parameters of a command

I'm trying to define a macro that is a little wrapper to a common parameter of a command. The macro is expanded, but the parameter is not taken into account by the command. The macro, \sp is used ...
1
vote
1answer
22 views

Problem inserting data in table using multiple files with catchfile

I have multiple data from different files that I want to use in the body of tabular environment. I saw a solution here, but the method only works for one such file only. If the following was done \...
0
votes
1answer
111 views

Command with or without parameter

How to define a command \def\hello{Hello world!} that can be called with no parameter: \hello or with a parameter: \hello{3} but that won't be displayed anyway (3 shouldn't be displayed, it's ...
2
votes
1answer
62 views

Include a graphics but without modifying the layout (i.e. add an image behind text)

I'd like to define a command \mark that would add an image mark.png : on the same vertical coordinate than the current text at 1cm from left border without modifying the layout, i.e. if I remove this ...
1
vote
1answer
327 views

What is the difference between \leftmark and \rightmark in fancyhdr?

I am having a hard time trying to figure out the difference between \leftmark and \rightmark in fancyhdr. At page 8 of the documentation, it says The \leftmark contains the Left argument of the ...
3
votes
1answer
218 views

How to make a definition list in TeX

I want to make a list similar to the following in HTML, but in LaTeX: <dl><dt>Foo</dt> <dd>Bar</dd> <dd>Baz</dd> <dt>Things I do</dt> <dd>...
1
vote
1answer
56 views

How to link to the references in the definition?

I want to add a link to the definition to a research from where I have took the definition. I have tried but it is not working. \documentclass[parskip=full, 12pt]{article} \newtheorem{theorem}{...
1
vote
2answers
55 views

Pass rest of group as argument? [duplicate]

Is it possible to write a macro, that takes the rest of the current group as an argument? Usecase I want to write a macro that can be used as \section{\TODO Introduction $of$ \textsc{The Topic}} ...
1
vote
1answer
60 views

Where is the error in this definition?

I wanted to ask if you could tell me why the formula in the comment area doesn't work in the {defn} area without '%'. \begin{defn} Let $n \times n$ \emph{Hessenberg-Matrix} $\pmb{H}_n$ with ...
1
vote
2answers
133 views

Adding Overhang to Theorems

I am new to LaTeX, so I apologise if this question seems too simple to you. I am currently trying to write a paper and I would like to add an overhang to Theorems and Definitions (like the picture ...
0
votes
2answers
52 views

How to redefine a command to contain itself in it by maintaining it's syntax unchanged

I need to use the \ae command inside an equation as a variable, in order to put it in a math environment though I'm forced to use \textit{\ae}. Is there a way to just write \ae in the math ...
3
votes
1answer
112 views

Adding a custom title for each definition

I'm currently writing a thesis and would like to format my definitions nicely. This question helped me creating a nice layout for my definitions. The following code \documentclass{book} \usepackage[...
2
votes
1answer
36 views

Definition with word to be defined instead of counter

I know the title is a bit weird but I'll try to explain it in a better way here. In the beginning of a chapter I'd like to define some basic terms. Currently I'm using \newmdtheoremenv{mydef}{...
1
vote
1answer
56 views

How to make () become [] in the environments of theorem, definition and example in beamer?

A MNW is as follows: \documentclass[notheorems]{ctexbeamer} \usetheme{Antibes} \usepackage{amsmath,amsfonts,amssymb,comment} \theoremstyle{theorem} \newtheorem{theorem}{定理} \newtheorem{lemma}[theorem]...