Skip to content

added theorems#68

Open
nicolai-schwartze wants to merge 3 commits into
pasrom:mainfrom
nicolai-schwartze:master
Open

added theorems#68
nicolai-schwartze wants to merge 3 commits into
pasrom:mainfrom
nicolai-schwartze:master

Conversation

@nicolai-schwartze

Copy link
Copy Markdown

While writing my thesis, I have added support for framed mathematical theorems/proofs based on sleek theorems.
It also allows a variety of other framed environments like notes, tips and questions/answers.
Maybe it might be also useful for other users.

The command \Autoref is already used by the necessary package thmtools,
therefore I took the liberty to rename the custom macro \Autoref in sty/Commands.sty to \AutorefMult
(which I think also a more descriptive name).

grafik

@pasrom pasrom deleted the branch pasrom:main April 6, 2026 07:04
@pasrom pasrom closed this Apr 6, 2026
@pasrom pasrom reopened this Apr 6, 2026
@pasrom pasrom changed the base branch from master to main April 6, 2026 07:09
@pasrom pasrom mentioned this pull request Apr 6, 2026

@pasrom pasrom left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! The theorem environments look great and will be a nice addition to the template.

Just a heads up: I renamed the default branch from master to main. Please rebase your branch onto main. I also added contributing guidelines that describe the commit conventions and build requirements.

I have a few suggestions below. The main one is a naming conflict with beamer that needs to be resolved.

Comment thread sty/TheoremsFHV.sty
\newtheorem{answ}{\lgansw}[quest]
\newtheorem{expl}{\lgexpl}
\newtheorem*{rmk}{\lgrmk}
\newtheorem*{note}{\lgnote}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocker: \note is a beamer builtin. This breaks FHVMODE=5 (beamer) with ! LaTeX Error: Command \note already defined.

Suggestion: rename to e.g. notethm or wrap it in a conditional to skip it for beamer.

Comment thread sty/Commands.sty
\makeatletter
% define a macro \Autoref to allow multiple references to be passed to \autoref
\newcommand\Autoref[1]{\@first@ref#1,@}
\newcommand\AutorefMult[1]{\@first@ref#1,@}

@pasrom pasrom Apr 6, 2026

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the explanation. Makes sense since thmtools defines \Autoref. Please update the comment on line 6 to match the new name \AutorefMult.

Comment thread tex/Examples.tex
%
\if\paper\FHVmode
\section{Animation in PDFs}
\section{Animation in PDFs}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: indentation change on existing \section/\chapter lines is unrelated to this feature.

Comment thread sty/CommandsFHV.sty
Comment on lines +668 to +669


Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: two blank lines added at end of file, no functional change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants