Compare commits

...

39 Commits
v1.0.0 ... HEAD

Author SHA1 Message Date
Achim D. Brucker 2306ea6403 Added compare link for version 1.1.0.
ci/woodpecker/push/build Pipeline was successful Details
2022-07-01 12:33:38 +01:00
Achim D. Brucker 36494d842e Udated reference for diff against last released version.
ci/woodpecker/push/build Pipeline was successful Details
2022-04-24 21:18:19 +01:00
Achim D. Brucker f474d909b8 Udated reference for diff against last released version.
ci/woodpecker/push/build Pipeline was successful Details
2022-04-24 21:16:49 +01:00
Achim D. Brucker 301b059b49 Added version 1.2.0. 2022-04-24 21:05:37 +01:00
Achim D. Brucker 95a66bddd7 Removed exmaple.pdf, generated examples are available on the CI systems. See the .woodpecker directory for details. 2022-04-24 21:00:58 +01:00
Achim D. Brucker 2b188399cf Added email notification for failed builds.
ci/woodpecker/push/build Pipeline was successful Details
2022-03-30 02:26:41 +01:00
Achim D. Brucker 2904f14a78 Reorganized CI setup.
ci/woodpecker/push/build Pipeline was successful Details
2022-03-20 11:09:46 +00:00
Achim D. Brucker bc252c9af6 Initial commit.
ci/woodpecker/push/build Pipeline was successful Details
2022-03-20 10:24:15 +00:00
Achim D. Brucker e2ee5cc292 Generate link to latest artifacts.
ci/woodpecker/push/build Pipeline was successful Details
2022-03-19 20:29:03 +00:00
Achim D. Brucker aed9576324 Merge branch 'koppor-patch-1'
ci/woodpecker/push/build Pipeline was successful Details
2022-03-19 17:35:50 +00:00
Achim D. Brucker 24902f805c Merge branch 'patch-1' of https://github.com/koppor/llncsconf into koppor-patch-1 2022-03-19 17:35:12 +00:00
Achim D. Brucker 847b173d84 Deploy generated artifacts.
ci/woodpecker/push/build Pipeline was successful Details
2022-03-19 14:52:49 +00:00
Achim D. Brucker 3ec32037e4 Added explicit nocrop option. 2022-03-19 14:36:16 +00:00
Achim D. Brucker 654dfddd3d Added Woodpecker configuration.
ci/woodpecker/push/build Pipeline was successful Details
2022-03-16 21:47:19 +00:00
Oliver Kopp f0606d5759
Add changes to CHANGELOG.md 2022-03-14 07:22:25 +01:00
Achim D. Brucker 9376341d13 Fixed typo. 2022-03-13 22:28:11 +00:00
Achim D. Brucker 497181cdf3 Enable note for option 'intented' to each page and allow users to redefine copyright note for options 'intended' and 'submitted' (fixed GitHub #16). 2022-03-13 21:34:26 +00:00
Achim D. Brucker e208383473 Using \toc@uthor instead of \@author in the information shown when the option 'submitted' is used. This should ensure that the correct font size is used (fixes #15 on GitHub). 2022-03-13 20:46:46 +00:00
Achim D. Brucker e9d6833be0 Renamed Master Repository to Upstream Repository. 2022-03-13 19:32:34 +00:00
Achim D. Brucker 41aa7ed1ec Merge branch 'koppor-fix-readme' 2022-03-13 19:28:24 +00:00
Oliver Kopp 9db8203aa0
Add link to the CTAN llncs package 2022-03-10 20:39:55 +01:00
Oliver Kopp ca97a223b0 Refine description of parameters 2022-03-10 01:01:13 +01:00
Achim D. Brucker e42d9bb073 If available, use pdfmanagement instead of \pdfpagesattr (closes #12). 2021-12-23 21:41:26 +00:00
Achim D. Brucker 01d963f798 Updated URL of Springer's consent to publish. 2020-05-10 22:49:05 +01:00
Achim D. Brucker 9db07e4ad7 Updated version to new development branch. 2020-05-10 21:53:00 +01:00
Achim D. Brucker df98d41697 Preparing release (v.1.1.0). 2020-05-10 21:44:54 +01:00
Achim D. Brucker 6a5450b347 Merge branch 'koppor-patch-1' 2020-05-10 20:44:40 +01:00
Oliver Kopp 2105720072
Update CHANGELOG.md 2020-05-05 20:36:57 +02:00
Achim D. Brucker f6b678fd28 Compare-links now point to logicalhacking.com. 2019-08-18 09:51:25 +01:00
Achim D. Brucker a32f356557 Fixed markdown. 2018-06-28 19:12:02 +01:00
Achim D. Brucker f72d98650e Fixed crop margins for a4paper.
Fixes: https://github.com/adbrucker/llncsconf/issues/10
2018-06-23 12:25:33 +01:00
Achim D. Brucker 8217e02366 Added information about location of master/upstream repository. 2018-06-23 12:04:30 +01:00
Achim D. Brucker 291710671a Fix "Keep a Changelog" format
- Add "Unreleased" link
- Remove non-existing link for first version
- Prepare linking of v1.1.0

This commit manually applies pull request https://github.com/adbrucker/llncsconf/pull/9/.
2018-06-23 12:01:37 +01:00
Achim D. Brucker a7095158fa Improved Markdown layout and added SPDIX identifier. 2018-04-10 07:14:10 +01:00
Achim D. Brucker 2aa9c6383c Updated LPPL to version 1.3c. 2018-02-27 23:43:07 +00:00
Achim D. Brucker 1bfbc1f855 Added SPDX license expression. 2018-03-02 07:12:57 +00:00
Achim D. Brucker b8915bdf53 Changed version banner to note that this is a development version. 2018-02-25 09:34:50 +00:00
Achim D. Brucker 4da35e04b7 Bug fix: version information in ProvidesClass{}[]. 2018-02-21 00:01:22 +00:00
Achim D. Brucker e2256e51d0 Added [Unreleased] section. 2018-02-20 23:47:45 +00:00
7 changed files with 216 additions and 46 deletions

22
.woodpecker/README.md Normal file
View File

@ -0,0 +1,22 @@
# Continuous Build and Release Setup
[![status-badge](https://ci.logicalhacking.com/api/badges/adbrucker/llncsconf/status.svg)](https://ci.logicalhacking.com/adbrucker/llncsconf)
This directory contains the CI configuration for the [Woodpecker CI](https://woodpecker-ci.org/).
It may also contain additional tools and script that are useful for preparing a release.
## Generated Artifacts
### Latest Build
* [example_accepted_crop.pdf](https://artifacts.logicalhacking.com/ci/adbrucker/llncsconf/main/latest/example_accepted_crop.pdf)
* [example_accepted_nocrop.pdf](https://artifacts.logicalhacking.com/ci/adbrucker/llncsconf/main/latest/example_accepted_nocrop.pdf)
* [example_intended_crop.pdf](https://artifacts.logicalhacking.com/ci/adbrucker/llncsconf/main/latest/example_intended_crop.pdf)
* [example_intended_nocrop.pdf](https://artifacts.logicalhacking.com/ci/adbrucker/llncsconf/main/latest/example_intended_nocrop.pdf)
* [example_llncs_crop.pdf](https://artifacts.logicalhacking.com/ci/adbrucker/llncsconf/main/latest/example_llncs_crop.pdf)
* [example_llncs_nocrop.pdf](https://artifacts.logicalhacking.com/ci/adbrucker/llncsconf/main/latest/example_llncs_nocrop.pdf)
* [example_proceedings_crop.pdf](https://artifacts.logicalhacking.com/ci/adbrucker/llncsconf/main/latest/example_proceedings_crop.pdf)
* [example_proceedings_nocrop.pdf](https://artifacts.logicalhacking.com/ci/adbrucker/llncsconf/main/latest/example_proceedings_nocrop.pdf)
* [example_submitted_crop.pdf](https://artifacts.logicalhacking.com/ci/adbrucker/llncsconf/main/latest/example_submitted_crop.pdf)
* [example_submitted_nocrop.pdf](https://artifacts.logicalhacking.com/ci/adbrucker/llncsconf/main/latest/example_submitted_nocrop.pdf)

46
.woodpecker/build.yml Normal file
View File

@ -0,0 +1,46 @@
pipeline:
build:
image: docker.io/texlive/texlive
commands:
- export ARTIFACT_DIR=$CI_WORKSPACE/.artifacts/$CI_REPO/$CI_BRANCH/$CI_BUILD_NUMBER/
- mkdir -p $ARTIFACT_DIR
- pdflatex "\PassOptionsToPackage{$STATUS,$CROP}{llncsconf}\input{example.tex}"
- pdflatex "\PassOptionsToPackage{$STATUS,$CROP}{llncsconf}\input{example.tex}"
- cp example.pdf $ARTIFACT_DIR/example_${STATUS}_${CROP}.pdf
- find $ARTIFACT_DIR
- cd $ARTIFACT_DIR
- cd ..
- ln -s * latest
- sleep 5
deploy:
image: docker.io/drillster/drone-rsync
settings:
hosts: [ "ci.logicalhacking.com"]
port: 22
source: .artifacts/$CI_REPO_OWNER/*
target: $CI_REPO_OWNER
include: [ "**.*"]
key:
from_secret: artifacts_ssh
user: artifacts
notify:
image: drillster/drone-email
settings:
host: smtp.0x5f.org
username: woodpecker
password:
from_secret: email
from: ci@logicalhacking.com
when:
status: [ changed, failure ]
matrix:
CROP:
- nocrop
- crop
STATUS:
- intended
- submitted
- accepted
- proceedings
- llncs

View File

@ -1,9 +1,43 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [1.0.0] - 2018-02-20
## [Unreleased]
### Added
### Changed
## [1.2.0] - 2022-04-24
### Added
- The default copyright note can be overwritten by redefining the command `\copyrightnote`.
### Changed
- If available, use pdfmanagement instead of `\pdfpagesattr` [[#12](https://github.com/adbrucker/llncsconf/issues/12)]
- If `intended` is used, the note is put on each page [[#16](https://github.com/adbrucker/llncsconf/issues/16)]
### Fixed
- Reduced size of author statement in footnote [[#15](https://github.com/adbrucker/llncsconf/issues/15)]
## [1.1.0] - 2020-05-10
### Added
- Crop area now takes paper format (a4, letter) into account
## 1.0.0 - 2018-02-20
### Added
- Initial version uploaded to CTAN.
[Unreleased]: https://git.logicalhacking.com/adbrucker/llncsconf/compare/v1.2.0...HEAD
[1.2.0]: https://git.logicalhacking.com/adbrucker/llncsconf/compare/v1.1.0...v1.2.0
[1.1.0]: https://git.logicalhacking.com/adbrucker/llncsconf/compare/v1.0.0...v1.1.0

110
README.md
View File

@ -1,65 +1,107 @@
# llncsconf
LaTeX package extending Springer's llncs class.
## Installation
Copy `llncsconf.sty` in a directory that is searched by LaTeX
LaTeX package extending [Springer's llncs class](https://ctan.org/pkg/llncs).
## Installation
This package is [available on CTAN](https://www.ctan.org/pkg/llncsconf)
and thus included TeXLive and MiKTeX. In case the distributed version
is too old, copy `llncsconf.sty` in a directory that is searched by LaTeX
(e.g,. either your `texmf` tree or the local directory with your main
LaTeX file.
LaTeX file).
## Usage
In a LaTeX file that uses Springer's `llncs` class, just add
```tex
\usepackage{llncsconf}
```
to use the style. The package supports the following options:
* `crop`: crops the page (PDF) to the page size (152x235mm) used by
the LNCS proceedings books (and the official PDFs offered by
Springer). Please ensure that you *do not* have the option
`a4paper` activated. Otherwise, cropping produces wrong results.
* `rcsinfo`: adds RCS revision information to the first page of
the document.
* `svninfo`: adds subversion/svn revision information to the
first page of the document.
* `llncs`: typesets a copy of Springer's copyright note. This should
satisfy Springer's requirements for self-archiving.
You need to supply the DOI using `\llncsdoi{DOI}`.
* `proceedings`: typesets a note in which proceedings the paper was
published (similar to `llncs` without Springer's availability note).
* `accepted`: adds a *accepted for publication at ...* note
to the first page. This is useful for the phase where the camera
ready version is prepared, but the publisher did not yet publish it.
* `submitted`: adds a *submitted to ... please to no distribute* note
to the first page.
* `intended`: adds a *submitted to ... please to no distribute* note
to the first page.
Moreover, the package requires two commands to be executed:
to use the style.
The package supports the following general options:
* `crop`: crops the page (PDF) to the page size (152x235mm) used by
the LNCS proceedings books (and the official PDFs offered by
Springer). Please ensure that you *do not* have the option
`a4paper` activated. Otherwise, cropping produces wrong results.
* `rcsinfo`: adds RCS revision information to the first page of
the document.
* `svninfo`: adds subversion/svn revision information to the
first page of the document.
To indicate the state of the paper, the package supports following choices:
* `intended`: adds a *submitted to ... please to no distribute* note
to each page. The default copyright note can be overwritten by
redefining the command `\copyrightnote`.
* `submitted`: adds a *submitted to ... please to no distribute* note
to each page. The default copyright note can be overwritten by
redefining the command `\copyrightnote`.
* `accepted`: adds a *accepted for publication at ...* note
to the first page. This is useful for the phase where the camera
ready version is prepared, but the publisher did not yet publish it.
* `proceedings`: typesets a note in which proceedings the paper was
published (similar to `llncs` without Springer's availability note).
* `llncs`: typesets a copy of Springer's copyright note. This should
satisfy Springer's requirements for self-archiving.
You need to supply the DOI using `\llncsdoi{DOI}`.
To display the state information properly, additional commands are required:
* `\conference{name of the conference}` which takes one argument,
i.e., the name of the conference. This is used when one of the
options `submitted` or `intended` is used for loading the package.
options `intended`, `submitted`, or `accepted` is used for loading
the package.
* `\llncs{book editors and title}{start page}` which takes two
arguments: first the information about the book (e.g., editors,
title) and, second, the start page of the chapter (contribution).
* `\llncsdoi{DOI}` which takes one argument,
i.e., the DOI of the final publication available at Springer's web site.
| State | `\conference` | `\llncs` | `\llncsdoi` |
| -- | -- | -- | -- |
| intended | yes | no | no |
| submitted | yes | no | no |
| accepted | yes | no | no |
| proceedings | no | yes | no |
| llncs | no | yes | yes |
## Self-Archiving
Sprinter states in his [Springer's Consent to Publish v3](http://resource-cms.springer.com/springer-cms/rest/v1/content/731196/data/v3):
> Author may only post his/her own version, provided acknowledgment is given to the original source of publication and a link is inserted to the published article on Springers website.
> The link must be provided by inserting the DOI number of the article in the following sentence:
> "The final publication is available at Springer via `http://dx.doi.org/[insert DOI]`".
The DOI (Digital Object Identifier) can be found at the bottom of the first page of the published paper.
Springer states in his [Springer's Consent to Publish v3](https://resource-cms.springernature.com/springer-cms/rest/v1/content/15433008/data/Contract_Book_Contributor_Consent_to_Publish_LNCS_SIPAut):
This package uses `https://doi.org` as `http://dx.doi.org` [is deprecated](https://www.doi.org/factsheets/DOIIdentifierSpecs.html).
> Author may only post his/her own version, provided acknowledgment is given
> to the original source of publication and a link is inserted to the published
> article on Springers website. The link must be provided by inserting the DOI
> number of the article in the following sentence:
> "The final publication is available at Springer via
> `http://dx.doi.org/[insert DOI]`".
The DOI (Digital Object Identifier) can be found at the bottom of the first page
of the published paper.
This package uses `https://doi.org` as `http://dx.doi.org`
[is deprecated](https://www.doi.org/factsheets/DOIIdentifierSpecs.html).
## Authors
Main author: [Achim D. Brucker](http://www.brucker.ch/)
### Contributors
* [Oliver Kopp](https://github.com/koppor/)
## License
This project is dual-licensed under a 2-clause BSD-style license and/or
the LPPL version 1 or any later version.
the LPPL version 1.3c or (at your opinion) any later version.
SPDX-License-Identifier: LPPL-1.3c+ OR BSD-2-Clause
## Upstream Repository
The upstream git repository, i.e., the single source of truth, for this
project is hosted by the [Software Assurance & Security Research
Team](https://logicalhacking.com) at
<https://git.logicalhacking.com/adbrucker/llncsconf>.

Binary file not shown.

View File

@ -1,7 +1,6 @@
\documentclass[final, runningheads, USenglish, pdftex]{llncs}
\usepackage{lipsum}
%\usepackage[proceedings,crop]{llncsconf}
\usepackage[llncs,crop]{llncsconf}
\usepackage{llncsconf}
\conference{International Conference on \LaTeX-Hacks}
\llncs{Anonymous et al.\ (eds).\ \emph{Proceedings of the International

View File

@ -4,11 +4,15 @@
%% This program can be redistributed and/or modified under the terms
%% of the LaTeX Project Public License Distributed from CTAN
%% archives in directory macros/latex/base/lppl.txt; either
%% version 1 of the License, or any later version.
%% version 1.3c of the License, or (at your opinion) any later version.
%% OR
%% The 2-clause BSD-style license.
%%
%% SPDX-License-Identifier: LPPL-1.3c+ OR BSD-2-Clause
\NeedsTeXFormat{LaTeX2e}\relax
\ProvidesClass{llncsconf}[Unreleased Achim D. Brucker]
\ProvidesPackage{llncsconf}
[2000/00/00 Unreleased v1.2.0+ %
Tweaks for the llncs class.]
%
\RequirePackage{ifthen}
\RequirePackage{hyperref}
@ -23,6 +27,7 @@
\newboolean{proceedings}
%
\DeclareOption{crop}{\setboolean{crop}{true}}
\DeclareOption{nocrop}{\setboolean{crop}{false}}
\DeclareOption{rcsinfo}{\setboolean{rcsinfo}{true}}
\DeclareOption{svninfo}{\setboolean{svninfo}{true}}
\DeclareOption{accepted}{\setboolean{accepted}{true}}
@ -38,12 +43,32 @@
\def\llncs#1#2{\gdef\@llncs{#1}\ifthenelse{\boolean{llncs} \OR \boolean{proceedings}}{\setcounter{page}{#2}}{}}
\gdef\@llncsdoi{UNKNOWN}
\def\llncsdoi#1{\gdef\@llncsdoi{#1}{}}
\newcommand{\copyrightnote}{\copyright\ \number\year, \toc@uthor}
% <crop>
\ifthenelse{\boolean{crop}}{%
\pdfpagesattr{/CropBox [92 70 523 736]}% LNCS page: 152x235 mm
\ExplSyntaxOn
\@ifundefined{pdfmanagement_add:nnn}{%
\@ifclasswith{llncs}{a4paper}{%
\pdfpagesattr{/CropBox [92 114 523 780]}%
}{%
\pdfpagesattr{/CropBox [92 65 523 731]}% LNCS page: 152x235 mm
}%
}{%
\@ifclasswith{llncs}{a4paper}{%
\pdfmanagement_add:nnn {Pages}{CropBox}{[92~114~523~780]}
}{%
\pdfmanagement_add:nnn {Pages}{CropBox}{[92~62~523~731]}
}%
}%
\ExplSyntaxOff
}{}
% </crop>
\def\ps@svninfofirst{\let\@mkboth\@gobbletwo\let\@oddhead\@empty\let\@evenhead\@empty
\def\@oddfoot{\reset@font\scriptsize
\vbox to\z@{\parindent=\z@\vss
@ -80,24 +105,26 @@
\def\@oddfoot{\reset@font\scriptsize
\vbox to\z@{\parindent=\z@\vss
Submitted to \@conference, please do \emph{not} distribute.\\
\copyright\ \number\year, \@author
}}\let\@evenfoot\@oddfoot}
\copyrightnote%
}}\let\@evenfoot\@oddfoot}
\def\ps@submittedfirst{\let\@mkboth\@gobbletwo\let\@oddhead\@empty\let\@evenhead\@empty
\def\@oddfoot{\reset@font\scriptsize
\vbox to\z@{\parindent=\z@\vss
Submitted to \@conference, please do \emph{not} distribute.\\
\copyright\ \number\year, \@author
\copyrightnote%
}}\let\@evenfoot\@oddfoot}
%
\def\ps@intended{\let\@mkboth\@gobbletwo
\def\@oddfoot{\reset@font\scriptsize
\vbox to\z@{\parindent=\z@\vss
Intended for submission to \@conference, please do \emph{not} distribute.
Intended for submission to \@conference, please do \emph{not} distribute.\\
\copyrightnote%
}}\let\@evenfoot\@oddfoot}
\def\ps@intendedfirst{\let\@mkboth\@gobbletwo\let\@oddhead\@empty\let\@evenhead\@empty
\def\@oddfoot{\reset@font\scriptsize
\vbox to\z@{\parindent=\z@\vss
Intended for submission to \@conference, please do \emph{not} distribute.
Intended for submission to \@conference, please do \emph{not} distribute.\\
\copyrightnote%
}}\let\@evenfoot\@oddfoot}
%
\def\ps@llncs{\let\@mkboth\@gobbletwo\let\@oddhead\@empty\let\@evenhead\@empty
@ -145,7 +172,7 @@
% </accepted>
% <intended>
\ifthenelse{\boolean{intended}}{%
% \pagestyle{intended}%
\pagestyle{intended}%
\let\old@mkttl=\maketitle%
\def\maketitle{\old@mkttl\thispagestyle{intendedfirst}}%
}{}