Debian Codegraph @

texmf-dist/tex/latex/koma-script/visualize.lco

raw
1 %%
2 %% This is file `visualize.lco',
3 %% generated with the docstrip utility, extended by scrdocstrip.
4 %%
5 %% The original source files were:
6 %%
7 %% scrkernel-version.dtx (with options: `trace')
8 %% scrkernel-letterclassoptions.dtx (with options: `lco,visualize,head')
9 %% scrkernel-letterclassoptions.dtx (with options: `lco,visualize,body')
10 %% scrkernel-notepaper.dtx (with options: `lco,visualize,body')
11 %%
12 %% Copyright (c) 1994-2026 Markus Kohm [komascript at gmx info]
13 %%
14 %% This file was generated from file(s) of the KOMA-Script bundle.
15 %% ---------------------------------------------------------------
16 %%
17 %% It may be distributed under the conditions of the
18 %% LaTeX Project Public License in the version distributed together
19 %% with KOMA-Script, see file `lppl.txt' or `lppl-de.txt'.
20 %%
21 %% This file may only be distributed together with a copy of the
22 %% KOMA-Script bundle. You may however distribute the
23 %% KOMA-Script bundle without all such generated files. See also
24 %% `lppl.txt' or `lppl-de.txt' for additional information.
25 %%
26 %% The list of files belonging to KOMA-Script distribution is given in
27 %% the file `MANIFEST.md'. See also `lppl.txt' or `lppl-de.txt' for
28 %% additional information.
29 %%
30 %% If this file is a beta version, you may not be allowed to distribute
31 %% it. Look at the comments below to see if this is the case.
32 %%
33 %% English and German manuals are part of KOMA-Script bundle.
34 %% ----------------------------------------------------------
35 %%
36 %% See `README'.
37 %%
38 %% The KOMA-Script bundle (but maybe not this file) was based upon the
39 %% LaTeX 2.09 Script family created by Frank Neukam 1993 and the LaTeX2e
40 %% standard classes created by The LaTeX3 Project 1994-1996. You can
41 %% find a complete unmodified copy of LaTeX2e at
42 %% <http://mirror.ctan.org/tex-archive/macros/latex/base/>.
43 %%
44 %%% From File: $Id: scrkernel-version.dtx 4261 2026-02-02 09:02:14Z kohm $
45 \@CheckKOMAScriptVersion{2026/02/02 v3.49.2 KOMA-Script}%
46 %%% From File: $Id: scrkernel-letterclassoptions.dtx 4197 2025-08-15 09:13:30Z kohm $
47 %%% (run: head)
48 \ProvidesFile{%
49 visualize%
50 .lco}[\KOMAScriptVersion\space letter-class-option]
51 \providecommand*\LCOWarningNoLine[2]{%
52 \LCOWarning{#1}{#2\@gobble}%
53 }
54 \providecommand*\LCOWarning[2]{%
55 \GenericWarning{%
56 (#1)\@spaces\@spaces\@spaces\@spaces\@spaces\@spaces\@spaces\@spaces
57 }{%
58 Letter configuration option #1 Warning: #2%
59 }%
60 }
61 %%% From File: $Id: scrkernel-letterclassoptions.dtx 4197 2025-08-15 09:13:30Z kohm $
62 %%% (run: body)
63 \RequirePackage{eso-pic}
64 \newcommand*{\showfields}[1]{%
65 \AtBeginLetter{%
66 \begingroup
67 \@for \@tempa:=#1\do{%
68 \scr@trim@spaces\@tempa
69 \ifx\@tempa\@empty\else
70 \@ifundefined{showfield@\@tempa}{%
71 \LCOWarning{visualize}{Unknown field `\@tempa' ignored}%
72 }{%
73 \edef\@tempa{%
74 \noexpand\AddToShipoutPicture*{%
75 \noexpand\AtPageUpperLeft{%
76 \noexpand\usekomafont{field}%
77 \noexpand\@nameuse{showfield@\@tempa}%
78 }%
79 }%
80 }\@tempa
81 }%
82 \fi
83 }%
84 \endgroup
85 }%
86 }
87 \newkomafont{field}{\normalcolor}
88 \newcommand*{\showfield@by@frame}[4]{%
89 \thinlines
90 \ifdim #4<\z@
91 \put(\LenToUnit{#1},-\LenToUnit{#2}){\line(1,0){\LenToUnit{#3}}}%
92 \setlength{\@tempdima}{\dimexpr #1+#3\relax}%
93 \setlength{\@tempdimb}{#4}
94 \put(\LenToUnit{#1},-\LenToUnit{#2}){%
95 \vector(0,-1){\LenToUnit{-\@tempdimb}}}%
96 \put(\LenToUnit\@tempdima,-\LenToUnit{#2}){%
97 \vector(0,-1){\LenToUnit{-\@tempdimb}}}%
98 \else
99 \put(\LenToUnit{#1},-\LenToUnit{#2}){\line(1,0){\LenToUnit{#3}}}%
100 \put(\LenToUnit{#1},-\LenToUnit{#2}){\line(0,-1){\LenToUnit{#4}}}%
101 \setlength{\@tempdima}{\dimexpr #1+#3\relax}%
102 \setlength{\@tempdimb}{\dimexpr #2+#4\relax}%
103 \put(\LenToUnit\@tempdima,\LenToUnit{-\@tempdimb}){%
104 \line(-1,0){\LenToUnit{#3}}}%
105 \put(\LenToUnit\@tempdima,\LenToUnit{-\@tempdimb}){%
106 \line(0,1){\LenToUnit{#4}}}%
107 \fi
108 }
109 \newcommand*{\showfield@by@edges}[4]{%
110 \thinlines
111 \setlength{\@tempdima}{\dimexpr #1+#3\relax}%
112 \put(\LenToUnit{#1},-\LenToUnit{#2}){\line(1,0){\LenToUnit{\edgesize}}}%
113 \put(\LenToUnit{#1},-\LenToUnit{#2}){\line(0,-1){\LenToUnit{\edgesize}}}%
114 \put(\LenToUnit{\@tempdima},-\LenToUnit{#2}){\line(-1,0){\LenToUnit{\edgesize}}}%
115 \put(\LenToUnit{\@tempdima},-\LenToUnit{#2}){\line(0,-1){\LenToUnit{\edgesize}}}%
116 \ifdim #4<\z@\else
117 \setlength{\@tempdimb}{\dimexpr #2+#4\relax}%
118 \put(\LenToUnit{#1},-\LenToUnit{\@tempdimb}){\line(1,0){\LenToUnit{\edgesize}}}%
119 \put(\LenToUnit{#1},-\LenToUnit{\@tempdimb}){\line(0,1){\LenToUnit{\edgesize}}}%
120 \put(\LenToUnit{\@tempdima},-\LenToUnit{\@tempdimb}){\line(-1,0){\LenToUnit{\edgesize}}}%
121 \put(\LenToUnit{\@tempdima},-\LenToUnit{\@tempdimb}){\line(0,1){\LenToUnit{\edgesize}}}%
122 \fi
123 }
124 \newcommand*{\edgesize}{1ex}
125 \newcommand*{\showfield@by@rule}[4]{%
126 \ifdim #4<\z@
127 \put(\LenToUnit{#1},-\LenToUnit{#2}){\rule[#4]{#3}{-#4}}%
128 \else
129 \put(\LenToUnit{#1},-\LenToUnit{#2}){\rule[-#4]{#3}{#4}}%
130 \fi
131 }
132 \newcommand*{\showfield}{}
133 \let\showfield\showfield@by@frame
134 \newcommand*{\setshowstyle}[1]{%
135 \@ifundefined{showfield@by@#1}{%
136 \LCOWarning{visualize}{Unknown show type `#1'.\MessageBreak
137 You should simply set one of the supported\MessageBreak
138 show types `frame', `edges', `rule'.\MessageBreak
139 Style `frame' will be used instead}%
140 \let\showfield\showfield@by@frame
141 }{%
142 \expandafter\let\expandafter\showfield\csname showfield@by@#1\endcsname
143 }%
144 }
145 \newcommand*{\showfield@test}{%
146 \showfield{1cm}{1cm}{10cm}{15cm}%
147 }
148 \newcommand*{\showfield@head}{%
149 \ifdim\useplength{firstheadhpos}<\paperwidth
150 \ifdim \useplength{firstheadhpos}>-\paperwidth
151 \ifdim \useplength{firstheadhpos}<\z@
152 \setlength\@tempskipa{\paperwidth}%
153 \addtolengthplength{\@tempskipa}{firstheadhpos}%
154 \addtolengthplength[-]{\@tempskipa}{firstheadwidth}%
155 \else
156 \setlength{\@tempskipa}{\useplength{firstheadhpos}}%
157 \fi
158 \else
159 \setlength\@tempskipa{\oddsidemargin}%
160 \addtolength\@tempskipa{1in}%
161 \fi
162 \else
163 \setlength\@tempskipa{.5\paperwidth}%
164 \addtolengthplength[-.5]{\@tempskipa}{firstheadwidth}%
165 \fi
166 \showfield{\@tempskipa}%
167 {\useplength{firstheadvpos}}%
168 {\useplength{firstheadwidth}}%
169 {-\headheight}%
170 }
171 \newcommand*{\showfield@foot}{%
172 \ifdim\useplength{firstfoothpos}<\paperwidth
173 \ifdim \useplength{firstfoothpos}>-\paperwidth
174 \ifdim \useplength{firstfoothpos}<\z@
175 \setlength\@tempskipa{\paperwidth}%
176 \addtolengthplength{\@tempskipa}{firstfoothpos}%
177 \addtolengthplength[-]{\@tempskipa}{firstfootwidth}%
178 \else
179 \setlength{\@tempskipa}{\useplength{firstfoothpos}}%
180 \fi
181 \else
182 \setlength\@tempskipa{\oddsidemargin}%
183 \addtolength\@tempskipa{1in}%
184 \fi
185 \else
186 \setlength\@tempskipa{.5\paperwidth}%
187 \addtolengthplength[-.5]{\@tempskipa}{firstfootwidth}%
188 \fi
189 \showfield{\@tempskipa}%
190 {\useplength{firstfootvpos}}%
191 {\useplength{firstfootwidth}}%
192 {-\baselineskip}%
193 }
194 \newcommand*{\showfield@address}{%
195 \setlengthtoplength{\@tempskipa}{toaddrhpos}%
196 \ifdim \@tempskipa<\z@
197 \addtolength{\@tempskipa}{\paperwidth}%
198 \addtolengthplength[-]{\@tempskipa}{toaddrwidth}%
199 \fi
200 \showfield{\@tempskipa}{\useplength{toaddrvpos}}%
201 {\useplength{toaddrwidth}}%
202 {\dimexpr\useplength{toaddrheight}\relax}%
203 }
204 \newcommand*{\showfield@location}{%
205 \begingroup
206 \ifdim \useplength{locwidth}=\z@%
207 \setplength{locwidth}{\paperwidth}%
208 \ifdim \useplength{toaddrhpos}>\z@
209 \addtoplength[-2]{locwidth}{\useplength{toaddrhpos}}%
210 \else
211 \addtoplength[2]{locwidth}{\useplength{toaddrhpos}}%
212 \fi
213 \addtoplength[-1]{locwidth}{\useplength{toaddrwidth}}%
214 \if@bigloc%
215 \setplength[.66667]{locwidth}{\useplength{locwidth}}%
216 \else%
217 \setplength[.5]{locwidth}{\useplength{locwidth}}%
218 \fi%
219 \fi%
220 \ifdim \useplength{lochpos}=\z@%
221 \setplength{lochpos}{\useplength{toaddrhpos}}%
222 \fi
223 \ifdim \useplength{locvpos}=\z@%
224 \setplength{locvpos}{\useplength{toaddrvpos}}%
225 \fi
226 \ifdim \useplength{locheight}=\z@%
227 \setplength{locheight}{\useplength{toaddrheight}}%
228 \fi
229 \setlengthtoplength[-]{\@tempskipa}{lochpos}%
230 \ifdim \@tempskipa<\z@
231 \addtolength{\@tempskipa}{\paperwidth}%
232 \else
233 \addtolengthplength{\@tempskipa}{locwidth}%
234 \fi
235 \addtolengthplength[-]{\@tempskipa}{locwidth}%
236 \showfield{\@tempskipa}{\useplength{locvpos}}%
237 {\useplength{locwidth}}{\useplength{locheight}}%
238 \endgroup
239 }
240 \newcommand*{\showfield@refline}{%
241 \begingroup
242 \ifdim\useplength{refwidth}=\z@
243 \if@refwide
244 \setplength{refwidth}{\paperwidth}%
245 \ifdim \useplength{toaddrhpos}>\z@
246 \setplength{refhpos}{\useplength{toaddrhpos}}%
247 \else
248 \setplength[-]{refhpos}{\useplength{toaddrhpos}}%
249 \fi
250 \addtoplength[-2]{refwidth}{\useplength{refhpos}}%
251 \else
252 \setplength{refwidth}{\textwidth}%
253 \setplength{refhpos}{\oddsidemargin}%
254 \addtoplength{refhpos}{1in}%
255 \fi
256 \else\ifdim\useplength{refhpos}=\z@
257 \begingroup
258 \setlength\@tempdima{\textwidth}%
259 \addtolengthplength[-]{\@tempdima}{refwidth}%
260 \setlength\@tempdimb{\oddsidemargin}%
261 \addtolength\@tempdimb{1in}%
262 \setlength{\@tempdimc}{\paperwidth}%
263 \addtolength{\@tempdimc}{-\textwidth}%
264 \divide\@tempdimb by 32768\relax
265 \divide\@tempdimc by 32768\relax
266 \ifdim\@tempdimc=\z@\else
267 \multiply\@tempdima by\@tempdimb
268 \divide\@tempdima by\@tempdimc
269 \fi
270 \edef\@tempa{\noexpand\endgroup
271 \noexpand\setplength{refhpos}{\the\@tempdima}}%
272 \@tempa
273 \fi\fi
274 \showfield{\useplength{refhpos}}{\useplength{refvpos}}%
275 {\useplength{refwidth}}{-1.5\baselineskip}%
276 \endgroup
277 }
278 \RequirePackage{graphicx}
279 \newcommand*{\showenvelope}{}
280 \newcommand*{\@@showenvelope}{}
281 \newcommand*{\@@@showenvelope}{}
282 \def\showenvelope(#1,#2){%
283 \kernel@ifnextchar (%)
284 {\@showenvelope({#1},{#2})}%
285 {\@@@showenvelope({#1},{#2})}%
286 }
287 \def\@@@showenvelope(#1,#2){%
288 \begingroup
289 \def\@tempa{\endgroup}%
290 \ifdim \paperwidth>#1\relax
291 \LCOWarning{visualize}{%
292 \string\paperwidth\space > envelope width not supported}%
293 \else
294 \ifdim \paperheight>#2\relax
295 \ifdim .5\paperheight>#2\relax
296 \expandafter\ifdim \useplength{tfoldmarkvpos}>#2\relax
297 \LCOWarning{visualize}{%
298 tfoldmarkvpos > envelope height not supported}%
299 \else
300 \def\@tempa{\endgroup
301 \@showenvelope({#1},{#2})%
302 ({\dimexpr (#1-\paperwidth)/2\relax},%
303 {\dimexpr (#2-\expandafter\dimexpr
304 \useplength{tfoldmarkvpos}\relax)%
305 /2\relax})%
306 }%
307 \fi
308 \else
309 \def\@tempa{\endgroup
310 \@showenvelope({#1},{#2})%
311 ({\dimexpr (#1-\paperwidth)/2\relax},%
312 {\dimexpr (#2-.5\paperheight)/2\relax})%
313 }%
314 \fi
315 \else
316 \def\@tempa{\endgroup
317 \@showenvelope({#1},{#2})%
318 ({\dimexpr (#1-\paperwidth)/2\relax},%
319 {\dimexpr (#2-\paperheight)/2\relax})%
320 }%
321 \fi
322 \fi
323 \@tempa
324 }
325 \def\@showenvelope(#1,#2)(#3,#4){%
326 \kernel@ifnextchar [%]
327 {\@@showenvelope({#1},{#2})({#3},{#4})}%
328 {\@@showenvelope({#1},{#2})({#3},{#4})[]}%
329 }
330 \def\@@showenvelope(#1,#2)(#3,#4)[#5]{%
331 \newpage
332 \vspace*{\fill}
333 \rotatebox{90}{%
334 \begin{picture}(0,0)
335 \begin{picture}(\LenToUnit{#1},\LenToUnit{#2})(0,\LenToUnit{#2})
336 \newcommand*{\PlusHOffset}[1]{%
337 \dimexpr \expandafter\dimexpr ##1\relax + #3\relax
338 }%
339 \newcommand*{\MinusHOffset}[1]{%
340 \dimexpr \expandafter\dimexpr ##1\relax - #3\relax
341 }%
342 \newcommand*{\PlusVOffset}[1]{%
343 \dimexpr \expandafter\dimexpr ##1\relax + #4\relax
344 }%
345 \newcommand*{\MinusVOffset}[1]{%
346 \dimexpr \expandafter\dimexpr ##1\relax - #4\relax
347 }%
348 \newcommand{\AtEnvelopeUpperLeft}[1]{%
349 \put(\LenToUnit{\PlusHOffset\z@},\LenToUnit{\MinusVOffset{#2}}){##1}%
350 }%
351 \newcommand{\AtEnvelopeLowerLeft}[1]{%
352 \put(\LenToUnit{\PlusHOffset\z@},\LenToUnit{\PlusVOffset\z@}){##1}%
353 }%
354 \newcommand{\AtEnvelopeUpperRight}[1]{%
355 \put(\LenToUnit{\MinusHOffset{#1}},\LenToUnit{\MinusVOffset{#2}}){##1}%
356 }%
357 \newcommand{\AtEnvelopeLowerRight}[1]{%
358 \put(\LenToUnit{\MinusHOffset{#1}},\LenToUnit{\PlusVOffset\z@}){##1}%
359 }%
360 \newcommand*{\measuredIFrame}{}%
361 \def\measuredIFrame(##1,##2)(##3,##4){%
362 \put(\LenToUnit{##1},\LenToUnit{##2}){%
363 \measuredFrameLB({##3},{##4})%
364 }%
365 \put(\LenToUnit{\MinusHOffset\z@},%
366 \LenToUnit{\dimexpr ##2-.5mm\relax}){%
367 \measureLineHB{\PlusHOffset{##1}}%
368 }%
369 \put(\LenToUnit{\dimexpr ##1+##3\relax},%
370 \LenToUnit{\dimexpr ##2-.5mm\relax}){%
371 \measureLineHB{\dimexpr #1-%
372 \PlusHOffset{\dimexpr ##1+##3\relax}\relax}%
373 }%
374 \put(\LenToUnit{\dimexpr ##1-.5mm\relax},%
375 \LenToUnit{\dimexpr ##2+##4\relax}){%
376 \measureLineVL{\PlusVOffset{\dimexpr -##2-##4\relax}}%
377 }%
378 \put(\LenToUnit{\dimexpr ##1-.5mm\relax},%
379 \LenToUnit{\PlusVOffset{-#2}}){%
380 \measureLineVL{\dimexpr #2-%
381 \PlusVOffset{\dimexpr -##2\relax}\relax}%
382 }%
383 }%
384 \put(0,0){%
385 \thicklines
386 \usekomafont{envelope}%
387 \measuredFrameLB({#1},{#2})%
388 }%
389 \AtEnvelopeLowerLeft{%
390 \usekomafont{letter}%
391 \dashbox{\LenToUnit{1mm}}%
392 (\LenToUnit{\MinusHOffset{\MinusHOffset{#1}}},%
393 \LenToUnit{\MinusVOffset{\MinusVOffset{#2}}}){}%
394 }%
395 \expandafter\ifdim \useplength{toaddrhpos}<\z@
396 \AtEnvelopeUpperLeft{%
397 \thicklines
398 \usekomafont{envelope}%
399 \measuredIFrame(\expandafter\dimexpr \useplength{toaddrhpos}+
400 \MinusHOffset{\MinusHOffset{#1}}\relax,%
401 -\dimexpr %
402 \expandafter\dimexpr\useplength{toaddrvpos}\relax
403 +
404 \expandafter
405 \dimexpr\useplength{toaddrheight}\relax
406 \relax)%
407 (\useplength{toaddrwidth},\useplength{toaddrheight})%
408 }%
409 \else
410 \AtEnvelopeUpperLeft{%
411 \thicklines
412 \usekomafont{envelope}%
413 \measuredIFrame(\useplength{toaddrhpos},%
414 -\dimexpr %
415 \expandafter\dimexpr\useplength{toaddrvpos}\relax
416 +
417 \expandafter
418 \dimexpr\useplength{toaddrheight}\relax
419 \relax)%
420 (\useplength{toaddrwidth},\useplength{toaddrheight})%
421 }%
422 \fi
423 \AtEnvelopeUpperLeft{#5}%
424 \end{picture}
425 \end{picture}
426 }%
427 \newpage
428 }
429 \newkomafont{envelope}{\normalcolor}
430 \newkomafont{letter}{\normalcolor}
431 \newcommand*{\unmeasuredFrame}{}
432 \def\unmeasuredFrame(#1,#2){%
433 \put(0,0){\line(1,0){\LenToUnit{#1}}}%
434 \put(\LenToUnit{#1},0){\line(0,1){\LenToUnit{#2}}}%
435 \put(\LenToUnit{#1},\LenToUnit{#2}){\line(-1,0){\LenToUnit{#1}}}%
436 \put(0,\LenToUnit{#2}){\line(0,-1){\LenToUnit{#2}}}%
437 }
438 \newcommand*{\measuredFrameLB}{}
439 \def\measuredFrameLB(#1,#2){%
440 \unmeasuredFrame({#1},{#2})%
441 \put(\LenToUnit{-.5mm},0){\measureLineVL{#2}}%
442 \put(0,\LenToUnit{-.5mm}){\measureLineHB{#1}}%
443 }
444 \newcommand*{\measuredFrameLT}{}
445 \def\measuredFrameLT(#1,#2){%
446 \unmeasuredFrame({#1},{#2})%
447 \put(\LenToUnit{-.5mm},0){\measureLineVL{#2}}%
448 \put(0,\LenToUnit{\expandafter\dimexpr #2+.5mm\relax}){\measureLineHT{#1}}%
449 }
450 \newcommand*{\measuredFrameRB}{}
451 \def\measuredFrameRB(#1,#2){%
452 \unmeasuredFrame({#1},{#2})%
453 \put(\LenToUnit{\expandafter\dimexpr #1+.5mm\relax},0){\measureLineVR{#2}}%
454 \put(0,\LenToUnit{-.5mm}){\measureLineHB{#1}}%
455 }
456 \newcommand*{\measuredFrameRT}{}
457 \def\measuredFrameRT(#1,#2){%
458 \unmeasuredFrame({#1},{#2})%
459 \put(\LenToUnit{\expandafter\dimexpr #1+.5mm\relax},0){\measureLineVR{#2}}%
460 \put(0,\LenToUnit{\expandafter\dimexpr #2+.5mm\relax}){\measureLineHT{#1}}%
461 }
462 \newcommand*{\measureLineV}[1]{%
463 \begin{picture}(0,0)
464 \thinlines
465 \usekomafont{measure}%
466 \put(0,0){\vector(0,1){\LenToUnit{#1}}}%
467 \put(0,\LenToUnit{#1}){\vector(0,-1){\LenToUnit{#1}}}%
468 \end{picture}
469 }
470 \newcommand*{\measureLineVL}[1]{%
471 \begin{picture}(0,0)
472 \usekomafont{measure}%
473 \put(0,0){\measureLineV{#1}}%
474 \put(0,0){\makebox(0,\LenToUnit{#1})[r]{\ValPerUnit{#1}}}%
475 \end{picture}
476 }
477 \newcommand*{\measureLineVR}[1]{%
478 \begin{picture}(0,0)
479 \usekomafont{measure}%
480 \put(0,0){\measureLineV{#1}}%
481 \put(0,0){\makebox(0,\LenToUnit{#1})[l]{\ValPerUnit{#1}}}%
482 \end{picture}
483 }
484 \newcommand*{\ValPerUnit}[1]{%
485 \begingroup
486 \setlength{\@tempdima}{%
487 \dimexpr #1/(\unitlength/\unitfactor)*\p@/\unitfactor\relax
488 }%
489 \strip@pt\@tempdima
490 \endgroup
491 }
492 \newcommand*{\unitfactor}{1}
493 \newcommand*{\measureLineH}[1]{%
494 \begin{picture}(0,0)
495 \usekomafont{measure}%
496 \put(0,0){\vector(1,0){\LenToUnit{#1}}}%
497 \put(\LenToUnit{#1},0){\vector(-1,0){\LenToUnit{#1}}}%
498 \end{picture}
499 }
500 \newcommand*{\measureLineHB}[1]{%
501 \begin{picture}(0,0)
502 \usekomafont{measure}%
503 \put(0,0){\measureLineH{#1}}%
504 \put(0,\LenToUnit{\dimexpr -\ht\strutbox-.5mm\relax}){%
505 \makebox(\LenToUnit{#1},\LenToUnit{\baselineskip})[c]{\ValPerUnit{#1}}}%
506 \end{picture}
507 }
508 \newcommand*{\measureLineHT}[1]{%
509 \begin{picture}(0,0)
510 \usekomafont{measure}%
511 \put(0,0){\measureLineH{#1}}%
512 \put(0,0){%
513 \makebox(\LenToUnit{#1},\LenToUnit{\baselineskip})[c]{\ValPerUnit{#1}}}%
514 \end{picture}
515 }
516 \newkomafont{measure}{\normalcolor}
517 \newcommand*{\showISOenvelope}[1]{%
518 \Ifstr{#1}{C4}{%
519 \showenvelope(324mm,229mm)%
520 }{%
521 \Ifstr{#1}{C5}{%
522 \showenvelope(229mm,162mm)%
523 }{%
524 \Ifstr{#1}{C5/6}{%
525 \showenvelope(220mm,110mm)%
526 }{%
527 \Ifstr{#1}{DL}{%
528 \showenvelope(220mm,110mm)%
529 }{%
530 \Ifstr{#1}{C6/5}{%
531 \showenvelope(229mm,114mm)%
532 }{%
533 \Ifstr{#1}{C6}{%
534 \showenvelope(162mm,114mm)%
535 }{%
536 \LCOWarning{visualize}{envelope size `ISO #1' unsupported}%
537 }%
538 }%
539 }%
540 }%
541 }%
542 }%
543 }
544 \newcommand*{\showUScommercial}[1]{%
545 \Ifstr{#1}{9}{%
546 \showenvelope(8.875in,3.875in)%
547 }{%
548 \Ifstr{#1}{10}{%
549 \showenvelope(9.5in,4.125in)%
550 }{%
551 \LCOWarning{visualize}{envelope size `US commercial #1' unsupported}%
552 }%
553 }%
554 }
555 \newcommand*{\showUScheck}{%
556 \showenvelope(8.625in,3.625in)%
557 }
558 %%% From File: $Id: scrkernel-notepaper.dtx 4220 2025-09-05 12:10:03Z kohm $
559 %%% (run: body)
560 \endinput
561 %%
562 %% End of file `visualize.lco'.