GithubHelp home page GithubHelp logo

ypid / latex-packages Goto Github PK

View Code? Open in Web Editor NEW
24.0 5.0 23.0 7.29 MB

My LaTeX Packages.

Home Page: https://ctan.org/author/schneider-r

TeX 59.72% Makefile 0.75% Shell 0.76% Perl 0.06% HTML 38.62% Dockerfile 0.10%
ctan latex-packages

latex-packages's Introduction

My LaTeX packages

This is a monorepo containing multiple independent LaTeX packages.

GitHub CI

On CTAN

Name CTAN Description
calcage CTAN Calculates the age in years.
counttexruns CTAN Can count how often a LaTeX document is compiled.
doclicense CTAN Support for putting documents under a license.
fnumprint CTAN Can decide to typeset a number either as number or as word name.
romanbarpagenumber CTAN Use the package romanbar for roman page numbers.

Not (yet) on CTAN

  • sourcefiletable: Can typeset a table which lists some source files

latex-packages's People

Contributors

akorkos avatar alex-ball avatar borisveytsman avatar cmplstofb avatar elancha98 avatar elsudano avatar ericguirbal avatar hristo-d-hristov avatar hungtzuchang avatar iagows avatar ignaciofdm avatar ingemarberg avatar jlduran avatar jspitz avatar leolca avatar niruvt avatar pvidas avatar ravomavain avatar rig8f avatar sd44 avatar siefkenj avatar texhackse avatar ypid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

latex-packages's Issues

Release 1.10

Could you please make a release for 1.10? Without #41 is preventing all my existing beamer documents to build so it would be nice if the fix was released. Thanks !

doclicense: provide URL to legalcode

The URL in \doclicenseURL points to the online human-readable description of the license.

It would be nice to provide a similar macro that points to the online full text of the license (ending in /legalcode instead of e.g. /deed.en).

Make enumitem optional

As of TeXLive 2019, doclicense loads enumitem. Alas, this makes it uncompilable with the beamer class (I use the doclicense package to create a copyright slide in my presentations).

Could you please make loading of enumitem optional (or even better, check if the beamer class is used, and if so, refrain from loading enumitem)?

Deprecate and remove fallback license. Hard fail if no license if give.

From: #48 (comment)

by the way, shouldn't the default license be version 4.0 instead of 3.0?

As the documentation mentions it, no one should just load this package and let the package choose what license to put the document under. I don’t want to have that power to randomly update the license version of documents :)

I guess this default value is a misfeature. I suggest I deprecate it slowly. First make it emit a warning at compile time. Then make it hard fail at compile time.

CC: @rodrigoalcarazdelaosa

doclicense documentation pdf corrupted

it seems the doclicense.pdf file on ctan is corrupted: when opening it with Adobe reader (version 9.5.5 on linux or version 11.x on windows at least) one gets the error when reaching page 4:

There is an error processing a page. There was a problem reading this document (131)

I have tried to recompile it myself and get the same problem. However, compiling another document using the doclicense package, I haven't been able to get the same problem.

I tried also compiling the doclicense.dtx using lualatex instead, and that work fine.

the pages in doclicense.pdf that seem to be causing problems are the ones with images embedded, so there might be an issue with some of the graphics which bugs out pdflatex but I cannot trace it.

doclicense and pdfmanagement

The newest pdfmanagement-testphase version no longer contains a patch for hyperxmp. Instead it uses its own code to add xmp-metadata. The loading of hyperxmp is suppressed as the package is incompatible.

doclicense should therefore not assume that hyperref is loaded through hyperxmp but load it itself.

\DocumentMetadata{%
  testphase=phase-II,
  uncompress,
  lang=en-US,
  pdfstandard=a-2u}

\documentclass{article}

%\IfDocumentMetadataTF{\usepackage{hyperref}}{} %load hyperref is pdfmanagement is used

\usepackage[type={CC},modifier={by-nc-nd},version={4.0},lang={english}]{doclicense}

\begin{document}
  Hello
\end{document}

Minimal Working Example yields error

Running the following minimal example (I think from the package author, via SE) yields the following error:

