1
vote
1answer
51 views

`helvet` and `moveleft` in resume

I have several questions about the following code: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Medium Length Graduate Curriculum Vitae % LaTeX Template % Version 1.1 (9/12/12) % ...
1
vote
1answer
39 views

Stretching text within a certain size box

I would like to stretch some text within a certain size box, say two inches (I'm not sure yet how large I want the box to be). I came across this example to stretch text across the entire page: ...
4
votes
1answer
36 views

Adjust indentation of the subsequent lines in description environment

How do I control the indentation of subsequent lines without affecting the other settings? That is, I want the spacing of the first three components to remain as is, but when the content of the line ...
0
votes
1answer
43 views

Strange spacing when using lstlisting

I am trying to use the lstlisting package in order to show some code in my document. However, it aligns it to the right of the page, as opposed to left as expected. \begin{lstlisting}[frame=single] ...
12
votes
3answers
249 views

Spread letters to a given length?

I have made a fancy title page using titleformat and tikz, but I now face the following problem. The \chaptertitlename command returns \chaptername or \appendixname. I would like to spread the letters ...
5
votes
2answers
110 views

Bump right-aligned text to next line iff no room within a \savebox

This is a follow up to my earlier question Bump right-aligned text to next line iff no room. The difference now is that I need to place this formatted text within a \savebox. In my actual use case, ...
2
votes
1answer
53 views

Minitoc numeration overlaps with subsection titles

I have long minitoc numeration depth \setcounter{minitocdepth}{3}. I have a problem with it: \documentclass{report} \usepackage{newcent} \usepackage{minitoc} \setcounter{tocdepth}{1} ...
9
votes
1answer
140 views

How to float something right even if it wraps down a line?

I have a situation where I have some data in section headings (and sometimes normal paragraphs} that needs to be: floated right not split across lines I was able to accomplish this for most cases ...
9
votes
2answers
122 views

Preventing line shrinking with raggedright

Sometimes with \raggedright, if a line is too long, but only slighly so, it will be shrunk instead of broken up. Here is an example: \documentclass{article} \raggedright \begin{document} This is a ...
7
votes
2answers
108 views

Creating Horizontal Lines With A Specific Distance

I'm relatively new at LaTeX. I've read material online and have been practicing. However, I have not been able to find a solution to two of my questions. I'm hoping someone may be of assistance. This ...
1
vote
1answer
26 views

Incorrect alignment when using aligned

I'm trying to TeX some nice equations but there is a strange behaviour when I use an aligned-environment in an align*-environment. I think one little example makes my problem clear: \begin{align*} ...
12
votes
3answers
342 views

Displaymath environment that can align equations and squeezes math

I have a long equation to align. Without squeezing the math, it is just barely longer than \textwidth. However, the align environment doesn't squeeze the math at all, which results in a badbox. ...
4
votes
1answer
72 views

How do I Make a Three-Column Title?

I'm trying to format a title for my document. Normally, I write <Title> \hfill \today, to have a title nicely split into two columns, each aligned at the left and right margin, respectively. ...
7
votes
3answers
247 views

Maintaining alignment between irregularly vertically spaced TikZ matrix nodes

I'm trying to create a diagram with pairs of rectangles of different sizes, each separated by a fixed interval. Additionally, I want each pair to be left-aligned at the same point. Here's an example ...
15
votes
5answers
249 views

Behavior of \\ inside center environment

While trying to compile a title page for my dissertation I realized that I do not understand the behavior of \\. Consider the following MWE \documentclass{memoir} \begin{document} \begin{center} ...
3
votes
1answer
79 views

dcolumn with brackets

I am using dcolumn to align cells to the decimal point. But in case of brackets, I always got overfull errors in my main document. If I replicate a MWE with the full preamble, there are no more ...
6
votes
1answer
80 views

Aligning text centered on left margin; mystery horizontal space

I have the following: \documentclass{article} \usepackage{calc, expl3, xparse} \makeatletter\ExplSyntaxOn \def\globalsettoheight{\@gsettodim\ht} \def\globalsettodepth {\@gsettodim\dp} ...
3
votes
1answer
1k views

Simple list of abbreviations manually

I have written my whole document without using any packages like nomencl or acronym because it wasn't necessary in my case, that means I only have a few abbreviations which should fit on one page ...
4
votes
2answers
443 views

Chords & lyrics, songbook

I'd like to make something like a songbook - just chords and lyrics. I have found several packages, but I also wanted to improve my TeXing skills by making my own commands/environmnets etc. Now I am ...
2
votes
2answers
332 views

Justified paragraph followed by right-aligned paragraph with custom spacing

I'd like to have a paragraph of ordinary text with a single right-aligned line underneath, with a custom vertical spacing (0.5 cm) between them, but can't figure out how it is done. My best guess is: ...
1
vote
2answers
141 views

In multiple tables, how to align columns again after variable-width columns?

There are multiple (e.g., 2) tables that contain similar information. Between them is one table row of white space. All tables have 3 columns. The first two columns belong together, which is why the ...
1
vote
0answers
48 views

Edit Customize Change Justification rules to solve losse lines in tight columns or spaces

I'm working on a table and have a column (column 3) which is about 5 cm wide (specifically set) where I'd like text to be justified. However, due to the tight column, the paragraph style (in combo ...
4
votes
2answers
91 views

Spacing and alignment in equations

I didn't find a solution about how to add units to equations. I have my code \begin{equation} \eta = \frac{\Phi}{P} [lm \cdot W^{-1}] \label{eq:mv} \end{equation} which is centered by ...
0
votes
2answers
101 views

Decrease the space between formula and text, and the formula position of align environment

Please see the picture first. My two questions are described in the picture. As known to us, when we use "\begin{align}", it will appear at the next line automatically. Could I just move it just be ...
3
votes
1answer
211 views

form field alignment with a table cell

Is there any way to horizontally centre the checkboxes in the following MWE? Also is there any way to adjust the size of the checkboxes so that (i) they do not touch the cell border, and (ii) they are ...
3
votes
2answers
79 views

Determining spacing by a number that is a multiple of a counter

I have \hspace and I have a stepcounter xyz \documentclass[12pt]{article} \usepackage[top = 1in, bottom = 1in, left = 1in, right = 1in]{geometry} \usepackage[T1]{fontenc} ...
5
votes
1answer
121 views

Alignment of Part and Chapter headings text

Following this question of mine, I try to make the start of part and chapter title headings "vertically parallel" (right term?). Example of what I get: ("." not visible only to show space ...
5
votes
1answer
143 views

Why won't \hspace work?

I'm trying to get a block of text to be aligned 2.55cm from the left of the page. I'm sure there's a better way of doing this, but it would be nice to get an answer anyway. When I type: ...
5
votes
1answer
93 views

Arranging several items in one or two lines depending on their size

I want to set title pages in a way that is google scholar compliant, that is, the title has to be huge, the author names should be large but smaller then the title. I had a solution where I just ...
9
votes
2answers
287 views

Align position of decimal point within table of numbers, text and percentage values

I have asked sthg similar with a MWE today answered by David C., but this is a more difficult follow-up question. Also I have just made a new account :) The Question is simple: I want the numbers to ...
25
votes
7answers
586 views

Writing a table with equally spaced columns, based on the widest column

Friends, I'm trying to generate a table in which I have all columns equally spaced (same width). In my case, the width for all columns would be the width of the widest column of the table: ...
1
vote
1answer
96 views

Very wide equation ruins consecutive side edges

I've just created a set of equations in matrix form which looks fine. It also seems to fit in the space of my document, but in the following space after the equation, the side edge is suddenly gone, ...
0
votes
0answers
32 views

Remove extra space to the left of aligned environment [duplicate]

To typeset a collection of equations with alignment, I am using align* from amsmath. Some of these equations have right-hand sides that have multiple lines that should be indented. So far I am using ...
5
votes
2answers
547 views

LaTeX moderncv classic: Change the width of the title

I'm looking to change the width of the \title environment in the moderncv template. As it is now, the maximum width of the title under my name goes all the way to the "address"/information box on the ...
2
votes
1answer
134 views

Left aligning cell contents in a table

If you compile the code given below, then the row which states "Average Pre-Authentication Response Time" is justified with a lot of spacing between the words. I want it to be left-aligned. Also, if a ...
3
votes
1answer
120 views

Vertical space in interaction with figure/center environment

I misused the figure environment to insert some vertical space and now try to replace it by center. However, the two environments behave differently when I use a scaled box as content of the ...
4
votes
2answers
208 views

Horizontal alignment of text blocks

I want two text blocks in a horizontal row. In the middle between them, there should be an arrow pointing from left to right. This is what I currently have: As you see, the arrow is not in the ...
2
votes
1answer
261 views

Vertically center elements in table doesn't work

I am trying to vertical and horizontal align items in a table. I tried to follow what I found on the internet, including on this site, but it seems not to work for the last column. Here is what I ...
5
votes
2answers
243 views

Measuring line length, using \hfill to justify text, wrapping and right justifying if space too small

I am a lecturer and have an issue when compiling test and exam questions. The questions will be in an enumerate environment and look something like this, where the marks shown in brackets are right ...
2
votes
1answer
821 views

Horizontally align multi-line cell in table

I want to horizontally align two cells with two lines in a table environment, something like this: ------------------- | A long | foo | | | ----| | multiline | bar | ------------------- ...
3
votes
2answers
134 views

How to move subscripts to the right and text to the left

I have \[ \sum_{\substack{m \in [1,\dots,n] \\ b \in \{0,1\}}} P[y_{i_\ell}= z_{i_\ell}\mid xxx] \] For space reasons I need to move the subscripts so that they are flush left with the summation ...
2
votes
2answers
647 views

Remove extra space from framed environment

I would like to remove or better said have the framed environment (box) aligned with the content in the description. Notice below how the box is out of alignment and aligns with the margin. See a MWE: ...
3
votes
1answer
874 views

\hfill and \hspace do not work

All, I want to put three figures together in one line, spanning two columns. I used \hfill and \hspace{} in order to make the three figures fully span the horizontal width of the paper. However, ...
4
votes
1answer
61 views

Alignment in math environment

Consider the following piece of code \documentclass[twocolumn]{article} \usepackage{amsmath} \begin{document} \begin{align*} A_i &= B_i + C_i\\ &= D_i + E_i+F_i + G_i + H_i\\ &= I_i + ...
7
votes
2answers
98 views

Why \\ increases interline spacing before the command in center environment?

This is about the effect of the line breaking command "\\" in center environment. It appears that the command has the effect of increasing the interline spacing of text appearing before the command. ...
2
votes
1answer
428 views

When wrapping text around an image, latex fills the bottom line first, not the top. How do I fix this?

I am using the wrapfig package in LaTeX, and in some areas, it is working fine to wrap the text around the image. However here it is breaking the lines in a weird way, and extending the blank area ...
5
votes
1answer
83 views

Where is this whitespace coming from in align*?

I am trying to align 2 simple equations using the align* environment: \begin{align*} \phi(\gedge{\tilde{v}_{i_1}}{\tilde{u}_i}) & = \phi(\gedge{\tilde{v}_{i_2}}{\tilde{u}_i}) & = \gedge{v}{u} ...
6
votes
3answers
823 views

Multiline equation with specific indentation style

I have a multiline equation of the following type: \begin{equation} \begin{split} f(x,y) & =a\\ & =b\\ & +c\\ & +d. \end{split} \end{equation} But the output I would like to have is ...
6
votes
4answers
210 views

Why is `\strut` working in these scenarios?

\strut seems to be a powerful command to get the interlinear spacing correct; particularly, when working with text in \parboxs or minipages. But it's also nice in contexts in which LaTeX is setting ...
3
votes
1answer
266 views

wrapfig with {R} remains left and keeps white space to the right

I am using wrapfig inside normal text (no lists or anything), with the {R} option to make it float right. However, some of the figures end up being aligned left, with all the space to their right ...