11 votes
Accepted

How to Automatically Align the First Letter of a Name with the First Letter of the Person's Title Beneath

Set the content you want to align in a structure that supports that. This could eithe be a minipage, or a tabular. I use the latter with a singular left-aligned column below: \documentclass{article} ...
user avatar
  • 570k
10 votes
Accepted

When a Period Immediately Follows the Lettrine --- A Typography Question

The lettrine makes a box and after a box the space factor is set to 1000. So the period is treated as sentence ending. Add \@ after the period. \documentclass[12pt]{book} \usepackage[T1]{fontenc} \...
user avatar
  • 1.0m
9 votes

How can I place two circuit diagrams next to each other?

As Tom said before, please always provide a minimal working example (MWE). Your problem is pretty simple. You have a blank line here: \end{tikzpicture} \begin{tikzpicture} That creates a new ...
user avatar
  • 2,176
8 votes
Accepted

siunitx: Changing table-format mid-table

You could use \tablenum: \documentclass{article} \usepackage{siunitx} \begin{document} \begin{tabular}{ c S[table-format = 5.1] } large 1 & 74295.2 \\ large 2 & 4398.4 \\ large 3 &...
user avatar
  • 244k
8 votes

Horizontal alignment of row vectors inside flalign and cases environments

You can use nicematrix: \documentclass{article} \usepackage{amsmath} \usepackage{nicematrix} \begin{document} \[ \begin{NiceArray}{@{} l @{\quad} l @{\qquad} l @{}} \Block{2-1}{t\hphantom{'} = {}} ...
user avatar
  • 1.0m
8 votes
Accepted

How can I place two circuit diagrams next to each other?

I don't know why you define those nodes that you won't use them. Those will create empty space in your figure. I have deleted them. And notice: If next time you ask a question, please provide a ...
user avatar
  • 4,763
7 votes
Accepted

Horizontal alignment of row vectors inside flalign and cases environments

The following solution sets each column element inside an \eqmathbox[<tag>], using the same <tag> for each column. eqparbox then figures out which element with the same <tag> is the ...
user avatar
  • 570k
7 votes
Accepted

Which environment should I use to align my equations to the left?

I suggest that you (a) replace the first two align* environments with gather* environments and (b) start using alignment points in the aligned environment (and place a \noindent directive before the ...
user avatar
  • 444k
7 votes

How to achieve such justification?

Justification is the default in LaTeX, so you don't need to specify it, just don't specify center. You can set \parfillskip to 0pt if you want the last line of a paragraph always stretched full length....
user avatar
7 votes
Accepted

How to Automatically Center Verse

You asked, Is there a way to center stanzas of verse in a reasonably simple ... way? If the verse package is loaded, the verse environment takes an optional argument, which informs LaTeX about the ...
user avatar
  • 444k
7 votes

Aligning parentheses

I suggest you use an "inner" aligned environment to align the two \underbrace items. I would also use \smashoperator[r]{...} wrappers to "snug up" the summation symbols and the ...
user avatar
  • 444k
6 votes

Fixing the alignment of table with equations and images

Use \(...\) and not $$...$$; \raggedright and not \flushleft. Also valign=C, plus a trick to get some padding at the top. \documentclass{article} \usepackage{amsmath} \usepackage{graphicx} \usepackage[...
user avatar
  • 1.0m
6 votes

elementary school-like math operation

You may use array: \documentclass{article} \usepackage{siunitx,booktabs} \sisetup{per-mode=symbol} \begin{document} \[ \begin{array}{ c % the operation symbol r % the numbers @{\,}% the ...
user avatar
  • 1.0m
6 votes
Accepted

Nested align without extra spacing

You could use alignat but as you want the wrapped summation to overlap the abc on the last row, a nested aligned is better \documentclass{article} \usepackage{amsmath} \begin{document} alignat \...
user avatar
6 votes

Centered cells with tabularx and linebreak

You asked, Why is the first line of each cell not center aligned? ... How to solve this? I'm afraid I cannot tell you why the problem you've encountered arises, but I can propose a solution: Load ...
user avatar
  • 444k
5 votes

Fixing the alignment of table with equations and images

With tabularray table and use of the \adjincludegraphics macro from the adjustbox package: \documentclass{article} \usepackage{geometry} \usepackage{amsmath} \usepackage[export]{adjustbox} \usepackage{...
user avatar
  • 258k
5 votes

centering text in align*

You can set content is similarly-sized boxes; this is automated using \eqmathbox[<tag>][<align>]{<stuff>} where the default <align>ment is centred. \documentclass{article} \...
user avatar
  • 570k
5 votes
Accepted

Two formulas in one line

The following solution, which uses an flalign environment as well as an aligned environment in the second equation, ... ... aligns the left-side equations on the far left, ... aligns the k=1,i>0-...
user avatar
  • 444k
5 votes

How to Automatically Align the First Letter of a Name with the First Letter of the Person's Title Beneath

You could use a stack. \documentclass{letter} \usepackage[usestackEOL]{stackengine} \strutlongstacks{T} \begin{document} \thispagestyle{empty} \begin{flushleft} December 20, 1883 \end{flushleft} \...
user avatar
5 votes
Accepted

How to center cases

Here are two possible solutions, using the \vdotswithin command, from mathtools. The second solution requires empheq (which loads mathtools): \documentclass{article} \usepackage{empheq} \begin{...
user avatar
  • 263k
5 votes

How to "resume" alignat

You can place equations within \intertext to pause and resume alignment. \documentclass{report} \usepackage{amsmath} \begin{document} \begin{alignat*}{2} A \hspace{12.5pt} & \hspace{12.5pt} &...
user avatar
  • 38.7k
5 votes

Which environment should I use to align my equations to the left?

Mico has suggested better markup, so here I concentrate on explaining the output that you get. Mainly it is (almost always) user error to use align with no alignment points. I annotated your original ...
user avatar
5 votes
Accepted

Text centered around specified character

\documentclass{article} \begin{document} \begin{center} \makebox[0pt][r]{Foo} – \makebox[0pt][l]{Bar} \makebox[0pt][r]{Foofoobar} – \makebox[0pt][l]{Splat} \makebox[0pt][r]{Some other long enty} – \...
user avatar
5 votes
Accepted

Centering an Initfamily Letter within a Colorbox and Sizing It for Use as a Two-Color Lettrine

You need to account for the sidebearing, which can be done with a negative kern (added back to the findent): \documentclass[foolscap]{octavo}% just to get a small image \usepackage{lettrine,lmodern,...
user avatar
  • 12.3k
5 votes

Boxes with text or numbers

You can define your own box with the height of a k and the depth of a j by using \vphantom{$jk$} in the definition. You can change which blocks have \overbrace and \underbrace if you like. Then put ...
user avatar
  • 21.9k
5 votes
Accepted

forest align text to center when using text width

Use /tikz/align=center rather than align=center. The latter is a Forest-specific option which opens a tabular environment. What happens above is that your text is centered within the table, but the ...
user avatar
5 votes

Horizontal space between table and text

Do you need a table at all? \documentclass[11pt]{article} \usepackage[a4paper,margin=2cm]{geometry} \usepackage{graphicx} \usepackage{lastpage} %\usepackage{showframe} \pagestyle{empty} \begin{...
user avatar
  • 1.0m
5 votes

Aligning parentheses

I placed the two groupings in a top-aligned aligned environment. I also had to \rlap the period punctuation, to not misalign things. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{...
user avatar
5 votes

Aligning parentheses

By adding the nccmath package and use alignat* math environment. For make the first equation narrower is used \smashoperator[r]{...} similarly as @Mico in his answer (+1). Edit: As suggested @Mico, \...
user avatar
  • 258k
5 votes

Nested align without extra spacing

It's quite simple with alignat and the \mathrlap command from mathtools: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{alignat*}{2} x &= a &&...
user avatar
  • 263k

Only top scored, non community-wiki answers of a minimum length are eligible