From 2269571fd1c7dd3bf3f040d9409d0baa10a4d44e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 24 Sep 2021 21:42:36 +0000 Subject: debate (24sep21) git-svn-id: svn://tug.org/texlive/trunk@60601 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/debate/DEPENDS.txt | 3 + Master/texmf-dist/doc/latex/debate/README.md | 29 +++++++++ Master/texmf-dist/doc/latex/debate/debate.pdf | Bin 0 -> 235280 bytes Master/texmf-dist/doc/latex/debate/debate.tex | 77 +++++++++++++++++++++++ Master/texmf-dist/tex/latex/debate/debate.sty | 52 +++++++++++++++ Master/tlpkg/bin/tlpkg-ctan-check | 2 +- Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc | 1 + Master/tlpkg/tlpsrc/debate.tlpsrc | 0 8 files changed, 163 insertions(+), 1 deletion(-) create mode 100644 Master/texmf-dist/doc/latex/debate/DEPENDS.txt create mode 100644 Master/texmf-dist/doc/latex/debate/README.md create mode 100644 Master/texmf-dist/doc/latex/debate/debate.pdf create mode 100644 Master/texmf-dist/doc/latex/debate/debate.tex create mode 100644 Master/texmf-dist/tex/latex/debate/debate.sty create mode 100644 Master/tlpkg/tlpsrc/debate.tlpsrc (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/debate/DEPENDS.txt b/Master/texmf-dist/doc/latex/debate/DEPENDS.txt new file mode 100644 index 00000000000..a468679b1f1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/debate/DEPENDS.txt @@ -0,0 +1,3 @@ +hard xcolor +hard tcolorbox +hard xkeyval diff --git a/Master/texmf-dist/doc/latex/debate/README.md b/Master/texmf-dist/doc/latex/debate/README.md new file mode 100644 index 00000000000..3d8d0294c01 --- /dev/null +++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/debate/debate.pdf b/Master/texmf-dist/doc/latex/debate/debate.pdf new file mode 100644 index 00000000000..07c667fe771 Binary files /dev/null and b/Master/texmf-dist/doc/latex/debate/debate.pdf differ diff --git a/Master/texmf-dist/doc/latex/debate/debate.tex b/Master/texmf-dist/doc/latex/debate/debate.tex new file mode 100644 index 00000000000..09474d184e2 --- /dev/null +++ b/Master/texmf-dist/doc/latex/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 diff --git a/Master/texmf-dist/tex/latex/debate/debate.sty b/Master/texmf-dist/tex/latex/debate/debate.sty new file mode 100644 index 00000000000..723168bc9a2 --- /dev/null +++ b/Master/texmf-dist/tex/latex/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/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 42d10eea4c0..a4a74639f7c 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -245,7 +245,7 @@ my @TLP_working = qw( datetime2-usorbian datetime2-welsh dblfloatfix dccpaper dcpic ddphonism - de-macro decimal decision-table decorule dehyph dehyph-exptl + de-macro debate decimal decision-table decorule dehyph dehyph-exptl dejavu dejavu-otf delim delimseasy delimset delimtxt denisbdoc derivative dhua diabetes-logbook diadia diagbox diagmac2 dialogl diagnose dice dichokey diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc index ff6daa7b179..32609780c60 100644 --- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc @@ -315,6 +315,7 @@ depend datetime2-ukrainian depend datetime2-usorbian depend datetime2-welsh depend dblfloatfix +depend debate depend decimal depend decorule depend delimtxt diff --git a/Master/tlpkg/tlpsrc/debate.tlpsrc b/Master/tlpkg/tlpsrc/debate.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d -- cgit v1.2.3