Skip to content

Commit

Permalink
Major overhaul of scholar templates
Browse files Browse the repository at this point in the history
  • Loading branch information
sesquideus committed Nov 25, 2024
1 parent 41eaea6 commit fd0d152
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/scholar/templates/base.jtt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
\titleformat{\section}[block]{\vspace*{-10mm}\Huge\bfseries\centering}{\Roman{section}. }{0pt}{}
\titleformat{\subsection}[hang]{\LARGE\bfseries\vspace{4mm}\vspace*{-4mm}}{}{0pt}{}
\titleformat{\subsubsection}[hang]{\large\bfseries}{}{0pt}{}[]
\titleformat{\paragraph}[hang]{\bfseries}{}{0pt}{}[]
\titleformat{\paragraph}[hang]{\it\bfseries}{}{0pt}{}[]
\titleformat{\subparagraph}[hang]{\it\bfseries}{}{0pt}{}[]
\titlespacing{\section}{0pt}{6mm}{2mm}
\titlespacing{\subsection}{0pt}{6mm}{4mm}
Expand Down
2 changes: 1 addition & 1 deletion modules/scholar/templates/homework-solutions.jtt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(@ endblock solution @)

(@ block subsolution @)
\subsubsection{(* i18n.captions.solution.singular|capitalize *)}
\paragraph{(* i18n.captions.solution.singular|capitalize *)}
\setActive{\rootDirectory/(* module.id *)/(* course.id *)/(* year.id *)/(* self.typedir() *)/(* issue.id *)/(* problem.id *)/(* subproblem.id *)}%
\protectedInput{\activeDirectory/solution.tex}
(@ endblock subsolution @)
5 changes: 3 additions & 2 deletions modules/scholar/templates/homework-students.jtt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
(* problem.name *)(@ if 'bonus' in problem and problem.bonus @) (bonus)(@ endif @)%
}{%
\thesubsection{} (* problem.name *)(@ if 'bonus' in problem and problem.bonus @) (bonus)(@ endif @)%
}%
}
}
\label{sec:(* problem.id *)}
\protectedInput{\activeDirectory/problem.tex}
Expand All @@ -25,7 +25,8 @@
}%
}
\label{sec:(* problem.id*)-(* subproblem.id *)}
\protectedInput{\activeDirectory/(* problem.id *)/(* subproblem.id *)/problem.tex}
\setActive{\rootDirectory/(* module.id *)/(* course.id *)/(* year.id *)/(* self.typedir() *)/(* issue.id *)/(* problem.id *)}
\protectedInput{\activeDirectory/(* subproblem.id *)/problem.tex}
(@ block subsolution scoped @)(@ endblock subsolution @)
(@ endfor @)
(@ endif @)
Expand Down

0 comments on commit fd0d152

Please sign in to comment.