Gauss brackets with double vertical lines [duplicate]
This question already has an answer here:
Use custom brackets
2 answers
I would like to have commands for left- and right gauss brackets which have a double vertical line, but otherwise behave exactly like lfloor and rfloor. In particular, they should come in various sizes and other things should stay unchanged.
I found two candidates, which are both not optimal, unfortunately:
llfloorandrrfloorin the packagestmaryrd. Unfortunately they do not understand preceedingleftandrightcommands. My impression is they are fixed size.lFloorandrFloorin the packagenath. They come in different sizes, but the problem is that including the packagenathintroduces automatic sizing behaviour of all symbols of parantheses-type. This might be interesting, but for the moment this change is just too radical for my taste.
symbols brackets stmaryrd nath
marked as duplicate by JouleV, Dox, Andrew Swann, Raaja, Stefan Pinnow 2 days ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
Use custom brackets
2 answers
I would like to have commands for left- and right gauss brackets which have a double vertical line, but otherwise behave exactly like lfloor and rfloor. In particular, they should come in various sizes and other things should stay unchanged.
I found two candidates, which are both not optimal, unfortunately:
llfloorandrrfloorin the packagestmaryrd. Unfortunately they do not understand preceedingleftandrightcommands. My impression is they are fixed size.lFloorandrFloorin the packagenath. They come in different sizes, but the problem is that including the packagenathintroduces automatic sizing behaviour of all symbols of parantheses-type. This might be interesting, but for the moment this change is just too radical for my taste.
symbols brackets stmaryrd nath
marked as duplicate by JouleV, Dox, Andrew Swann, Raaja, Stefan Pinnow 2 days ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Please do you have available a MWE for this problem? Thank you.
– Sebastiano
2 days ago
1
tex.stackexchange.com/questions/140055/use-custom-brackets
– JPi
2 days ago
add a comment |
This question already has an answer here:
Use custom brackets
2 answers
I would like to have commands for left- and right gauss brackets which have a double vertical line, but otherwise behave exactly like lfloor and rfloor. In particular, they should come in various sizes and other things should stay unchanged.
I found two candidates, which are both not optimal, unfortunately:
llfloorandrrfloorin the packagestmaryrd. Unfortunately they do not understand preceedingleftandrightcommands. My impression is they are fixed size.lFloorandrFloorin the packagenath. They come in different sizes, but the problem is that including the packagenathintroduces automatic sizing behaviour of all symbols of parantheses-type. This might be interesting, but for the moment this change is just too radical for my taste.
symbols brackets stmaryrd nath
This question already has an answer here:
Use custom brackets
2 answers
I would like to have commands for left- and right gauss brackets which have a double vertical line, but otherwise behave exactly like lfloor and rfloor. In particular, they should come in various sizes and other things should stay unchanged.
I found two candidates, which are both not optimal, unfortunately:
llfloorandrrfloorin the packagestmaryrd. Unfortunately they do not understand preceedingleftandrightcommands. My impression is they are fixed size.lFloorandrFloorin the packagenath. They come in different sizes, but the problem is that including the packagenathintroduces automatic sizing behaviour of all symbols of parantheses-type. This might be interesting, but for the moment this change is just too radical for my taste.
This question already has an answer here:
Use custom brackets
2 answers
symbols brackets stmaryrd nath
symbols brackets stmaryrd nath
asked 2 days ago
azimutazimut
406613
406613
marked as duplicate by JouleV, Dox, Andrew Swann, Raaja, Stefan Pinnow 2 days ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by JouleV, Dox, Andrew Swann, Raaja, Stefan Pinnow 2 days ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Please do you have available a MWE for this problem? Thank you.
– Sebastiano
2 days ago
1
tex.stackexchange.com/questions/140055/use-custom-brackets
– JPi
2 days ago
add a comment |
Please do you have available a MWE for this problem? Thank you.
– Sebastiano
2 days ago
1
tex.stackexchange.com/questions/140055/use-custom-brackets
– JPi
2 days ago
Please do you have available a MWE for this problem? Thank you.
– Sebastiano
2 days ago
Please do you have available a MWE for this problem? Thank you.
– Sebastiano
2 days ago
1
1
tex.stackexchange.com/questions/140055/use-custom-brackets
– JPi
2 days ago
tex.stackexchange.com/questions/140055/use-custom-brackets
– JPi
2 days ago
add a comment |
2 Answers
2
active
oldest
votes
Thanks to Werner for providing a solution for this similar question.
A rather quick fix using scalerel would be the following.
Conveniently, scalerel provides scaleleftright[<max width>]{<left obj>}{<stuff>}{<right obj>} (and a comparable stretchleftright) for scaling/stretching both <left obj> and <right obj> to the height of <stuff> (constrained, if required and optional, to a width of <max width>). Here's a quick example:

