Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

greatest integer function (old style notation in LaTeX)

2,690 views
Skip to first unread message

Neil Zanella

unread,
Jul 29, 2000, 3:00:00 AM7/29/00
to

Hello,

The modern notation $\lfloor \rfloor$ is used to typeset
the floor or greatest integer function. A while ago there
was a different notation in use for this function consisting
of two square brackets with an extra vertical line in them
as follows:

--- ---
|| x ||
--- ---

I have not found symbols to typeset this notation in AmS-LaTeX.
Is there such a symbol for LaTeX, perhaps available through a
usepackage or something? (P.S. while I find the modern notation
more intuitive I would like to be use this old notation for something
else.)

Thanks,

Neil


Alp Aker

unread,
Jul 29, 2000, 3:00:00 AM7/29/00
to
> A while ago there was a different notation in use for this function
consisting
> of two square brackets with an extra vertical line in them as follows:

>
> --- ---
> || x ||
> --- ---
>
> I have not found symbols to typeset this notation in AmS-LaTeX.

You want the St. Mary's Road font (free and available on CTAN).

AA


Anthony Goreham

unread,
Jul 29, 2000, 3:00:00 AM7/29/00
to
> two square brackets with an extra vertical line in them
> as follows:
>
> --- ---
> || x ||
> --- ---
>
> Is there such a symbol for LaTeX, perhaps available through a
> usepackage or something?

Use the stmaryrd package:

\usepackage{stmaryrd}
$\llbracket x \rrbracket$

These two commands can be used with \left and \right, and the St Mary's
Road fonts are avilable in Type1 format as well as MetaFont.

----------------------------------------------------------
Anthony Goreham anthony...@queens.ox.ac.uk
The Queen's College, Oxford OX1 4AW, UK.

nancysue...@gmail.com

unread,
Mar 28, 2018, 6:41:19 PM3/28/18
to
You can type \text{[} for the left bracket, then type in the numerical expression and \text{]} for the right bracket.

Remalyn Fajardo

unread,
Mar 21, 2021, 7:09:23 AM3/21/21
to
On Thursday, March 29, 2018 at 6:41:19 AM UTC+8, nancysue...@gmail.com wrote:
> You can type \text{[} for the left bracket, then type in the numerical expression and \text{]} for the right bracket.
Try typing $[\![ ]\!]$.

Joe Grasso

unread,
May 19, 2021, 8:54:35 AM5/19/21
to
On Saturday, July 29, 2000 at 3:00:00 AM UTC-4, Neil Zanella wrote:
> Hello,
> The modern notation $\lfloor \rfloor$ is used to typeset
> the floor or greatest integer function. A while ago there
> was a different notation in use for this function consisting
> of two square brackets with an extra vertical line in them
> as follows:
> --- ---
> || x ||
> --- ---
> I have not found symbols to typeset this notation in AmS-LaTeX.
> Is there such a symbol for LaTeX, perhaps available through a
> usepackage or something? (P.S. while I find the modern notation
> more intuitive I would like to be use this old notation for something
> else.)
> Thanks,
> Neil

Just thought I would put my two cents worth in on this one. I use Codecogs quite a bit to make equations. To get the traditional symbols used for Greatest Integer I do this:

\lbrack \! \lbrack (then whatever you want in the middle) \rbrack \! \rbrack

If this does not work, I will give you triple your money back. However, it works for me in Codecogs.
( https://codecogs.com/latex/eqneditor.php )

Joe


Bob Tennent

unread,
May 19, 2021, 4:02:47 PM5/19/21
to
On Wed, 19 May 2021 05:54:32 -0700 (PDT), Joe Grasso wrote:
> On Saturday, July 29, 2000 at 3:00:00 AM UTC-4, Neil Zanella wrote:
>> Hello,
>> The modern notation $\lfloor \rfloor$ is used to typeset
>> the floor or greatest integer function. A while ago there
>> was a different notation in use for this function consisting
>> of two square brackets with an extra vertical line in them
>> as follows:
>> --- ---
>> || x ||
>> --- ---
>> I have not found symbols to typeset this notation in AmS-LaTeX.
>> Is there such a symbol for LaTeX, perhaps available through a
>> usepackage or something? (P.S. while I find the modern notation
>> more intuitive I would like to be use this old notation for something
>> else.)
>> Thanks,
>> Neil

Check out the Comprehensive LaTeX Symbols List:

https://ctan.org/pkg/comprehensive

I think \lBrack and \rBrack are what you're looking for.

Bob T.
0 new messages