From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D6128139694 for ; Mon, 15 May 2017 23:02:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2DFE7E0DDD; Mon, 15 May 2017 23:02:29 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0B31CE0DDD for ; Mon, 15 May 2017 23:02:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DAA043416D5 for ; Mon, 15 May 2017 23:02:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 50704745A for ; Mon, 15 May 2017 23:02:26 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1494882102.cebd6e621cd2f98c9c1adedb6b509e76db8534e3.ulm@gentoo> Subject: [gentoo-commits] proj/pms:master commit in: / X-VCS-Repository: proj/pms X-VCS-Files: eapi-cheatsheet.tex pms.cls X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: cebd6e621cd2f98c9c1adedb6b509e76db8534e3 X-VCS-Branch: master Date: Mon, 15 May 2017 23:02:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1bc09033-fd17-498d-a03e-ae9204787e2a X-Archives-Hash: cb0747f057e034d82032edbf68d480e0 commit: cebd6e621cd2f98c9c1adedb6b509e76db8534e3 Author: Ulrich Müller gentoo org> AuthorDate: Sat May 13 09:31:36 2017 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Mon May 15 21:01:42 2017 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=cebd6e62 Require underscore.sty package. This permits hyphenation of words with underscores, so the custom code in pms.cls can be removed. Also simple _ acts like \_ in text mode. eapi-cheatsheet.tex | 1 + pms.cls | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/eapi-cheatsheet.tex b/eapi-cheatsheet.tex index 250df41..6ac72b9 100644 --- a/eapi-cheatsheet.tex +++ b/eapi-cheatsheet.tex @@ -12,6 +12,7 @@ } \usepackage[orig,english]{isodate} \usepackage[scaled=.90]{helvet} +\usepackage[nohyphen]{underscore} \newcommand{\code}[1]{\texttt{#1}} % This should reflect the latest approved EAPI version \newcommand{\version}{6.0} diff --git a/pms.cls b/pms.cls index 44d566c..2bd86d8 100644 --- a/pms.cls +++ b/pms.cls @@ -17,6 +17,7 @@ % Enable UTF-8 input encoding \PassOptionsToPackage{utf8}{inputenc} \PassOptionsToPackage{quiet}{marginnote} +\PassOptionsToPackage{nohyphen}{underscore} \PassOptionsToPackage{nottoc,notlot,notlof}{tocbibind} \PassOptionsToPackage{chapter}{algorithm} % algorithmic and algorithm to be loaded last to avoid failures @@ -33,6 +34,7 @@ marginnote, % Typeset a paragraph in the page margin paralist, % Additional list environments parskip, % Space between paragraphs instead of indentation + underscore, % Allow simple _ instead of \_ verbatim, % Extend the print-as-is functionality chngcntr, % Redefinition of counters tocbibind % Add bibliography to table of contents @@ -109,11 +111,6 @@ \newcommand{\e}[1]{\emph{#1}} \newcommand{\note}[1]{\paragraph{Note:} #1} -% Allow line breaks after underscores (but with a large penalty) -\newcommand{\origunderscore}{} -\let\origunderscore\_ -\renewcommand{\_}{\origunderscore\penalty500\hskip0pt} - % Because we are lazy, we define a table environment to fulfil our needs \newenvironment{centertable}[1]% {