documentclass{article}
usepackage{scalerel, stmaryrd} % http://ctan.org/pkg/scalerel
newcommand{gaussbracket}[1]{stretchleftright{llfloor}{#1}{rrfloor}}
begin{document}
[ gaussbracket{displaystylesum_{i=1}^n i} ]
end{document}
1
Very very good. I have really appreciated your code.
– Sebastiano
2 days ago
Thanks, but it's not exactly what I wanted. I wanted a pair of commands, one for left and one for right bracket, which can be resized by big, Big, etc. Also, the scaled symbol does not look so good (too thick vertical line).
– azimut
2 days ago
@azimut. I think the linked question would be an interesting read then, I wouldn't know how to make a non extensible delimiter extensible.
– Peiffap
2 days ago
add a comment |
An option if you don't want to use any packages other than amsmath would be to place two lfloors next to each other with a little negative space between:

This has the advantage of not thickening the horizontal portion of the delimiter.
documentclass{article}
usepackage{amsmath}
newcommand{gaussbr}[1]{%
leftlfloorhspace{-.33em}leftlfloor #1rightrfloorhspace{-.33em}rightrfloor%
}
begin{document}
[
gaussbr{A}gaussbr{sum_{n=0}^{infty}a_n}
]
end{document}
Of course, you can adjust the amount of negative space to your liking.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks to Werner for providing a solution for this similar question.
A rather quick fix using scalerel would be the following.
Conveniently, scalerel provides scaleleftright[<max width>]{<left obj>}{<stuff>}{<right obj>} (and a comparable stretchleftright) for scaling/stretching both <left obj> and <right obj> to the height of <stuff> (constrained, if required and optional, to a width of <max width>). Here's a quick example:

documentclass{article}
usepackage{scalerel, stmaryrd} % http://ctan.org/pkg/scalerel
newcommand{gaussbracket}[1]{stretchleftright{llfloor}{#1}{rrfloor}}
begin{document}
[ gaussbracket{displaystylesum_{i=1}^n i} ]
end{document}
1
Very very good. I have really appreciated your code.
– Sebastiano
2 days ago
Thanks, but it's not exactly what I wanted. I wanted a pair of commands, one for left and one for right bracket, which can be resized by big, Big, etc. Also, the scaled symbol does not look so good (too thick vertical line).
– azimut
2 days ago
@azimut. I think the linked question would be an interesting read then, I wouldn't know how to make a non extensible delimiter extensible.
– Peiffap
2 days ago
add a comment |
Thanks to Werner for providing a solution for this similar question.
A rather quick fix using scalerel would be the following.
Conveniently, scalerel provides scaleleftright[<max width>]{<left obj>}{<stuff>}{<right obj>} (and a comparable stretchleftright) for scaling/stretching both <left obj> and <right obj> to the height of <stuff> (constrained, if required and optional, to a width of <max width>). Here's a quick example:

documentclass{article}
usepackage{scalerel, stmaryrd} % http://ctan.org/pkg/scalerel
newcommand{gaussbracket}[1]{stretchleftright{llfloor}{#1}{rrfloor}}
begin{document}
[ gaussbracket{displaystylesum_{i=1}^n i} ]
end{document}
1
Very very good. I have really appreciated your code.
– Sebastiano
2 days ago
Thanks, but it's not exactly what I wanted. I wanted a pair of commands, one for left and one for right bracket, which can be resized by big, Big, etc. Also, the scaled symbol does not look so good (too thick vertical line).
– azimut
2 days ago
@azimut. I think the linked question would be an interesting read then, I wouldn't know how to make a non extensible delimiter extensible.
– Peiffap
2 days ago
add a comment |
Thanks to Werner for providing a solution for this similar question.
A rather quick fix using scalerel would be the following.
Conveniently, scalerel provides scaleleftright[<max width>]{<left obj>}{<stuff>}{<right obj>} (and a comparable stretchleftright) for scaling/stretching both <left obj> and <right obj> to the height of <stuff> (constrained, if required and optional, to a width of <max width>). Here's a quick example:

documentclass{article}
usepackage{scalerel, stmaryrd} % http://ctan.org/pkg/scalerel
newcommand{gaussbracket}[1]{stretchleftright{llfloor}{#1}{rrfloor}}
begin{document}
[ gaussbracket{displaystylesum_{i=1}^n i} ]
end{document}
Thanks to Werner for providing a solution for this similar question.
A rather quick fix using scalerel would be the following.
Conveniently, scalerel provides scaleleftright[<max width>]{<left obj>}{<stuff>}{<right obj>} (and a comparable stretchleftright) for scaling/stretching both <left obj> and <right obj> to the height of <stuff> (constrained, if required and optional, to a width of <max width>). Here's a quick example:

documentclass{article}
usepackage{scalerel, stmaryrd} % http://ctan.org/pkg/scalerel
newcommand{gaussbracket}[1]{stretchleftright{llfloor}{#1}{rrfloor}}
begin{document}
[ gaussbracket{displaystylesum_{i=1}^n i} ]
end{document}
edited 2 days ago
answered 2 days ago
PeiffapPeiffap
1239
1239
1
Very very good. I have really appreciated your code.
– Sebastiano
2 days ago
Thanks, but it's not exactly what I wanted. I wanted a pair of commands, one for left and one for right bracket, which can be resized by big, Big, etc. Also, the scaled symbol does not look so good (too thick vertical line).
– azimut
2 days ago
@azimut. I think the linked question would be an interesting read then, I wouldn't know how to make a non extensible delimiter extensible.
– Peiffap
2 days ago
add a comment |
1
Very very good. I have really appreciated your code.
– Sebastiano
2 days ago
Thanks, but it's not exactly what I wanted. I wanted a pair of commands, one for left and one for right bracket, which can be resized by big, Big, etc. Also, the scaled symbol does not look so good (too thick vertical line).
– azimut
2 days ago
@azimut. I think the linked question would be an interesting read then, I wouldn't know how to make a non extensible delimiter extensible.
– Peiffap
2 days ago
1
1
Very very good. I have really appreciated your code.
– Sebastiano
2 days ago
Very very good. I have really appreciated your code.
– Sebastiano
2 days ago
Thanks, but it's not exactly what I wanted. I wanted a pair of commands, one for left and one for right bracket, which can be resized by big, Big, etc. Also, the scaled symbol does not look so good (too thick vertical line).
– azimut
2 days ago
Thanks, but it's not exactly what I wanted. I wanted a pair of commands, one for left and one for right bracket, which can be resized by big, Big, etc. Also, the scaled symbol does not look so good (too thick vertical line).
– azimut
2 days ago
@azimut. I think the linked question would be an interesting read then, I wouldn't know how to make a non extensible delimiter extensible.
– Peiffap
2 days ago
@azimut. I think the linked question would be an interesting read then, I wouldn't know how to make a non extensible delimiter extensible.
– Peiffap
2 days ago
add a comment |
An option if you don't want to use any packages other than amsmath would be to place two lfloors next to each other with a little negative space between:

This has the advantage of not thickening the horizontal portion of the delimiter.
documentclass{article}
usepackage{amsmath}
newcommand{gaussbr}[1]{%
leftlfloorhspace{-.33em}leftlfloor #1rightrfloorhspace{-.33em}rightrfloor%
}
begin{document}
[
gaussbr{A}gaussbr{sum_{n=0}^{infty}a_n}
]
end{document}
Of course, you can adjust the amount of negative space to your liking.
add a comment |
An option if you don't want to use any packages other than amsmath would be to place two lfloors next to each other with a little negative space between:

This has the advantage of not thickening the horizontal portion of the delimiter.
documentclass{article}
usepackage{amsmath}
newcommand{gaussbr}[1]{%
leftlfloorhspace{-.33em}leftlfloor #1rightrfloorhspace{-.33em}rightrfloor%
}
begin{document}
[
gaussbr{A}gaussbr{sum_{n=0}^{infty}a_n}
]
end{document}
Of course, you can adjust the amount of negative space to your liking.
add a comment |
An option if you don't want to use any packages other than amsmath would be to place two lfloors next to each other with a little negative space between:

This has the advantage of not thickening the horizontal portion of the delimiter.
documentclass{article}
usepackage{amsmath}
newcommand{gaussbr}[1]{%
leftlfloorhspace{-.33em}leftlfloor #1rightrfloorhspace{-.33em}rightrfloor%
}
begin{document}
[
gaussbr{A}gaussbr{sum_{n=0}^{infty}a_n}
]
end{document}
Of course, you can adjust the amount of negative space to your liking.
An option if you don't want to use any packages other than amsmath would be to place two lfloors next to each other with a little negative space between:

This has the advantage of not thickening the horizontal portion of the delimiter.
documentclass{article}
usepackage{amsmath}
newcommand{gaussbr}[1]{%
leftlfloorhspace{-.33em}leftlfloor #1rightrfloorhspace{-.33em}rightrfloor%
}
begin{document}
[
gaussbr{A}gaussbr{sum_{n=0}^{infty}a_n}
]
end{document}
Of course, you can adjust the amount of negative space to your liking.
edited 2 days ago
answered 2 days ago
Sandy GSandy G
3,6171426
3,6171426
add a comment |
add a comment |
Please do you have available a MWE for this problem? Thank you.
– Sebastiano
2 days ago
1
tex.stackexchange.com/questions/140055/use-custom-brackets
– JPi
2 days ago