Skip to main content

Questions tagged [hfill]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer

\hfill not aligning properly in verse environment in memoir

I'm typesetting a bunch of poetry some lines of which have what are essentially marginal labels, all of which I want to be right justified against the right-hand margin. When I use \hfill, they do ...
Sara L. Uckelman's user avatar
0 votes
1 answer

Rewrite command to align text following \hfill in first row

the following command \newcommand{\twentyitem}[5]{% \\ \parbox[t][][t]{18mm}{\raggedright \small #1}& \parbox[t]{0.83\textwidth}{% \textbf{#2}% \hfill% {\emph{\...
m0byn's user avatar
  • 27
2 votes
2 answers

Fix an underfill with an equation in display mode

I have a paragraph with an equation in display mode. I would like to continue the paragraph under the equation, but I get an underfill issue. If I add \hfill, the additional text is part of a new ...
Shelley's user avatar
  • 103
0 votes
2 answers

Problem with ''\hfill''

\documentclass{article} \usepackage{amsfonts,amsmath,amssymb,graphicx,amsthm,mathtools,systeme} \begin{document} \noindent Answer using ``T'' for True or ``F'' for False for the given statements: \...
Student's user avatar
  • 1,124
1 vote
1 answer

Horizontal spacing in nested aligned environments

I'm trying to align some columns of a nested aligned environment to the right. This is my current code, and the current result: \begin{align*} & 50 & \text{ Rows} \\ \times\; &...
Martín Fixman's user avatar
0 votes
1 answer

Remove white space at the end of a line above a list environment

Why is there a space on the right side of 'A', but no space on the right side of 'B'? How can I remove the space on the right side of 'A' so it is in line with 'B'? \documentclass{article} \...
Z Gu's user avatar
  • 1
8 votes
3 answers

Two large figures side by side

Question I want to place two TikZ pictures side by side: Note: They are vertically centered. One is wider than half the page. The three gaps are equal (as if by using \hfil <a> \hfil <b> ...
glibg10b's user avatar
  • 265
1 vote
3 answers

Why does \hfill work in math mode but not \vfill?

This example writes three lines, each of which have four numbers separated by an equal length of space. \documentclass{article} \begin{document} \noindent \thispagestyle{empty}% 1\hfill2\hfill3\hfill4\...
zhsm54983's user avatar
1 vote
1 answer

edit the maximum length of \hfill

Similar to edit the minimum length of \hfill, but I want to keep a maximum spacing so that elements are not too separated. I also need two other \hfill to center the line. \documentclass{article} \...
putianyi888's user avatar
0 votes
0 answers

Is there other ways in writing this macro (centered dotfill)?

I'm using a little macro found on Stack Exchange to define a vertically centered dotfill, but I don't understand it at all and it feels like an "hack" to me. Is there other ways in writing ...
Cham's user avatar
  • 2,328
0 votes
1 answer

why the \hfill command could not handle the newline

Today I am using \hfill to make two column in one page, when the code write like this: \begin{minipage}[t]{0.25\textwidth} \end{minipage} \hfill \begin{minipage}[t]{0.73\textwidth} \end{minipage} ...
Dolphin's user avatar
  • 895
4 votes
1 answer

tcolorbox boxes in last line are slightly misaligned

The following code utilizes the tcolorbox package to create a template of a round rectangle gamebox. A simple \foreach statement prints gamebox with the strings Lv. 0 to Lv. 103 printed on them. I ...
sth34626's user avatar
0 votes
3 answers

Using \hfill in tabbing environment

I'd like to use \hfill within a tabbing environment, but it seems to have no effect. How can I do it? MWE: \documentclass{article} \setlength{\parindent}{0pt} \begin{document} \begin{tabbing} Foo ...
Sverre's user avatar
  • 20.9k
1 vote
1 answer

extending \hline across the full width of nested tabular

So I'm trying to figure out how to extend the horizontal line in the last column across the full width. I'm using nested tabular but can't seem to use \hfil or anything similar to get it to work. Is ...
lucy's user avatar
  • 13
2 votes
1 answer

Aligning annotations using hfill

Please excuse my beginner question, I am pretty inexperienced with LaTeX. My question is quite similar to this. I have lines of maths followed by annotations commenting on the maths on the same line. ...
Lauren S's user avatar
  • 147
4 votes
1 answer

How to draw a rectangle filling the page after some text?

I would like to have a command \myTitle{Example} that would draw a rectangle starting after the text "Example" and going up to the right margin of the page. This is how it would look like. ...
Colas's user avatar
  • 6,942
1 vote
2 answers

drawing thick rounded corner horizontal lines that automatically fill the empty space

to make it clear, I would like to reproduce this: in a way that the lines automatically fill the space on the right and left of the word in the center (as I need to use it for several titles). Thank ...
stargazer45's user avatar
1 vote
1 answer

How can I write a list of notations with the \hfill command and the possibility to go to a new line?

I wrote a list of notations with the following rough code: $B(x_0, r)$\hfill the open ball $\{x\in\R^d:|x-x_0|<r\}$ \par\smallskip\noindent $\BUC(E)$\hfill the space of bounded and uniformly ...
Jeji's user avatar
  • 133
3 votes
1 answer

hfill – Too long content before \hfill breaks right alignment

I have a list where each item has a number of points assigned to it, which should be in the same row on the right side. This works very well in almost all cases with \hfill. However, if the line ...
simande's user avatar
  • 1,022
0 votes
1 answer

Trouble with \hfill not going to the end of the page

I am new at creating a class file to maintain a specific format for my resume. I included all the code from the template I am using to prevent any compiling issues. I am trying to line up my dates at ...
Nick's user avatar
  • 5
1 vote
1 answer

How to Prevent This Undesirable Aesthetic from Occurring When Using the Hyphenat Package

Sometimes, when using the hyphenat package to prevent hypenation in sentences, the following undesirable aesthetic occurs, as illustrated in the first paragraph of the output of this MWE: \...
DDS's user avatar
  • 9,768