[O] ditaa and plantuml exports source code?

2017-01-31 Thread Andreas Hirczy
Hi!

Exports from my org files show unwanted source blocks from ditaa in
export. I created a simple example:

###
#+NAME: TEST
#+BEGIN_SRC ditaa :file pics/test.png :exports results
+-+
| cBLU|
| |
|++
||cPNK|
|||
+++
#+END_SRC
###

which translates to <https://itp.tugraz.at/~ahi/Leben/test.html>,
including both source and result. The documentation at
<http://orgmode.org/manual/Exporting-code-blocks.html> states that
":exports results" is the default for ditaa anyway.

I am rather secure, this worked as intended some time ago; but I get
this behaviour now with at least the following exporters:

 - html
 - latex
 - ODT

I found the same problem with plantuml - see
<https://itp.tugraz.at/~ahi/Leben/WarmwasserHeizung.html#org8b51eec> for
an example.

Is there anybody who experiences the same behaviuor?

My version of org is
Org mode version 9.0.4 (release_9.0.2-129-g2ac798.dirty @ 
/afs/itp.tugraz.at/user/ahi/.emacs.d/org-mode/lisp/)

Best regards
Andreas
-- 
Andreas Hirczy <a...@itp.tugraz.at>  https://itp.tugraz.at/~ahi/
Graz University of Technology   phone: +43/316/873-   8190
Institute of Theoretical and Computational Physicsfax: +43/316/873-10 8190
Petersgasse 16, A-8010 Grazmobile: +43/664/859 23 57




Re: [O] [OT] document scanner with ADF

2014-03-17 Thread Andreas Hirczy
Hi!

Samuel Wales samolog...@gmail.com writes:

 We had a great discussion about scanners and ADFs here a while back.
 The Fujitsu ScanSnap 1500 seemed to be a favorite.

We have got Fujitsu ScanSnap S1500M and FI-6130Z - both work near
perfect with Linux and SANE.

If you use SANE, it is necessary to set the driver to ADF first and set
the other parameters (eg. page size) later. This is different from the
epson driver for example - and not done by all frontends.

 We also talked about what resolutions to scan at.

I usually scan at 600 dpi and convert to 300 dpi afterwards.

 What's the current status of document scanners for Linux?  How good
 are the ADFs physically?

I also have an older Epson Perfection 1640SU scanner with ADF - the
driver support on Linux is ok, but mechanically the Fujitsu is much
faster and more robust. We also have a Canon imageRunner ADVANCE 5235
which works great as an ADF scanner, but is in a somewhat different
range :)


My script for a quick scan:
---
#!/bin/sh

# where to store scanned images
TEMPDIR=$(mktemp -d /tmp/scanadf.X)

SOURCE=ADF Front  # possible options: ADF Front|ADF Back|ADF Duplex [ADF 
Front]
SCANMODE=Gray   # possible options: Lineart|Halftone|Gray|Color [Lineart]
RESOLUTION=600  # possible options: 50..600dpi
SOURCE=ADF Duplex

TITLE=$(date -I)_$1

echo Scanner input source : $SOURCE
echo Chosen title for document: $TITLE

scanadf --verbose --source $SOURCE --mode $SCANMODE  --page-height=297 -l 0 
-t 0 -x 210 -y 297 \
--resolution $RESOLUTION --no-overwrite --output-file 
${TEMPDIR}/image-%04d.pnm 

for file in ${TEMPDIR}/image-*.pnm; do 
convert ${file} -resize 50% -depth 4 -normalize ${file%.pnm}.png
#  -linear-stretch 2x2%
done

didjvu bundle --clean --lossy --output $TITLE.djvu $TEMPDIR/*.png
ocrodjvu --in-place --engine tesseract $TITLE.djvu
djview4 $TITLE.djvu 

rm -rf $TEMPDIR
---

Best regards
Andreas
-- 
Andreas Hirczy a...@itp.tugraz.at   http://itp.tugraz.at/~ahi/
Graz University of Technologyphone: +43/316/873-   8190
Institute of Theoretical and Computational Physics fax: +43/316/873-10 8190
Petersgasse 16, A-8010 Graz mobile: +43/664/859 23 57




[O] Convert from emacs planner to org-mode

2012-12-04 Thread Andreas Hirczy
Hi!

I have written yet another converter from planner to org:
http://itp.tugraz.at/~ahi/Computer/SW/muse2org.html
http://itp.tugraz.at/~ahi/Computer/SW/muse2org

Best regards
Andreas
-- 
Andreas Hirczy a...@itp.tugraz.at   http://itp.tugraz.at/~ahi/
Graz University of Technologyphone: +43/316/873-   8190
Institute of Theoretical and Computational Physics fax: +43/316/873-10 8190
Petersgasse 16, A-8010 Graz mobile: +43/664/859 23 57