Latex Error: ./runLicense.tex:9 LaTeX Error: File `doclicense-CC-by-nc-sa' not found.

\documentclass{article}
\usepackage{hyperref}
\usepackage[
    type={CC},
    modifier={by-nc-sa},
    version={3.0},
]{doclicense}
\begin{document}
\doclicenseThis
\end{document}

I'm using a current version of TeXLive/MacTeX.

Complete error log follows:

This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex 2015.1.14)  19 APR 2015 21:29
entering extended mode
 restricted \write18 enabled.
 file:line:error style messages enabled.
 %&-line parsing enabled.
**runLicense.tex
(./runLicense.tex
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 79 languages loaded.
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/local/texlive/2014/texmf-dist/tex/latex/hyperref/hyperref.sty
Package: hyperref 2012/11/06 v6.83m Hypertext links for LaTeX

(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
Package: hobsub-hyperref 2012/05/28 v1.13 Bundle oberdiek, subset hyperref (HO)

(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty
Package: hobsub-generic 2012/05/28 v1.13 Bundle oberdiek, subset generic (HO)
Package: hobsub 2012/05/28 v1.13 Construct package bundles (HO)
Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)
Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
Package: ifvtex 2010/03/01 v1.5 Detect VTeX and its facilities (HO)
Package ifvtex Info: VTeX not detected.
Package: intcalc 2007/09/27 v1.1 Expandable calculations with integers (HO)
Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in PDF mode is detected.
Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
Package etexcmds Info: Could not find \expanded.
(etexcmds)             That can mean that you are not using pdfTeX 1.50 or
(etexcmds)             that some package has redefined \expanded.
(etexcmds)             In the latter case, load this package earlier.
Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO)
Package: kvdefinekeys 2011/04/07 v1.3 Define keys (HO)
Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO
)
Package pdftexcmds Info: LuaTeX not detected.
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
Package: pdfescape 2011/11/25 v1.13 Implements pdfTeX's escape features (HO)
Package: bigintcalc 2012/04/08 v1.3 Expandable calculations on big integers (HO
)
Package: bitset 2011/01/30 v1.1 Handle bit-vector datatype (HO)
Package: uniquecounter 2011/01/30 v1.2 Provide unlimited unique counter (HO)
)
Package hobsub Info: Skipping package `hobsub' (already loaded).
Package: letltxmacro 2010/09/02 v1.4 Let assignment for LaTeX macros (HO)
Package: hopatch 2012/05/28 v1.2 Wrapper for package hooks (HO)
Package: xcolor-patch 2011/01/30 xcolor patch
Package: atveryend 2011/06/30 v1.8 Hooks at the very end of document (HO)
Package atveryend Info: \enddocument detected (standard20110627).
Package: atbegshi 2011/10/05 v1.16 At begin shipout hook (HO)
Package: refcount 2011/10/16 v3.4 Data extraction from label references (HO)
Package: hycolor 2011/01/30 v1.7 Color options for hyperref/bookmark (HO)
)
(/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks14
)
(/usr/local/texlive/2014/texmf-dist/tex/generic/ifxetex/ifxetex.sty
Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional
)
(/usr/local/texlive/2014/texmf-dist/tex/latex/oberdiek/auxhook.sty
Package: auxhook 2011/03/04 v1.3 Hooks for auxiliary files (HO)
)
(/usr/local/texlive/2014/texmf-dist/tex/latex/oberdiek/kvoptions.sty
Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO)
)
\@linkdim=\dimen103
\Hy@linkcounter=\count87
\Hy@pagecounter=\count88

(/usr/local/texlive/2014/texmf-dist/tex/latex/hyperref/pd1enc.def
File: pd1enc.def 2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO)
)
\Hy@SavedSpaceFactor=\count89

(/usr/local/texlive/2014/texmf-dist/tex/latex/latexconfig/hyperref.cfg
File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
)
Package hyperref Info: Hyper figures OFF on input line 4443.
Package hyperref Info: Link nesting OFF on input line 4448.
Package hyperref Info: Hyper index ON on input line 4451.
Package hyperref Info: Plain pages OFF on input line 4458.
Package hyperref Info: Backreferencing OFF on input line 4463.
Package hyperref Info: Implicit mode ON; LaTeX internals redefined.
Package hyperref Info: Bookmarks ON on input line 4688.
\c@Hy@tempcnt=\count90

