Skip to content

Commit

Permalink
Merge branch 'feature/fix-theme-loading'
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Jun 25, 2021
2 parents 584c04e + 67aaf40 commit 3c3de76
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
12 changes: 8 additions & 4 deletions markdown.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -11104,10 +11104,14 @@ would use the following code in the preamble of your document:
\StrSubstitute{#1}{/}{_}[\markdownLaTeXThemePackageName]%
\edef\markdownLaTeXThemePackageName{%
markdowntheme\markdownLaTeXThemePackageName}%
\expandafter\ifmarkdownLaTeXLoaded\expandafter\expandafter
\expandafter\@gobble\expandafter\fi% Remove \AtEndOfPackage if loaded
\expandafter\AtEndOfPackage\expandafter{\expandafter\RequirePackage
\expandafter{\markdownLaTeXThemePackageName}}}%
\ifmarkdownLaTeXLoaded
\expandafter\RequirePackage\expandafter{%
\markdownLaTeXThemePackageName}%
\else
\expandafter\AtEndOfPackage\expandafter{%
\expandafter\RequirePackage\expandafter{%
\markdownLaTeXThemePackageName}}%
\fi}%
% \end{macrocode}
% \iffalse
%</latex>
Expand Down
3 changes: 2 additions & 1 deletion tests/templates/latex/input.tex.m4
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
\documentclass{minimal}
\csname UseRawInputEncoding\endcsname
% Load the package.
\usepackage[theme=witiko/markdown/test]{markdown}
\usepackage{markdown}
\markdownSetup{theme=witiko/markdown/test}
% Load the support files.
\input setup\relax
% Load the test-specific setup.
Expand Down
3 changes: 2 additions & 1 deletion tests/templates/latex/verbatim.tex.m4
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
\documentclass{minimal}
\csname UseRawInputEncoding\endcsname
% Load the package.
\usepackage[theme=witiko/markdown/test]{markdown}
\usepackage{markdown}
\markdownSetup{theme=witiko/markdown/test}
% Load the support files.
\input setup\relax
% Load the test-specific setup.
Expand Down

0 comments on commit 3c3de76

Please sign in to comment.