Text FormattingProblem using \left\lbrace -\right

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Jongomez
Posts: 48
Joined: Tue Nov 28, 2023 9:29 pm

Problem using \left\lbrace -\right

Post by Jongomez »

[code][/code]

\begin{center}
$|\textit{estado producto}\rangle = [color=#FF00BF][color=#FF0080]\left\lbrace[/color][/color] \alpha_u|u\rangle\} + \alpha_d|d\rangle\}[color=#FF0040]\right\rbrace[/color] \otimes\left\lbrace \beta_u|u\rangle\} + \beta_d|d\rangle\}\right\rbrace$,
\end{center}


When compiled above code the Brackets before \otimes appear as normal size, but the brackets after \otimes appear OK, as large characters. Note.- I don't refer to brackets coded \}.

Can anyone help me?

Thanks so much

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Problem using \left\lbrace -\right

Post by Stefan Kottwitz »

Hi Jon,

this doesn't happen when I compile that code.

Perhaps provide a complete example that shows the problem?

Stefan
LaTeX.org admin
Jongomez
Posts: 48
Joined: Tue Nov 28, 2023 9:29 pm

Problem using \left\lbrace -\right

Post by Jongomez »

Hi Stefan,
This is part of a book that I am translating to Spanish. Hereafter I send you some lines before and some lines after the equation.Please, let me know wheather it is enough for you.
Thanks a lot,
Jon
Note.- Of course, I can solve it using \bigl\{ and \bigr\} commands.
*********************************************
\begin{center}
$\alpha^*_u\alpha_u + \alpha^*_d\alpha_d = 1$
\end{center}

\hspace{5.8cm}$\beta^*_u\beta_u + \beta^*_d\beta_d = 1$\hspace{5.1cm}(6.4)

Y, de hecho, estas ecuaciones de normalización independientes para cada
subsistema desempeñan un papel crucial en la definición de los estados producto. Si no se cumplieran, no tendríamos un estado producto. El
estado producto que describe el sistema combinado es

\begin{center}

$|\textit{estado producto}\rangle = \left\lbrace \alpha_u|u\rangle\} + \alpha_d|d\rangle\}\right\rbrace \otimes\left\lbrace \beta_u|u\rangle\} + \beta_d|d\rangle\}\right\rbrace$,
\end{center}

\noindent donde el primer factor representa el estado de Alice y el segundo factor representa el de Bob. Expandiendo el producto y cambiando a la notación compuesta, el lado derecho se convierte en
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Problem using \left\lbrace -\right

Post by Stefan Kottwitz »

Hi Jon,

perhaps you see this [code][/code] as the result of clicking the Code button - code shall be copied between [code] and [/code], or mark/highlight a copied/pasted code section and then click the code button. It's not just syntax highlighting, such marked code can be compiled online here in the forum with a single click.

Apart from this, I cannot test your code, it's an incomplete snippet that doesn't compile. I would gladly test it if it would be compilable. With some typing effort, I made a compilable document with the code in the first post, that worked fine. Not sure what I can test now.

Stefan
LaTeX.org admin
Jongomez
Posts: 48
Joined: Tue Nov 28, 2023 9:29 pm

Problem using \left\lbrace -\right

Post by Jongomez »

Hi Stefan,
Sorry for my inexpertise using this tool.

Please tell me if hereafter code posted is ok.

Thanks so much,
Jon

Code: Select all

\hspace{5.4cm}$\beta^*_u\beta_u + \beta^*_d\beta_d = 1$\hspace{5.5cm}(6.4)

Y, de hecho, estas ecuaciones de normalización independientes para cada
subsistema desempeñan un papel crucial en la definición de los estados producto. Si no se cumplieran, no tendríamos un estado producto. El
estado producto que describe el sistema combinado es

\begin{center}

$|\textit{estado producto}\rangle = \left\lbrace \alpha_u|u\rangle\} + \alpha_d|d\rangle\}\right\rbrace \otimes\left\lbrace \beta_u|u\rangle\} + \beta_d|d\rangle\}\right\rbrace$,
\end{center}

\noindent donde el primer factor representa el estado de Alice y el segundo factor representa el de Bob. Expandiendo el producto y cambiando a la notación compuesta, el lado derecho se convierte en

\hspace{3cm} $\alpha_u\beta_u|uu\rangle + \alpha_u\beta_d|ud\rangle + \alpha_d\beta_u|du\rangle + \alpha_d\beta_d|dd\rangle$.\hspace{2.6cm} (6.5)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Problem using \left\lbrace -\right

Post by Stefan Kottwitz »

Looks ok to me!

Braces look consistent in size. I inserted A^{A^A} to see it even better:

Code: Select all

\documentclass{article}
\begin{document}
\[
  |\textit{estado producto}\rangle = \left\lbrace \alpha_u|u\rangle\} + \alpha_d|d\rangle\}A^{A^A}\right\rbrace \otimes\left\lbrace A^{A^A}\beta_u|u\rangle\} + \beta_d|d\rangle\}\right\rbrace,
