ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Jan-Erik Hägglöf" <janerik.hagglof@bredband.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: strange output in pdf when using the filter module
Date: Wed, 22 Feb 2012 17:03:03 +0100	[thread overview]
Message-ID: <28118EF3-4734-42E7-AC09-2324C1518275@bredband.net> (raw)
In-Reply-To: <20120219145015.7fe6626d@homerow>

[-- Attachment #1: Type: text/plain, Size: 1950 bytes --]

Having an issue in my pdf-output after processing a markdown file to .tex --> .pdf

It adds the word "stylecolors" in the .pdf file

Why is it doing that?

Jan-Eriks-Mac-mini:test-markdown janneman$ context --version

mtx-context     | main context file: /Users/janneman/context/tex/texmf-context/tex/context/base/context.mkiv
mtx-context     | current version: 2011.05.18 18:04
Jan-Eriks-Mac-mini:test-markdown janneman$ 

Jan-Eriks-Mac-mini:test-markdown janneman$ kpsewhich t-filter.mkiv
/Users/janneman/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv
Jan-Eriks-Mac-mini:test-markdown janneman$ 

Jan-Eriks-Mac-mini:test-markdown janneman$ pandoc --version
pandoc 1.8.2
Compiled with citeproc support.
Compiled with syntax highlighting support for:
Actionscript, Ada, Alert, Alert_indent, Ansys, Apache, Asn1, Asp, Awk, Bash,
Bibtex, Boo, C, Changelog, Cisco, Cmake, Coffeescript, Coldfusion, Commonlisp,
Cpp, Cs, Css, Cue, D, Desktop, Diff, Djangotemplate, Doxygen, Doxygenlua, Dtd,
Eiffel, Email, Erlang, Fortran, Fsharp, Fstab, Gap, Gdb, Gettext, Gnuassembler,
Go, Haskell, Haxe, Html, Idl, Ilerpg, Ini, Java, Javadoc, Javascript, Json, Jsp,
Latex, Lex, LiterateHaskell, Lua, M3u, Makefile, Mandoc, Matlab, Maxima,
Mediawiki, Metafont, Mips, Modula2, Modula3, Monobasic, Nasm, Noweb, Objectivec,
Objectivecpp, Ocaml, Octave, Pango, Pascal, Perl, Php, Pike, Postscript, Prolog,
Python, R, Relaxngcompact, Rhtml, Ruby, Scala, Scheme, Sci, Sed, Sgml, Sql,
SqlMysql, SqlPostgresql, Tcl, Texinfo, Verilog, Vhdl, Winehq, Wml, Xharbour,
Xml, Xorg, Xslt, Xul, Yacc, Yaml
Copyright (C) 2006-2011 John MacFarlane
Web:  http://johnmacfarlane.net/pandoc
This is free software; see the source for copying conditions.  There is no
warranty, not even for merchantability or fitness for a particular purpose.

I am having all these installed on mac osx 10.7 lion

Thanks in advance

Jan-Erik Hägglöf


[-- Attachment #2: test4.pdf --]
[-- Type: application/pdf, Size: 19244 bytes --]

[-- Attachment #3: test4.tex --]
[-- Type: application/octet-stream, Size: 400 bytes --]

\usemodule[filter]

\defineexternalfilter
  [pandoc]
  [filtercommand={pandoc -f \externalfilterparameter{format} -t context 
                  -i \externalfilterinputfile\space
                  -o \externalfilteroutputfile},
   format=markdown,
   directory=output]        
   
   \traceexternalfilters
   
   
\setupbodyfont[14pt]

\starttext   
   
   \processpandocfile{test3.text}
   
\stoptext

[-- Attachment #4: Type: text/plain, Size: 45 bytes --]



Generated .tex file by output from pandoc


[-- Attachment #5: test3.tex --]
[-- Type: application/octet-stream, Size: 338 bytes --]

\subject{RUBRIK}

Lite text att testa med

Vi skriver {\em emfas} och så

\subsubject{Rubrik2}

Vi testar och ser hur det blir med en formel

\placeformula
\startformula
E = mc^2
\stopformula

\subsubject{Rubrik3}

En punktlista kanske?

\startitemize
\item
  första
\item
  andra
\item
  tredje
\stopitemize

[-- Attachment #6: Type: text/plain, Size: 14 bytes --]



Log messages

[-- Attachment #7: test4.log --]
[-- Type: application/octet-stream, Size: 6507 bytes --]

(test4.tex

ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2012.2.22  int: english/english

system          > cont-new.mkiv loaded
(/Users/janneman/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system          > beware: some patches loaded from cont-new.mkiv
)
system          > test4.top loaded
system          > options > begin of optionfile
system          > options >
system          > options > % runtime options files (command line driven)
system          > options > \unprotect
system          > options > % feedback and basic job control
system          > options > % handy for special styles
system          > options > \startluacode
system          > options > document = document or { }
system          > options > document.arguments={
system          > options > }
system          > options > document.files={
system          > options >  "test4.tex",
system          > options > }
system          > options > \stopluacode
system          > options > % process info
system          > options > \setupsystem[inputfile=test4.tex]
system          > options > \setupsystem[\c!n=2,\c!m=3]
system          > options > % modes
system          > options > % options (not that important)
system          > options > \startsetups *runtime:options
system          > options > \stopsetups
system          > options > % styles and modules
system          > options > \startsetups *runtime:modules
system          > options > \stopsetups
system          > options > % done
system          > options > \protect \endinput
system          > options >
system          > options > end of optionfile
(test4.top)
fonts           > latin modern fonts are not preloaded
languages       > language en is active
resolvers       > modules > loaded: 'filter'
(/Users/janneman/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv
loading         > Filter (ver: 2012.02.11)
resolvers       > modules > loaded: 'module-catcodes'
(/Users/janneman/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex
loading         > Module Catcodes (ver: 2011.12.17)
))
fonts           > preloading latin modern fonts (third stage)
(/Users/janneman/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/Users/janneman/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/Users/janneman/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Users/janneman/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/Users/janneman/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts           > virtual math > unable to resolve name mapsfromchar
fonts           > defining > forced type otf of lmmath not found
fonts           > defining > font with asked name 'lmmath' is not found using lookup 'file'
fonts           > defining > unknown font lmmath, loading aborted
fonts           > defining > unable to define lmmath.otf as \*modern9.8ptmmmr22*
fonts           > defining > forced type otf of lmmath not found
fonts           > defining > font with asked name 'lmmath' is not found using lookup 'file'
fonts           > defining > unknown font lmmath, loading aborted
fonts           > defining > unable to define lmmath.otf as \*modern14ptmmmr11*
fonts           > fallback modern rm 14pt is loaded
system          > begin file test4.tex at line 16
t-filter        > Appending / to directory output 
t-filter        > current filter : pandoc
t-filter        > base file : test3
t-filter        > input file : test3.text
t-filter        > output file : output/test3.tex
t-filter        > command : pandoc -f markdown -t context -i test3.text -o output/test3.tex
t-filter        > state : 
(output/test3.tex
structure       > sectioning > subject @ level 3 : 0.0.0 -> RUBRIK
structure       > sectioning > subsubject @ level 4 : 0.0.0.0 -> Rubrik2
structure       > sectioning > subsubject @ level 4 : 0.0.0.0 -> Rubrik3
)
backend         > xmp > using file '/Users/janneman/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
system          > end file test4.tex at line 20
 ){/Users/janneman/context/tex/texmf/fonts/enc/dvips/lm/lm-mathsy.enc}</Users/janneman/context/tex/texmf/fonts/opentype/public/lm/lmroman7-regular.otf>{/Users/janneman/context/tex/texmf/fonts/enc/dvips/lm/lm-mathit.enc}</Users/janneman/context/tex/texmf/fonts/opentype/public/lm/lmromanslant10-regular.otf></Users/janneman/context/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otf></Users/janneman/context/tex/texmf/fonts/type1/public/lm/lmmi7.pfb></Users/janneman/context/tex/texmf/fonts/type1/public/lm/lmsy7.pfb>
mkiv lua stats  > used config file          - selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path           - /Users/janneman/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > input load time           - 0.004 seconds
mkiv lua stats  > stored bytecode data      - 285 modules, 60 tables, 345 chunks
mkiv lua stats  > loaded tex modules        - 2 requested, 2 found (*-filter *-module-catcodes), 0 missing
mkiv lua stats  > cleaned up reserved nodes - 33 nodes, 9 lists of 423
mkiv lua stats  > node memory usage         - 1 kern, 8 attribute, 27 glue_spec, 1 attribute_list
mkiv lua stats  > node list callback tasks  - 6 unique task lists, 6 instances (re)created, 2558 calls
mkiv lua stats  > used backend              - pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded patterns           - en::2
mkiv lua stats  > callbacks                 - 2707 direct, 3586 indirect, 6293 total
mkiv lua stats  > randomizer                - resumed with value 0.67711905142158
mkiv lua stats  > lxml preparation time     - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats  > result saved in file      - test4.pdf
mkiv lua stats  > loaded fonts              - 16 files: stmary10.afm lmmono8-regular.otf lmroman10-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmromanslant10-regular.otf lmsans8-regular.otf eufb7.tfm eufm7.tfm msam7.tfm msbm7.tfm lmex10.tfm lmmi7.tfm lmmib7.tfm lmsy7.tfm rm-lmr7.tfm
mkiv lua stats  > fonts load time           - 0.085 seconds 
mkiv lua stats  > luatex banner             - this is luatex, version beta-0.70.1-2011051908 (rev 4277)
mkiv lua stats  > control sequences         - 30806 of 165536
mkiv lua stats  > current memory usage      - 32 MB (ctx: 32 MB)
mkiv lua stats  > runtime                   - 0.641 seconds, 1 processed pages, 1 shipped pages, 1.560 pages/second


[-- Attachment #8: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2012-02-22 16:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-19 13:50 Page count of PDF file from lua Marco
2012-02-21 12:40 ` Hans Hagen
2012-02-21 13:03   ` Marco
2012-02-22 13:42   ` Procházka Lukáš Ing. - Pontex s. r. o.
2012-02-22 14:34     ` Marco
2012-02-22 16:03 ` Jan-Erik Hägglöf [this message]
2012-02-22 17:11   ` strange output in pdf when using the filter module Aditya Mahajan
2012-02-22 17:15     ` Aditya Mahajan
2012-02-22 18:29       ` Jan-Erik Hägglöf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=28118EF3-4734-42E7-AC09-2324C1518275@bredband.net \
    --to=janerik.hagglof@bredband.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).