Skip to content

Commit 11bdbb9

Browse files
committed
fix (global.css/html./extra demo...)
1 parent f9bf8fb commit 11bdbb9

File tree

4 files changed

+111
-31
lines changed

4 files changed

+111
-31
lines changed

.ximera_local/xourse.cls

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -111,32 +111,18 @@
111111

112112
\ifonline
113113
\newcommand\chapter[1]{%
114-
\ifvmode \IgnorePar\fi \EndP\HCode{<a class="activity card chapterstyle" data-options="#1">#1</a>}\IgnoreIndent%
114+
\ifvmode \IgnorePar\fi \EndP\HCode{<a class="activity card activity-chapter" href="brol" data-options="#1">#1</a>}\IgnoreIndent%
115115
}
116116
\else
117-
% \newcommand{\chapter}[1]{%
118-
% \origsection{#1}%
119-
% \section{#1}%
120-
% \phantomsection%
121-
% %\ifnumbers\addcontentsline{toc}{section}{XX\thetitlenumber~#1}\else\addcontentsline{toc}{section}{#1}\fi
122-
% \phantomsection\addcontentsline{toc}{section}{\textbf{\thetitlenumber\hspace{1em}#1}}%
123-
% }
124-
% Define \chapter command adapted from report.cls
125-
%\makeatletter
126117
\newcommand{\chapter}[1]{%
127-
% \clearpage % Optional: comment this out if you don't want page breaks
128-
% \thispagestyle{plain}%
129-
%\global\@topnum\z@ % Prevent floats at top of page
130118
%\refstepcounter{section}%
131119
\addtocounter{titlenumber}{1}%
132120
\setcounter{section}{0}
133121
\setcounter{subsection}{0}
134122
\phantomsection\addcontentsline{toc}{section}{\textbf{\thetitlenumber\hspace{1em}#1}}%
135-
%\addcontentsline{toc}{section}{\protect\numberline{\the} \chaptername~\thechapter\quad}%
136-
%\@makechapterhead
137123
}
138124
139-
% Define how the chapter title looks
125+
% Define how the chapter title looks (NOT NEEDED?)
140126
\newcommand{\@makechapterhead}[1]{%
141127
\vspace*{20pt}%
142128
{\parindent \z@ \raggedright \normalfont

global.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,3 +297,10 @@ e.g. use "P1", "Problem 1", "Prob 1", "Exciting Problem 1", etc.
297297
} */
298298

299299

300+
/* adhoc change for wimTOC */
301+
.activity-section {
302+
/* background-color: red; */
303+
font-size: 75%;
304+
padding-left: 2em;
305+
text-indent: 1em;
306+
}

toc/toc_wim.tex

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66

77
\usepackage{lipsum}
88

9-
\title{Basic Table of Contents (xwim)}
9+
\title{Basic Table of Contents (wim)}
1010

1111

12-
\let\origsection\section
13-
1412

1513
\setcounter{secnumdepth}{6}
1614
\setcounter{tocdepth}{1}
@@ -20,18 +18,7 @@
2018
\end{abstract}
2119
\maketitle
2220

23-
% % Second TOC; DOES NOT WORK
24-
% \clearpage
25-
% \begingroup
26-
% \setcounter{tocdepth}{6}
27-
% \renewcommand{\contentsname}{Appendix Contents}
28-
% \makeatletter
29-
% \patchcmd{\@mkboth}{\ttl@savemark}{\relax}{}{}
30-
% \makeatother
31-
% \tableofcontents
32-
% \endgroup
33-
34-
% TOCDEPTH = \arabic{tocdepth} xxx yzz
21+
3522

3623
% \part{The first part}
3724

toc/toc_wimd2.tex

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
\documentclass[numbers]{xourse}
2+
3+
\usepackage{titlesec}
4+
5+
\author{Bart Snapp}
6+
7+
\usepackage{lipsum}
8+
9+
\title{Basic Table of Contents (wim)}
10+
11+
12+
13+
\setcounter{secnumdepth}{6}
14+
\setcounter{tocdepth}{2}
15+
16+
\begin{document}
17+
\begin{abstract}
18+
\end{abstract}
19+
\maketitle
20+
21+
22+
23+
% \part{The first part}
24+
25+
\chapterstyle
26+
\activity{basicActivity}
27+
% \origsection{Section with only sectionstyle-activities}
28+
\chapter{Chaptertitle for (only!) sectionstyle-activities}
29+
\sectionstyle
30+
\activity{basicActivity}
31+
\activity{basicActivity}
32+
33+
34+
\chapterstyle
35+
\activity{basicActivity}
36+
\sectionstyle
37+
\activity{basicActivity}
38+
\activity{sectionLevelActivity}
39+
40+
41+
\chapterstyle
42+
\activity{chapterLevelActivity}
43+
\sectionstyle
44+
\activity{basicActivity}
45+
\activity{sectionLevelActivity}
46+
47+
% \activity{basicActivity}
48+
49+
50+
51+
\part{A first part}
52+
\chapterstyle
53+
\activity{chapterLevelActivity}
54+
\activity{chapterLevelActivity}
55+
56+
\chapter{Chapter with only sectionstyle-activities}
57+
\sectionstyle
58+
\activity{basicActivity}
59+
\activity{basicActivity}
60+
61+
\chapterstyle
62+
\activity{chapterLevelActivity}
63+
\sectionstyle
64+
65+
\activity{sectionLevelActivity}
66+
\activity{sectionLevelActivity}
67+
68+
69+
\part{A second part}
70+
\chapterstyle
71+
\activity{chapterLevelActivity}
72+
73+
74+
\sectionstyle
75+
\activity{sectionLevelActivity}
76+
\activity{sectionLevelActivity}
77+
% \activity{sectionLevelActivity}
78+
79+
80+
\chapterstyle
81+
\activity{chapterLevelActivity}
82+
\sectionstyle
83+
\activity{sectionLevelActivity}
84+
\activity{sectionLevelActivity}
85+
86+
87+
% \chapterstyle
88+
% \activity{chapterLevelActivity}
89+
% \sectionstyle
90+
% \activity{sectionLevelActivity}
91+
% \activity{sectionLevelActivity}
92+
93+
\part{And now for basicActivity as a section}
94+
\chapterstyle
95+
\activity{basicActivity}
96+
\sectionstyle
97+
\activity{basicActivity}
98+
99+
100+
\end{document}

0 commit comments

Comments
 (0)