What is the Inline Macro?
The Inline Macro allows you to embed mathematical equations directly within paragraphs of text, appearing on the same line as surrounding content. Perfect for formulas, variables, and mathematical expressions that are part of a sentence.When to Use Inline Macros
Use inline macros when:- ✅ Embedding formulas within sentences
- ✅ Referencing variables in paragraphs
- ✅ Creating mathematical notation in lists
- ✅ Writing technical documentation with inline equations
- ❌ Large, complex equations (use Block Macro instead)
- ❌ Multi-line equations
- ❌ Equations that need emphasis
How to Add an Inline Macro
Method 1: Slash Command (Recommended)
- Open a Confluence page in edit mode
- Position your cursor where you want the equation
- Type:
- Select “LaTeX Math for Confluence (Inline)” from the dropdown
- Enter your LaTeX equation
- Save the macro
Method 2: Insert Menu
- Open a page in edit mode
- Click “Insert” → “Other macros”
- Search for “latex”
- Select “LaTeX Math for Confluence (Inline)”
- Click “Insert”
Writing Inline Equations
Syntax Options
The inline macro supports multiple LaTeX delimiters:Single Dollar Sign (Recommended)
Inline Math Delimiters
No Delimiters (Automatic)
The macro automatically treats content as inline math
Examples
Simple Variables
LaTeX:Subscripts and Superscripts
LaTeX:Fractions
LaTeX:Greek Letters
LaTeX:Sum and Product Notation
LaTeX:Best Practices
✅ Do’s
- Keep equations simple - Inline equations should be concise
- Use consistent notation - Maintain variable naming throughout
- Test in preview - Always verify rendering before saving
- Use plain LaTeX - Avoid complex environments
❌ Don’ts
- Don’t use display math delimiters - No
$$or\[...\] - Avoid multi-line equations - Use block macros instead
- Don’t nest environments - Keep inline equations flat
- No large matrices - Use block macros for complex structures
Inline Mode Restrictions
The inline macro has specific restrictions to ensure proper rendering:Automatically Removed
$$display math delimiters → Converted to inline\[...\]display delimiters → Converted to inline\begin{equation}environments → Converted to inline- Multiple newlines → Converted to spaces
Not Supported
- Multi-line equations
- Display-style matrices (will render inline)
- Alignment environments
- Large delimiters
💡 Tip: If you need these features, use the Block Macro instead.
Editing Inline Macros
Edit an Existing Macro
- Hover over the equation
- Click the edit icon (✏️)
- Modify your LaTeX
- Save changes
Quick Edit Shortcut
- Click on the rendered equation
- The editor opens automatically
- Make your changes
- Click Save
Alignment and Styling
Vertical Alignment
Inline equations automatically align with surrounding text baseline:- Superscripts extend above the line
- Subscripts extend below the line
- Main equation body aligns with text
Font Size
Inline equations match the surrounding text size:- Normal paragraph: Standard size
- Headings: Larger size
- Small text: Proportionally smaller
Common Use Cases
1. Physics and Chemistry
2. Mathematics
3. Statistics
4. Computer Science
5. Engineering
Troubleshooting
Equation Not Rendering
Problem: Inline equation shows as raw LaTeX text Solutions:- Check for syntax errors in your LaTeX
- Verify you’re using inline-compatible syntax
- Remove any display math delimiters (
$$,\[) - Refresh the page
Equation Too Large
Problem: Inline equation breaks text flow Solution: Convert to a Block Macro:- Copy your LaTeX code
- Delete the inline macro
- Insert a block macro
- Paste your code
Spacing Issues
Problem: Odd spacing around equations Solution:- Check for extra spaces in LaTeX
- Ensure no trailing newlines
- Use proper inline delimiters (
$...$)
Performance Tips
- ✅ Use inline macros for simple, short equations
- ✅ Limit to 5-10 inline equations per paragraph
- ✅ Keep LaTeX code clean and concise
- ⚠️ Too many inline equations may slow page loading
Related Documentation
- 📖 Block Macro - For display equations
- 📖 Live Preview - Real-time rendering
- 📖 LaTeX Syntax Guide
- ❓ FAQ
