2

I'm stuck using the acm_proc_article-sp class. The \category section is significantly overrunning the column width and infringing on the right column. I have been able to fix this by adding a \sloppy, but this of course makes the rest of the article look bad. Is there an alternative approach which will fix just the overflow? Below is an example:

enter image description here

\documentclass{acm_proc_article-sp}
\usepackage{lipsum}% Just for this example
\begin{document}
% \sloppy %% This is necessary to fix the overflow of categories and
\conferenceinfo{X}{XXX}

\title{My title}
\numberofauthors{1} 

\author{
\alignauthor
Me\\
       \affaddr{My Institution}\\
       \affaddr{Street Address} \\
       \affaddr{City, Postcode, Country}\\
       \email{blah@blah.blah}
}

\maketitle
\begin{abstract}
Abstract.
\end{abstract}


% A category with the (minimum) three required fields
\category{K.4.0}{Computers and Society}[General]
\category{K.4.1}{Computers and Society}{Public Policy Issues}[Ethics]
\category{K.6.0}{Management of Computing and Information Systems}{General}[Economics]
\category{K.7.4}{The Computing Profession}{Professional Ethics}[Codes of Ethics]

\terms{Human Factors}

\lipsum[1-10]

\end{document}
1

Limit the scope of \sloppy by wrapping the section containing \category-ies inside a group:

{\sloppy
% A category with the (minimum) three required fields
\category{K.4.0}{Computers and Society}[General]
\category{K.4.1}{Computers and Society}{Public Policy Issues}[Ethics]
\category{K.6.0}{Management of Computing and Information Systems}{General}[Economics]
\category{K.7.4}{The Computing Profession}{Professional Ethics}[Codes of Ethics]
\par
}

enter image description here

|improve this answer|||||
  • Thank you for the solution. Markdown corrections and use of the lipsum package have been noted. – Ann Apr 7 '15 at 20:50
  • @Werner For my edification, why is the \par required. I noted that without that the problem is not fixed. – R. Schumacher Apr 7 '15 at 20:52
  • 2
    a similar limiting approach: wrap the offending section between \begin{sloppypar} ... \end{sloppypar}. (i find it easier to spot the end environment in the source file than a lonely close brace, regardless of how good brace-matching is in my editor.) – barbara beeton Apr 7 '15 at 20:54
  • @R.Schumacher -- paragraph-wide settings, including baselines and spacing adjustments, aren't applied until a paragraph actually ends, and just a closing brace doesn't end it. (another reason to prefer the sloppypar environment.) – barbara beeton Apr 7 '15 at 20:56
  • @R.Schumacher: The \category-ies are set in regular horizontal mode... just like anything else in a paragraph. If you close the scope of \sloppy before there is any signal of a paragraph (like an explicit \par or an empty/blank line), then \sloppy doesn't take effect. It's similar to writing limited-scope font switches {\Large blah blah} and then not issuing the \par inside the group {..}. – Werner Apr 7 '15 at 20:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.