X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=include%2Fm4%2Faple.m4;h=7b23385d22705cc3931e1b5423fab92b1fefb098;hb=HEAD;hp=bcf5b93d57c77921a005f79ddc60fa70e2126524;hpb=1c808a8091f078b71884cf58c8006abfd61a7dba;p=aple.git
diff --git a/include/m4/aple.m4 b/include/m4/aple.m4
index bcf5b93..7b23385 100644
--- a/include/m4/aple.m4
+++ b/include/m4/aple.m4
@@ -13,22 +13,18 @@ define(«REFERENCE», [«REMOVE_NEWLINE(«$2»)»](««#»»«LOCAL_LINK_NAME(«
define(«XREFERENCE», «[$2]»«($1)»)
define(«EMPH», ««_»REMOVE_NEWLINE(«$1»)«_»»)
define(«CMD», «`REMOVE_NEWLINE(«$1»)`»)
-define(«SECTION», «
-divert(«0»)
-
-$1
+
+
+ ifelse(«$2», «», «Overview», «$2»)
+
+ $1
»)
define(«EXERCISES», «
Exercises
»)
@@ -49,7 +45,7 @@ define(«TOC_ENTRY», «
ifelse(«$1.m4», «$2», «», «»)
»)
-define(«LOGO», «
»)
+define(«LOGO», «
»)
define(«HEADER», «
@@ -63,7 +59,7 @@ define(«HEADER», «
LOGO() |
-
+
ifelse(«$3», «», «
substr(translit(«$2», «_», « »), 0, index(«$2», .m4))
», «
@@ -75,9 +71,27 @@ define(«HEADER», «
»)
+define(«TABLE_OF_CONTENTS», «
+ TOC_ENTRY(«Introduction», «$2»)
+ TOC_ENTRY(«Unix_Concepts», «$2»)
+ ifelse(PUBLIC(), «false», «
+ TOC_ENTRY(Command_Line_Utilities, «$2»)
+ »)
+ TOC_ENTRY(Networking, «$2»)
+ TOC_ENTRY(LVM, «$2»)
+ TOC_ENTRY(«Filesystems», «$2»)
+ TOC_ENTRY(OS-Level_Virtualization, «$2»)
+ ifelse(PUBLIC(), «false», «
+ TOC_ENTRY(Gridengine, «$2»)
+ TOC_ENTRY(Git, «$2»)
+ TOC_ENTRY(Bash, «$2»)
+ TOC_ENTRY(Debugging, «$2»)
+ »)
+»)
+
define(«TITLE», «
HEADER(«$1», «$2», «$3»)
-
+
-
- Chapter
-
- - TOC_ENTRY(«Introduction», «$2»)
- - TOC_ENTRY(«Unix_Concepts», «$2»)
- ifelse(PUBLIC(), «false», «
- - TOC_ENTRY(Command_Line_Utilities, «$2»)
- »)
- - TOC_ENTRY(Networking, «$2»)
- - TOC_ENTRY(LVM, «$2»)
- - TOC_ENTRY(«Filesystems», «$2»)
- - TOC_ENTRY(OS-Level_Virtualization, «$2»)
- ifelse(PUBLIC(), «false», «
- - TOC_ENTRY(Gridengine, «$2»)
- - TOC_ENTRY(Git, «$2»)
- - TOC_ENTRY(Bash, «$2»)
- - TOC_ENTRY(Debugging, «$2»)
- »)
-
- Section
-
divert(«2»)
| |