Questions tagged [ragged2e]

{ragged2e} is a package that provides the commands \Centering, \RaggedRight and \RaggedLeft (and associated environments) for setting ragged text while allowing hyphenation.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

All tables are centered but flushed to the right, cant center by any means

The issue at hand is, since I had to increase fontsize (that worked perfectly) but now my tables are centered but flushed to the right side of the page and the columns of the right side are out of ...
user avatar
  • 13
0 votes
1 answer
19 views

How Can I Align all of the Cells of my Table to \RaggedRight

I created this table in LaTeX by using the xltabular package: \begin{xltabular}{\linewidth}{X X X X X X X} \toprule Activity & \multicolumn{2}{X}{1. Feb 10, 2022} & \multicolumn{2}{X}{2. April ...
user avatar
3 votes
2 answers
198 views

How to center text left and right on the same line?

I'm looking to recreate this title environment below. I think the person used mdframed so I choose to use that as well. I get stuck when I try implementing the course name, professor name or week ...
user avatar
  • 353
1 vote
0 answers
53 views

Justifying problem on index entries

First an MWE and its output to the index page are as follows. \documentclass[a4paper]{article} \usepackage{idxlayout} \usepackage{imakeidx} \makeindex[columns=2,columnsep=2em] \begin{document} ...
user avatar
  • 3,031
0 votes
3 answers
74 views

Why RaggedRight and RaggedLeft don't work inside a box in this case?

I'm trying to align the minipage with the supervisor information on the left, and the minipage with the candidate information on the right. But the \RaggedRight and \RaggedLeft commands seem to have ...
user avatar
0 votes
3 answers
51 views

Is it possible to right align the text in the last row of a justified textblock?

is there a way to right align a text, which is at the same time justified? This particularly points onto the last line of the paragraph, which is normaly left aligned, or for example a very short one ...
user avatar
  • 7
0 votes
0 answers
63 views

scrreprt LuaLaTeX Error: incompatible 'everysel' detected. \if@raggedtwoe@footmisc

I updated all my packages, then got this error. I installed the package everysel in the MiKTeX Console, but this didn't help. Everysel is called by the package ragged2e, which I need. I need to ...
user avatar
  • 669
1 vote
0 answers
57 views

Numbered equations in itemize

I want to list some equations in an itemize environment and still use the corresponding equation numbers. For that I defined \newcommand\inlineeqno{\stepcounter{equation}\ (\theequation)} and then i ...
user avatar
2 votes
3 answers
135 views

Ragged2e causing build failure

The following Latex document shows this equation: \documentclass{article} % \usepackage[document]{ragged2e} \usepackage{ parskip % Makes formatting nicer } \begin{document} $\lim_{x \to c}(f(x) - f(...
user avatar
  • 123
0 votes
1 answer
31 views

Customizing endnotes: hanging indent + justified text + no space between notes

This is what I want to achieve for endnotes in a book typeset using LuaLaTeX 2020. Endnote marker at the left margin Hanging indent (endnote text should indented throughout, not just first line of ...
user avatar
  • 759
1 vote
1 answer
95 views

How to fully justify text in elsarticle

How can i justify all the texts in this paper. This is Elsevier article which is probably converted from IEEE format. Thanks in advance.
user avatar
1 vote
2 answers
53 views

Make defined enumerate list start at something other than one without changing the definition

I need to start my enumerate list start from 3. I use the enumeration on a table and giving newlist at the preamble. I've read how-can-i-make-an-enumerate-list-start-at-something-other-than-1, but the ...
user avatar
1 vote
1 answer
43 views

`geometry` strangely affect the behavior of `ragged2e`

Look at this example: %! TEX program = xelatex \documentclass{article} \usepackage[scheme=plain]{ctex} \ctexset{linestretch=0pt} \xeCJKsetup{CJKglue={},CJKecglue={},RubberPunctSkip=false,CheckSingle} ...
user avatar
  • 6,246
3 votes
1 answer
56 views

Text overflows cell

"Endomorphism" overflows cell even though I have provided a hyphenation for it. What could be the cause of this? \documentclass[11pt]{article} \usepackage{array, tabularx, ragged2e, ...
user avatar
  • 145
-1 votes
1 answer
26 views

Right-align broken word ending after hyphenation in RaggedLeft

I have some text that is RaggedLeft (that is right-aligned). If inside that text there is any hyphenated word, the rest of it is left-aligned, like: |Lorem ipsum dolor sit amet, consectetur adipiscing ...
user avatar
0 votes
2 answers
56 views

Dual columns where one is justified and the other is ragged right

I am writing a report on the differences between justified- and ragged right alignment. I am trying to demonstrate the differences between them by having two columns next to each other (multicols). ...
user avatar
1 vote
0 answers
60 views

Ifthispageodd and next page

I created the following environment: \newenvironment{symmetric}{ \Ifthispageodd{\begin{addmargin}[-1cm]{2cm}\RaggedLeft}{\begin{addmargin}[2cm]{-1cm}} } {\end{addmargin}\justify} Works as I thought, ...
user avatar
  • 273
5 votes
2 answers
463 views

Justified captions with KOMA-Script and ragged2e

I just stumbled across some phenomena. I am using KOMA-Script book scrbook and have loaded the package ragged2e. Usually, I do load that package with the option newcommands, to be able to use ...
user avatar
  • 5,060
1 vote
1 answer
161 views

cellspace: Package array Error: Illegal pream-token (\ecolumn): `c' used. \end{tabularx}

How to fix the error Package array Error: Illegal pream-token (\ecolumn): `c' used. \end{tabularx} when using the column specifier O for the following? \documentclass{exam} \usepackage{...
user avatar
  • 8,789
2 votes
1 answer
245 views

\RaggedLeft in a \newcommand not working as expected

I want to have two lines (some kind of "page metadata") on every subsection right-aligned. Those lines are never going to be full width (one contains a date only). For that I was trying to define a ...
user avatar
0 votes
0 answers
33 views

Problem with ragged2e [duplicate]

I want to use justifying command from this package but it could not be installed. Everytime I use \usepackage{ragged2e} I get this error: File `ragged2e.sty' not found. \usepackage. How could I ...
user avatar
0 votes
0 answers
596 views

The requested package is unknown

I used these packages: \documentclass{beamer} \usepackage{mathtext} \usepackage{amssymb,amsmath} \usepackage[T1,T2A]{fontenc} \usepackage{sidecap} \usepackage[cp1251]{inputenc} \usepackage[bulgarian,...
user avatar
2 votes
1 answer
421 views

\RaggedRight prevents hyphenation

The column type \newcolumntype{L}[1]{>{\RaggedRight\arraybackslash}p{#1}} proposed here does not hyphenate long words that don't have a hyphen, but instead lets them protrude beyond the column. ...
user avatar
  • 388
8 votes
2 answers
194 views

Is there a new incompatibility between ragged2e an scrlttr2?

The following MWE used to work fine, but since I updated my TeX distribution yesterday (hadn’t done it in a while) it raises an error as soon as there appears more than on \\ in the address. It works ...
user avatar
  • 53.5k
0 votes
1 answer
173 views

How to right align dotted line without hspace command?

The template of my dissertation approval page uses \hspace to put a space between each juror's name and its dotted line. How can I right align the dotted lines in output (without using \hspace)? ...
user avatar
2 votes
0 answers
2k views

LaTeX Warning: Command \@arrayparboxrestore has changed

Hey so this error message LaTeX Warning: Command \@arrayparboxrestore has changed. manifests up when I use \usepackage[document]{ragged2e} but the error does not manifest whenever I comment out that ...
user avatar
3 votes
1 answer
81 views

My spaces are swallowed

I want to have my code examples show up with not only \code{\textbackslash texttt} but also a grey box. You might be familiar with the looks from some famous web page with questions and answers on ...
user avatar
  • 11.1k
3 votes
1 answer
208 views

How to prevent \raggedright from removing left-indent of \parshape?

Output with \raggedright looks good when greater indentation is specified for \parshape, but \raggedright eats up smaller indentation. If a word doesn't fit on a line, is there a way to prevent ...
user avatar
  • 3,636
0 votes
0 answers
398 views

LaTeX document alignment

In our document we tried to align everything with ragged2e package and it doesn't really help to align as some of the text is align and some of it isn't. I have added this command in master folder ...
user avatar
1 vote
1 answer
58 views

How to supress with ragged2e in a glossary (longtable)?

I am trying to use the long style provided in the glossary package to use in my acronym list. However, I am also using the ragged2e package and I have my paragraphs indented too. This causes both the ...
user avatar
  • 458
0 votes
1 answer
462 views

Is it OK to ignore Underfull \hbox errors? I attempted, but it did not wok. I use textpos and ragged2e

I tried to solve by middle of the following questions: ragged2e: "newcommands" option produces "underfull \hbox" warnings, Underfull \hbox (badness 10000) in paragraph in figure ...
user avatar
6 votes
1 answer
139 views

Interference between `ragged2e` and `tcolorbox`: Additional spacing for centered bold text

When centering bold text in a tcolorbox using [halign upper=center], additional horizontal spacing occurs when the package ragged2e is loaded additionally. I guess this is unintended behavior. – Is ...
user avatar
  • 1,567
5 votes
1 answer
292 views

koma-script: Problem with \footnote and \RaggedRight

Here's an MWE (using koma-script v3.25): \documentclass[paper=a8]{scrartcl} \RequirePackage{ragged2e} %\addtokomafont{footnote}{\RaggedRight} \begin{document} foo\footnote{bar} \end{document} Here ...
user avatar
  • 441
0 votes
1 answer
158 views

Adjust the word space in the itemize environment

As you can see, there is a too-wide space caused by the long word "AuthenticateWith". Is there any idea to introduce the hyphenation under the {itemize} and somehow adjust the item. I tried \...
user avatar
13 votes
2 answers
322 views

Text beginning with “plus” after ragged2e's commands prevents compilation

I lost quite some time due to some weird error (which might possibly stem from a ragged2e bug, but I'm note sure so I won't put the blame on anyone), so I thought it would be nice to share this. The ...
user avatar
  • 1,001
0 votes
1 answer
2k views

How to make justified alignment of text have as little space between the words as possible?

EDIT: additional examples added (scroll farther down) I've noticed there's always unnecessary space generated between the words when justified alignment of text is used (be it one or another package ...
user avatar
  • 3,636
2 votes
1 answer
85 views

How to prevent automatic insertion of a blank line at the beginning of a `justify` environment of `ragged2e` package?

Blank line is always generated at the beginning for some reason. I need to get rid of it. \documentclass[border=0.5mm]{standalone} \usepackage{ragged2e} \usepackage{tikz} \begin{document} \begin{...
user avatar
  • 3,636
3 votes
1 answer
312 views

Underfull \hbox warning with \RaggedLeft

I use the mcaption package to place the captions in the margin column. With \RaggedOuter I align them properly on even and odd pages, respectively. Only on even pages, I tend to get underfull \hbox ...
user avatar
  • 1,812
1 vote
1 answer
270 views

Aligning text to the right inside a verse

Inside a verse environment as provided by the verse package how would I align an entire stanza to the right? I'm looking for something like the below: Neither \raggedleft nor \RaggedLeft as provided ...
user avatar
1 vote
1 answer
750 views

How to take off the "-" of the justified texts in Beamer

In the end of the line the justified text has "-" I would like to take off. Is there anyway to do that? \documentclass{beamer} \usepackage[portuguese]{babel} % or: 'brazilian' ?! \usepackage[T1]{...
user avatar
  • 133
1 vote
1 answer
262 views

Strange hyphenation behaviour with multirow, plus problems with hyphenating german-language words with umlauts

I have problems with hyphenation in multirow text cells, again. In some cases, this totally gets ignored even though using hyphenation. Bonus question would be, how do I tell \hyphenation to ...
user avatar
  • 145
5 votes
3 answers
4k views

Hyphenating text inside tabularx

I'm currently writing a thesis where hyphenation is not allowed with exception to tables. Disable Text hyphenation is working fine using: \usepackage[none]{hyphenat} \sloppy Now the problem is that ...
user avatar
5 votes
2 answers
605 views

multicol, ragged2e, RaggedLeft - How to "unjustify" last line

I try to use multicol with RaggedLeft from ragged2e. But Latex somehow "justifies" all lines including the last line of the paragraph. RaggedRight works as expected. How can I achieve the look of ...
user avatar
  • 53
5 votes
1 answer
6k views

After \centering what is the best way to return to justified?

Here is an over simplified example. My problem is the \justify and/or \clearpage creates an error on the first \item line saying "possible missing \item." I've used a similar sequence of code above ...
user avatar
6 votes
1 answer
311 views

spacing=true + ragged2e produces bad minipages

I understand the spacing=true option in microtype is considered "experimental". However, for my document it does improve the appearance of the document -- with the dramatic exception of certain ...
user avatar
  • 2,284
-2 votes
1 answer
94 views

how to align text in a page? [closed]

I'm writing my report but I found that text is not align in all tha page however added this : \usepackage[document]{ragged2e} How can I fix it?
user avatar
  • 35
13 votes
2 answers
2k views

Minimize hyphenations with ragged2e

Nearly every guide to LaTeX recommends \RaggedRight from the ragged2e package over the built-in \raggedright. But I've always been frustrated by too many hyphenated words with \RaggedRight. I ...
user avatar
  • 1,894
4 votes
1 answer
269 views

Inclusion of ragged2e causes spacing side-effect in Tikz

I am working on a memoir document whose chapter titles are styled with Tikz. My actual graphic is quite a bit more complex, but for the sake of simplicity, the MWEs in this question will simply ...
user avatar
2 votes
1 answer
454 views

How to align text vertically and horizontally in table cells of the same column?

I want to top align and right justify the text in all tabularx cells of a certain column. So far, I tried: \documentclass[a4paper,10pt]{article} \usepackage[top=2cm,bottom=2cm,right=2cm,left=3cm]{...
user avatar
  • 163
2 votes
0 answers
190 views

Ragged2e preventing proper hyphenation of long chemical names

In my thesis I use chemical names containing dashes and numbers in section titles. Additionally, each compound is numbered by using the \cmpd{} command from chemnum-package. To prevent the label from ...
user avatar
  • 33