\]
\end{document}
Click on "Run LaTeX here" to see it.

Stefan
LaTeX.org admin
Jongomez
Posts: 48
Joined: Tue Nov 28, 2023 9:29 pm

Problem using \left\lbrace -\right

Post by Jongomez »

Hi Stefan,

I,ve copy tour code with the two times

Code: Select all

A^{A^A}
inserted and works ok, that is with the brackets bigger.

But, when I code:

Code: Select all

\begin{center}
\[
  |\textit{estado producto}\rangle = \left\lbrace \alpha_u|u\rangle\} + \alpha_d|d\rangle\}\right\rbrace \otimes\left\lbrace A^{A^A}\beta_u|u\rangle\} + \beta_d|d\rangle\}\right\rbrace,
\]
\end{center}


that is, eliminating the first

Code: Select all

A^{A^A}
,
then the first big brakets (before

Code: Select all

\otimes
appear as normal ones.

Really, with my limited knowledge of Latex I can't understand what happens.

I start thinking of not disturbing more your time and just use

Code: Select all

\bigl\{ and \bigr\}
I am very sorry for disturbing your working time.

Jon
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Problem using \left\lbrace -\right

Post by Stefan Kottwitz »

Hi Jon,

perhaps it's a visual illusion?

Zoom in and cut it out with a graphics editor to see the upper and lower boundaries. I did, looks ok! But I can confirm that also I am tempted to see slightly different sizes, but seems they are the same. What do you think?

Stefan
LaTeX.org admin
Jongomez
Posts: 48
Joined: Tue Nov 28, 2023 9:29 pm

Problem using \left\lbrace -\right

Post by Jongomez »

Hi Stefan,
I've found something strange if not mysterious: Look at the code below: If I put beta instead of alpha just after the first big bracket, then it works perfectly. Now, look at the 5 examples below: the first 3 samples with different greek letters are Ok; the 4th one is also OK althoug the first letter is alfa. But the 5th one is not OK: it has both letters "alpha".
Something to do with my Latex version? Don't see probable.

I think I'll follow my work using \bigl\{ and \big\} commands.

Otherwise, if you think it is worthwile to investigate it depends on your humour, but I think you have work enough on that case and I am really garteful for that. And, of course, yours is the best help I've ever gotten with problems in Latex.

Best regards,
Jon

Code: Select all

\begin{center}
$
  |\textit{estado producto}\rangle =  \left\lbrace \beta_u|u\rangle\} + \alpha_d|d\rangle\}\right\rbrace \otimes \left\lbrace\beta_u|u\rangle\} + \beta_d|d\rangle\}\right\rbrace,
$
\end{center}

$\left\lbrace\gamma_u|u\rangle\} + \gamma_d|d\rangle\}\right\rbrace$

$\left\lbrace\beta_u|u\rangle\} + \beta_d|d\rangle\}\right\rbrace$

$\left\lbrace\sigma_u|u\rangle\} + \beta_d|d\rangle\}\right\rbrace$

$\left\lbrace\alpha_u|u\rangle\} + \beta_d|d\rangle\}\right\rbrace$

$\left\lbrace\alpha_u|u\rangle\} + \alpha_d|d\rangle\}\right\rbrace$
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Problem using \left\lbrace -\right

Post by Stefan Kottwitz »

Hi Jon,

I'm happy to help, no problem. My eyes may not be good as I don't see a size difference, so I make rectangles around them. I think the braces are of the same size, even in the 5th example. See my screenshot. And click on "Run LaTeX here" to see it with TeX Live 2023 online.

Code: Select all

\setlength{\fboxsep}{0pt}
\begin{center}
\fbox{$
  |\textit{estado producto}\rangle =  \left\lbrace \beta_u|u\rangle\} + \alpha_d|d\rangle\}\right\rbrace \otimes \left\lbrace\beta_u|u\rangle\} + \beta_d|d\rangle\}\right\rbrace,
$}
\end{center}

\fbox{$\left\lbrace\gamma_u|u\rangle\} + \gamma_d|d\rangle\}\right\rbrace$}

\fbox{$\left\lbrace\beta_u|u\rangle\} + \beta_d|d\rangle\}\right\rbrace$}

\fbox{$\left\lbrace\sigma_u|u\rangle\} + \beta_d|d\rangle\}\right\rbrace$}

\fbox{$\left\lbrace\alpha_u|u\rangle\} + \beta_d|d\rangle\}\right\rbrace$}

\fbox{$\left\lbrace\alpha_u|u\rangle\} + \alpha_d|d\rangle\}\right\rbrace$}
Is your output different? Can you perhaps post a screenshot, in large zoom as I did it? Perhaps also with rectangles? And if there's a visible difference, perhaps appach the PDF output as a file here, and the .log file.
braces.png
braces.png (47.33 KiB) Viewed 6282 times
Stefan
LaTeX.org admin
Post Reply