Debian Codegraph @

texmf-dist/doc/latex/scrhack/README.md

raw
1 # Package `scrhack`
2
3 Copyright © 2008–2024 Markus Kohm
4
5 Release: 2024-09-04 v3.42
6
7 License: LPPL 1.3c
8
9 KOMA presents the compatibility package to emulate the former
10 [KOMA-Script](https://www.ctan.org/pkg/koma-script) package `scrhack` as part
11 of the *third-party enhancements* project.
12
13 ------------------------------------------------------------------------------
14
15 This work may be distributed and/or modified under the conditions of
16 the LaTeX Project Public License, version 1.3c of the license.
17 The latest version of this license is in
18 http://www.latex-project.org/lppl.txt
19 and version 1.3c or later is part of all distributions of LaTeX
20 version 2005/12/01 or later.
21
22 This work has the LPPL maintenance status "maintained".
23
24 The Current Maintainer and author of this work is Markus Kohm.
25
26 ------------------------------------------------------------------------------
27
28 # Abstract
29
30 For several years
31 [KOMA-Script](https://www.sourceforge.net/project/koma-script) provided a
32 package `scrhack`, that has been made not only to improve the compatibility of
33 third-party packages with [KOMA-Script](https://www.ctan.org/pkg/koma-script)
34 classes, but also to generally improve third-party packages. The package
35 consisted not only in the package file `scrhack.sty` but also in several so
36 called hacks as separate files with extension `.hak`. In the course of
37 splitting off former [KOMA-Script](https://www.ctan.org/pkg/koma-script)
38 packages from the [KOMA-Script](https://www.ctan.org/pkg/koma-script)
39 collection, it was decided to create independent packages from the individual
40 hacks. These new independent packages then serve as replacements for the
41 original packages they were intended to improve. In addition, to preserve the
42 functionality of loading the enhancements only when the corresponding original
43 package is loaded, a new `scrhack` was created to do just that.
44
45 # Installation for Users
46
47 If you are a user, you should wait until all the packages of the third-party
48 enhancement project have been added to your preferred TeX distribution. Then
49 you can use the package manager of your TeX distribution to install all the
50 packages at once.
51
52 Note: If you have installed a
53 [KOMA-Script](https://www.ctan.org/pkg/koma-script) before version 3.42,
54 you should also update
55 [KOMA-Script](https://www.ctan.org/pkg/koma-script) using the package
56 manager of your TeX distribution as soon as such an update is
57 availiabe. Otherwise it could happen, that the old integrated `scrhack`
58 of [KOMA-Script](https://www.ctan.org/pkg/koma-script) is used instead
59 of the new installed version. On the one hand, KOMA-Script 3.41 works
60 with both the integrated `scrhack` and the new standalone `scrhack`. On
61 the other hand, KOMA-Script from version 3.42 does not provide an
62 integrated `scrhack`. So installing the new standalone `scrhack` before
63 or at least with KOMA-Script version 3.42 is the best option.
64
65 # Unpacking for Distributors
66
67 Distributors should download [the distribution from
68 CTAN](https://www.ctan.org/pkg/scrhack). This consists in:
69
70 * `scrhack.dtx`
71 * `scrhack-2023-07-07.dtx`
72 * `README.md`
73 * `LICENSE.md`
74 * `scrhack.pdf`
75 * `scrhack-2023-07-07.pdf`
76
77 If distributors also want to distribute `scrhack.sty`,
78 `scrhack-2023-07-07.sty`, `float.hak`, `floatrow.hak`, `hyperref.hak`,
79 `listings.hak`, `lscape.hak`, `nomencl.hak`, `setspace.hak`, and
80 `standardsectioning.hak` they can unpack these using:
81
82 tex scrhack.dtx
83 tex scrhack-2023-07-07.dtx
84
85 Note, that you have to use `tex` not `latex`, `pdflatex`, `xelatex` or
86 `lualatex`!
87
88 Note also, that a legal distribution consists at least in:
89
90 * `scrhack.dtx`
91 * `scrhack-2023-07-07.dtx`
92 * `README.md`
93
94 The following files are optionally, but must not be distributed without the
95 previous ones:
96
97 * `LICENSE.md`
98 * `scrhack.sty`
99 * `scrhack.pdf`
100 * `scrhack-2023-07-07.sty`
101 * `scrhack-2023-07-07.pdf`
102 * `float.hak`
103 * `floatrow.hak`
104 * `hyperref.hak`
105 * `listings.hak`
106 * `lscape.hak`
107 * `nomencl.hak`
108 * `setspace.hak`
109 * `standardsectioning.hak`
110
111
112 # Unpacking and Installation for Developers
113
114 Developers who want the current developer version of the code to be installed
115 for testing, should clone [the `third-party-enhancements`
116 repository](https://github.com/komascript/third-party-enhancements), e.g.,
117 using
118
119 git clone https://github.com/komascript/third-party-enhancements.git
120
121 You can than either unpack and install all the third-party enhancements using:
122
123 l3build install --full
124
125 from within the main directory of the cloned respository. For installation of
126 `scrhack` only you could run the same command from within the
127 `scrhack` subdirectory. For installation without the manual omit
128 option `--full`, but this is not recommended for developers.
129
130 Note: Installation of `scrhack` does make sense only if all other packages of
131 the third-party enhancement project are also installed. The new
132 `scrhack` does not work without these packages.
133
134 Note: If you have already an installation of
135 [KOMA-Script](https://www.ctan.org/pkg/koma-script) before version 3.42
136 in the user's texmf tree (`TEXMFHOME`), kpathsearch will usually find
137 the old integrated version of `scrhack`. Therefore LaTeX also will use
138 that old integrated version of `scrhack`. To prioritize the new
139 standalone version of `scrhack`, you would either have to remove
140 [KOMA-Script](https://www.ctan.org/pkg/koma-script) from the user's
141 texmf tree or copy `scrhack.sty` to the working directory from within
142 you are running LaTeX. Instead of the
143 [KOMA-Script](https://www.ctan.org/pkg/koma-script) version before 3.42
144 you can, after removing that installation, also install a
145 [KOMA-Script](https://www.ctan.org/pkg/koma-script) version from 3.42,
146 e.g., [the current pre-release](https://komascript.de/current) or [the
147 developer version from
148 SourceForge](https://sourceforge.net/p/koma-script/code/HEAD/tree/trunk/).
149
150 # How to get the Manual
151
152 After installation you should get the user manual using:
153
154 texdoc scrhack
155
156 See the manual of your TeX distribution for more information.
157
158 Developers or distributors can also build the manual from the source using:
159
160 l3build doc
161
162 # How to Contribute
163
164 To become a contributor, e.g., do heavy testing. If you find an issue, please
165 report it using [the issue
166 tracker](https://github.com/komascript/third-party-enhancements/issues).
167
168 You can also become a developer and, e.g., make new test files to the
169 packages. See the [`l3build`](https://ctan.org/pkg/l3build) manual for more
170 information about tests. If you've created a new test and think that it would
171 be useful. Please either do a pull request or [add a new
172 issue](https://github.com/komascript/third-party-enhancements/issues/new/choose)
173 and include your test file.
174
175 Another kind of contribution would be to contact an author of one of the
176 third-party packages and convince her or him to integrate the code of the
177 corresponding enhancement package from this project into her or his package.
178
179 # How to Report Issues
180
181 If you think you have found a bug (or another kind of issue) using
182 `scrhack` you should use [the issue
183 tracker](https://github.com/komascript/third-party-enhancements/issues). Please
184 first search for similar issues already reported and maybe also already fixed
185 and closed. Maybe the replies to such a similar report would help you too.
186
187 If your issue is new, you should report it also using [the issue
188 tracker](https://github.com/komascript/third-party-enhancements/issues). Please
189 be kind, not only when writing the report but also when reading replies and
190 commenting or answering. And please always add a minimal working example and
191 usually the relevant parts of the `log`-file to your report. Please use the
192 [markdown for
193 code](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks)
194 to add such files into the text of your report. The correct language
195 identifier for LaTeX code would be `latex`. For `log`-files you won't need any
196 language identifier. Usually you should not use attachments for code or
197 `log`-files unless you've been asked to do so. And please note, reports should
198 always be self-containing. External links often break and so the report become
199 useles.
200
201 # How to Say Thank You for my Work
202
203 Hey, I'm doing this as a hobby. So no need to say thank you. But I'm a vain
204 fop, so I'm certainly up for a quick thank you by email. On komascript.de you
205 can find an [explanation of my wishes](https://komascript.de/wunschliste) if
206 you want to give more. If you don't understand German, just click to links at
207 that page.