Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quick fix for PPA and usage, quick remedy for #14 #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 21 additions & 22 deletions content/getting-started/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ layout: single
## Install
Operating System | Software
---------------- | -------------
[![](/images/ubuntu.png)](https://launchpad.net/~benjamin-sipsolutions/+archive/sdaps-stable/ ) | [**PPA (stable)**](https://launchpad.net/~benjamin-sipsolutions/+archive/sdaps-stable/ ) or <br>[**PPA (unstable)**](https://launchpad.net/~benjamin-sipsolutions/+archive/sdaps/)<br>and other Debian-based<br>Distros like LinuxMint.<br><br>{{% spoiler "Commands" %}}`sudo add-apt-repository ppa:benjamin-sipsolutions/sdaps` or `/sdaps-unstable`<br>`sudo apt-get update`<br>`sudo apt-get install sdaps`{{% /spoiler %}}
[![](/images/ubuntu.png)](https://launchpad.net/~benjamin-sipsolutions/+archive/sdaps-stable/ ) | [**PPA (stable)**](https://launchpad.net/~benjamin-sipsolutions/+archive/sdaps-stable/ ) or <br>[**PPA (unstable)**](https://launchpad.net/~benjamin-sipsolutions/+archive/sdaps/)<br>and other Debian-based<br>Distros like LinuxMint.<br><br>{{% spoiler "Commands" %}}`sudo add-apt-repository ppa:benjamin-sipsolutions/sdaps-stable` or `/sdaps`<br>`sudo apt-get update`<br>`sudo apt-get install sdaps`{{% /spoiler %}}
![](/images/debian.png) | Install the PPA<br> for ubuntu<br>**or**<br>click **"From Source"**<br>under this table
[![](/images/fedora.png)](https://copr.fedorainfracloud.org/coprs/benzea/sdaps/) | [**COPR (unstable)**](https://copr.fedorainfracloud.org/coprs/benzea/sdaps/)<br><br>{{% spoiler Commands %}}`sudo dnf copr enable benzea/sdaps`<br>`sudo dnf install sdaps`{{% /spoiler %}}
[![](/images/arch.png)](https://aur.archlinux.org/packages/sdaps-git) | [**'sdaps-git' (unstable)**](https://aur.archlinux.org/packages/sdaps-git)<br>latest master branch<br>via [AUR](https://aur.archlinux.org/)<br><br>{{% spoiler Commands %}}To install AUR packages<br>we recommend [`aurman`](https://github.com/polygamma/aurman ).<br>Install that and then type<br>`aurman -S sdaps-git`{{% /spoiler %}}
Expand Down Expand Up @@ -163,22 +163,21 @@ This is the first time that we need to run an SDAPS command. The syntax for
the command is generally the following:

```bash
$ sdaps PROJECT_DIR COMMAND [arguments]
$ sdaps COMMAND [ARGUMENTS]
```

Where `PROJECT_DIR` is the directory for the survey, and command is the
SDAPS command that is executed. Most commands will require some arguments.
You can always get a help by running:
Where command is the SDAPS command that is executed. Most commands will
require some arguments. You can always get a help by running:

```bash
$ sdaps PROJECT_DIR COMMAND --help
$ sdaps COMMAND -h
```

So we create the project using the provided `example.tex`. The tutorial
assumes that the LaTeX file is in the current directory.

```bash
$ sdaps /tmp/project setup_tex example.tex
$ sdaps setup /tmp/project example.tex
------------------------------------------------------------------------------
- SDAPS -- setup_tex
------------------------------------------------------------------------------
Expand Down Expand Up @@ -246,7 +245,7 @@ Once you have a scan in the correct format you can add it to survey directory
that was created earlier. This is done using the `add` command:

``` bash
$ sdaps /tmp/project add example.tif
$ sdaps add /tmp/project example.tif
----------------------------------------
- SDAPS -- add
----------------------------------------
Expand All @@ -271,7 +270,7 @@ The next step is to run the optical mark recognition. This works using the
`recognize` command. So from the command line again we run:

``` bash
$ sdaps /tmp/project recognize
$ sdaps recognize /tmp/project
-------------------------------------------------
- SDAPS -- recognize
-------------------------------------------------
Expand All @@ -293,7 +292,7 @@ filling it out).
Tocorrect any errors we can use the graphical user interface. We start it using

``` bash
$ sdaps /tmp/project gui
$ sdaps gui /tmp/project
----------------------------------
- SDAPS -- gui
----------------------------------
Expand All @@ -312,7 +311,7 @@ amount of time to spend on this will depend on the required accuracy.
To create a PDF report with the results simply run:

``` bash
$ sdaps /tmp/project report
$ sdaps report /tmp/project
----------------------------------
- SDAPS -- report
----------------------------------
Expand All @@ -326,7 +325,7 @@ Note that we can also do partial reports by using filters. Just a quick
example (please refer to the rest of the documentation for an explanation):

``` bash
$ sdaps /tmp/project report -f '_1_2_3 == 5'
$ sdaps report /tmp/project -f '_1_2_3 == 5'
--------------------------------------------
- SDAPS -- report
--------------------------------------------
Expand All @@ -341,7 +340,7 @@ Obviously sometimes it might be necessary to feed the data into another
program. For this the CSV export command was created:

``` bash
$ sdaps /tmp/project csv export
$ sdaps csv export /tmp/project
--------------------------------------------
- SDAPS -- csvdata
--------------------------------------------
Expand Down Expand Up @@ -369,7 +368,7 @@ choice of either creating numeric random IDs, or supplying a set of IDs
For example, to create 15 questionnaires with randomized IDs you can run

``` bash
$ sdaps /tmp/project stamp -r 15
$ sdaps stamp -r 15 /tmp/project
```

To specify non-random IDs create a file with one ID per line. It might look
Expand All @@ -384,7 +383,7 @@ Some Name
Then run the stamp command, with the created file as an argument:

``` bash
$ sdaps /tmp/project stamp -f ids.txt
$ sdaps stamp -f ids.txt /tmp/project
```

Both commands will create a new `stamp_X.pdf` file (where X is a number)
Expand All @@ -407,7 +406,7 @@ As mentioned before, you can create a PDF to see if the values read from the
designed questionnaire are all correct (checkbox positions, etc.). To use run:

``` bash
$ sdaps /tmp/project annotate
$ sdaps annotate /tmp/project
```

The file `annotated_questionnaire.pdf` is created. Might be a bit ugly,
Expand All @@ -429,19 +428,19 @@ so that everything is together again.
First identify all pages ie. read all the barcodes:

```bash
$ sdaps /tmp/project recognize --identify
$ sdaps recognize --identify /tmp/project
```

Then reorder the pages:

```bash
$ sdaps /tmp/project reorder
$ sdaps reorder /tmp/project
```

And when that is done you can do the normal "recognize" step:

```bash
$ sdaps /tmp/project recognize
$ sdaps recognize /tmp/project
```

#### Using a camera for input
Expand All @@ -456,8 +455,8 @@ if you have a newer version of the multicol package). To try it, extract the
archive (in this example to /tmp/ and then run the following commands:

``` bash
$ sdaps /tmp/project convert --3d-transform /tmp/cellphone/*.jpg --output /tmp/out.tif
$ sdaps /tmp/project add /tmp/out.tif
$ sdapsconvert --3d-transform /tmp/cellphone/*.jpg --output /tmp/out.tif /tmp/project
$ sdaps add /tmp/out.tif /tmp/project
```

The `--3d-transform` is important as the SDAPS main Program only does a
Expand All @@ -476,7 +475,7 @@ something smaller (e.g. 15).{{% /warning %}}
You can create a report that is rendered using LaTeX.

```bash
$ sdaps /tmp/project report_tex
$ sdaps report_tex /tmp/project
```

{{% warning title="Attention" %}}This command requires the siunitx LaTeX
Expand Down
Binary file modified static/files/example.pdf
Binary file not shown.
20 changes: 13 additions & 7 deletions static/files/example.tex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
% The following options make sense so that we can get a better feel for the
% final look.
pagemark,
stamp]{sdaps}
stamp]{sdapsclassic}
\usepackage[utf8]{inputenc}
% For demonstration purposes
\usepackage{multicol}
Expand All @@ -41,7 +41,10 @@
\begin{questionnaire}
% There is a predefined "info" style to hilight some text.
\begin{info}
Some information here. Nothing special, just adds a line above/below.
You can create a customized information element similar to the standard
one using the \texttt{info} environment. By adding \texttt{[noinfo]} to
the \texttt{questionaire} environment you can replace the predefined
information field with your own.
\end{info}

% Use \addinfo to add metadata (which is printed on the report later on)
Expand Down Expand Up @@ -69,9 +72,9 @@
of choices is typesetted using a tabularx environment with equally
sized columns. Items can span multiple columns.

\begin{choicequestion}[3]{Which of the following Open Source
Optical Mark Recognition software
packages have you heard about?}
\begin{choicequestion}[cols=3]{Which of the following Open Source
Optical Mark Recognition software
packages have you heard about?}
\choiceitem{SDAPS}
\choicemulticolitem{2}{Auto Multiple Choice}
\choiceitem{QueXF}
Expand Down Expand Up @@ -126,7 +129,7 @@

Lets put some more questions here, just because we can.

\begin{choicequestion}[1]{A choice question!}
\begin{choicequestion}[cols=1]{A choice question!}
\choiceitem{first choice}
\choiceitem{second choice}
\choiceitem{third choice}
Expand All @@ -145,7 +148,10 @@

There are some more special commands. You can draw \checkedbox{} crossed
checkboxes, \filledbox{} filled or \correctedbox{} filled and crossed ones. Finally there is
also the plain \checkbox*{} checkbox using {\ttfamily \textbackslash{}checkbox*}.
also the plain \checkbox{} checkbox using {\ttfamily \textbackslash{}checkbox}
or the starred versions showing single choice items \checkbox*{}
\checkedbox*{}. These are for decoration purposes only and do not affect
further processing in any way.

\textbox*{2cm}{And textboxes with a fixed height. This one is exactly 2\,cm high.}

Expand Down