diff options
author | Norbert Preining <norbert@preining.info> | 2022-10-04 03:00:59 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-10-04 03:00:59 +0000 |
commit | 30b3429f0e138c93c5f1ba1d1a6d46728c0943e9 (patch) | |
tree | 6c15cc0a1c291188deaa6f1c37d469d4e4dd27c7 /macros/latex/contrib/to-be-determined/to-be-determined.dtx | |
parent | 0ec122c100e39ea118fdb2c4b6223ece8053f439 (diff) |
CTAN sync 202210040300
Diffstat (limited to 'macros/latex/contrib/to-be-determined/to-be-determined.dtx')
-rw-r--r-- | macros/latex/contrib/to-be-determined/to-be-determined.dtx | 166 |
1 files changed, 166 insertions, 0 deletions
diff --git a/macros/latex/contrib/to-be-determined/to-be-determined.dtx b/macros/latex/contrib/to-be-determined/to-be-determined.dtx new file mode 100644 index 0000000000..030208ef00 --- /dev/null +++ b/macros/latex/contrib/to-be-determined/to-be-determined.dtx @@ -0,0 +1,166 @@ +% \iffalse meta-comment +% (The MIT License) +% +% Copyright (c) 2021-2022 Yegor Bugayenko +% +% Permission is hereby granted, free of charge, to any person obtaining a copy +% of this software and associated documentation files (the 'Software'), to deal +% in the Software without restriction, including without limitation the rights +% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +% copies of the Software, and to permit persons to whom the Software is +% furnished to do so, subject to the following conditions: +% +% The above copyright notice and this permission notice shall be included in all +% copies or substantial portions of the Software. +% +% THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +% SOFTWARE. +% \fi + +% \CheckSum{0} +% +% \CharacterTable +% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +% Digits \0\1\2\3\4\5\6\7\8\9 +% Exclamation \! Double quote \" Hash (number) \# +% Dollar \$ Percent \% Ampersand \& +% Acute accent \' Left paren \( Right paren \) +% Asterisk \* Plus \+ Comma \, +% Minus \- Point \. Solidus \/ +% Colon \: Semicolon \; Less than \< +% Equals \= Greater than \> Question mark \? +% Commercial at \@ Left bracket \[ Backslash \\ +% Right bracket \] Circumflex \^ Underscore \_ +% Grave accent \` Left brace \{ Vertical bar \| +% Right brace \} Tilde \~} + +% \GetFileInfo{to-be-determined.dtx} +% \DoNotIndex{\endgroup,\begingroup,\let,\else,\fi,\newcommand,\newenvironment} + +% \iffalse +%<*driver> +\ProvidesFile{to-be-determined.dtx} +%</driver> +%<package>\NeedsTeXFormat{LaTeX2e} +%<package>\ProvidesPackage{to-be-determined} +%<*package> +[03.10.2022 0.2.0 Highlighting places requiring future work] +%</package> +%<*driver> +\documentclass{ltxdoc} +\usepackage[tt=false, type1=true]{libertine} +\usepackage{microtype} +\usepackage{to-be-determined} +\usepackage{href-ul} +\PageIndex +\EnableCrossrefs +\CodelineIndex +\RecordChanges +\begin{document} + \DocInput{to-be-determined.dtx} + \PrintChanges + \PrintIndex +\end{document} +%</driver> +% \fi + +% \title{|to-be-determined|: \LaTeX{} Package \\ for highlighting places that require more work\thanks{The sources are in GitHub at \href{https://github.com/yegor256/to-be-determined}{yegor256/to-be-determined}}} +% \author{Yegor Bugayenko \\ \texttt{yegor256@gmail.com}} +% \date{\filedate, \fileversion} +% +% \maketitle +% +% \section{Introduction} +% +% This package helps you highlight places in your articles +% and make sure it looks nice. Install it from CTAN and then +% use like this: + +% \begin{multicols}{2} +% \setlength{\parskip}{0pt} +% \raggedcolumns +%\iffalse +%<*verb> +%\fi +\begin{verbatim} +\documentclass{article} +\usepackage{to-be-determined} +\begin{document} +The budget is \tbd{99.00 USD}. +\end{document} +\end{verbatim} +%\iffalse +%</verb> +%\fi +% +% \columnbreak +% +% The budget is \tbd{99.00 USD}. +% +% \end{multicols} + +% \section{Package Options} + +% \begin{macro}{hide} +% If you want to hide the content of what's inside |\tbd|, +% use |hide| option of the package. They will all be replaced with +% \tbd{TBD} placeholders. +% \end{macro} + +% \begin{macro}{off} +% If you want them to disappear entirely, use the |off| package option. +% \end{macro} + +% \StopEventually{} + +% \section{Implementation} + +% \changes{v0.2.0}{2021/07/15}{Initial version} + +% First, we parse package options: +% \begin{macrocode} +\RequirePackage{xkeyval} +\makeatletter +\newif\iftbd@hide +\DeclareOptionX{hide}{\tbd@hidetrue} +\newif\iftbd@off +\DeclareOptionX{off}{\tbd@offtrue} +\makeatother +\ProcessOptionsX\relax +% \end{macrocode} + +% Then, we include a few packages: +% \begin{macrocode} +\RequirePackage{xcolor} +\RequirePackage{soul} +% \end{macrocode} + +% \begin{macro}{\tbd} +% Finally, we define the |\tbd| command: +% \begin{macrocode} +\makeatletter\newcommand\tbd[1]{{% + \iftbd@off\else% + \sethlcolor{yellow}% + \iftbd@hide% + \hl{TBD}% + \else% + \hl{#1}% + \fi% + \fi% +}}\makeatother +% \end{macrocode} +% \end{macro} + +% \Finale + +%\clearpage +% +%\PrintChanges +%\clearpage +%\PrintIndex |