All Questions
29
questions
2
votes
1
answer
59
views
Adaptive parentheses in the definition of a command: how to avoid odd space
I'm trying to improve a command with adaptive parentheses, but I don't know how to avoid an unexpected blank space between the operator and the first parenthesis.
I already had a problem with this ...
2
votes
3
answers
133
views
Conditional macros
Goal: I would like to have a macro that substitutes different commands depending in whether in displayed math mode or not. In particular, it should generate fixed-size angular brackets in text lines, \...
6
votes
2
answers
419
views
Custom \big command
I have a lot of equations with double parenthesis and I want the outside one to be bigger. I've been using:
\big(w(B)\big)
which gives me this result
But my obsession was killing me, I didn't like ...
5
votes
1
answer
298
views
Why I get brackets different in the size?
I typed
\begin{gather*}
\frac1{1-x}\sum_{n=1}^\infty\left[H_n^3-3H_nH_n^{(2)}+2H_n^{(3)}-\left(H_n-
\frac1n\right)^3\right.\\
\left.+3\left(H_n-\frac1n\right)\left(H_{n}^{(2)}-\frac1{n^2}\right)-2\...
4
votes
2
answers
281
views
Define a command with arguments that have a behaviour if called without arguments
It is possible to define a command like \Sign that would work the following way?
\Sign do \mathsf{Sign}
\Sign{foo} do \mathsf{Sign}\left(foo\right)
I specifically want this for functions: the ...
3
votes
0
answers
67
views
Diminishing size of nested brackets
I'm writing in a notation that uses lots of nested brackets, e.g. [[], [[]], [[], []]]
This easily gets difficult to read and is a lot more readable when written like $\Bigl[ \bigl[ \bigr], \bigl[ [], ...
2
votes
2
answers
196
views
newcommand with option for bracket size
I want to write a new command for the trace of a matrix that I've defined like:
\newcommand{\trace}[1]{\mathsf{trace}\!\left[#1\right]}
but when I call
\trace{A^\top}
the automatic scaling makes the [...
0
votes
3
answers
295
views
LaTeX command with optional argument to enclose parameter in parenthesis
I want to define the following LaTeX command
\newcommand{\cost}[1][]{
\ifthenelse{\isempty{#1}}
{c_N}
{c_N((#1))}
}
where the parameter #1 is enclosed in parenthesis ( ) in the output. ...
2
votes
1
answer
152
views
Suggestions to align vertically derivates and partial derivates
For my book I have this MWE:
\documentclass[a4paper,12pt]{article}
\usepackage{newtxtext,newtxmath}
\begin{document}
Sapendo che $\xi=\xi(x,t)\in Y_{00}$,
\[\left[\xi\frac{\partial f^{0}}{\partial \...
2
votes
2
answers
143
views
Interaction of \left and \right with \ifthenelse
Purpose
I want a function that surrounds an expression in \left and \right brackets, where the shape of the bracket is given as a parameter, e.g.
\brackets[(][]]{\frac{1}{2}} % should return \left(\...
4
votes
1
answer
434
views
Big Parenthesis with a Vertical Line in it
I need to type \big( but with a vertical line in it, either in the middle, or end-to-end (would prefer having both options). To clarify, I need something along the lines of \llparenthesis (package ...
3
votes
2
answers
1k
views
Automatically add Parentheses to \cos, \sin, \log, ecc. , allowing subscripts
I'm sorry if the title suggests a question that has been asked a lot of times (see below), but I couldn't find an answer that also fulfills another need...
As a math teacher, I want my students to ...
1
vote
1
answer
82
views
\big parenthesis not much bigger than simple parenthesis in 11pt font [duplicate]
I frequently use simple and larger parenthesis in math mode, like what is shown in the MWE below:
\documentclass[11pt,letterpaper,twoside]{book}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{...
12
votes
3
answers
1k
views
How to make \{ and \} automatically have \left and \right
Desired behavior
\{ and \} should turn into \left\{ and \right\{.
Attempt 1
\edef\{{\left\{}
\edef\}{\right\}}
Error message
TeX capacity exceeded, sorry [input stack size=5000].
\font@name ->...
1
vote
1
answer
344
views
Biblatex field venue+eventdate without round brackets
I am looking for a solution to remove the round brackets in the reference list for the type @inproceedings. The original version is like:
As you can see, the venue+eventdate has round brackets around ...