projects
/
latex-mlastyle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6ffb74f
)
Fixed nested underlining
author
Tim Pope
<code@tpope.net>
Sat, 15 Nov 2003 21:51:07 +0000
(21:51 +0000)
committer
Tim Pope
<code@tpope.net>
Sat, 15 Nov 2003 21:51:07 +0000
(21:51 +0000)
mlastyle.dtx
patch
|
blob
|
history
diff --git
a/mlastyle.dtx
b/mlastyle.dtx
index 537c8477616b5d7dec63b3d8f73bbc36e0633aad..d70be821ebcb279f81b6b69bb529b8e8f60ecb3c 100644
(file)
--- a/
mlastyle.dtx
+++ b/
mlastyle.dtx
@@
-24,10
+24,10
@@
\documentclass[draft]{ltxdoc}
\iftrue
\usepackage[compat]{mlastyle}
\documentclass[draft]{ltxdoc}
\iftrue
\usepackage[compat]{mlastyle}
- \addtolength{\headsep}{-
2
5pt}
- \addtolength{\headheight}{-12pt}
+ \addtolength{\headsep}{-5pt}
+
%
\addtolength{\headheight}{-12pt}
\addtolength{\topmargin}{-17pt}
\addtolength{\topmargin}{-17pt}
- \addtolength{\textheight}{
58
pt}
+ \addtolength{\textheight}{
22
pt}
\IfFileExists{ulem.sty}{\usepackage[normalem]{ulem}}{\let\uline\emph}
\else
\usepackage[mla]{mlastyle}
\IfFileExists{ulem.sty}{\usepackage[normalem]{ulem}}{\let\uline\emph}
\else
\usepackage[mla]{mlastyle}
@@
-514,12
+514,18
@@
\fi
\fi % \ifmlastyle@bibstyle
% \end{macrocode}
\fi
\fi % \ifmlastyle@bibstyle
% \end{macrocode}
+% \begin{macro}{\UL@onin}
% Load the \package{ulem} package if the \Lopt{underline} option is set.
% Load the \package{ulem} package if the \Lopt{underline} option is set.
+% By default, \package{ulem} does multiple underlining for nested
+% emphasis. This is changed to MLA-style behavior with the redefinition
+% of |\UL@onin|.
% \begin{macrocode}
\ifmlastyle@underline
\RequirePackage{ulem}
% \begin{macrocode}
\ifmlastyle@underline
\RequirePackage{ulem}
+ \def\UL@onin#1{\egroup\UL@stop#1\UL@start}
\fi % \ifmlastyle@underline
% \end{macrocode}
\fi % \ifmlastyle@underline
% \end{macrocode}
+% \end{macro}
% Load the \package{times} package if the \Lopt{times} option is set.
% \begin{macrocode}
\ifmlastyle@times
% Load the \package{times} package if the \Lopt{times} option is set.
% \begin{macrocode}
\ifmlastyle@times