### LaTeX users online

In total there are**7**users online :: 0 registered, 0 hidden and 7 guests (based on users active over the past 5 minutes)

Most users ever online was

**1327**on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 7 guests

### LaTeX blog world

Index I: Anlegen und Verarbeiten (Tobi)How to Ask for LaTeX-related Help Effectively (Lian Tze)

Many variants of a Beamer presentation - part I (Marcin)

Speaker Meeting 2016 (Joseph)

LaTeX and music (Clemens)

Adding references from an external file (Tom)

Exporting from LyX to MS Word and LibreOffice (Stefan)

Booklets erzeugen (Tobi)

AltaCV, yet another LaTeX CV/Résumé class (Lian Tze)

TeXdoc.net updated (Stefan)

TUG 2016 reports (Norbert)

TUG 2016 in Toronto - Arriving and first excursion (Stefan)

Define new macros for logical markup (Tobi)

Finding typefaces (fonts) (Tobi)

Order of float placement parameters (Tobi)

Changes and News (Clemens)

Querverweise (Tobi)

What's new in chemmacros v5.6? (Clemens)

## Curly Braces in Equation## LaTeX Forum: Math & Scienceequations • math-mode • mathematics •Add tags
3 posts
• Page
1 of 1
I am new with LaTeX. I don't understand why this code line is not working.
- Code: Select all • Open in online LaTeX editor
`\begin{equation}` \label{eq:4.20} \eta_{elec}= \left{ \frac {\gamma_{j,in} - {\langle{\gamma_j}\rangle}_j} {\gamma_{j,in}-1} \right} \end{equation}
Please suggest me Last edited by cgnieder on Sun Apr 7th, 2013, edited 1 time in total.
- Amitavo Roy
**Posts:**14**Joined:**Sat Apr 6th, 2013
And please always provide a self-contained and minimal example to give an adequate problem description. Those who try to help are rarely motivated to write a complete example from scratch.
If you want curly braces in the output, you have to escape them by a backslash ( `\` ) and so make them a command. Curly braces are usually used for grouping so this measure is necessary to get them printed.The actual error is caused by the fact that `\left` and `\right` expect a delimiter (braces, brackets, parentheses). otherwise they will produce error.- Code: Select all • Open in online LaTeX editor
`\documentclass[11pt]{article}` \usepackage[T1]{fontenc} \usepackahe{mathtools} % loads »amsmath« \begin{document} \begin{equation}\label{eq:dummy} \eta_text{elec}=\left\{\frac{\gamma_{j,in} - \langle\gamma_j\rangle_j}{\gamma_{j,in}-1}\right\} \end{equation} \end{document}
For more clarity in your code you should avoid superfluous braces (see above). Basic reading: Further reading: - The »Math mode« document
Thorsten LaTeX Community Moderator
How to make a "Minimal Example" Board Rules Avoidable Mistakes ¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351) ² Posting stopped indefinitely due to offenses -
localghost - Site Moderator
**Posts:**9218**Joined:**Fri Feb 2nd, 2007**Location:**Braunschweig, Germany
3 posts
• Page
1 of 1
## Topic Tagsequations • math-mode • mathematics## LaTeX users onlineUsers browsing this forum: No registered users and 7 guests |