(/usr/local/texlive/2014/texmf-dist/tex/latex/url/url.sty
\Urlmuskip=\muskip10
Package: url 2013/09/16  ver 3.4  Verb mode for urls, etc.
)
LaTeX Info: Redefining \url on input line 5041.
\XeTeXLinkMargin=\dimen104
\Fld@menulength=\count91
\Field@Width=\dimen105
\Fld@charsize=\dimen106
Package hyperref Info: Hyper figures OFF on input line 6295.
Package hyperref Info: Link nesting OFF on input line 6300.
Package hyperref Info: Hyper index ON on input line 6303.
Package hyperref Info: backreferencing OFF on input line 6310.
Package hyperref Info: Link coloring OFF on input line 6315.
Package hyperref Info: Link coloring with OCG OFF on input line 6320.
Package hyperref Info: PDF/A mode OFF on input line 6325.
LaTeX Info: Redefining \ref on input line 6365.
LaTeX Info: Redefining \pageref on input line 6369.
\Hy@abspage=\count92
\c@Item=\count93
\c@Hfootnote=\count94
)

Package hyperref Message: Driver (autodetected): hpdftex.

(/usr/local/texlive/2014/texmf-dist/tex/latex/hyperref/hpdftex.def
File: hpdftex.def 2012/11/06 v6.83m Hyperref driver for pdfTeX
\Fld@listcount=\count95
\c@bookmark@seq@number=\count96

(/usr/local/texlive/2014/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty
Package: rerunfilecheck 2011/04/15 v1.7 Rerun checks for auxiliary files (HO)
Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2
82.
)
\Hy@SectionHShift=\skip43
)
(/usr/local/texlive/2014/texmf-dist/tex/latex/doclicense/doclicense.sty
Package: doclicense 2015/04/06 v1.1 Support for putting documents under a licen
se

(/usr/local/texlive/2014/texmf-dist/tex/latex/xifthen/xifthen.sty
Package: xifthen 2009/04/17 v1.3 Extended ifthen features

(/usr/local/texlive/2014/texmf-dist/tex/latex/etex-pkg/etex.sty
Package: etex 2015/03/02 v2.1 eTeX basic definition package (PEB,DPC)
\et@xins=\count97
)
(/usr/local/texlive/2014/texmf-dist/tex/latex/tools/calc.sty
Package: calc 2014/10/28 v4.3 Infix arithmetic (KKT,FJ)
\calc@Acount=\count98
\calc@Bcount=\count99
\calc@Adimen=\dimen107
\calc@Bdimen=\dimen108
\calc@Askip=\skip44
\calc@Bskip=\skip45
LaTeX Info: Redefining \setlength on input line 75.
LaTeX Info: Redefining \addtolength on input line 76.
\calc@Ccount=\count100
\calc@Cskip=\skip46
)
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/ifthen.sty
Package: ifthen 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
)
(/usr/local/texlive/2014/texmf-dist/tex/latex/ifmtarg/ifmtarg.sty
Package: ifmtarg 2009/09/02 v1.2a check for an empty argument
))
(/usr/local/texlive/2014/texmf-dist/tex/latex/etoolbox/etoolbox.sty
Package: etoolbox 2015/03/19 v2.1d e-TeX tools for LaTeX (JAW)
\etb@tempcnta=\count101
)
(/usr/local/texlive/2014/texmf-dist/tex/latex/tools/xspace.sty
Package: xspace 2014/10/28 v1.13 Space after command names (DPC,MH)
)
\doclicense@hsize=\skip47

(/usr/local/texlive/2014/texmf-dist/tex/latex/doclicense/doclicense-english.ldf
File: doclicense-english.ldf 
)) (/usr/local/texlive/2014/texmf-dist/tex/latex/csquotes/csquotes.sty
Package: csquotes 2011/10/22 v5.1d context-sensitive quotations
\csq@reset=\count102
\csq@gtype=\count103
\csq@glevel=\count104
\csq@qlevel=\count105
\csq@maxlvl=\count106
\csq@tshold=\count107
\csq@ltx@everypar=\toks15

(/usr/local/texlive/2014/texmf-dist/tex/latex/csquotes/csquotes.def
File: csquotes.def 2011/10/22 v5.1d csquotes generic definitions
)
Package csquotes Info: Trying to load configuration file 'csquotes.cfg'...
Package csquotes Info: ... configuration file loaded successfully.

(/usr/local/texlive/2014/texmf-dist/tex/latex/csquotes/csquotes.cfg
File: csquotes.cfg 
))
(/usr/local/texlive/2014/texmf-dist/tex/latex/ccicons/ccicons.sty
Package: ccicons 2013/04/16 v1.5 LaTeX support for Creative Commons icons

(/usr/local/texlive/2014/texmf-dist/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2014/12/03 v2.7a package option processing (HA)

(/usr/local/texlive/2014/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2014/texmf-dist/tex/generic/xkeyval/xkvutils.tex
\XKV@toks=\toks16
\XKV@tempa@toks=\toks17
)
\XKV@depth=\count108
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
)))
(/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)

