Navigation Menu

Skip to content

Commit

Permalink
* Changed \newcommand to \providecommand for \nohyphens (in case another
Browse files Browse the repository at this point in the history
  package defines the command without using the hyphenat package).


git-svn-id: https://tufte-latex.googlecode.com/svn/trunk@174 516e2f36-ce3a-0410-bea4-1d4a03f5df72
  • Loading branch information
godbyk committed Aug 16, 2011
1 parent 9460b67 commit 5693d34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tufte-common.def
Expand Up @@ -1758,8 +1758,8 @@
\AtBeginDocument{%
\@ifpackageloaded{hyphenat}{}{%
\newlanguage\langwohyphens% define a language without hyphenation rules
\newcommand{\nohyphens}[1]{{\language\langwohyphens #1}}% used for short bits of text
\newcommand{\nohyphenation}{\language\langwohyphens}% can be used inside environments for longer text
\providecommand{\nohyphens}[1]{{\language\langwohyphens #1}}% used for short bits of text
\providecommand{\nohyphenation}{\language\langwohyphens}% can be used inside environments for longer text
}%
}

Expand Down

0 comments on commit 5693d34

Please sign in to comment.