Skip to content

Commit

Permalink
Answer ctan feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
gustaphe committed Nov 16, 2020
1 parent 2025b3f commit 5cf5b24
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 56 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
datax/*
datax.pdf
README.html
datax.zip
datax.glo
datax.idx
datax.sty
data.tex
*.log
*.aux
*.out
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
.PHONY: all
.PHONY: all clean

all: datax.zip README.html

datax.zip: datax.pdf datax.dtx datax.ins README.md
7z a $@ $^
mkdir datax
cp $^ datax/
7z a $@ datax

datax.pdf : datax.dtx datax.sty
pdflatex -file-line-error -interaction=nonstopmode $<
Expand All @@ -13,3 +15,7 @@ datax.sty : datax.ins

README.html: README.md
md2html $<

clean :
$(RM) -rd datax
$(RM) datax.zip *.pdf *.log *.aux *.out *.glo *.idx *.sty *.html data.tex
4 changes: 0 additions & 4 deletions data.tex

This file was deleted.

10 changes: 8 additions & 2 deletions datax.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,17 @@
%
%
%<*driver>
\begin{filecontents}{data.tex}
\pgfkeyssetvalue{/datax/s}{A literal string}
\pgfkeyssetvalue{/datax/x}{\num{2.4}}
\pgfkeyssetvalue{/datax/c}{\SI{3e8}{\meter\per\second}}
\end{filecontents}
\documentclass{ltxdoc}
\usepackage{datax}
\usepackage{booktabs}
\usepackage{siunitx}
\usepackage[hidelinks]{hyperref}

\EnableCrossrefs
\CodelineIndex
\RecordChanges
Expand All @@ -38,7 +44,7 @@
%</driver>
% \fi
%
%\CheckSum{14}
%\CheckSum{16}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
Expand Down Expand Up @@ -132,7 +138,7 @@
}, %
}

\input{\dataxfile}
\InputIfFileExists{\dataxfile}{}{\PackageWarning{Cannot read file `\dataxfile' }}
% \end{macrocode}
% \begin{macro}{\datax}
% Include datum from the specified data file.
Expand Down
48 changes: 0 additions & 48 deletions datax.sty

This file was deleted.

0 comments on commit 5cf5b24

Please sign in to comment.