(/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2014/10/28 v1.0p Standard LaTeX Graphics (DPC,SPQR)

(/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
(/usr/local/texlive/2014/texmf-dist/tex/latex/latexconfig/graphics.cfg
File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live
)
Package graphics Info: Driver file: pdftex.def on input line 91.

(/usr/local/texlive/2014/texmf-dist/tex/latex/pdftex-def/pdftex.def
File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX
\Gread@gobject=\count109
))
\Gin@req@height=\dimen109
\Gin@req@width=\dimen110
)
(./runLicense.aux)
\openout1 = `runLicense.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for PD1/pdf/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
\AtBeginShipoutBox=\box26
Package hyperref Info: Link coloring OFF on input line 8.

(/usr/local/texlive/2014/texmf-dist/tex/latex/hyperref/nameref.sty
Package: nameref 2012/10/27 v2.43 Cross-referencing by name of section

(/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/gettitlestring.sty
Package: gettitlestring 2010/12/03 v1.4 Cleanup title references (HO)
)
\c@section@level=\count110
)
LaTeX Info: Redefining \ref on input line 8.
LaTeX Info: Redefining \pageref on input line 8.
LaTeX Info: Redefining \nameref on input line 8.

(./runLicense.out) (./runLicense.out)
\@outlinefile=\write3
\openout3 = `runLicense.out'.

(/usr/local/texlive/2014/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count111
\scratchdimen=\dimen111
\scratchbox=\box27
\nofMPsegments=\count112
\nofMParguments=\count113
\everyMPshowfont=\toks18
\MPscratchCnt=\count114
\MPscratchDim=\dimen112
\MPnumerator=\count115
\makeMPintoPDFobject=\count116
\everyMPtoPDFconversion=\toks19
) (/usr/local/texlive/2014/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
Package: epstopdf-base 2010/02/09 v2.5 Base part for package epstopdf

(/usr/local/texlive/2014/texmf-dist/tex/latex/oberdiek/grfext.sty
Package: grfext 2010/08/19 v1.1 Manage graphics extensions (HO)
)
Package grfext Info: Graphics extension search list:
(grfext)             [.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPE
G,.JBIG2,.JB2,.eps](grfext)             \AppendGraphicsExtensions on input line 452.

(/usr/local/texlive/2014/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
e
))
Underfull \hbox (badness 1655) in paragraph at lines 9--9
[]\OT1/cmr/m/n/10 This work is li-censed un-der a []Cre-ative Com-
 []

LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <7> on input line 9.
LaTeX Font Info:    External font`cmex10' loaded for size
(Font)              <5> on input line 9.

./runLicense.tex:9: LaTeX Error: File `doclicense-CC-by-nc-sa' not found.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.9   \doclicenseThis

I could not locate the file with any of these extensions:
.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPEG,.JBIG2,.JB2,.eps
Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.

Package atveryend Info: Empty hook `BeforeClearDocument' on input line 10.
[1

{/usr/local/texlive/2014/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
Package atveryend Info: Empty hook `AfterLastShipout' on input line 10.

