diff options
author | Karl Berry <karl@freefriends.org> | 2014-07-15 22:48:43 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-07-15 22:48:43 +0000 |
commit | 0c2cd6670307af5a6efc0b04eec1bbaec7d9688e (patch) | |
tree | 7a8a68d62a593d1f78ee46c0e2c717937db7ea29 /Master/texmf-dist/tex/latex/exsol | |
parent | e4042723eabd6f9efb9b68034395b7d0ea999b82 (diff) |
exsol (15jul14)
git-svn-id: svn://tug.org/texlive/trunk@34620 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/exsol')
-rw-r--r-- | Master/texmf-dist/tex/latex/exsol/exsol.sty | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/exsol/exsol.sty b/Master/texmf-dist/tex/latex/exsol/exsol.sty index 129585d0ad8..7854f28380d 100644 --- a/Master/texmf-dist/tex/latex/exsol/exsol.sty +++ b/Master/texmf-dist/tex/latex/exsol/exsol.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2012 by Walter Daems <walter.daems@ieee.org> +%% Copyright (C) 2014 by Walter Daems <walter.daems@ieee.org> %% %% This file may be distributed and/or modified under the conditions of %% the LaTeX Project Public License, either version 1.3 of this license @@ -23,8 +23,6 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{exsol} [2013/05/12 v0.6 ExSol - Exercises and Solutions package (DMW)] -\def\fileversion{0.6} -\def\filedate{2013/05/12} \RequirePackage{fancyvrb} \RequirePackage{ifthen} \RequirePackage{kvoptions} @@ -54,6 +52,13 @@ \arabic{exercise}% \fi } +\newcommand{\GPES@write@detok}[1]{% + \immediate\write\exercisestream{\detokenize{#1}}}% +\newcommand{\GPSS@write@detok}[1]{% + \immediate\write\solutionstream{\detokenize{#1}}}% +\newcommand{\GPESS@write@detok}[1]{% + \GPES@write@detok{#1}% + \GPSS@write@detok{#1}}% \def\exercise{\FV@Environment{}{exercise}} \def\FVB@exercise{% \refstepcounter{exercise}% @@ -74,10 +79,9 @@ \def\FV@Space{\space}% \FV@DefineTabOut \ifexsol@copyexercisesinsolutions - \def\FV@ProcessLine{\immediate\write\solutionstream{\FV@Line}% - \immediate\write\exercisestream}% + \let\FV@ProcessLine\GPESS@write@detok % \else - \def\FV@ProcessLine{\immediate\write\exercisestream}% + \let\FV@ProcessLine\GPES@write@detok % \fi \relax \let\FV@FontScanPrep\relax @@ -137,7 +141,7 @@ \FV@DefineWhiteSpace \def\FV@Space{\space}% \FV@DefineTabOut - \def\FV@ProcessLine{\immediate\write\solutionstream}% + \let\FV@ProcessLine\GPSS@write@detok % \relax \let\FV@FontScanPrep\relax \let\@noligs\relax @@ -156,16 +160,25 @@ \renewcommand{\exercisename}{Oefening}% \renewcommand{\exercisesname}{Oefeningen}% \renewcommand{\solutionname}{Oplossing}% + \renewcommand{\solutionsname}{Oplossingen}% } \addto\captionsgerman{% \renewcommand{\exercisename}{Aufgabe}% \renewcommand{\exercisesname}{Aufgaben}% \renewcommand{\solutionname}{L\"osung}% + \renewcommand{\solutionsname}{L\"osungen}% } \addto\captionsfrench{% \renewcommand{\exercisename}{Exercice}% \renewcommand{\exercisesname}{Exercices}% \renewcommand{\solutionname}{Solution}% + \renewcommand{\solutionsname}{Solutions}% +} +\addto\captionsfinnish{ + \renewcommand{\exercisename}{Teht\"av\"a}% + \renewcommand{\exercisesname}{Teht\"avi\"a}% + \renewcommand{\solutionname}{Ratkaisu}% + \renewcommand{\solutionsname}{Ratkaisut}% } \let\exsol@@makechapterhead\@makechapterhead \def\@makechapterhead#1{% |