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
1
vote
1answer
35 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{...
2
votes
1answer
33 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 ...
0
votes
0answers
26 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 ...
0
votes
0answers
129 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,...
2
votes
1answer
114 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. ...
8
votes
2answers
123 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 ...
0
votes
1answer
69 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)? ...
1
vote
0answers
441 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 ...
3
votes
1answer
57 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 ...
3
votes
1answer
92 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 ...
0
votes
0answers
254 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 ...
1
vote
1answer
34 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 ...
0
votes
1answer
291 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 ...
6
votes
1answer
115 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 ...
5
votes
1answer
155 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 ...
0
votes
1answer
89 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 \...
13
votes
2answers
304 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 ...
0
votes
1answer
1k 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 ...
2
votes
1answer
54 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{...
3
votes
1answer
205 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 ...
1
vote
1answer
146 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 ...
1
vote
1answer
446 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]{...
1
vote
1answer
187 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 ...
3
votes
3answers
2k 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 ...
5
votes
2answers
476 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 ...
3
votes
1answer
3k 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 ...
6
votes
1answer
229 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 ...
-2
votes
1answer
87 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?
12
votes
2answers
1k 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 ...
3
votes
1answer
143 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 ...
2
votes
1answer
413 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]{...
2
votes
0answers
161 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 ...
2
votes
1answer
455 views

Beamer with ragged2e and babel results in “command \selectfont has changed” warning

I am preparing a presentation in beamer and trying to get rid of warnings – but there is one that I cannot remove. In the MWE below there's empty beamer document with babel in Polish and ragged2e ...
6
votes
1answer
292 views

Why does the ragged2e package screw up my emphasized text and headings?

I encountered a weird behavior of the ragged2e package. \documentclass{article} \usepackage{blindtext} \usepackage{amsmath} \usepackage{ragged2e} \newcommand{\ir}[1]{_{\mathrm{#1}}} ...
1
vote
0answers
58 views

How to combine currvita and ragged2e? [closed]

When I use ragged2e with currvita, then the currvita section headers loose their margin below, resulting in unacceptable ugly layout. Example: \documentclass{article} \usepackage{currvita} \...
1
vote
1answer
819 views

Appendix suddenly right aligned?

I am writing a thesis using a template I didn't create myself, which worked great so far. But when I put some text in the appendix, it suddenly is right aligned, with a ragged left side. I have found ...
3
votes
2answers
656 views

Can't get \hangfootparindent to work with \footmisc

I use \footmisc to style my footnotes, with the hang option (in combination with raged2e). I'd like to set the second and subsequent paragraphs in multiparagraph notes with an indentation, but can't ...
5
votes
2answers
165 views

picinpars and ragged2e appear to create a capacity exceeded error when switching alignment

I have an odd issue that appears to stem from the ragged2e package. I need to be able to have an image shown on the right with right aligned wrapped text around it. However, when I have to switch the ...
2
votes
1answer
205 views

Beamer - Combining justification and centering

I am preparing a beamer presentation and I am having problems in combining justification and centering. I use mainly itemize and enumerate in my slides, and I want to have the text justified in all my ...
4
votes
2answers
639 views

RaggedRightParindent also indents caption titles with subcaption package

I am using the KOMA-Script class scrreprt with the ragged2e package to achieve ragged right document text. I still want to retain paragraph indentation (and have no inter-paragraph spacing, i.e., ...
5
votes
1answer
676 views

Hyphenation with \RaggedRight

This is based on egreg's code and comments to Indenting text in \tabfill (tabbing environment), in which a command \tabfill is defined so that it wraps lines in a tabbing environment. One problem ...
3
votes
2answers
2k views

How to align text to right without adding additional vertical spacing?

I am trying to simply align one paragraph to the right. However, when I try to use flushright environment, additional vertical space is added above that environment: \documentclass[final]{book} \...
7
votes
1answer
2k views

Relationship of \\, \newline, \raggedright, \RaggedRight, and parindent

I'm trying to understand if there is anyway to get \\, when in \raggedright or \RaggedRight, to produce a new line that is not indented, while \parindent or \RaggedRightParindent are set in order to ...
1
vote
1answer
857 views

ragged2e justifying - centering figures

I am preparing a beamer presentation and I used the ragged2e package to justify the text in my slides (I justified the itemize environment). However, this does not allow me anymore to center a figure. ...
5
votes
1answer
429 views

ragged2e breaks soul package \textbf{} spacing

If you compile the XeLaTeX below you will see the output is not-as-expected for the bold part of the text i.e. it is: underline underline boldboldbold In other words the spacing of the bold elements ...
4
votes
1answer
2k views

Raggedright not working inside a table

I have a table and i want to align elements left. This is my code : \begin{tabular}{|c|c|} \hline Priorité&Description \\ \hline \multirow{4}{16 mm }{\centering 0} & \tabitem \...
27
votes
2answers
39k views

\raggedright removes paragraph indentation

This code \documentclass[]{article} \usepackage{lipsum} \begin{document} \raggedright \lipsum[1-3] \end{document} produces three paragraphs with a ragged right edge and no paragraph ...
2
votes
1answer
531 views

Ragged2e: Break between paragraphs

When I use the package ragged2e, the break between paragraphs disappears. I am new to LaTeX, so I might have missed something elementary, but I cannot figure out how to get an empty line between ...
5
votes
1answer
2k views

First paragraph indentation with ragged2e and \RaggedRightParindent set

I am using the ragged2e package for my raggedright text and have set \RaggedRightParindent to 2em, as I want my paragraphs indented. But now, the very first paragraph in the document (following \...
6
votes
3answers
855 views

Memoir footnotes in margin with ragged2e

I would like to set up memoir so that when I use \footnote{foo}, foo is displayed in the margin with the proper label and preferably break over pages. There is an option \footnotesinmargin which ...