(./runLicense.aux)
Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 10.
Package atveryend Info: Executing hook`AtEndAfterFileList' on input line 10.
Package rerunfilecheck Info: File `runLicense.out' has not changed.
(rerunfilecheck)             Checksum: D41D8CD98F00B204E9800998ECF8427E;0.
Package atveryend Info: Empty hook`AtVeryVeryEnd' on input line 10.
 ) 
Here is how much of TeX's memory you used:
 6432 strings out of 493109
 96158 string characters out of 6135004
 189397 words of memory out of 5000000
 9830 multiletter control sequences out of 15000+600000
 3640 words of font info for 14 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 30i,4n,46p,933b,367s stack positions out of 5000i,500n,10000p,200000b,80000s
</usr/local/texlive/2014/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>

Output written on runLicense.pdf (1 page, 17101 bytes).
PDF statistics:
 21 PDF objects out of 1000 (max. 8388607)
 16 compressed objects within 1 object stream
 2 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

Included quotes in russian translate of doclicense

In Russian we are using the french qoutes («») by default. But as included qoutes (as in russian version of \doclicenseThis macro) we are using the "paw" quotes like this: «Cafe ”Deca“». So what if doclicense will avoid to put namedefs in outer qoutes to keep only one deep level of quotation? Outer quotes seems unnecessary.

Missing `by-nc-nd`

Hello. You're missing one pdf image, doclicense-CC-by-nc-nd.pdf. You have the euro version but not the dollar version.

doclicense: Wrong URL for pd license

The correct link for a pd license is https://creativecommons.org/licenses/publicdomain/deed.en instead of https://creativecommons.org/licenses/publicdomain/1.0/deed.en. So the version should be removed.

This can be easily solved by changing the code for pd.

    \ifthenelse{\equal{\doclicense@modifier}{pd}}{
      \renewcommand{\doclicense@icon}{\ccpd}
      \renewcommand{\doclicense@imagemodifier}{}
      \doclicense@setVersion[1.0]
      \edef\doclicenseURL{%
        \doclicense@baseUrlCC/%
        licenses/publicdomain%%COMMENT removed "/"
        \doclicense@UrlLangPart}%%COMMENT removed "\doclicense@versionUsed"
    }{}

! Undefined control sequence.

Greetings!

Today, after your last update (Sept, 19), I got an error message when compiling the same latex file I compiled with success before (using tufte-handout template):

"! Undefined control sequence. \hyxmp@dc@langs"

that seems is due the new default loaded hyperxmp style: (from VS Code):

{
"resource": "/usr/local/texlive/2020/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty",
"owner": "LaTeX",
"severity": 8,
"message": "Undefined control sequence.\n \hyxmp@detect@langs \n",
"source": "LaTeX",
"startLineNumber": 407,
"startColumn": 1,
"endLineNumber": 407,
"endColumn": 65536
}

In my preamble I have:

\usepackage[brazilian]{babel}
usepackage[
type={CC},
modifier={by-nc-nd},
version={3.0},
]{doclicense}

Best,

J.

CC by-nc-sa 3.0 image

The macro \doclicenseImage sends the following error under MacTeX.

File 'doc-license-CC-by-nc-sa' not found.

doclicense: Wrong image for by-nc EU

The image for by-nc is not the european version when imagemodifier is set to -eu.

This is caused by a lost \renewcommand. The problem can be solved by removing it.

      \ifthenelse{\equal{\doclicense@imagemodifier}{-jp}}{%
        \renewcommand{\doclicense@icon}{\ccbyncjp}
      }{}
      %\renewcommand{\doclicense@imagemodifier}{}%COMMENT Removed

Full localization of the license text and license images

Hello,

Edit(ypid): This issue basically discusses #58.

I have added a new language file for Marathi language, but it fails to change the license name. Try the following code. It uses package marathi (a new release) and this newly created file. Kindly install both of them before running the code.

\documentclass{article}
\usepackage{marathi}
\usepackage[
    type={CC},
    modifier={by-sa},
    version={4.0},
]{doclicense}

\begin{document}
\doclicenseThis
\end{document}

This gives a nearly correct output. See the following screenshot -

Screenshot-34

I wish to change the auto-generated-text Creative Commons to क्रिएटिव्ह कॉमन्स. This is nothing but the same name written in Devanagari script. I couldn't find it in the .ldf as well as in the sty. Can somebody explain me from where can I change this text?

PS - Also a bit difficult one. I want to change the text in the image. Is there any open access svg of this file, in which I can insert Devanagari text?

Colors in images

I have noticed that the black and white in the CC images are not pure black (#000000) and pure white (#FFFFFF), as it should be (the original images found in CC have perfect black and white).

Could this be corrected?

Thanks in advance!
Rodrigo

doclicense: option to disable xmp to be compatible with pdfx

We are currently facing an incompatibility between pdfx and hyperxmp which is no surprise because both add xmp-metadata. (@zhtaihao reported via tudace/tuda_latex_templates#294)

I was wondering if it would be ok if there would be an option to disable the automatically adding of xmpdata maybe even the hyperref settings (most likely both independently of each other).

This would make the usage more flexible and the package usable for templates to create specific PDF standards.

I don't think it's a good idea to blame pdfx/hyperxmp with this because both should not be used in combination.
But if doclicense could provide an option one could disable the loading of hyperxmp and the stick to the own metadata configuration.

I could provide a pull request but wanted to first know about your opinion. Currently one can avoid this by disabling \hyxmp@at@end or the similar mechanism of pdfx.

doclisence running make error

I forked doclicense, but running a make clean and a make in the doclicense directory produces the error:

! LaTeX Error: File `doclicense-CC-by-sa' not found.

