Tag Info

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} ...
• 570k
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} \...
• 1.0m

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 ...
• 2,176
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 &...
• 244k

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{'} = {}} ...
• 1.0m
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 ...
• 4,763
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 ...
• 570k
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 ...
• 444k

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....
• 674k
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 ...
• 444k

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 ...
• 444k

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[...
• 1.0m

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 ...
• 1.0m
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 \...
• 674k

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 ...
• 444k

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{...
• 258k

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} \...
• 570k
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-...
• 444k

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} \...
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{...
• 263k

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} &...
• 38.7k

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 ...
• 674k
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} – \...
• 674k
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,...
• 12.3k

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 ...
• 21.9k
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 ...
• 10.8k

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{...
• 1.0m

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{...