summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/bosisio/quotes.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/bosisio/quotes.dtx
Initial commit
Diffstat (limited to 'macros/latex/contrib/bosisio/quotes.dtx')
-rw-r--r--macros/latex/contrib/bosisio/quotes.dtx177
1 files changed, 177 insertions, 0 deletions
diff --git a/macros/latex/contrib/bosisio/quotes.dtx b/macros/latex/contrib/bosisio/quotes.dtx
new file mode 100644
index 0000000000..da76efd32b
--- /dev/null
+++ b/macros/latex/contrib/bosisio/quotes.dtx
@@ -0,0 +1,177 @@
+%\iffalse % MetaComment
+%%
+%% + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+%% | Copyright(C) 1997-2010 by F. Bosisio |
+%% | |
+%% | This program can be redistributed and/or modified under |
+%% | the terms of the LaTeX Project Public License, either |
+%% | version 1.3 of this license or (at your option) any later |
+%% | version. The latest version of this license is in |
+%% | http://www.latex-project.org/lppl.txt |
+%% | and version 1.3 or later is part of all LaTeX distributions |
+%% | version 2005/12/01 or later. |
+%% | |
+%% | This work has the LPPL maintenance status `maintained'. |
+%% | The Current Maintainer of this work is F. Bosisio. |
+%% | |
+%% | This work consists of files quotes.dtx and quotes.html |
+%% | and of the derived files quotes.sty and quotes.pdf. |
+%% | |
+%% | E-mail: fbosisio@bigfoot.com |
+%% | CTAN location: macros/latex/contrib/bosisio/ |
+%% + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+%%
+%% If you make any improvment, find any bug or have
+%% any suggestion, please let me know about it.
+%%
+%<*package,driver>
+%\fi
+%
+\def\FileName{quotes}
+%\iffalse % MetaComment
+%</package,driver>
+%<*package>
+%\fi
+\def\fileversion{2.2}
+\def\filedate{1997/12/20}
+\def\docdate{2005/04/09}
+\def\filedescr{Commands to use double quotes (FB)}
+%
+%\iffalse % MetaComment
+%</package>
+%<*dtx>
+%- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+% This section is the installation driver
+%
+\def\batchfile{\FileName.dtx}
+%
+\input docstrip
+%
+\keepsilent
+% \askforoverwritefalse
+%
+\generateFile{\FileName.sty}{f}{\from{\FileName.dtx}{package}}
+%
+\generateFile{\FileName.drv}{f}{\from{\FileName.dtx}{driver}}
+%
+\Msg{******************************************************}
+\Msg{*}
+\Msg{* To produce the documentation run the}
+\Msg{* file `\FileName.drv' through LaTeX.}
+\Msg{*}
+\Msg{******************************************************}
+%
+\endbatchfile
+%
+% End of the installation driver
+%- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+%</dtx>
+%
+% This section is the documentation driver
+%
+%<+driver>\documentclass[12pt,a4paper]{ltxdoc}
+%<+driver> \EnableCrossrefs
+%<+driver> \CodelineIndex
+%<+driver> \RecordChanges
+%<+driver> %\OnlyDescription % Uncomment not to see the implementation
+%<+driver>\begin{document}
+%<+driver> \DocInput{\FileName.dtx}
+%<+driver> \newpage
+%<+driver> \PrintIndex
+%<+driver> \PrintChanges
+%<+driver>\end{document}
+%
+% End of the documentation driver
+%- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+%<*package>
+%\fi
+%
+% \changes{v0.1}{4 May 1997}{First release (basic accents-command)}
+% \changes{v0.2}{20 August 1997}{Added double-quotes and extended-chars}
+% \changes{v1.0}{5 September 1997}{Documentation added}
+% \changes{v1.1}{7 November 1997}{Fixed a bug in the options}
+% \changes{v2.0}{20 December 1997}{Separated from package ``quotes''}
+% \changes{v2.1}{5 March 1999}{Added copyright notice and changed addresses}
+% \changes{v2.2}{9 April 2005}{Usage of the double-quote character (") avoided}
+%
+% \MakeShortVerb{\|}
+%
+% \title{Package \texttt{\FileName}\thanks{This is version \fileversion,
+% last revised \filedate; documentation date \docdate}}
+% \author{F. Bosisio\\\normalsize E-mail: \texttt{fbosisio@bigfoot.com}}
+% \date{\filedate}
+% \maketitle
+%
+% \begin{abstract}
+% Documentation for the package \texttt{\FileName}.
+% \end{abstract}
+%
+% \section{Introduction}
+% This package simplifies the use of double-quotes.
+%
+% \section{Double quotes}
+%
+% With this package, the character `` |"| '' generates the correct
+% double-quote, i.e. the sequence $<<$| " text " |$>>$
+% generates $<<$ `` |text| '' $>>$, so that this character
+% can be used both for opening and closing the double-quotes
+% (provided that it is \emph{always} used).
+%
+% \StopEventually{}
+% \newpage
+% \section{Implementation}
+%
+% \begin{macrocode}
+%%
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesPackage{\FileName}[\filedate\space v\fileversion\space\filedescr]
+% \end{macrocode}
+%
+% \begin{macro}{Quotes}
+% The command ``|\@VIRGOLETTE|'' is defined to print an open or close
+% double-quotes alternatively, so that they are always right.
+% Moreover, the double-quotes are always printed in upright-shape,
+% since they looks better.
+%
+% \begin{macrocode}
+%%
+\newif\if@virgolette\@virgolettefalse
+%%
+\newcommand{\@VIRGOLETTE}{%
+\if@virgolette%
+ \@virgolettefalse%
+ \textup{''}%
+\else%
+ \@virgolettetrue%
+ \textup{``}%
+\fi%
+}
+% \end{macrocode}
+% Then the character `` |"| '' is associated to the command
+% ``|\@VIRGOLETTE|'' just defined, so that you just have to type
+% this character in order to get the right double-quotes.
+% This trick has been adapted from the |doc| package, but
+% perhaps it may be done in a better way.
+% \begin{macrocode}
+\@makeother " %% Can this command be eliminated ?
+\begingroup
+ \catcode`\~\active \lccode`\~`\"%
+ \lowercase{%
+ \global\expandafter\let
+ \csname ac\string\"\endcsname~%
+ \gdef~{\@VIRGOLETTE}}%
+\endgroup
+\global\catcode`\"\active
+%
+% \end{macrocode}
+% \end{macro}
+%
+%\iffalse % MetaComment
+%<*package>
+%\fi
+%
+% \CheckSum{43}
+% \Finale
+%
+\endinput
+