summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/debate
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-09-25 03:01:31 +0000
committerNorbert Preining <norbert@preining.info>2021-09-25 03:01:31 +0000
commit8322a8a248262d9acaadab2fa12d90012fcf1877 (patch)
tree5dd59d39bf68ca7c1882c1a07aec8470b36dc20e /macros/latex/contrib/debate
parent5d714d9476cbb90b125ff14a9d764ad90bb7c2ed (diff)
CTAN sync 202109250301
Diffstat (limited to 'macros/latex/contrib/debate')
-rw-r--r--macros/latex/contrib/debate/DEPENDS.txt3
-rw-r--r--macros/latex/contrib/debate/README.md29
-rw-r--r--macros/latex/contrib/debate/debate.pdfbin0 -> 235280 bytes
-rw-r--r--macros/latex/contrib/debate/debate.sty52
-rw-r--r--macros/latex/contrib/debate/debate.tex77
5 files changed, 161 insertions, 0 deletions
diff --git a/macros/latex/contrib/debate/DEPENDS.txt b/macros/latex/contrib/debate/DEPENDS.txt
new file mode 100644
index 0000000000..a468679b1f
--- /dev/null
+++ b/macros/latex/contrib/debate/DEPENDS.txt
@@ -0,0 +1,3 @@
+hard xcolor
+hard tcolorbox
+hard xkeyval
diff --git a/macros/latex/contrib/debate/README.md b/macros/latex/contrib/debate/README.md
new file mode 100644
index 0000000000..3d8d0294c0
--- /dev/null
+++ b/macros/latex/contrib/debate/README.md
@@ -0,0 +1,29 @@
+[![make](https://github.com/yegor256/debate/actions/workflows/latexmk.yml/badge.svg)](https://github.com/yegor256/debate/actions/workflows/latexmk.yml)
+[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/debate/blob/master/LICENSE.txt)
+
+This LaTeX package helps you organize debates between a few reviewers
+right inside the text of your document.
+
+First, [install it](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages)
+from [CTAN](https://ctan.org/pkg/debate)
+and then use in the preamble:
+
+```tex
+\documentclass{article}
+\usepackage{debate}
+\begin{document}
+I think apples are tastier
+ \debate[jeff]{I don't think it's true!}
+ \debate[anna]{It is indeed true!}
+than pears!
+\end{document}
+```
+
+The full example and all commands are available in the
+[`debate.tex`](https://github.com/yegor256/debate/blob/master/debate.tex) file.
+
+If you want to contribute yourself, make a fork, then create a branch,
+then run `make` in the root directory.
+It should compile everything without errors. If not, submit an issue and wait.
+Otherwise, make your changes and then run `make` again. If the build is
+still clean, submit a pull request.
diff --git a/macros/latex/contrib/debate/debate.pdf b/macros/latex/contrib/debate/debate.pdf
new file mode 100644
index 0000000000..07c667fe77
--- /dev/null
+++ b/macros/latex/contrib/debate/debate.pdf
Binary files differ
diff --git a/macros/latex/contrib/debate/debate.sty b/macros/latex/contrib/debate/debate.sty
new file mode 100644
index 0000000000..723168bc9a
--- /dev/null
+++ b/macros/latex/contrib/debate/debate.sty
@@ -0,0 +1,52 @@
+% (The MIT License)
+%
+% Copyright (c) 2021 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.
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{debate}[2021/09/24 0.1.0 Debates Between Reviewers]
+
+\RequirePackage{xcolor}
+\RequirePackage[most]{tcolorbox}
+
+\RequirePackage{xkeyval}
+\makeatletter
+\newif\ifdebate@hide
+\DeclareOptionX{hide}{\debate@hidetrue}
+\ProcessOptionsX\relax
+\makeatother
+
+\makeatletter\newcommand\debate[2][Author]{%
+ \ifdebate@hide%
+ #1%
+ \else%
+ {%
+ \begin{tcolorbox}[frame hidden,sharp corners,enhanced,borderline west={1pt}{0pt}{red},interior hidden,boxsep=0pt,left=0pt,right=0pt,top=0pt,bottom=0pt,beforeafter skip balanced=0pt]
+ \sffamily\color{gray}%
+ \raggedright%
+ \addtolength\leftskip{18pt}\setlength\parskip{0pt}\setlength\parindent{0pt}%
+ \textcolor{red}{\bfseries\scshape #1}: #2
+ \end{tcolorbox}
+ \vspace{-\parskip}
+ }%
+ \fi%
+}\makeatother
+
+\endinput
diff --git a/macros/latex/contrib/debate/debate.tex b/macros/latex/contrib/debate/debate.tex
new file mode 100644
index 0000000000..09474d184e
--- /dev/null
+++ b/macros/latex/contrib/debate/debate.tex
@@ -0,0 +1,77 @@
+% (The MIT License)
+%
+% Copyright (c) 2021 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.
+
+\documentclass[12pt]{article}
+\usepackage[T1]{fontenc}
+\usepackage[tt=false,type1=true]{libertine}
+\usepackage{multicol}
+\usepackage{debate}
+\usepackage{ffcode}
+\usepackage{xcolor}
+\usepackage{microtype}
+\title{\ff{debate}: \LaTeX{} Package \\ for Debates Between Reviewers}
+\author{Yegor Bugayenko}
+\date{0.1.0 2021/09/24}
+\begin{document}
+\pagenumbering{gobble}
+\raggedbottom
+\setlength{\parindent}{0pt}
+\setlength{\columnsep}{32pt}
+\setlength{\parskip}{6pt}
+\maketitle
+
+This package helps you organize debates between a few people
+right inside your documents:
+
+\begin{multicols}{2}
+\scriptsize
+\raggedcolumns
+\begin{verbatim}
+\documentclass{article}
+\usepackage[T1]{fontenc}
+\usepackage{debate}
+\begin{document}
+I think apples are tastier
+\debate[Jeff]{I don't think it's true!}
+\debate[Anna]{It is indeed true!}
+than pears!
+
+And I don't want to argue with me.
+\end{document}
+\end{verbatim}
+
+\columnbreak
+
+I think apples are tastier
+\debate[Jeff]{I don't think it's true!}
+\debate[Anna]{It is indeed true!}
+than pears!
+
+And I don't want to argue with me.
+\end{multicols}
+
+You can hide them all using \ff{hide} package option.
+
+More details about this package you can find
+in the \ff{yegor256/debate} GitHub repository.
+
+\end{document} \ No newline at end of file