[NTG-context] context module t-account in LMTX

Heinrich Paeßens paessens at me.com
Thu Apr 28 16:39:10 CEST 2022


Many thanks Wolfgang, 

I can see the 'values' in a table like form, nothing but the values — how can I switch on the 'lines' of the table?

Best regards, 
Heinrich


I took your file t-taccount.mkxl
and
——
% !TEX program = lmtx
\usemodule[t][taccount]
\startTEXpage[offset=5pt]
\starttaccount[title=Bilanz,lefttext=Aktiva,righttext=Passiva]
    \startdebits
        \debit{Gebäude}  {1.800}
        \debit{Maschinen}{1.200}
        \debit{Fuhrpark}   {500}
        \debit{Rohstoffe}  {100}
        \debittotal      {3.600}
    \stopdebits
    \startcredits
        \credit{Eigenkapital}{1.400}
        \credit{Schulden}    {2.200}
        \credittotal         {3.600}
    \stopcredits
\stoptaccount
\stopTEXpage
——



the log
——
resolvers       | formats | executing runner 'run luametatex format': /Users/hp/Library/context-osx-64/tex/texmf-osx-64/bin/luametatex --jobname="./tst-taccount.tex" --fmt=/Users/hp/Library/context-osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt --lua=/Users/hp/Library/context-osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui  --c:autopdf --c:currentrun=1 --c:directives="system.showerror" --c:fulljobname="./tst-taccount.tex" --c:input="./tst-taccount.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:purgeall --c:texmfbinpath="/Users/hp/Library/context-osx-64/tex/texmf-osx-64/bin"
system          > 
system          > ConTeXt  ver: 2022.04.15 20:20 LMTX  fmt: 2022.4.17  int: english/english
system          > 
system          > 'cont-new.mkxl' loaded
open source     > level 1, order 1, name '/Users/hp/Library/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 1, order 1, name '/Users/hp/Library/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > files > jobname './tst-taccount', input './tst-taccount.tex', result './tst-taccount'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 1, order 2, name './tst-taccount.tex'
modules         > 'taccount' is loaded
open source     > level 2, order 3, name 't-taccount.mkxl'
loading         > Context User Module / Miscellaneous
close source    > level 2, order 3, name 't-taccount.mkxl'
system          > auto \starttext ... \stoptext
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
backend         > xmp > using file '/Users/hp/Library/context-osx-64/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
close source    > level 1, order 3, name './tst-taccount.tex'
mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: /Users/hp/Library/context-osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.010 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 10 found files, scanned paths: <none>
mkiv lua stats  > stored bytecode data: 504 modules (0.406 sec), 98 tables (0.020 sec), 602 chunks (0.426 sec)
mkiv lua stats  > traced context: maxstack: 1627, freed: 0, unreachable: 1627
mkiv lua stats  > cleaned up reserved nodes: 72 nodes, 11 lists of 439
mkiv lua stats  > node memory usage: 15 attribute, 3 glue, 67 gluespec, 3 kern, 582 mathspec, 4 penalty, 2 temp
mkiv lua stats  > node list callback tasks: 12 unique task lists, 9 instances (re)created, 59 calls
mkiv lua stats  > used backend: pdf
mkiv lua stats  > jobdata time: 0.002 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: file: 390, saved: 270, direct: 2, function: 1102, value: 2, message: 0, bytecode: 602, late 0, total: 2368 (0 per page)
mkiv lua stats  > randomizer: initialized with value 0.56777543833852
mkiv lua stats  > loaded tex modules: 1 requested, all found (t-taccount)
mkiv lua stats  > loaded patterns: en::1, load time: 0.000
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.120, afm 1.513, tfm 1.000, 7 instances, 3 shared in backend, 3 common vectors, 0 common hashes, load time 0.237 seconds 
mkiv lua stats  > font embedding time: 0.004 seconds, 1 fonts
mkiv lua stats  > result saved in file: tst-taccount.pdf, compresslevel 1, objectcompresslevel 3
mkiv lua stats  > positions: 4 collected, 0 deltas, 0 shared partials, 0 partial entries
mkiv lua stats  > used platform: osx-64, type: unix, binary subtree: texmf-osx-64
mkiv lua stats  > used engine: luametatex version: 2.0946, functionality level: 20220405, format id: 647, compiler: clang
mkiv lua stats  > tex properties: 740710 hash slots used of 2097152, 47886 control sequences, approximate memory usage: 38 MB
mkiv lua stats  > lua properties: engine: lua 5.4, used memory: 56 MB, ctx: 53 MB, max: 53 MB, symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.825 seconds, 1 processed pages, 1 shipped pages, 1.213 pages/second

