{horizontal-alignment} is about aligning document elements horizontally, e.g. typesetting paragraphs using `\centering` or `\raggedright` or adjusting the horizontal position of several equation or table components. If your question is generally about (horizontal) white space, use {spacing} instead.
2
votes
1answer
149 views
Brace spanning multiple rows in a table and horizontal alignment
I'm a beginner trying to do an brace inside a table, that is spanning multiple rows.
I assume the best way to achieve this is to do a two-row tabular environment, with an array environment for the ...
3
votes
1answer
57 views
Changing style of unnumbered chapters in memoir
The MWE below illustrates that while I can center numbered chapter headings, I cannot do so for unnumbered chapter headings:
\documentclass{memoir}
\renewcommand*{\printchaptername}{\centering}
...
7
votes
4answers
118 views
Justify long line with no spaces but a lot of hyphens
% !TEX TS-program = xelatex
% !TEX encoding = UTF-8 Unicode
\documentclass[11pt]{memoir}
\usepackage{fontspec}
\usepackage{showframe}
%%% Book Layout %%%
\setstocksize{4in}{5.75in}
...
1
vote
0answers
92 views
Why is centering a TikZ picture from an external file not the same as a centering a .png figure?
Why can't I put a Tikz picture inside \makebox?
\begin{figure}[!ht]
\centering
\makebox[\textwidth][c]{\includegraphics[width=.8\textwidth]{./Figures/chapter5/procedure_contacts.pdf}}
\end{figure}
...
3
votes
1answer
65 views
Aligning parts of equations
So this is a continuation of my previous question but I didn't know if I should edit that post and ask a new question or just post a new question entirely. Anyway, I have this bit of latex:
...
3
votes
1answer
47 views
Does align environment (or an alternative) have an option to choose left, center or right alignment?
I have quite a long set of equations, written in an array environment, but I can't seem to get it to split so that it is spread over multiple pages. I could use the align environment, but I can't seem ...
3
votes
2answers
189 views
Align multiline equation with expression after equal sign
I am trying to align a multiline equation using array within the equation but it turns out it doesn't do very well. The code I am using is as follows:
\begin{equation}\
\begin{array}{lcl}
...
1
vote
3answers
190 views
Questions on basic LaTeX typesetting in mathematics
I have one or two elementary questions on basic LaTeX typesetting:
I know putting $$...$$ sign puts the mathematical expression in the middle (center), but what if I also want to center the ...
2
votes
1answer
74 views
Left align after \specialcell in a centered table
I'm outputting descriptive tables from Stata using estpost and esttab into TeX format, and then importing them in LyX. I use \refcat to label my survey questions, and since some of them are very long ...
10
votes
3answers
222 views
TikZ: How to center captions below figures in matrix
I have three figures that I want to align in a matrix. Each figure is drawn in a different way and needs a caption that is centered below the corresponding figure.
Here is what I currently have:
...
6
votes
2answers
117 views
How to move an enumerate environment to the right? [duplicate]
How can I horizontally align \begin{enumerate} more to the right? At the moment I'm using the code below:
\begin{enumerate}
\item sometext
\item sometext
\item sometext
\end{enumerate}
But it goes ...
1
vote
1answer
88 views
How can I left align the text in the figure/table caption?
How can I left align the text in the figure/table caption?
This is the text I am using to add an image
\begin{figure}[htbp]
\centering
...
1
vote
1answer
42 views
Problem with ragged lines
Somehow, the lines in my document are all ragged, i.e. the further use of \raggedright does not change the document. I do not know the command to undo this (I believe not ragged is the preset). Here ...
6
votes
1answer
46 views
Problem with enumitem and \raggedright [duplicate]
I want my items in lists (enumerate, itemize and description) to be raggedright. So I use enumitem package to make things easier
\usepackage{enumitem}
\setlist[enumerate]{before = \raggedright}% In ...
3
votes
1answer
158 views
Top-aligned table cells with different font sizes and controlled spacing
I am trying to achieve a table where a few things have to work simultaneously. Several of these things have been discussed before, but I have been unable to make everything work at once (and some ...
1
vote
2answers
79 views
Formatting of an array of equations (left alignment)
I have the following text in a matrix environment. Is there a better way to format it, say with each column being left ordered, and how can this be done?
$$
\begin{matrix}
\Gamma^{i}_{\mbox{ ...
2
votes
3answers
136 views
centering a \hbox
I'm trying to center a collection of nested \hbox and \vbox without any succes :-(
Here is the code I use:
\begin{figure}[h]
\center{
\vbox{\hbox{%
\includegraphics{imageA}~%
...
7
votes
2answers
196 views
\RaggedRight makes document longer
I have a document carefully written to fit in 4 pages; but when I added a \raggedright (or \RaggedRight with use of the ragged2e package) the length gets longer. Furthermore, suddenly the output ...
2
votes
1answer
137 views
How to justify text after using image in LaTeX?
I am inserting a jpg/png image in my LaTeX document in center environment. The problem is when I insert the image, the text following the image loses the justify property. Also the itemize does not ...
4
votes
1answer
128 views
Beamer: combining footnote in one column with figure in the other one
I'd like to put a figure next to a list which contains a footnote. Without the footnote everything works fine. But when I add the footnote, the figure gets shifted to the right and partly appears to ...
6
votes
1answer
96 views
Horizontal alignment of margin notes in nested enumitem list
I would like to be able to 'tag' certain list items in an enumitem list with a mark in the left margin. I would like the marks in the left margin to be horizontally aligned with respect to each ...
5
votes
1answer
96 views
Crossed hierarchy
I appreciate it if you let me know the most elegant way to draw a crossed hierarchy such as the followings:
X
/\
Y Z
/\/\
p q t
q has two parents Y and Z.
2
votes
1answer
92 views
Using ERT in LyX [duplicate]
Using LyX to create a Beamer presentation I used the TeX button to insert some ERT:
\begin{table}\caption{Regression table\label{tab1}}
\begin{center}
\begin{tabular}{l r l r l r l}
\hline
& ...
3
votes
1answer
64 views
Caption Centered but Table is not
For some reason the caption is aligned in the center of the page but the table is too far to the right. How can I have both centered?
\documentclass{article}
\usepackage{booktabs}
...
1
vote
1answer
145 views
moderncv - How do I put the date column on the right rather than on the left
The career advisor at my university suggests putting the title of the position on the left, and dates on the right side of the resume.
I'm wondering how to I do that in moderncv themes?
5
votes
2answers
66 views
Title over align columns
Using the align environment I have two columns, one for derivation, and another for the rule that was used to create the derivation. However I'm pretty sure that there's a better way to do this?
Here ...
4
votes
1answer
103 views
Aligning a \marginnote to a theorem title
I want to create a \marginnote which is aligned to the title of a theorem. However, the \marginnote is always placed over or under the title, when I put the \marginnote command before or into the ...
1
vote
2answers
98 views
Equation number not on the extreme right?
I am trying to number the equation in my thesis. All of the equation numbers are being displayed correctly on the extreme right (of the text area). However, in one equation, I am facing a little ...
1
vote
1answer
88 views
How to fix a table that is too wide for margins?
I have created a table that is too wide for the margins. What I tried to do was implement \hspace*{-50pt} before \begin{tabular} and \hspace{-50pt} after \end{tabluar}. Which gets rid of the overfull ...
2
votes
2answers
112 views
Problems with bottom margin and alignment of text
1.) The space between the page number and the text margin is too small and I'd like to adjust it.
Somebody recommended, the geometry package, e.g.
\usepackage[
top = 2.75cm,
bottom = 5.50cm,
left ...
1
vote
0answers
160 views
Vertical/Horizontal alignment for multi-line header [closed]
I have the following code to create my header
\documentclass[english]{scrreprt}
%%% PAGE DIMENSIONS
\usepackage{geometry}
...
2
votes
2answers
136 views
Multiline formula with each column left-aligned
I am using LyX and I want a multiline and multicolumn display formula with each column aligned to the left.
But when I add a formula and add columns, some are aligned to the right and some are ...
4
votes
1answer
117 views
Alignment in algorithmic environment
I don't like how there is often a slight misalignment between assignment statements in an algorithmic environment. For example, the first version of the algorithm given below looks strange to me. I ...
1
vote
2answers
165 views
How to center align the whole table?
I created a table and it starts from the left and goes all the way to right, which looks really skewed. So I want to center align the whole table but couldn't figure out how to do it. I'm new to latex ...
0
votes
2answers
60 views
How to center align the whole table? [duplicate]
I created a table and it starts from the left and goes all the way to right, which looks really skewed. So I want to center align the whole table but couldn't figure out how to do it. I'm new to latex ...
1
vote
1answer
43 views
Create commands each of the text aligned horizontally?
I am using exam document class as my guide in creating my own documentclass but i have encountered a problem.How will i create a command for each of the four texts in a line.
here is a sample image:
...
8
votes
3answers
218 views
\qed or \qedhere at the end of split environment
While I was trying to improve my latest document with respect to its \qed symbols at the end of amsthm's proof environment i came across an interesting point. Assume the proof ends with some formula, ...
1
vote
1answer
192 views
Align the top of two tables horizontally (side-by-side with minipage)
I'm using \minipage to put two tables side by side. But when the two tables are not of equal length, the shorter of the two is vertically centered with respect to the other. I would like both tables ...
4
votes
2answers
108 views
How to change ledmac's paragraph footnotes from justified to ragged
How to change ledmac's paragraph footnotes from justified to ragged ? They seem to be justified by default, but I need them ragged left. Probably needs a redefinition of \parafootfmt, but I don't know ...
0
votes
1answer
102 views
Aligning Decimal Points in Columns [duplicate]
I simply want to align the decimal points in columns. I know this has been answered already but I can not figure out how to apply it in my table. Forgive me, I am very new to LaTeX. This is the code ...
5
votes
2answers
162 views
Nomenclature not aligned
I have a nomenclature section in my paper where I defined my symbols. For example:
\documentclass[twocolumn,10pt]{asme2e}
\addtolength{\textwidth}{-1pt}
\usepackage{graphicx}
\usepackage{amsmath}
...
1
vote
0answers
64 views
Globally set the justification in a framed box
I want to show the text from a Python Interpreter in a Windows console. This should be plain text (like you see in a command line terminal). I also want to show Python code snippets with highlighting. ...
3
votes
1answer
72 views
No correct centering when a line break is used
I have a centering environment inside a figure. In this environment, I have a text written in a footnotesize style. If I make a line break (\\) in the text, then the text is not centered correctly ...
2
votes
1answer
109 views
Text Alignment in paragraph box
I'm writing graphic application to generate latex tex. I'm making to generate text box with all it's features. Rotation alignment so on. I generated following cording but It was not Right aligned ...
2
votes
1answer
76 views
Make the titles centered using the titlesec package
I am using the titlesec package to better define my section headings. I have a question about it: How can I make the titles already centered in the middle of the page? I have them centered (at the top ...
9
votes
1answer
156 views
One-line equation with two columns
I try to write an equation with two similar formulas, i.e.
\begin{equation}
\qquad A_1 = B + C \qquad A_2 = D + E \qquad
\end{equation}
Of course, instead of \qquads I want to use something like ...
2
votes
1answer
136 views
Spacing in flalign affected by mathpazo
I got the following (partly shorted) equation:
I would like to get rid of the space left of the equation (left of Q') so that the label (0.2) fits on the right side.
\documentclass[
a4paper,
...
1
vote
2answers
161 views
Caption format changing
I want my captions of figures to be formated like this:
1 pav. First Caption
2 pav. Second Caption
Furthermore, I need my captions to be centered.
How can I redefine this?
3
votes
1answer
100 views
Remove indent from table environment, and center-set the resulting table
How can I center my table if I'd like it to be ´1.5\textwidth´?
\documentclass{amsart}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{ctable}
\usepackage{tabularx}
\usepackage{rotating}
...
2
votes
2answers
65 views
Problems with centering
I define the command
\newcommand{\rec}[2]{\begin{center}
{\fboxsep 8pt
\fcolorbox{RoyalBlue4}{LightYellow2}{
\begin{minipage}[t]{15cm}
\textcolor{RoyalBlue4}{\large{\textsf{\bf #1}}}\\
#2
...
