From 0c2cd6670307af5a6efc0b04eec1bbaec7d9688e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 15 Jul 2014 22:48:43 +0000 Subject: exsol (15jul14) git-svn-id: svn://tug.org/texlive/trunk@34620 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/exsol/exsol.sty | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist/tex/latex/exsol') 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 +%% Copyright (C) 2014 by Walter Daems %% %% 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{% -- cgit v1.2.3