Text FormattingRagged-right in unhyphenated footnotes

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
alarswilson
Posts: 26
Joined: Thu Apr 02, 2009 3:42 pm

Ragged-right in unhyphenated footnotes

Post by alarswilson »

My dissertation guidelines require:
  • No hyphenation
  • No justification
\raggedright with \usepackage[none]{hyphenat} works, but not for the footnotes.

I have tried the latex2e option \RaggedRight, which works, but as it cannot hyphenate, half the lines go out of bounds.

How do I get a completely unhyphenated, ragged-right text with a strict 1" right margin? This is horrible for my typesetting integrity, but the styles are rigid.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Ragged-right in unhyphenated footnotes

Post by localghost »

I took the sample code from your other post and modified it at the critical points.

Code: Select all

\documentclass[11pt,english]{report}
\usepackage{fixltx2e}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage[includeheadfoot,margin=1in]{geometry}
\usepackage[flushmargin,hang,multiple,ragged]{footmisc}
\usepackage{titlesec}
\usepackage{blindtext}

\raggedright
\hyphenpenalty10000
\parindent0em

\makeatletter
\newcommand*{\spelled}[1]{%
  \expandafter\@spelled\csname c@#1\endcsname
}
\newcommand*{\@spelled}[1]{%
  \ifcase#1\or{One}\or{Two}\or{Three}\or{Four}\or{Five}\or{Six}\or{Seven}\or{Eight}\or{Nine}\or{Ten}\else\@ctrerr\fi
}
\makeatother

% Setup for headings (titlesec)
\titleformat{\chapter}[display]
{\normalfont\Large\filcenter\bfseries\scshape}
{\LARGE\MakeUppercase{\chaptertitlename~\spelled{chapter}}}
{1pc}
{\Huge}

\begin{document}
  \blindtext\footnote{\blindtext}
\end{document}
Page dimensions are set with geometry. Ragged footnotes are possible with footmisc. I didn't use the hyphenat package and simply set the hyphenation penalty instead.


Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
alarswilson
Posts: 26
Joined: Thu Apr 02, 2009 3:42 pm

Re: Ragged-right in unhyphenated footnotes

Post by alarswilson »

Thank you very much. It works great. Andrew
Post Reply