[texhax] Printing "bar code" on document
Suresh Govindachar
sgovindachar at yahoo.com
Fri Oct 4 04:58:16 CEST 2013
On 10/2/2013 11:52 AM, Herbert Voss wrote:
> run the document with
>
> pdflatex --shell-escape <file>
>
> or with xelatex
>
>
> \documentclass{article}
> \usepackage{pst-barcode}
> \usepackage{auto-pst-pdf}
>
> \begin{document}
>
> foo
>
> \begin{pspicture}(0,-5mm)(3,1in)
> \psbarcode{978-3-86541-496}{includetext}{isbn}
> \end{pspicture}
>
> bar
>
> \end{document}
I tried the above (naming the file foo.tex) and ended up with error
messages about foo-pics.pdf. Although there is an intermediate output,
foo-autopp.pdf, with a barcode in it, and the final output, foo.pdf, has
the lines "foo" and "bar" -- there is no barcode in the final output.
List of files:
232 Oct 3 19:41 foo.tex
708722 Oct 3 19:48 foo-autopp.ps
3194 Oct 3 19:48 foo-autopp.pdf
9150 Oct 3 19:48 foo-autopp.log
1880 Oct 3 19:48 foo-autopp.dvi
3269 Oct 3 19:48 tmp-pdfcrop-6868.tex
11457 Oct 3 19:48 foo.pdf
12337 Oct 3 19:48 foo.log
9 Oct 3 19:48 foo.aux
Contents of foo.log:
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9 64-bit)
(preloaded format=pdflatex 2013.10.3) 3 OCT 2013 19:48
entering extended mode
**foo.tex
(c:\home\suresh\foo.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans,
ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian,
catalan, coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish,
french, ga
lician, german, german-x-2013-05-26, greek, gujarati, hindi,
hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji,
latin, latvian,
lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek,
ngerman, n
german-x-2013-05-26, nynorsk, oriya, panjabi, pinyin, polish,
portuguese, roman
ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish,
swissgerm
an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian,
uppersorbian, usengl
ishmax, welsh, loaded.
(C:\opt\miktex_2.9\tex\latex\base\article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(C:\opt\miktex_2.9\tex\latex\base\size10.clo
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c at part=\count79
\c at section=\count80
\c at subsection=\count81
\c at subsubsection=\count82
\c at paragraph=\count83
\c at subparagraph=\count84
\c at figure=\count85
\c at table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(C:\opt\miktex_2.9\tex\latex\pst-barcode\pst-barcode.sty
(C:\opt\miktex_2.9\tex\latex\pstricks\pstricks.sty
Package: pstricks 2013/05/22 v0.57 LaTeX wrapper for `PSTricks' (RN,HV)
(C:\opt\miktex_2.9\tex\generic\pstricks\base\pstricks.tex
(C:\opt\miktex_2.9\tex\generic\xkeyval\pst-xkey.tex
File: pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval
(HA)
(C:\opt\miktex_2.9\tex\latex\xkeyval\xkeyval.sty
Package: xkeyval 2012/10/14 v2.6b package option processing (HA)
(C:\opt\miktex_2.9\tex\generic\xkeyval\xkeyval.tex
\XKV at toks=\toks14
\XKV at tempa@toks=\toks15
\XKV at depth=\count87
File: xkeyval.tex 2012/10/14 v2.6b key=value parser (HA)
(C:\opt\miktex_2.9\tex\generic\xkeyval\keyval.tex))))
(C:\opt\miktex_2.9\tex\generic\pstricks\base\pst-fp.tex
`pst-fp' v0.05, 2010/01/17 (hv)
\pstFP at xs=\count88
\pstFP at xia=\count89
\pstFP at xib=\count90
\pstFP at xfa=\count91
\pstFP at xfb=\count92
\pstFP at rega=\count93
\pstFP at regb=\count94
\pstFP at regs=\count95
\pstFP at times=\count96
)
(C:\opt\miktex_2.9\tex\generic\pgf\utilities\pgfutil-common.tex
\pgfutil at everybye=\toks16
)
(C:\opt\miktex_2.9\tex\generic\pgf\utilities\pgfkeys.code.tex
\pgfkeys at pathtoks=\toks17
\pgfkeys at temptoks=\toks18
(C:\opt\miktex_2.9\tex\generic\pgf\utilities\pgfkeysfiltered.code.tex
\pgfkeys at tmptoks=\toks19
))
(C:\opt\miktex_2.9\tex\generic\pgf\utilities\pgffor.code.tex
\pgffor at iter=\dimen103
\pgffor at skip=\dimen104
\pgffor at stack=\toks20
\pgffor at toks=\toks21
)
\psLoopIndex=\count97
`PSTricks' v2.46 <2013/08/20> (tvz)
\pst at dima=\dimen105
\pst at dimb=\dimen106
\pst at dimc=\dimen107
\pst at dimd=\dimen108
\pst at dimg=\dimen109
\pst at dimh=\dimen110
\pst at dimm=\dimen111
\pst at dimn=\dimen112
\pst at dimo=\dimen113
\pst at dimp=\dimen114
\pst at hbox=\box26
\pst at ibox=\box27
\pst at boxg=\box28
\pst at cnta=\count98
\pst at cntb=\count99
\pst at cntc=\count100
\pst at cntd=\count101
\pst at cntg=\count102
\pst at cnth=\count103
\pst at cntm=\count104
\pst at cntn=\count105
\pst at cnto=\count106
\pst at cntp=\count107
\@zero=\count108
\pst at toks=\toks22
(C:\opt\miktex_2.9\tex\generic\pstricks\base\pstricks.con)
\psunit=\dimen115
\psxunit=\dimen116
\psyunit=\dimen117
\pst at C@@rType=\count109
\pslinewidth=\dimen118
\psk at startLW=\dimen119
\psk at endLW=\dimen120
\pst at customdefs=\toks23
\pslinearc=\dimen121
\pst at symbolStep=\dimen122
\pst at symbolWidth=\dimen123
\pst at symbolLinewidth=\dimen124
\everypsbox=\toks24
\psframesep=\dimen125
\pslabelsep=\dimen126
\sh at wgridXunit=\dimen127
\sh at wgridYunit=\dimen128
\pst at shift=\dimen129
)
File: pstricks.tex 2013/08/20 v2.46 `PSTricks' (tvz,hv)
(C:\opt\miktex_2.9\tex\generic\pstricks\base\pst-fp.tex)
File: pst-fp.tex 2013/08/20 v2.46 `PST-fp' (hv)
(C:\opt\miktex_2.9\tex\latex\xcolor\xcolor.sty
Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK)
(C:\opt\miktex_2.9\tex\latex\00miktex\color.cfg
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
)
Package xcolor Info: Driver file: pdftex.def on input line 225.
(C:\opt\miktex_2.9\tex\latex\pdftex-def\pdftex.def
File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX
(C:\opt\miktex_2.9\tex\generic\oberdiek\infwarerr.sty
Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error
messages (HO)
)
(C:\opt\miktex_2.9\tex\generic\oberdiek\ltxcmds.sty
Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general
use (HO)
)
\Gread at gobject=\count110
)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line
1337.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1341.
Package xcolor Info: Model `RGB' extended on input line 1353.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line
1355.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line
1357.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358.
Package xcolor Info: Model `Gray' substituted by `gray' on input line
1359.
Package xcolor Info: Model `wave' substituted by `hsb' on input line
1360.
))
Package: pst-barcode 2012/11/16 package wrapper for pst-barcode.tex (hv)
(C:\opt\miktex_2.9\tex\generic\pst-barcode\pst-barcode.tex
`PST-barcode' v0.10, 2012/11/16 (tb,hv))
File: pst-barcode.tex 2012/11/16 v0.10 `PST-barcode' (hv)
)
(C:\opt\miktex_2.9\tex\latex\auto-pst-pdf\auto-pst-pdf.sty
Package: auto-pst-pdf 2009/04/26 v0.6 Wrapper for pst-pdf
(C:\opt\miktex_2.9\tex\generic\oberdiek\ifpdf.sty
Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in PDF mode is detected.
)
(C:\opt\miktex_2.9\tex\latex\ifplatform\ifplatform.sty
Package: ifplatform 2010/10/22 v0.4 Testing for the operating system
(C:\opt\miktex_2.9\tex\generic\oberdiek\pdftexcmds.sty
Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for
LuaTeX (HO
)
(C:\opt\miktex_2.9\tex\generic\oberdiek\ifluatex.sty
Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
)
Package pdftexcmds Info: LuaTeX not detected.
Package pdftexcmds Info: \pdf at primitive is available.
Package pdftexcmds Info: \pdf at ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
)
(C:\opt\miktex_2.9\tex\generic\oberdiek\catchfile.sty
Package: catchfile 2011/03/01 v1.6 Catch the contents of a file (HO)
(C:\opt\miktex_2.9\tex\generic\oberdiek\etexcmds.sty
Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX
commands (HO)
Package etexcmds Info: Could not find \expanded.
(etexcmds) That can mean that you are not using pdfTeX
1.50 or
(etexcmds) that some package has redefined \expanded.
(etexcmds) In the latter case, load this package earlier.
)))
\c at app@runs=\count111
runsystem(echo " ")...executed.
runsystem(echo
"-------------------------------------------------")...executed.
runsystem(echo "auto-pst-pdf: Auxiliary LaTeX compilation")...executed.
runsystem(echo
"-------------------------------------------------")...executed.
runsystem(latex -disable-write18 -jobname="foo-autopp"
-interaction=batchmode
"\let \APPmakepictures \empty \input foo.tex")...executed.
runsystem(dvips -Ppdf -o "foo-autopp.ps" "foo-autopp.dvi")...executed.
runsystem(ps2pdf "foo-autopp.ps" "foo-autopp.pdf")...executed.
runsystem(pdfcrop "foo-autopp.pdf" "foo-pics.pdf")...executed.
Package auto-pst-pdf Warning:
Creation of foo-pics.pdf failed.
This warning occured on input line 124.
Package auto-pst-pdf Warning:
Could not create foo-pics.pdf. Auxiliary files not deleted.
This warning occured on input line 124.
runsystem(echo
"-------------------------------------------------")...executed.
runsystem(echo "auto-pst-pdf: End auxiliary LaTeX
compilation")...executed.
runsystem(echo
"-------------------------------------------------")...executed.
(C:\opt\miktex_2.9\tex\latex\pst-pdf\pst-pdf.sty
Package: pst-pdf 2008/10/09 v1.1v PS graphics for pdfLaTeX (RN,HjG)
\c at pspicture=\count112
(C:\opt\miktex_2.9\tex\latex\graphics\graphicx.sty
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
(C:\opt\miktex_2.9\tex\latex\graphics\graphics.sty
Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
(C:\opt\miktex_2.9\tex\latex\graphics\trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
(C:\opt\miktex_2.9\tex\latex\00miktex\graphics.cfg
File: graphics.cfg 2007/01/18 v1.5 graphics configuration of
teTeX/TeXLive
)
Package graphics Info: Driver file: pdftex.def on input line 91.
)
\Gin at req@height=\dimen130
\Gin at req@width=\dimen131
)
Package pst-pdf Info: MODE: 1 (pdfTeX mode) on input line 214.
\ppf at output=\toks25
(C:\opt\miktex_2.9\tex\latex\preview\preview.sty
Package: preview 2010/02/14 11.86 (AUCTeX/preview-latex)
\pr at snippet=\count113
\pr at box=\box29
\pr at output=\toks26
)
(C:\opt\miktex_2.9\tex\latex\graphics\dvips.def
File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
)
(C:\opt\miktex_2.9\tex\latex\environ\environ.sty
Package: environ 2013/04/01 v0.3 A new environment syntax
(C:\opt\miktex_2.9\tex\latex\trimspaces\trimspaces.sty
Package: trimspaces 2009/09/17 v1.1 Trim spaces around a token list
)
\@envbody=\toks27
)))
No file foo.aux.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info: ... okay on input line 5.
(C:\opt\miktex_2.9\tex\context\base\supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count114
\scratchdimen=\dimen132
\scratchbox=\box30
\nofMPsegments=\count115
\nofMParguments=\count116
\everyMPshowfont=\toks28
\MPscratchCnt=\count117
\MPscratchDim=\dimen133
\MPnumerator=\count118
\makeMPintoPDFobject=\count119
\everyMPtoPDFconversion=\toks29
)
Preview: Fontsize 10pt
Preview: PDFoutput 1
Package pst-pdf Warning: pspicture No. 1 undefined.
Package pst-pdf Warning: File `foo-pics.pdf' not found.
(pst-pdf) Use the following commands to create it:
(pst-pdf) ----------------------------------------------------
(pst-pdf) latex foo.tex
(pst-pdf) dvips -o foo-pics.ps foo.dvi
(pst-pdf) ps2pdf foo-pics.ps
(pst-pdf) ---------------------------------------------------- .
[1
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special
ignored!{C:/ProgramData/MiKTeX/2.9/pdftex/config/pdftex.map}]
(c:\home\suresh\foo.aux) )
Here is how much of TeX's memory you used:
4224 strings out of 493921
62916 string characters out of 3151271
137514 words of memory out of 3000000
7469 multiletter control sequences out of 15000+200000
3640 words of font info for 14 fonts, out of 3000000 for 9000
841 hyphenation exceptions out of 8191
44i,5n,53p,354b,121s stack positions out of
5000i,500n,10000p,200000b,50000s
<C:/opt/miktex_2.9/fonts/type1/public/amsfonts/cm/cmr
10.pfb>
Output written on foo.pdf (1 page, 11457 bytes).
PDF statistics:
10 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
More information about the texhax
mailing list