New answers tagged horizontal-alignment
0
votes
Accepted
Can cells in a matrix be merged? (Something like colspan in HTML.)
Use array.
In order to ease input, I (locally) define column types for display style material (type C) and for operations and relations (type O).
Setting \arraycolsep to zero lets TeX use its standard ...
0
votes
Can cells in a matrix be merged? (Something like colspan in HTML.)
Here's my solution for this particular case. What I do is, knowing that the terms above are longer, is to put them in boxes, measure those boxes, and then give those measurements to the boxes where I ...
4
votes
Accepted
How to align rows within cell in Latex?
Something like this?
\documentclass{article} % or some other suitable document class
\usepackage{tabularx} % for 'tabularx' environment and 'X' column type
\usepackage{calc} % for '\widthof' macro
\...
1
vote
Left-aligned and centered text on same line (not equations) when text is too long and overprints elements
Something like this?
The macro \newdatefeast takes three arguments: The event's number, the single widest line in the event announcement, and the full text of the event announcement. Observe that you ...
4
votes
How can I align this figure with the page numbering?
There are two ways to absolutely center the tikzpicture w.r.t. a given point, in this case (0,0). The first is to add extra space to the left or right to equalize the sides.
\documentclass[]{article}
...
7
votes
Accepted
How can I align this figure with the page numbering?
To find the source of the problem, you can warp the whole tikzpicture into a \fbox{...}. This way you can see exactly how big the picture is.
From there, you can comment/uncomment your code to find ...
3
votes
Accepted
Displaying a text in the center of the page
You can use vertical fills:
\begin{document}
\vspace*{\fill}
\centerline{Example.}
\vspace{\fill}
\end{document}
3
votes
Displaying a text in the center of the page
To display the text in the centre of the paper, you could use tikz (compile two times):
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[remember picture,overlay]
\...
1
vote
Accepted
Even horizontal spacing in enumitem inline lists
To use enumerate*, you need to give the inline package option to enumitem. However, I don't think enumitem is the tool you want here. Instead, consider tasks which is designed for this and uses a ...
1
vote
add images in \longtable and remove justification
Regarding your question about change the language of the 'Continued on next page' phrase? translation (an table label) in your comment:
Another possibilities is to use package tblr-extras which ...
8
votes
Accepted
Centering tikz graphic in OpTeX
If you compile the following document:
\fontfam[Fira]
\margins/1 a4 (3.5,2.5,3,3)cm
\typosize[12/18]
\load[tikz]
\centerline{\tikzpicture[domain=-1.045:5.25]
\draw[very thin,color=gray,step=.52]...
1
vote
line break in subfigure caption with proper "hang" alignment
Using subcaption package, it can be easily defined globally in the preamble and no need to add code within the figure command.
\usepackage[format=hang,singlelinecheck=false]{subcaption}
\begin{figure}...
3
votes
add images in \longtable and remove justification
I also can't get the text to not be justified, I want it to be left aligned.
I would like to suggest that you switch from a longtable to an xltabular environment. The latter combines the capabilities ...
3
votes
Accepted
add images in \longtable and remove justification
Something like this?
Package tabu is obsolete, many of its features can be find in tabularray package (but not with the same syntax).
I assume, that all images have equal size.
For inserting of ...
1
vote
Accepted
How may source text, after epigraph text, be left justified?
You can redefine \sourceflush to use environment flushleft instead of the default flushright:
\documentclass{article}
\usepackage{epigraph}
\setlength{\epigraphrule}{0pt}
\renewcommand{\sourceflush}{...
0
votes
How to modify the length of an underline
The rule is not too long; the issue is that your tabular* environments are too short. You use 0.99\textwidth or 0.97\textwidth, but you should remove the 0.99 in the first case and use \linewidth in ...
1
vote
How to resolve this message, Package microtype Warning: Unable to apply patch `eqnum'
If you want the warning to go away, you can use \usepackage[nopatch=eqnum]{microtype}.
1
vote
Accepted
How to shift/center a tikz grid?
This positions the grid relative to (current page.center). It uses a scope to move the origin. Note that this tikzpicture has no bounding box. If you remove the overlay option, the bounding box ...
1
vote
Accepted
How to change vertical spacing between two minipages?
Your code is unnecessarily complicated. First, there's no need to encase the images in separate minipage environments; placing both images in a single minipage suffices. Second, the center ...
Top 50 recent answers are included
Related Tags
horizontal-alignment × 5666tables × 1073
align × 494
vertical-alignment × 484
equations × 429
math-mode × 331
tikz-pgf × 315
spacing × 303
floats × 217
captions × 203
amsmath × 200
graphics × 195
beamer × 192
lists × 167
tabularx × 135
formatting × 133
alignment × 131
minipage × 128
table-of-contents × 121
enumerate × 118
sectioning × 117
indentation × 115
subfloats × 107
margins × 96
siunitx × 96