summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/koma-script/doc/english/scrhack.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/koma-script/doc/english/scrhack.tex')
-rw-r--r--Master/texmf-dist/source/latex/koma-script/doc/english/scrhack.tex55
1 files changed, 41 insertions, 14 deletions
diff --git a/Master/texmf-dist/source/latex/koma-script/doc/english/scrhack.tex b/Master/texmf-dist/source/latex/koma-script/doc/english/scrhack.tex
index db89c27a32c..58257bfec99 100644
--- a/Master/texmf-dist/source/latex/koma-script/doc/english/scrhack.tex
+++ b/Master/texmf-dist/source/latex/koma-script/doc/english/scrhack.tex
@@ -1,6 +1,6 @@
% ======================================================================
% scrhack.tex
-% Copyright (c) Markus Kohm, 2001-2013
+% Copyright (c) Markus Kohm, 2001-2015
%
% This file is part of the LaTeX2e KOMA-Script bundle.
%
@@ -18,7 +18,7 @@
% This work consists of all files listed in manifest.txt.
% ----------------------------------------------------------------------
% scrhack.tex
-% Copyright (c) Markus Kohm, 2001-2013
+% Copyright (c) Markus Kohm, 2001-2015
%
% Dieses Werk darf nach den Bedingungen der LaTeX Project Public Lizenz,
% Version 1.3c, verteilt und/oder veraendert werden.
@@ -46,23 +46,23 @@
% ============================================================================
\KOMAProvidesFile{scrhack.tex}
- [$Date: 2013-12-13 12:11:01 +0100 (Fri, 13 Dec 2013) $
+ [$Date: 2015-04-16 10:41:14 +0200 (Thu, 16 Apr 2015) $
KOMA-Script guide (chapter: scrhack)]
\translator{Markus Kohm}
-% Date of the translated German file: 2011/10/07
+% Date of the translated German file: 2015-04-16
\chapter{Hacks for Third-Party Packages by Package \Package{scrhack}}
\labelbase{scrhack}
\BeginIndex{Package}{scrhack}
-Some packages from other authors may have problems with \KOMAScript{}. In my
+Some packages from other authors could have problems with \KOMAScript{}. In my
opinion some packages could be improved. With some packages this makes only
sense, if \KOMAScript{} was used. With some other packages the package author
has another opinion. Sometimes proposals was never answered. Package
\Package{scrhack} contains all those improvement proposals for other
packages. This means, \Package{scrhack} redefines macros of packages from
other authors! The redefinitions are only activated, if those packages were
-loaded. Users may prevent \Package{scrhack} from redefining macros of
+loaded. Users can prevent \Package{scrhack} from redefining macros of
individual packages.
\section{State of Development Note}
@@ -74,7 +74,7 @@ macros of foreign packages, it depend on the exact definition an usage of
those macros. This means additionally, that it depends on dedicated releases
of those packages. If a unknown release of such a package will be used,
\Package{scrhack} eventually could not do the needed patch. Contrary, in
-extreme cases the patch may cause errors and fault.
+extreme cases the patch can cause errors and fault.
So \Package{scrhack} has to be continuously modified to fit new releases of
foreign packages and will never be finished. Because of this \Package{scrhack}
@@ -84,7 +84,7 @@ benefit, the correct function could not be guaranteed forever.
\LoadCommon{0}
\section{Usage of \Package{tocbasic}}
-\label{sec:scrhack.improvement}
+\seclabel{improvement}
In the early days of \KOMAScript{} users asked for handling lists of floats,
that will be generated using package
@@ -104,7 +104,7 @@ development already, so nobody should expect furthor changes of this package.
Other package authors have also inherited these commands. Thereby it appeared,
that the implementation in some packages, even in package \Package{float},
will need a certain package loading order, though all these packages are not
-related to each other. Wrong loading order may result in an error or break the
+related to each other. Wrong loading order could result in an error or break the
functionality of the commands.
To clear all this disadvantages and problems, \KOMAScript{} officially does not
@@ -127,20 +127,47 @@ to make these packages recognize not only setting of \KOMAScript{} option
\Option{listof}\IndexOption{listof~=\PName{setting}}, but also language
switching of package \Package{babel}\IndexPackage{babel}. More information
about the features provided by the changeover to package \Package{tocbasic}
-may be found in \autoref{sec:tocbasic.toc}.
+can be found in \autoref{sec:tocbasic.toc}.
If the modification for any of the packages is not wanted or causes problems,
-then is may be deactivated selectively with option
+then is can be deactivated selectively with option
\OptionValue{float}{false}\IndexOption[indexmain]{float~=\PValue{false}},
\OptionValue{floatrow}{false}\IndexOption[indexmain]{floatrow~=\PValue{false}},
or
\OptionValue{listings}{false}\IndexOption[indexmain]{listings~=\PValue{false}}.
Please note\textnote{Attention!} that changing these options after loading the
-corresponding package would do it!
+corresponding package would not do it!
+
+
+\section{Incorrect Expectations to \Macro{@ptsize}}
+\seclabel{ptsize}
+
+Some packages always expect that the class-internal macro
+\Macro{@ptsize}\IndexCmd{@ptsize} is not only defined but also expands to an
+integer. For compatibility, \KOMAScript{} defines \Macro{@ptsize} even if the
+basic font size is neither 10\Unit{pt} nor 11\Unit{pt} nor
+12\Unit{pt}. \KOMAScript{} also provides non-integer font sizes. So
+\Macro{@ptsize} can expand to an non-integer number, too.
+
+Package \Package{setspace}\IndexPackage[indexmain]{setspace} is one of the
+packages that fail with non-integer number expansion of
+\Macro{@ptsize}. Additionally the line stretching of that package always
+depends on the basic font size even if setting is made in the context of
+another font size. Package \Package{scrhack} solves both problems by
+redefining \Macro{onehalfspacing} and \Macro{doublespacing} using always the
+current font size while setting the stretch.
+
+If the modification for the package is not wanted or causes problems,
+then is can be deactivated selectively with option
+\OptionValue{setspace}{false}\IndexOption[indexmain]{setspace~=\PValue{false}}.
+Please note\textnote{Attention!} that changing these option after loading
+\Package{setspace} would not do it! If you use \Package{setspace} with
+either option \Option{onehalfspacing} or \Option{doublespacing} you have to
+load \Package{scrhack} before it.
\section{Special Case \Package{hyperref}}
-\label{sec:scrhack.hyperref}
+\seclabel{hyperref}
Before version~6.79h package \Package{hyperref} set the link anchors after
instead of before the heading of star version commands like \Macro{part*},
@@ -148,7 +175,7 @@ instead of before the heading of star version commands like \Macro{part*},
the \KOMAScript{} author's suggestion. But because the \KOMAScript{} author
was not patient enough to wait more than a year for the change of
\Package{hyperref}, a corresponding patch has been added to
-\Package{scrhack}. This may be deactivated by
+\Package{scrhack}. This can be deactivated by
\OptionValue{hyperref}{false}. Nevertheless, it is recommended to use the
current \Package{hyperref} release. In this case \Package{scrhack} does
automatically deactivate the not longer needed patch.%