Skip to content

Commit

Permalink
Merge branch 'release/v0.0.3b41' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
Strauman committed Apr 4, 2018
2 parents 88dc479 + 2977cf9 commit 565fe5a
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Here is the [handin-doc.pdf](https://raw.githubusercontent.com/Strauman/Handin-L
## Versions
The current latest version available on GitHub is v0.0.3 (2018/04/04) build 41

The current latest version available on CTAN is 0.0.2 (2018-04-01) build 2
The current latest version available on CTAN is v0.0.3 (2018/04/04) build 41

*Be aware that it can take at least 24-48 hours from the CTAN date above until the package is updated on CTAN, TeXLive and MiKTeX are updated*

Expand Down
2 changes: 1 addition & 1 deletion docs/changelog.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
v0.0.2&2018/04/01&Problems are now added to the table of contents by default\\
v0.0.2b34&2018/04/02&Updated documentation syntax\\
v0.0.3b41&2018/04/04&\begin{itemize}
\item German language added
\item German language added by africola \newline (\url{https://github.com/africola})
\end{itemize}\\
\end{tabularx}
Binary file modified docs/handin-doc.pdf
Binary file not shown.
19 changes: 18 additions & 1 deletion docs/handin-doc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
\makeatother
\let\dac\docAuxCommand
\tcbset{documentation listing style=mydocumentation}
% Magenta HREF style
\let\oldhref\href
\gdef\href#1#2{{\color{magenta}\oldhref{#1}{#2}}}
% Give section some space
\let\oldsection\section
\gdef\section{\needspace{0.3\paperheight}\oldsection}
Expand Down Expand Up @@ -95,6 +98,20 @@ \subsection{Page formatting commands}
This is the text that is on the bottom right corner reading "Page x of y". Default is
\dac{pagetext}\{Page \dac{thepage}~of \dac{pageref}{LastPage\}}
\end{docCommand}
\subsection{Languages}
This package supports.
\begin{itemize}
\item English
\item Norwegian
\item German (by \href{https://github.com/africola}{africola})


\end{itemize}
Translations are welcome at \url{https://github.com/Strauman/Handin-LaTeX-template/tree/master/src/languages}.
The current language is set by the \texttt{iflang} package, so you can use e.g. babel:
\begin{dispListing}
\usepackage[german]{babel}
\end{dispListing}
\subsection{General reference}
\begin{docCommand}{problem}{\marg{text}}
This command will print out a problem header. For example \dac{problem}\{1\}
Expand Down Expand Up @@ -138,7 +155,7 @@ \section{Changelog}
v0.0.2&2018/04/01&Problems are now added to the table of contents by default\\
v0.0.2b34&2018/04/02&Updated documentation syntax\\
v0.0.3b41&2018/04/04&\begin{itemize}
\item German language added
\item German language added by africola \newline (\url{https://github.com/africola})
\end{itemize}\\
\end{tabularx}
\end{document}
Binary file modified handin-doc.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion src/README.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Here is the [handin-doc.pdf](https://raw.githubusercontent.com/Strauman/Handin-L
## Versions
The current latest version available on GitHub is @@VERSION (@@DATE) build @@BUILD

The current latest version available on CTAN is 0.0.2 (2018-04-01) build 2
The current latest version available on CTAN is v0.0.3 (2018/04/04) build 41

*Be aware that it can take at least 24-48 hours from the CTAN date above until the package is updated on CTAN, TeXLive and MiKTeX are updated*

Expand Down
4 changes: 3 additions & 1 deletion src/aftercompile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,17 @@ rm $CTANDir/layout.tex
mv ../README.md ../README.md.bak
echo -e "<!---\n DO NOT EDIT THIS FILE \n EDITS SHOULD BE DONE IN src/README.template.md \n-->" > ../README.md
cat README.template.md >> ../README.md
pushd . >/dev/null
cd ../
outHandle "Error when inserting package-variables to README.md-file" $perlDir/vars.pl -v $version -p $packagename -g $github -b $build README.md
popd >/dev/null

# Zip CTAN file
sleep 0.3
echo "Zipping CTAN"
rm haninCTAN.zip
zip handinCTAN.zip -r "$packagename/"

sleep 0.3
rm -rf "$mainDir/handin"
mv "$sourceDir/handinCTAN.zip" "$mainDir/"
mv "$CTANDir/" "$mainDir/$packagename"
Expand Down
2 changes: 2 additions & 0 deletions src/languages/deDE.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
%!TEX root = ../main.tex
%:$LANGUAGES.=\!item German (by \!href{https://github.com/africola}{africola})
%:-
\set@tr{Problem}{Aufgabe}
\set@tr{problem}{Aufgabe}
\set@tr{containspages}{Enthält \pageref{LastPage} Seiten, inklusive Titelseite}
Expand Down
2 changes: 2 additions & 0 deletions src/languages/enUS.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
%!TEX root = ../main.tex
%:$LANGUAGES.=\!item English
%:-
\set@tr{Problem}{Problem}
\set@tr{problem}{problem}
\set@tr{containspages}{Contains \pageref{LastPage} pages, front page included}
Expand Down
12 changes: 8 additions & 4 deletions src/languages/languagedelegator.tex
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
%!TEX root = ../main.tex
%\BDOC
%§lang
%This package supports norwegian, german and english. Translations are welcome at \url{https://github.com/Strauman/Handin-LaTeX-template/tree/master/src/languages}. that are set by the \!\texttt{iflang} package.
%
%:§lang
%:This package supports.
%:\!begin{itemize}
%:$$LANGUAGES
%:\!end{itemize}
%:Translations are welcome at \!url{https://github.com/Strauman/Handin-LaTeX-template/tree/master/src/languages}.
%:The current language is set by the \!texttt{iflang} package, so you can use e.g. babel:
%:!\usepackage[german]{babel}
%:-
\makeatletter
\def\@tr#1{
Expand Down
2 changes: 2 additions & 0 deletions src/languages/nbNO.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
%!TEX root = ../main.tex
%:$LANGUAGES.=\!item Norwegian
%:-
\makeatletter
\set@tr{Problem}{Oppgave}
\set@tr{problem}{oppgave}
Expand Down

0 comments on commit 565fe5a

Please sign in to comment.