File: sectsty.sty.ltxml

package info (click to toggle)
latexml 0.8.8-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,920 kB
  • sloc: xml: 109,048; perl: 30,224; sh: 179; javascript: 28; makefile: 13
file content (52 lines) | stat: -rw-r--r-- 2,819 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*- mode: Perl -*-
# /=====================================================================\ #
# |  secsty                                                             | #
# | Implementation for LaTeXML                                          | #
# |=====================================================================| #
# | Part of LaTeXML:                                                    | #
# |  Public domain software, produced as part of work done by the       | #
# |  United States Government & not subject to copyright in the US.     | #
# |---------------------------------------------------------------------| #
# | Thanks to the arXMLiv group for initial implementation              | #
# |    http://arxmliv.kwarc.info/                                       | #
# | Released to the Public Domain                                       | #
# |---------------------------------------------------------------------| #
# | Bruce Miller <bruce.miller@nist.gov>                        #_#     | #
# | http://dlmf.nist.gov/LaTeXML/                              (o o)    | #
# \=========================================================ooo==U==ooo=/ #
package LaTeXML::Package::Pool;
use strict;
use warnings;
use LaTeXML::Package;

#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# The mechanism to use custom fonts in numbers & titles is already in place.
# Just use it...
DefMacro('\partfont{}',    '\gdef\format@title@font@part{#1}\gdef\fnum@font@part{#1}');
DefMacro('\chapterfont{}', '\gdef\format@title@font@chapter{#1}\gdef\fnum@font@chapter{#1}');
DefMacro('\sectionfont{}', '\gdef\format@title@font@section{#1}\gdef\fnum@font@section{#1}');
DefMacro('\subsectionfont{}', '\gdef\format@title@font@subsection{#1}\gdef\fnum@font@subsection{#1}');
DefMacro('\subsubsectionfont{}', '\gdef\format@title@font@subsubsection{#1}\gdef\fnum@font@subsubsection{#1}');
DefMacro('\paragraphfont{}', '\gdef\format@title@font@paragraph{#1}\gdef\fnum@font@paragraph{#1}');
DefMacro('\subparagraphfont{}', '\gdef\format@title@font@subparagraph{#1}\gdef\fnum@font@subparagraph{#1}');
DefMacro('\minisecfont{}', '\gdef\format@title@font@minisec{#1}\gdef\fnum@font@minisec{#1}');    # ?

DefMacro('\partnumberfont{}',    '\gdef\fnum@font@part{#1}');
DefMacro('\parttitlefont{}',     '\gdef\format@title@font@part{#1}');
DefMacro('\chapternumberfont{}', '\gdef\fnum@font@part{#1}');
DefMacro('\chaptertitlefont{}',  '\gdef\format@title@font@part{#1}');

DefMacro('\nohang', '');

DefMacro('\allsectionsfont{}',
  '\partfont{#1}'
    . '\chapterfont{#1}'
    . '\sectionfont{#1}'
    . '\subsectionfont{#1}'
    . '\subsubsectionfont{#1}'
    . '\paragraphfont{#1}'
    . '\subparagraphfont{#1}'
    . '\minisecfont{#1}');

#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1;