Hello community, here is the log from the commit of package ghc-HaTeX for openSUSE:Factory checked in at 2017-04-07 13:55:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-HaTeX (Old) and /work/SRC/openSUSE:Factory/.ghc-HaTeX.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "ghc-HaTeX" Fri Apr 7 13:55:01 2017 rev:2 rq:483130 version:3.17.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-HaTeX/ghc-HaTeX.changes 2017-03-28 15:18:14.807348957 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-HaTeX.new/ghc-HaTeX.changes 2017-04-07 13:55:05.216390278 +0200 @@ -1,0 +2,5 @@ +Mon Jan 9 06:36:43 UTC 2017 - psimons@suse.com + +- Update to version 3.17.1.0 with cabal2obs. + +------------------------------------------------------------------- Old: ---- HaTeX-3.17.0.2.tar.gz New: ---- HaTeX-3.17.1.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-HaTeX.spec ++++++ --- /var/tmp/diff_new_pack.rVW3mT/_old 2017-04-07 13:55:06.084267685 +0200 +++ /var/tmp/diff_new_pack.rVW3mT/_new 2017-04-07 13:55:06.088267120 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-HaTeX # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,15 +19,14 @@ %global pkg_name HaTeX %bcond_with tests Name: ghc-%{pkg_name} -Version: 3.17.0.2 +Version: 3.17.1.0 Release: 0 Summary: The Haskell LaTeX library License: BSD-3-Clause -Group: System/Libraries +Group: Development/Languages/Other Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel -# Begin cabal-rpm deps: BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel @@ -42,7 +41,6 @@ BuildRequires: ghc-tasty-devel BuildRequires: ghc-tasty-quickcheck-devel %endif -# End cabal-rpm deps %description This library implements the LaTeX syntax and provides some useful abstractions. @@ -88,20 +86,14 @@ %prep %setup -q -n %{pkg_name}-%{version} - %build %ghc_lib_build - %install %ghc_lib_install - %check -%if %{with tests} -%{cabal} test -%endif - +%cabal_test %post devel %ghc_pkg_recache ++++++ HaTeX-3.17.0.2.tar.gz -> HaTeX-3.17.1.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HaTeX-3.17.0.2/CHANGELOG.md new/HaTeX-3.17.1.0/CHANGELOG.md --- old/HaTeX-3.17.0.2/CHANGELOG.md 2016-05-14 16:50:32.000000000 +0200 +++ new/HaTeX-3.17.1.0/CHANGELOG.md 2016-12-21 07:00:49.000000000 +0100 @@ -9,6 +9,12 @@ # Changelog by versions +## From 3.17.0.0 to 3.17.1.0 + +* New math space commands (romildo). +* New function: mapLaTeXT (ddssff). +* Some fixes for qrcode package (L3n41c). + ## From 3.16.2.0 to 3.17.0.0 * New 'array' command (NorfairKing). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HaTeX-3.17.0.2/Examples/mathSpaces.hs new/HaTeX-3.17.1.0/Examples/mathSpaces.hs --- old/HaTeX-3.17.0.2/Examples/mathSpaces.hs 1970-01-01 01:00:00.000000000 +0100 +++ new/HaTeX-3.17.1.0/Examples/mathSpaces.hs 2016-11-08 06:03:40.000000000 +0100 @@ -0,0 +1,23 @@ +{-# LANGUAGE OverloadedStrings #-} + +module Main where + +import Text.LaTeX +import Text.LaTeX.Packages.AMSMath + +main :: IO () +main = execLaTeXT mathSpaces >>= renderFile "mathSpaces.tex" + +mathSpaces :: Monad m => LaTeXT_ m +mathSpaces = do + documentclass [] article + usepackage [] amsmath + document $ + tabular Nothing [RightColumn, LeftColumn] $ do + texttt "quad" & math ("H" >> quad >> "H") ; lnbk + texttt "qquad" & math ("H" >> qquad >> "H") ; lnbk + texttt "thinspace" & math ("H" >> thinspace >> "H") ; lnbk + texttt "medspace" & math ("H" >> medspace >> "H") ; lnbk + texttt "thickspace" & math ("H" >> thickspace >> "H") ; lnbk + texttt "negspace" & math ("H" >> negspace >> "H") ; lnbk + texttt "space" & math ("H" >> space >> "H") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HaTeX-3.17.0.2/HaTeX.cabal new/HaTeX-3.17.1.0/HaTeX.cabal --- old/HaTeX-3.17.0.2/HaTeX.cabal 2016-05-31 17:08:17.000000000 +0200 +++ new/HaTeX-3.17.1.0/HaTeX.cabal 2016-12-21 07:00:58.000000000 +0100 @@ -1,5 +1,5 @@ Name: HaTeX -Version: 3.17.0.2 +Version: 3.17.1.0 Author: Daniel Díaz Category: LaTeX Build-type: Simple diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HaTeX-3.17.0.2/README.md new/HaTeX-3.17.1.0/README.md --- old/HaTeX-3.17.0.2/README.md 2016-05-14 17:17:31.000000000 +0200 +++ new/HaTeX-3.17.1.0/README.md 2016-06-10 18:05:15.000000000 +0200 @@ -55,12 +55,11 @@ There are many ways to get involved in the HaTeX project. Use the most comfortable way for you. -* Fork the [GitHub repository](https://github.com/Daniel-Diaz/HaTeX). +* Fork the [GitHub repository](https://github.com/Daniel-Diaz/HaTeX) and make your own contributions. * Report bugs or make suggestions opening a ticket in the [Issue Tracker](https://github.com/Daniel-Diaz/HaTeX/issues). * Help us to improve and extend our [hatex-guide](https://github.com/Daniel-Diaz/hatex-guide). * Join the [Mailing List](http://projects.haskell.org/cgi-bin/mailman/listinfo/hatex) for help or announcements of the latest developments. -* Drop by the IRC channel at `#hatex`. ## TODO list @@ -73,7 +72,9 @@ * [haskintex](http://daniel-diaz.github.io/projects/haskintex): Tool to use Haskell (and, additionaly, the HaTeX library) within a LaTeX file. * [TeX-my-math](https://github.com/leftaroundabout/Symbolic-math-HaTeX): Experimental library to ease the production -of mathematical expressions using HaTeX (_no longer maintained?_). +of mathematical expressions using HaTeX. +* [blatex](http://hackage.haskell.org/package/blatex): Static site generator for blogs where posts are written +in LaTeX. ## Travis automatic build diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HaTeX-3.17.0.2/Text/LaTeX/Base/Writer.hs new/HaTeX-3.17.1.0/Text/LaTeX/Base/Writer.hs --- old/HaTeX-3.17.0.2/Text/LaTeX/Base/Writer.hs 2016-05-31 16:56:33.000000000 +0200 +++ new/HaTeX-3.17.1.0/Text/LaTeX/Base/Writer.hs 2016-11-08 06:03:40.000000000 +0100 @@ -48,6 +48,7 @@ , rendertexM , liftFun , liftOp + , mapLaTeXT -- * Re-exports , lift , liftIO @@ -190,6 +191,17 @@ tell $ l `op` l' return p +-- | A helper function for building monad transformers, e.g. +-- @@ +-- instance MonadReader r m => MonadReader r (LaTeXT m) where +-- ask = lift ask +-- local = mapLaTeXT . local +-- @@ +-- This declaration could be included here, but it would add a +-- dependency on mtl. +mapLaTeXT :: (m (a, LaTeX) -> m (a, LaTeX)) -> LaTeXT m a -> LaTeXT m a +mapLaTeXT f = LaTeXT . mapWriterT f . unwrapLaTeXT + -- | Just like 'rendertex', but with 'LaTeXT' output. -- -- > rendertexM = textell . rendertex diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HaTeX-3.17.0.2/Text/LaTeX/Packages/AMSMath.hs new/HaTeX-3.17.1.0/Text/LaTeX/Packages/AMSMath.hs --- old/HaTeX-3.17.0.2/Text/LaTeX/Packages/AMSMath.hs 2016-05-31 17:04:26.000000000 +0200 +++ new/HaTeX-3.17.1.0/Text/LaTeX/Packages/AMSMath.hs 2016-11-08 06:03:40.000000000 +0100 @@ -119,6 +119,7 @@ , v2matrix -- * Math spacing , quad, qquad + , thinspace, medspace, thickspace, negspace, space ) where import Text.LaTeX.Base @@ -1055,14 +1056,22 @@ qquad :: LaTeXC l => l qquad = comm0 "qquad" -{- - The following commands are pending. Someone needs to find suitable - names for them. - - \, 3/18 of \quad (= 3 mu) - \: 4/18 of \quad (= 4 mu) - \; 5/18 of \quad (= 5 mu) - \! -3/18 of \quad (= -3 mu) - \ (space after backslash!) equivalent of space in normal text - --} +-- | \, space equal to 3/18 of \quad (= 3 mu) +thinspace :: LaTeXC l => l +thinspace = comm0 "," + +-- | \: space equal to 4/18 of \quad (= 4 mu) +medspace :: LaTeXC l => l +medspace = comm0 ":" + +-- | \: space equal to 5/18 of \quad (= 5 mu) +thickspace :: LaTeXC l => l +thickspace = comm0 ";" + +-- | \! space equal to -3/18 of \quad (= -3 mu) +negspace :: LaTeXC l => l +negspace = comm0 "!" + +-- | \ (space after backslash) equivalent of space in normal text +space :: LaTeXC l => l +space = comm0 " " diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HaTeX-3.17.0.2/Text/LaTeX/Packages/QRCode.hs new/HaTeX-3.17.1.0/Text/LaTeX/Packages/QRCode.hs --- old/HaTeX-3.17.0.2/Text/LaTeX/Packages/QRCode.hs 2016-01-02 03:19:46.000000000 +0100 +++ new/HaTeX-3.17.1.0/Text/LaTeX/Packages/QRCode.hs 2016-12-21 06:53:44.000000000 +0100 @@ -21,7 +21,6 @@ import Text.LaTeX.Base.Types import Text.LaTeX.Base.Texy import qualified Data.Text as T -import Data.Char (toLower) -- | qrcode package. Use it to import it like this: -- @@ -57,7 +56,7 @@ -- | This package option (which is the default) sets the qrcode package to generate print-quality QR codes. final :: LaTeXC l => l -final = "draft" +final = "final" -- | Generates a QR code with specified options and content. -- @@ -66,9 +65,9 @@ qr :: LaTeXC l => CodeOptions -> Text -> l qr opt payload = fromLaTeX $ TeXComm "qrcode" [opts, FixArg . raw . escape $ payload] where - opts = MOptArg [ if includePadding opt then "padding" else "tight" - , if link opt then "link" else "nolink" - , texy . ("level=" <>) . T.singleton . toLower . head . show . errorLevel $ opt + opts = MOptArg [ if includePadding opt then "padding" else "tight" + , if link opt then "link" else "nolink" + , texy . ("level=" <>) . T.singleton . head . show . errorLevel $ opt ] -- Helper functions for escaping code contents.