Skip to main content

All Questions

Tagged with
6 votes
3 answers
497 views

Creating a command to display blackboard font

I am relatively new to LaTeX and I want to know whether there is a way to create a command such that it takes whatever capital letter the command is and prints the blackboard font. Here's what I mean: ...
A R's user avatar
  • 161
2 votes
1 answer
88 views

Definition of \sum -- how does the size selection work

When writing \[\sum\], a larger summation sign is used than when writing \(\sum\). How does the \sum command find out which size to use? What does \sum expand to? I am guessing it is just a shorthand ...
Oliver Leenders's user avatar
3 votes
1 answer
54 views

Checking if the contents of the \item's of a \list environment are entirely in inline math mode

I have a list \begin{list}{}{} \item[(1)] First things first. \item[(2)] There are \(1 + 1 = 2\) types of "normal" math \[e^{2\pi i} + 1 = 2\] \item[(3)] Third time's \(\...
grepgrok's user avatar
0 votes
1 answer
68 views

Is there a way to keep the "boldness" of text, in mathmode

Is there a way to keep the "boldness" of text, in math mode: eg: \documentclass{standalone} \newcommand{\mathkeepboldness}[1]{\ensuremath{#1}} % this should keep the text formating \begin{...
flobue's user avatar
  • 5
3 votes
2 answers
59 views

Custom LaTeX Command for Consecutive Superscripts with Correct Alignment After Large Symbols

I am writing my master's thesis on Formal Concept Analysis and I want to create a custom command for the derivation operators. They are superscript arrows with some optional argument, and would look ...
Samuel Jose Molina Ruiz's user avatar
1 vote
1 answer
49 views

\mathchoice in subscript/superscript

I attempted to redefine certain math relations using \mathchoice so that they don't need to be grouped when used as subscripts and superscripts just like how they behaved originally. However, the MWE ...
FR09's user avatar
  • 159
1 vote
1 answer
63 views

Detect if a parameter passed to command is a mathematical formula

I'm defining a command which displays braced paragraphs and an isomorphism between them, but I want the command to recognize if one of the paragraphs is something purely mathematical and therefore not ...
Lorenzo Carozzo's user avatar
0 votes
1 answer
55 views

Saving a math style in beamer

I am trying to build a version of beamer's alt that occupies the space of its larger argument. I do this with some saveboxes and measuring. Because I also want to use it in math, I need to save the ...
Bubaya's user avatar
  • 2,549
1 vote
2 answers
129 views

How to define a command that can be used as a superscript without {} and that can have a subscript

I have used \theta hundreds of times in my document. Now I decided that I would like all thetas to be in red color. So I would like to redefine the command \theta to create a red theta. MWE: \...
Jakob's user avatar
  • 1,003
0 votes
1 answer
49 views

Custom command in \NewDocumentCommand documentation

I'm seeing a rather unexpected result with \NewDocumentCommand. Suppose I have a custom-defined command \mybold{}, like this: \NewDocumentCommand{\mybold}{m}{\mathbf{#1}} Or \oybold[]: \...
Abhimanyu Pallavi Sudhir's user avatar
-1 votes
1 answer
72 views

Referring to arguments in newcommand not working in math mode [closed]

I would like to create a command given the arguments $g,n,d,X$, generates the output $\overline{M}_{g,n,d}(X)$. If no $g$ is given, I would like the default to be 0. What I thought was correct was to ...
Irit's user avatar
  • 1
1 vote
3 answers
114 views

The display math mode and the `center` environment

I have asked a question at How to delete a command in the \BODY macro of environment defined by \NewEnviron about the problem when I try to convert my ex environment to the multi environment of moodle ...
phchon's user avatar
  • 51
0 votes
1 answer
89 views

How to give a name (not just label) to an equation

I have the following code: \documentclass{article} \usepackage[top = 2cm, bottom = 1cm, left = 1.5cm, right = 1.5cm, includefoot]{geometry} \usepackage[italic = true]{derivative} \usepackage{physics}...
Peluche's user avatar
  • 613
1 vote
1 answer
74 views

Choose delimiters in the command according the case

I'm trying to create a similar command as \qty from physics package. To understand, I have the following code as example: \documentclass{article} \usepackage{physics} \RenewDocumentCommand{\grad}{sm}...
Peluche's user avatar
  • 613
1 vote
1 answer
75 views

No indent inside tcb theorem

How would I disable the indents inside my theorem and example boxes which are made by tcbtheorem? Any help would be greatly appreciated. \documentclass{book} \RequirePackage[dvipsnames]{xcolor} \...
xyz04's user avatar
  • 137

15 30 50 per page
1
2 3 4 5
26