resolvers       | formats | executing runner 'run luametatex format': /Users/hp/Library/context-osx-64/tex/texmf-osx-64/bin/luametatex --jobname="./tst-taccount.tex" --fmt=/Users/hp/Library/context-osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt --lua=/Users/hp/Library/context-osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui  --c:autopdf --c:currentrun=2 --c:directives="system.showerror" --c:fulljobname="./tst-taccount.tex" --c:input="./tst-taccount.tex" --c:kindofrun=2 --c:maxnofruns=9 --c:purgeall --c:texmfbinpath="/Users/hp/Library/context-osx-64/tex/texmf-osx-64/bin"
system          > 
system          > ConTeXt  ver: 2022.04.15 20:20 LMTX  fmt: 2022.4.17  int: english/english
system          > 
system          > 'cont-new.mkxl' loaded
open source     > level 1, order 1, name '/Users/hp/Library/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 1, order 1, name '/Users/hp/Library/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > files > jobname './tst-taccount', input './tst-taccount.tex', result './tst-taccount'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 1, order 2, name './tst-taccount.tex'
modules         > 'taccount' is loaded
open source     > level 2, order 3, name 't-taccount.mkxl'
loading         > Context User Module / Miscellaneous
close source    > level 2, order 3, name 't-taccount.mkxl'
system          > auto \starttext ... \stoptext
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
backend         > xmp > using file '/Users/hp/Library/context-osx-64/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
close source    > level 1, order 3, name './tst-taccount.tex'
mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: /Users/hp/Library/context-osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.009 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 10 found files, scanned paths: <none>
mkiv lua stats  > stored bytecode data: 504 modules (0.387 sec), 98 tables (0.017 sec), 602 chunks (0.404 sec)
mkiv lua stats  > traced context: maxstack: 1627, freed: 0, unreachable: 1627
mkiv lua stats  > cleaned up reserved nodes: 72 nodes, 11 lists of 439
mkiv lua stats  > node memory usage: 15 attribute, 3 glue, 67 gluespec, 3 kern, 582 mathspec, 4 penalty, 2 temp
mkiv lua stats  > node list callback tasks: 12 unique task lists, 9 instances (re)created, 59 calls
mkiv lua stats  > used backend: pdf
mkiv lua stats  > jobdata time: 0.002 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks: file: 390, saved: 270, direct: 2, function: 1102, value: 2, message: 0, bytecode: 602, late 0, total: 2368 (2368 per page)
mkiv lua stats  > randomizer: resumed with value 0.56777543833852
mkiv lua stats  > loaded tex modules: 1 requested, all found (t-taccount)
mkiv lua stats  > loaded patterns: en::1, load time: 0.000
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.120, afm 1.513, tfm 1.000, 7 instances, 3 shared in backend, 3 common vectors, 0 common hashes, load time 1.283 seconds 
mkiv lua stats  > font embedding time: 0.003 seconds, 1 fonts
mkiv lua stats  > result saved in file: tst-taccount.pdf, compresslevel 1, objectcompresslevel 3
mkiv lua stats  > positions: 4 collected, 0 deltas, 0 shared partials, 0 partial entries
mkiv lua stats  > used platform: osx-64, type: unix, binary subtree: texmf-osx-64
mkiv lua stats  > used engine: luametatex version: 2.0946, functionality level: 20220405, format id: 647, compiler: clang
mkiv lua stats  > tex properties: 740710 hash slots used of 2097152, 47885 control sequences, approximate memory usage: 38 MB
mkiv lua stats  > lua properties: engine: lua 5.4, used memory: 56 MB, ctx: 53 MB, max: 53 MB, symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.825 seconds, 1 processed pages, 1 shipped pages, 1.213 pages/second
mtx-context     | purged files: tst-taccount.log, tst-taccount.tuc
mtx-context     | pdfview methods: auto default okular pdfxcview sumatra, current method: sumatra (directives_pdfview_method)
pdfview         | command: wine "sumatrapdf.exe" -reuse-instance -bg-color 0xCCCCCC "tst-taccount.pdf" 1>/dev/null 2>/dev/null &
mtx-context     | pdfview overhead: 0.009 seconds
system          | total runtime: 1.711 seconds of 1.812 seconds
——





> On 26. Apr 2022, at 19:41, Wolfgang Schuster via ntg-context <ntg-context at ntg.nl> wrote:
> 
> Heinrich Paeßens via ntg-context schrieb am 26.04.2022 um 16:13:
>> Hi there
>> 
>> I just tried to test the use of the t-account module, compiling with LMTX, but no avail.
>> 
>> What is wrong? Does the module need a fix for LMTX or is the fault on my side (having no experience …)?
> 
> The module which can be downloaded from the modules section of the context wiki page is no longer supported.
> 
> I wrote a new version of the module a few years ago after I got a user request but I haven't put the new version on the wiki. To use the new version of the module you can download the file from my github site [1] and put it in the same folder as your document. There are examples how to use the module at the end of the file.
> 
> [1] https://github.com/wolfgangschuster/taccount/tree/master/files <https://github.com/wolfgangschuster/taccount/tree/master/files>
> 
> Wolfgang
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220428/5ace0553/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tst-taccount.pdf
Type: application/pdf
Size: 7488 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220428/5ace0553/attachment-0001.pdf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220428/5ace0553/attachment-0003.htm>


More information about the ntg-context mailing list