Is there a trick to fixing this? If I symlink the file from images to the current directory, it works, but make clean deletes my symlink.

doclicense: LaTeX Error: Too deeply nested.

When I include \doclicenseFullText inside the appendix of a report document, I get LaTeX Error: Too deeply nested.:

(/usr/local/texlive/2018/texmf-dist/tex/latex/doclicense/license-texts/doclicen
se-CC-by-4.0-latex.tex [11] [12] [13] [14]

! LaTeX Error: Too deeply nested.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.80 \begin{enumerate}

? ^D
! Emergency stop.
 ...

l.80 \begin{enumerate}

Copyright License

Add Copyright License with symbol

Hi,

Do you have a copyright system already applied in the package "doclicense" ?
If not, do you think it would be a good idea to add it?

Kind regards

doclicense: No language definition for nilfound

I follow the documentation (as described in #80, not repeated here):

\documentclass[a4paper]{report}
\usepackage{
	babel,
}
\usepackage[
type={CC},
modifier={by-sa},
version={4.0},
]{doclicense}
\begin{document}
Thanks for your great work with doclicense!
\end{document}

and I get the warning:
No language definition for nilfound. Please add one and submit a patch. Using English as fallback.

In this case, it is for experienced users quite clear that we have to specify a language:

\documentclass[a4paper]{report}
% the following line is changed
\usepackage[english]{babel}
\usepackage[
type={CC},
modifier={by-sa},
version={4.0},
]{doclicense}
\begin{document}
Thanks for your great work with doclicense!
\end{document}

and the warning is gone.

However, it would be helpful for beginners if they do not get a warning from the example in the documentation.

Some ideas:

  1. Change documentation to include a language
  2. Handle nil?
  3. Maybe change the warning to clarify the action that is expected from the user? (which is maybe the same as the previous option) The user should add the language to babel.

(nitpick: send a patch to whom or where? It was not immediately clear to me whether babel or doclicense complains. Maybe a clearer sentence could be "doclicense does not support language xyz for license abc, ...")

Hard to use doclicense in class file

I'm finding it impossible to use use doclicense in a cls file because of fact that doclicense is so tightly dependent on hyperxmp. I have attached stripped down files to illustrate the problem. Suppose you have a cls file test.cls that does this:

\LoadClass{article}
\RequirePackage{etoolbox}
\AtEndPreamble{
  \RequirePackage{hyperref}
  \RequirePackage{hyperxmp}
  \RequirePackage[type={CC},modifier={by},version={4.0}]{doclicense}
}

Note that hyperref insists on being loaded last, which is why we have to put the load in \AtEndPreamble (there are a few exceptions to this rule, but we handle those in a way that is extraneous to this issue). The following file exhibits the problem:

\documentclass{test}
\begin{document}
This is a document.
\end{document}

If you compile this, it complains because \doclicenseLongTextForHyperref is defined after the calls to \hypersetup in \AtEndPreamble. I think this is caused by the fact that the \AtEndPreamble gets executed immediately when it is within \AtEndPreamble, and \doclicenseLongTextForHyperref has not been defined yet.

Note that the acmart cls file solved this problem by only having a dependency on doclicense for the images.

I can think of two possible solutions:

  1. delay the invocations of \hypersetup using \AtBeginDocument so that the entire doclicense package can finish loading.
  2. completely decouple doclicense from hyperxmp. The hyperxmp package is in a troubled state, and the author is having a hard time maintaining it in the face of changes to hyperref. Moreover, hyperxmp is being slowly replaced by the new pdfmanagement project in LaTeX.

doclicense: Token not allowed in a PDF string (Unicode):(hyperref) removing `\enquote'

Following the documentation https://ftp.rrzn.uni-hannover.de/pub/mirror/tex-archive/macros/latex/contrib/doclicense/doclicense.pdf
image
I create a new document:

\documentclass[a4paper]{report}
\usepackage{
	babel,
}
\usepackage[
type={CC},
modifier={by-sa},
version={4.0},
]{doclicense}
\begin{document}
Thanks for your great work with doclicense!
\end{document}

Which produces the warning:

Token not allowed in a PDF string (Unicode):(hyperref) removing `\enquote'

\listfiles output:

Package: doclicense 2021/03/13 v2.3.0

Expectation: I get no warning following the documentation.

The warning goes away if I explicitly load the hyperref package (or the hyperxmp package which may also load the hyperref package):

\documentclass[a4paper]{report}
\usepackage{
	babel,
}
\usepackage[
type={CC},
modifier={by-sa},
version={4.0},
]{doclicense}
%the following line is new
\usepackage{hyperref}
\begin{document}
Thanks for your great work with doclicense!
\end{document}

doclicense: Specify package order for any dependencies in documentation

It would be helpful if the documentation contains a sentence in which order I should declare my packages.

Following #66 (comment), it seems that the order is important.

hyperxmp, loaded by doclicense, states in the documentation https://mirror.informatik.hs-fulda.de/tex-archive/macros/latex/contrib/hyperxmp/hyperxmp.pdf :

To use hyperxmp, merely put a \usepackage{hyperxmp} in your document’s preamble. That line can appear anywhere before the hyperref pdf options are specified (i.e., with either \usepackage[. . . ]{hyperref} or \hypersetup{. . . }).

Conclusively, I would assume doclicense must appear before hypperref?

It is unclear to me if there is any order dependency to hyperxmp now. Most likely no, but #66 (comment) is not so clear in this aspect.

Make text sloppy to avoid hyphenation

Hello. How about you make the text next to the license logo \sloppy to avoid hyphenation? I think hyphenating the text over such a small space doesn't look nice.

Incompatibility with biblatex/csquotes

When this package is loaded together with bib latex it produces two errors.
Example code:
\documentclass{article}
\usepackage{biblatex}
\usepackage{doclicense}

\begin{document}
\end{document}

When loaded as
\documentclass{article}
\usepackage{csquotes}
\usepackage{biblatex}
\usepackage{doclicense}

\begin{document}
\end{document}
the error seems to disappear.

doclicense: jp/yen image file

Version 2.0.1 2020-06-26 introduces yen currency modifier "-jp" in code, but a corresponding image file is missing in the package. Could this be added?

imagemodifier=-eu backwards compatibility issue

With the recent update of doclicense, some documents cease to compile, namely those who have imagemodifier=-eu

For instance, this MWE

\documentclass{article}
\usepackage[T1]{fontenc}

\usepackage[%
	imagemodifier=-eu,
%	imagemodifier=-eu-88x31,% <-- Now needed
	type={CC},
	modifier={by-nc-nd},
	version={4.0}]{doclicense}

\begin{document}
\doclicenseImage
\end{document}

breaks with

! LaTeX Error: File `doclicense-CC-by-nc-nd-eu' not found.

This also affects some LaTeX classes which have the above setting, e.g.
http://mirrors.ctan.org/macros/latex/contrib/univie-ling/tex/univie-ling-wlg.cls

I think doclicense should make imagemodifier=-eu link to imagemodifier=-eu-88x31.

Probably it would have been better to introduce a new option for the file size selection.

How to improve doclicense? Integrate with https://reuse.software/?

First of all: I am not a lawyer

The Problem

Currently, doclicense is designed to put a footer into the document like this:

doclicenseThis

(Specifying one license only).

But are you sure that?

  1. All included text or artifact (image/figure/table/source code listing) are under this license? Or can they be released under this license?
  2. What the original licensing and copyright situation of all the source files that end up or influence the final document is?

Proposal

https://reuse.software/ was created to address this but with focus on software projects. I made the source code of doclicense itself compliant with this spec in #71. This got me thinking and I propose the following:

  • Include a hint in the docs that document source files should be compliant with the REUSE Specification. #73
  • Check the license of all files included in LaTeX compilation that are covered by the REUSE Specification and if they are different to the "main license of the document" (as set with the package options), emit warnings during compilation.
  • Provide a macro to attribute artifacts differently, based on REUSE Specification.

The question is if we could go further than that. Would it be useful for the package to check all included files for their license, if it is the same license, pick that (making the package options optional). I am not sure about that.

Further discussion is welcome. I have no timeline if or when I implement this.

Contribution

Hello.

Thanks for your job. I would like to contribute to the translation in French. Is there an easy way to do that ?

Do you know http://www.oneskyapp.com that is free for open source project ?

Adding license fulltext

I'd like to add the ability to include the fulltext of each license, but I'm not sure where files can be placed such that they can be included with \input once the package is installed. Can you give me any guidance on this?

doclicense incompatible with biblatex

LaTeX does not enforce good software practices on packages, and this can result in namespace collisions between definitions of macros. In this case a minimal example to demonstrate the problem is:

\documentclass{article}
\usepackage{biblatex}
\usepackage[type={CC},modifier={by},version={4.0}]{doclicense}
\begin{document}
\end{document}

The result is a collision in csquotes.sty where \newcommand*{@quotelevel}{} collides with the definition from biblatex. Both csquotes and biblatex are quite old packages. I suspect that biblatex is far more commonly used than csquotes. Since doclicense depends on csquotes, we cannot use it in our package because we need to allow users to choose biblatex.

Good software practices generally say that macros should be defined with a unique prefix for the package. Unfortunately csquotes and biblatex violate this, so it is dangerous to depend on either one.

doclicense: provide postscript images?

Compiling with the "latex" command to generate .dvi file fails with not being able to find missing "doclicense-CC-by" file. This is not a path issue but rather the fact that it is looking for a postscript version of the image file. My workaround was to find the doclicense-CC-by.pdf file and use pdf2ps to generate the corresponding postscript image and put that in the current directory. In this case I was using the powerdot package to generate some slides and it requires this compilation method due to its pstricks dependency. Likely the simplest method to resolve this is to include postscript along with the pdf images one imagines.

content of \doclicenseLongText not suitable for pdfcopyright key

doclicense calls

  \hypersetup{%
      pdfcopyright  = {\doclicenseLongText},
      pdflicenseurl = {\doclicenseURL},
    }

\doclicenseLongText is define as

\newcommand{\doclicenseLongText}{%
  \doclicense@lang@thisDoc\space
  \href{\doclicenseURL}{\doclicenseLongType\space\enquote{\doclicense@longName}}%
  \doclicense@lang@word@license.\xspace%
}

That is a rather fragile setup as it relies on a specific expansion behaviour which can change in the future (and actually it currently breaks if the new pdfmanagement of latex is active).

I would suggest to use as pdfcopyright value a text that doesn't contain typesetting commands and no \href.

Incompatibility with spanish babel

Using doclicense along babel with the [spanish] option makes LaTeX render non breaking spaces as ~ (literally).
Here is a MWE:

\documentclass{article}

\usepackage[spanish]{babel}
\usepackage{doclicense}

\begin{document}
    \doclicenseNameRef
\end{document}

cc

I am using MikTeX 2.9 in windows 7x64.

Incompatibility between doclicense and silence (Regression)

The following does not fully compile with pdftex, but hangs in a endless loop:

\RequirePackage{silence}
\documentclass[a4paper]{report}
\usepackage[type={CC},modifier={by},version={4.0}]{doclicense}

\begin{document}
Thanks for your great work with doclicense!
\end{document}

Output of \listfiles:

  • silence.sty 2012/07/02 v1.5b
  • doclicense.sty 2016/04/24 v1.5.0

Expected behavior: Well, the example above compiles and I get a pdf.

Observations:

  1. It seems to be a regression:
    1. doclicense.sty 2016/04/24 v1.5.0 # works (used in my overleaf project)
    2. doclicense.sty 2021/03/13 v2.3.0 # does not work, hangs (recent local TexLive installation)
  2. silence seems to be in general considered as outdated. However, it seems to be the only way to block warnings in third party code that I cannot influence (like in ifplatform). Therefore, getting rid of silence is not a suitable option.
  3. Google finds: https://www.mrunix.de/forums/showthread.php?77506-Probleme-mit-dem-doclicense-und-silence-Paket with a discussion + fix that compiles. See below.
  4. Apparently, it seems to be an issue in silence (one may find more evidences by searching for silence and Terminator or by searching for silence and hyperref. Now we could argue that silence should be fixed (and I would in general agree). However, silence seems to be not updated anymore (which is a very weak argument, but still) and doclicense worked with silence in older versions of doclicense. Avoiding regressions could maybe a strong argument for an adaption of doclicense.

With the change from: https://www.mrunix.de/forums/showthread.php?77506-Probleme-mit-dem-doclicense-und-silence-Paket, the example from above compiles successfully.

\RequirePackage{silence}
%the next 3 lines are new
\makeatletter
\def\sl@Terminator{\null}
\makeatother
\documentclass[a4paper]{report}
\usepackage[type={CC},modifier={by},version={4.0}]{doclicense}

\begin{document}
Thanks for your great work with doclicense!
\end{document}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.