Re: [NTG-context] Need some hints to fix my standalon installation
Hi Hans [Inline Response to message by Hans Hagen via ntg-context, Mi, 2022-04- 20 19:18 +0200: Answers and comments below corresponding cited paragraphs.] > We had to adapt the lfg file for lm (other fonts are ok) so i'll make > an > update. > > If you're in a hurry, in lm.lfg: > > parameters = { > FractionNumeratorDisplayStyleShiftUp = 600, -- used to > be a > function > NoLimitSupFactor = 0, > NoLimitSubFactor = 900, > -- AccentBaseHeight = 0, > AccentBaseDepth = 50, > }, > > can be adapted. > That's fine. As soon as post that update is ready for pulling I will pull. Till then i can wait. Best Xristoph ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Need some hints to fix my standalon installation
Hi Michael [Inline Response to message by Mikael Sundqvist via ntg-context, Mi, 2022-04-20 17:12 +0200: Answers and comments below corresponding cited paragraphs.] > > The strange thing with fractions seems to be due to the parameter > FractionNumeratorDisplayStyleShiftUp in lm.lfg. If you always set it > to 600, it seems to work also for luatex. (This will be fixed.) > > Another thing: Instead of using \over, I suggest that you use \frac > (less surprises). Something like: > > \starttext > \startformula > a=b + 1 > \stopformula > > \startformula > a = \frac{ b + \mu }{ c } > \stopformula > > \startformula > a = \frac{\frac{ b + \mu }{ c } + e}{ d + i } > \stopformula > \stoptext > Thank you very much for the hints. \frac didn't help either even after moving broken installation aside and doing a fresh install with sh ./first-setup.sh --modules=all --context=latest Results still similar see attached. > /Mikael > _ > __ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > _ > __ test_strange.tar.bz Description: application/bzip-compressed-tar ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Need some hints to fix my standalon installation
Hi Have updated my standalone installation from one of the 2020 releases to the latest one running ./first-setup.sh --context=latest --modules=all Now i see the strange behavior that fraction in second equation is not typeset instead typesetting math aborts after typesetting the upper part of the fraction. A short example showing this is attached (pdf, tex, and log) Therefore i have the following questions - would it help to sacrifice the updated standalone installation and do a fresh install - What else i would have to check and probably fix to make the math working as expected - any thing else to change test_strange.tar.bz Description: application/bzip-compressed-tar ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Need some hints to fix my standalon installation
Hi Have updated my standalone installation from one of the 2020 releases to the latest one running ./first-setup.sh --context=latest --modules=all Now i see the strange behavior that fraction in second equation is not typeset instead typesetting math aborts after typesetting the upper part of the fraction. A short example showing this is attached (pdf, tex, and log) Therefore i have the following questions - would it help to sacrifice the updated standalone installation and do a fresh install - What else i would have to check and probably fix to make the math working as expected - any thing else to change -- -- Christoph Hintermüller Dipl.-Ing. Dr. MBA. MSc JKU Institute of Biomedical Mechatronics Altenberger Straße 69, 4040 Linz, Austria, Cell: +43 650 8827347 Tel. +43 732 2468 4813 Email: christoph.hintermuel...@jku.at test_strange.tar.bz Description: application/bzip-compressed-tar ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Few quick questions
Ok replaced everything i could find with \start* \stop* pairs which got me far down the document just the last about 4 pages. The only thing when comparing with examples for using exporter which still differs is that i use blank line in my sources. Does this implicit definition of paragraphs cause any hickups in exporter and would it be adviseable to enclose each paragraph in \startparagraph and \stopparagraph? Or should that be no issue for xmlexporter and would ensuring clean recent install be more efficient in this case. Best Xristoph ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Few quick questions
Sorry for multi posting. Had yesterday a problem with my mail system and was not sure if mail was sent at all. On Tue, 2022-03-08 at 21:26 +0100, Marco Patzer via ntg-context wrote: > On Tue, 08 Mar 2022 20:45:17 +0100 > Christoph Hintermüller via ntg-context wrote: > > > Hans indicated a tool, a program, which allows to verify that that > > all start* stop* tag pairs are symmetric and placed in correct > > order. I just cant remember how it is called. Can anybody help > > here? > > mtxrun --autogenerate --script check > Thank you very much. If there is not any other tool it seems that there are no errors. > The following will not report missing tags but will find other > common issues and report them on the console: > > context --errors='*' I guess this is equal to \enabledirectives[logs.errors] With which only the following error on plain pdf is remaining after fixing any other indicated error logging > start possible issues fonts > start missing characters: /usr/local/texlive/2021/texmf-dist/fonts/opentype/public/lm/lmroman12- regular.otf fonts >2 U+1START OF HEADING fonts > stop missing characters error logging > stop possible issues OK, I guess I figured the cause of why xml export aborts in the middle of the document. It came to me while writing the above lines and wanting to report that i see some warnings about fuzzy paragraphs (forget about them). To make it short it triggered a memory about a rather old thread, where Hans mentioned that the exporter is not so fond of and keen about LaTeX style \chapter, \section commands and that he advises to use \startchapter \stopchapter, \startsection \stopsection, etc. pairs instead. So i gave it a try and exchanged all occurrences of \chapter, \section, \subsection, \subsection by their \start* \stop* equivalents and now the xml document and the html document are a lot largen. They now conatin nearly the whole document. There are sill plenty of LaTeX style commands around in the document for which exporter friendly \start* \stop* replacements exist. I will continue this route and 'am comfident that in the end will get get a full xhtml and true e-book for my lecture notes. :-) Thank you very much for triggering memories. Christoph ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Few quick questions
Hi I'm still stuck with also providing my lecture notes as epub in addtion to its PDF version. The last year, when I tried figure what is wrong, Hans indicated a tool, a program, which allows to verify that that all start* stop* tag pairs are symmetric and placed in correct order. I just cant remember how it is called. Can anybody help here? Second are there any limits in how large files exproted to XML, XHTML etc can be. Does the exporter automatically try to split huge documents into multiple exported documents when some size is exceeded or was or is such a feature allways experiemental up to mkIV and what could break proper slitting which contexts, commands should not be active to avoid breakage. My current setup is neither a fresh install of latest standalone nor texlive installation. This task is still pending. I just have done some partial update mixing 2020 Texlife with 2021 standlalone by calling update.sh. So the aborting of the export in the middle of a hundred pages long document with plenty of floats and the heavy use of Aditya's t-vim package might additionally be worsened by some inconsistencies of my currently not clean installation. But to rule out or properly tackle down I think I believe knowing about possible Limitations of exporter in mkIV if any to be saving a lot of time The abort in xml export also occurs when i inline all files exempt t- vim code snippets, png or svg files replacing meta post images into one huge document removing any \input commands. Therefore i want to check first on the inlined document if there would by any asymetric start* stop* before persuing further. ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Few quick questions
Hi I'm still stuck with also providing my lecture notes as epub in addtion to its PDF version. The last year, when I tried figure what is wrong, Hans indicated a tool, a program, which allows to verify that that all start* stop* tag pairs are symmetric and placed in correct order. I just cant remember how it is called. Can anybody help here? Second are there any limits in how large files exproted to XML, XHTML etc can be. Does the exporter automatically try to split huge documents into multiple exported documents when some size is exceeded or was or is such a feature allways experiemental up to mkIV and what could break proper slitting which contexts, commands should not be active to avoid breakage. My current setup is neither a fresh install of latest standalone nor texlive installation. This task is still pending. I just have done some partial update mixing 2020 Texlife with 2021 standlalone by calling update.sh. So the aborting of the export in the middle of a hundred pages long document with plenty of floats and the heavy use of Aditya's t-vim package might additionally be worsened by some inconsistencies of my currently not clean installation. But to rule out or properly tackle down I think I believe knowing about possible Limitations of exporter in mkIV if any to be saving a lot of time The abort in xml export also occurs when i inline all files exempt t- vim code snippets, png or svg files replacing meta post images into one huge document removing any \input commands. Therefore i want to check first on the inlined document if there would by any asymetric start* stop* before persuing further. -- -- Christoph Hintermüller Dipl.-Ing. Dr. MBA. MSc JKU Institute of Biomedical Mechatronics Altenberger Straße 69, 4040 Linz, Austria, Cell: +43 650 8827347 Tel. +43 732 2468 4813 Email: christoph.hintermuel...@jku.at ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Help figuring why long document stops short in xml export
On Wed, 2021-02-24 at 15:49 +0100, Taco Hoekwater wrote: > > On 24 Feb 2021, at 10:42, Christoph Hintermüller < > > christ...@out-world.com> wrote: > > > > Hi > > What command line parameters, trackers etc I should activate when i > > There is > > \enabletrackers[export.*] > Thanks. Not sure if related at all but if i add that to the document i do get the following error. It hicksup at \stopstandardmakeup if i remove the stanard makeup it hicksup at frontmatter etc. I think that has something to do with tracker and not the document itself.If i remove everything up to \stopfrontmatter than it runs until the first custom defined float and again yields the same error. If i explicitly not select export.trace.details no hickup. -registered function call [188]: ...cal/tex/texmf-context/tex/context/base/mkiv/back-exp.lua:3052: attempt to index a nil value (field '?') stack traceback: ...cal/tex/texmf-context/tex/context/base/mkiv/back- exp.lua:3052: in upvalue 'showdetail' ...cal/tex/texmf-context/tex/context/base/mkiv/back- exp.lua:3067: in upvalue 'collectresults' ...cal/tex/texmf-context/tex/context/base/mkiv/back- exp.lua:3330: in upvalue 'collectresults' ...cal/tex/texmf-context/tex/context/base/mkiv/back- exp.lua:3330: in upvalue 'collectresults' ...cal/tex/texmf-context/tex/context/base/mkiv/back- exp.lua:3330: in upvalue 'collectresults' ...cal/tex/texmf-context/tex/context/base/mkiv/back- exp.lua:3330: in upvalue 'collectresults' ...cal/tex/texmf-context/tex/context/base/mkiv/back- exp.lua:3330: in upvalue 'collectresults' ...cal/tex/texmf-context/tex/context/base/mkiv/back- exp.lua:3330: in upvalue 'collectresults' ...cal/tex/texmf-context/tex/context/base/mkiv/back- exp.lua:3330: in upvalue 'collectresults' ...cal/tex/texmf-context/tex/context/base/mkiv/back- exp.lua:3330: in upvalue 'collectresults' ... (skipping 5 levels) ...cal/tex/texmf-context/tex/context/base/mkiv/back- exp.lua:3330: in upvalue 'collectresults' ...cal/tex/texmf-context/tex/context/base/mkiv/back- exp.lua:3330: in upvalue 'collectresults' ...cal/tex/texmf-context/tex/context/base/mkiv/back- exp.lua:3330: in upvalue 'collectresults' ...cal/tex/texmf-context/tex/context/base/mkiv/back- exp.lua:3330: in upvalue 'collectresults' ...cal/tex/texmf-context/tex/context/base/mkiv/back- exp.lua:3330: in upvalue 'collectresults' ...cal/tex/texmf-context/tex/context/base/mkiv/back- exp.lua:3330: in upvalue 'collectresults' ...cal/tex/texmf-context/tex/context/base/mkiv/back- exp.lua:3330: in upvalue 'collectresults' ...cal/tex/texmf-context/tex/context/base/mkiv/back- exp.lua:3330: in upvalue 'collectresults' ...cal/tex/texmf-context/tex/context/base/mkiv/back- exp.lua:3423: in upvalue 'nodes_handlers_export' [string "local tonut = nodes.tonut..."]:30: in function <[string "local tonut = nodes.tonut..."]:13> (...tail calls...) [string "/usr/local/tex/texmf-context/tex/context/base..."]:34: in function <[string "/usr/local/tex/texmf- context/tex/context/base..."]:33> (...tail calls...) 58 \definemathcommand[ld][nolop]{\mfunction{ld}} 59 \setupcaption[lefthangingfigure][width=\textwidth,align=figure] 60 \setupheadtext[content=Inhalt] 61 %\traceexternalfilters 62 \enabletrackers[export.*] 63 64 \starttext 65 \startstandardmakeup 66 \title{Programmiertechnik 2} 67 \subsubject{Dr. Christoph Hintermüller} 68 >> \stopstandardmakeup 69 \startfrontmatter 70 \completecontent 71 %\placecombinedlist[content] 72 \stopfrontmatter 73 \startbodymatter 74 75 %\showlayout 76 \input ObjektorientierteProgrammierung 77 \placefloats 78 \input DatenStrukturen- Best Xristoph ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Help figuring why long document stops short in xml export
Hi On Wed, 2021-02-24 at 15:16 +0100, Christoph Hintermüller wrote: > > > I hoped so too. But the only i figured that it stops between two > sections. If i comment the whole set of sections which seem to > contain > offending content. Than it simply stops at some later section. And if > i > remove the set before the one seemingly offending it still stops at > the > section it stopped in the first instant. If there happens to be some > pattern i'm not experienced enough to notice it. > > I don't know if that is likely to be related at all, if i insert \showlayout at the beginning of the document the hickup occurs after later section than if it is not present, even if the section it initially stopped is include in the document. Best Christoph ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Help figuring why long document stops short in xml export
Hi On Wed, 2021-02-24 at 11:24 +0100, Hans Hagen wrote: > On 2/24/2021 10:42 AM, Christoph Hintermüller wrote: > > > I'm sorry to be so clue less to not be able to provide more > > information. The document it self is too big to be posted and i do > > not > > want to make it public anyway, but if required i can provide a > > share > > link. > > You can try to comment some code to see where it fails/succeeds: make > a > copy and start wiping stuff. Normally that quickly reveals where it > goes > wrong. > I hoped so too. But the only i figured that it stops between two sections. If i comment the whole set of sections which seem to contain offending content. Than it simply stops at some later section. And if i remove the set before the one seemingly offending it still stops at the section it stopped in the first instant. If there happens to be some pattern i'm not experienced enough to notice it. > Indeed some real data is needed to see where it fails. > May i later send a sharing link to the full sources from our university systems, may be you immediately see what makes it hickup. Best Christoph ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Help figuring why long document stops short in xml export
Hi What command line parameters, trackers etc I should activate when i want to figure why my document lacks content worth of several pages in xml export while the pdf which is created in parallel contains all pages. I'm using mtx-context | ConTeXt Process Management 1.04 mtx-context | mtx-context | main context file: /tex/texmf- context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2021.02.14 16:39 mtx-context | main context file: /tex/texmf- context/tex/context/base/mkxl/context.mkxl mtx-context | current version: 2021.02.14 16:39 Would switching to lmtx may be helpful in at least figuring why or be the only known solution? The Document it self is my lecture notes which are about 125 Pages long. The xml export ends at Page 63. Are there any known commands which can cause exporter to give up early and thus should in export be avoided or be put in mode dependent block hiding them form exporter. Any hint what i should, would have to check and how to hopefully grabe any hint where to amend the document to get full output. Currently i have not made images mode dependent (pdf:metapost, xml:png/svg). Could that be a reason why exporter finally ends document early? I'm sorry to be so clue less to not be able to provide more information. The document it self is too big to be posted and i do not want to make it public anyway, but if required i can provide a share link. Best Christoph Hintermüller ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] What does the exporter try to tell me.
Hi [Inline Response to message by Christoph Hintermüller, So, 2020-05-17 18:32 +0200: Answers and comments below corresponding cited paragraphs.] > Hi > I'm trying to improove the T-vim module such that it is also working > properly in xml export setup. > > In the current ConTeXt standalone the exporter tries to tell me > something when reporting "possible paragraph mixup" at any character > followoing the first paragraph. And no output from the code block > between start<>stop. I got that far that it has to do something with > the redefinitoin of end of line chars or alike in the code behind and > between the package specific start<> and stop<> commands. But i do > not > catch what the exporter trying to yell at me. > > So what additoinal trackers exempt the ones registered by the > exporter > do i have to activate to see what the exporter has to process on? > What documentation should i read before continueing? > What hast to be done inside the start stop, `\obeyline` etc macros to > ensure the exporter is provided with a proper document > sturcuture/tree > which can be properly and flawlessly processed. > > All tex commands which should be reflected in the xml output by tags > include inside their code `\starttagged` and `\stoptagged` commands > but > my impression is that something important the exporter needs to have > any chance to gnereate porper clean output is missing and I'm missign > any clue what and where to startoff. > Sorry. What i forgot. For developing the improovements of the t-vim module i use a fresh pulled standalone lastest mtx-context | ConTeXt Process Management 1.03 mtx-context | mtx-context | main context file: /home/nother/bin/context/tex/texmf- context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2020.05.12 16:17 mtx-context | main context file: /home/nother/bin/context/tex/texmf- context/tex/context/base/mkiv/context.mkxl mtx-context | current version: 2020.05.12 16:17 and in case relevant at all: This is LuaTeX, Version 1.11.2 (TeX Live 2020/dev) Execute 'luatex --credits' for credits and version details. There is NO warranty. Redistribution of this software is covered by the terms of the GNU General Public License, version 2 or (at your option) any later version. For more information about these matters, see the file named COPYING and the LuaTeX source. LuaTeX is Copyright 2019 Taco Hoekwater and the LuaTeX Team. a not so fresh version of my changes can be found on https://github.com/hernot/filter/tree/complete-tagging The line 336 of t-syntax-groups.vim file has to be commented to work with latest context version mentioned above. It was a hack for an older version (2018 release). I do not want to commit the chaos found on my local working tree cause i do not consider it more confusing for others than helpful. Best Xristoph (hernot) ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] What does the exporter try to tell me.
Hi I'm trying to improove the T-vim module such that it is also working properly in xml export setup. In the current ConTeXt standalone the exporter tries to tell me something when reporting "possible paragraph mixup" at any character followoing the first paragraph. And no output from the code block between start<>stop. I got that far that it has to do something with the redefinitoin of end of line chars or alike in the code behind and between the package specific start<> and stop<> commands. But i do not catch what the exporter trying to yell at me. So what additoinal trackers exempt the ones registered by the exporter do i have to activate to see what the exporter has to process on? What documentation should i read before continueing? What hast to be done inside the start stop, `\obeyline` etc macros to ensure the exporter is provided with a proper document sturcuture/tree which can be properly and flawlessly processed. All tex commands which should be reflected in the xml output by tags include inside their code `\starttagged` and `\stoptagged` commands but my impression is that something important the exporter needs to have any chance to gnereate porper clean output is missing and I'm missign any clue what and where to startoff. Best Xristoph (Hernot) ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Question: Are there any ConTeXt aware scientific pulishers yet
Hi Jet a completely different question just out of curiosity? 1) Does anybody know of any scientific publisher or single journals which accept papers/book chapters typeset in ConTeXt yet 2) If there are any is any of them convinced enought about ConTeXt to recommend use of ConTeXt or even provide template? 3) What would be needed and what could help to make them aware? (difficult to properly formulate, if unclear dont bother) Best Xristoph -- Christoph Hintermueller Eisenhandstraße 33/23 4020 Linz Austria Tel.: +43 650 8827347 mail: christ...@out-world.com www: http://www.out-world.com ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] xhtml export internal command \dostarttaging modify display and other XML/XHTML attributes
Hi Hands, Hi Thomas Thank you again for your direct and open answers. After some hours working off my despair physically. I somehow managed, after days of struggling and not seeing the most obvious to get to the expected point. I can not fully explain how and why but so far it seems to work for pdf and xhtml output now. And the css i also will get right now I'm optimistic again. Best Xristoph ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] xhtml export internal command \dostarttaging modify display and other XML/XHTML attributes
On Fri, 2020-04-10 at 16:29 +0200, Hans Hagen wrote: > On 4/10/2020 3:09 PM, Thomas A. Schmitz wrote: > > > > > > > On 10. Apr 2020, at 14:49, Christoph Hintermüller < > > > christ...@out-world.com> wrote: > > > > > Indeed. the exporter is just a reconstructor of content so the > better > structured, the better the export, and the trickier the rendering > the > worse. Also, one can if needed add tags, add attributes etc etc but > don't expect me to keep track of all modules and user stuff and add > export specififcs. Of course I can make some aspects better but i > never > needed epub so far. There is no need to keep track, otherwise the modules and user stuff would be senseless. It is up to them to keep track of their specialities. > > Then, given an export, one can use xslt or whatever, of have one's > own > css as there is no common ground for rendering idiologies. Ever > yuser > wants something different. > he best multi-output stuff comes from good neutral input > and > for instance xml is more suitable for that than tex encoded input. > I'm > currently doing just that: making some css for rather extensive kind > of > free xml based content (mostly because i have nothing better todo > right > now). If the xml is the document source, what for would I need ConTeXt at all? Why not use typesetting system using xml as native format? > > In the end it all boils down to 'does it pay off' in terms of > 'useability', 'neccessity' and 'the fun of it'. We're talking of > free > software so no one can demand something, only request. > I apologize if if missed the proper tone. It was just my frustration, that any attempt to convince the exporter that it should display spaces as are in the inputfile and not remove them. The pdf backend properly keeps it like in typing environment. And the second which increased my frustration more and what i could also not solve by css is that when linenumbers are added later they appear on separate lines and not on the same line as in the pdf output. That is also true for typing environment (see attached) example. Sorry again. > Suggestion for Christoph: look at what Thomas has done for a long > time > now: one input (often quite advanced) and multiple output for > publishing > ane educational purposes. And it looks pretty good too. > Thank you very much i will do. You are refering to Thomas Schmitz? \setupbackend[ export=yes, xhtml=yes ] \setupexport[ title={linenumber placement missmatch example in export}, subtitle={}, author={Xristoph} ] \definetyping[mine][numbering=line,tab=4,location=left] \starttext This is a small example trying to use verbatim linenumbering in xml export \startmine #!python a=12 def hellow_world(hello): print("simon says: {}".format(hello)) hallo_welt("how do youdo") \stopmine The spaces are kept but the linenumbers are placed on intermediate lines as they are not included inside \type{} tags but lateron added outside infront oft the tags. \stoptext ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] xhtml export internal command \dostarttaging modify display and other XML/XHTML attributes
Hi again On Wed, 2020-04-08 at 11:52 +0200, Christoph Hintermüller wrote: > > I figured so far that > with the command > \setelementnature[][block] > > I can change the css 'displayÄ attribute of my to > display=block > in the *_templates.css output > > But i did not manage so far to in addition set the 'white-space' css > attribute of mytag to 'pre-wrap' > > I tried `\dosettagproperty` and `\setelementexporttag` commands but > none of the gave me the expected result in the *_templates.css output > for the xhtm export. > > What other commands do i have to call first, after `\dostarttagged` > to > be able to use eg `dosettagproperty` to also set the 'white-space' > css > attribute accordingly and/or how is the related context/lua property > called which will be than translated into `white-space=pre-wrap`. The > css 'display' attribute is to be changed by changing the 'nature' > property of the tag. > > Is there anybody who can provide at least some hints which *.tex and > *.lua source files to look at to figure myself. At least some > orientation would already help. > Nope there isn't most of the stuff is hardcoded into the backend expoerter lua. Including template for custome css template which only considers display (nature) settings. And spaces are striped in any case. All in all the backend exporter seems up to now still handcrafted experimental proof of concept. Which makes me quenstion my self why did i switch from latex to context. The major and killer reason was single source multiple formats. But the only fully functional format so far is pdf/dvi/ps xhtml/xml/epub are only working for core stuff. All the nice modules seem not to be supported at all by backend exporter. Please increase the USB of ConTeXt by improoving the xml/xhtml exporter backend by allowing modules to hook into it, defining how the contotent should be processed and what css attributes the corresponding tags should receive. Second i noticed that even in verbatim the line numbers are not on the line they number but are, due to late injections printed on an empty line in xhtml. Needs improvement here too. All the above and some more forces me to push my plans to publish my lecture notes on programming as pdf and epub to likely next year. And helping in Improvement is for now not an option too me for now, exempt maybe lateron in testing. Happy Easter. Xristoph ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] xhtml export internal command \dostarttaging modify display and other XML/XHTML attributes
Hi On Sun, 2020-04-05 at 15:56 +0200, Christoph Hintermüller wrote: > Hi > I'm helping to make t-vim module fully usable in xhtml and futher > epub > export. Getting a distingct tag for the individual lines was quiet > easy > to do using \dostarttagged and \dostoptagged internal macros. > What i'm not able to figure are the following things: > 1) How can i set/modify the display attribute of the resulting > div.myclass section in the generated *_templates.css file. > Per default the display attribute is set to "inline" while i need > "block" or "flex" (not jet decided" which). > 2) How can i predefine the white-space css attribute to pre-wrap > 3) Is there a way to tell context to include the resulting class > inside > the *.default.css or *.styles.css or should that be done via the css > parameter of the \setupbackend macro only? > I figured so far that with the command \setelementnature[][block] I can change the css 'displayÄ attribute of my to display=block in the *_templates.css output But i did not manage so far to in addition set the 'white-space' css attribute of mytag to 'pre-wrap' I tried `\dosettagproperty` and `\setelementexporttag` commands but none of the gave me the expected result in the *_templates.css output for the xhtm export. What other commands do i have to call first, after `\dostarttagged` to be able to use eg `dosettagproperty` to also set the 'white-space' css attribute accordingly and/or how is the related context/lua property called which will be than translated into `white-space=pre-wrap`. The css 'display' attribute is to be changed by changing the 'nature' property of the tag. Is there anybody who can provide at least some hints which *.tex and *.lua source files to look at to figure myself. At least some orientation would already help. Best Xristoph ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] xhtml export internal command \dostarttaging modify display and other XML/XHTML attributes
Hi I'm helping to make t-vim module fully usable in xhtml and futher epub export. Getting a distingct tag for the individual lines was quiet easy to do using \dostarttagged and \dostoptagged internal macros. What i'm not able to figure are the following things: 1) How can i set/modify the display attribute of the resulting div.myclass section in the generated *_templates.css file. Per default the display attribute is set to "inline" while i need "block" or "flex" (not jet decided" which). 2) How can i predefine the white-space css attribute to pre-wrap 3) Is there a way to tell context to include the resulting class inside the *.default.css or *.styles.css or should that be done via the css parameter of the \setupbackend macro only? Best Xristoph ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] startcombination place reference left of images instead below
Hi Wolfgang On Mon, 2020-03-23 at 15:56 +0100, Wolfgang Schuster wrote: > > This is not possible but maybe the following is a alternative for > you. > > The tabulate can be used in combination with an item group to have > auto > generated numbers in a given column. > > \starttext > > \startitemize[a][stopper=)] >\starttabulate >\NI First entry \NC\NR >\NI Second entry \NC\NR >\NI Third entry \NC\NR >\NI Fourth entry \NC\NR >\stoptabulate > \stopitemize > > \stoptext > Just a short Followup and Summary. First, standard packages in Ubuntu Bionic including the Packages built by JonathonF for TeXLive 2018 (*) seem to not yet provide \NI. (*) The 2019 Packages are broken in the JonathonF repo Second the non documented \itemtag which should be replaced by \NI works on my installation Third i Figured \itemtag also works for \starttable not just for \starttabulate. Fourth this allows me to use \Raise / Lower commands to move \itemtag to top of my Metapost picture which without would be placed at bottom of column (**) (**) I did not manage to get same effect with A{} (alignment) style on tabulate. I fear i did not get how that works or \itemtag simply ignores it which would explain amongst others why it stayed undocumented. Anyway i do get my Subfigure tags positioned and aligned the way i need it. Thank you very much again. Best Xristoph ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] startcombination place reference left of images instead below
Hi Wolfgang On Mon, 2020-03-23 at 17:56 +0100, Wolfgang Schuster wrote: > > > Did my first tabulate/itemize example work for you? > > I have no problem including your graphic in a table although the > size > isn't perfect. > > \starttext > > \startplacetable[title={some caption},reference={fig:somefig}] > \startitemize[a][stopper=)] > \starttabulate > \NI \startMPcode input heap ; \stopMPcode \NC\NR > \stoptabulate > \stopitemize > \stopplacetable > > \stoptext > > Without the actual error message it's hard to tell what's wrong but > I > guess your installation doesn't know the \NI command for tabulate. > > The best would be to update your three year old ConTeXt version. > I finally managed to update to 2018 for JonathanF ubuntu ppa the most recent texlive packages are broken in terms of context missing dependencies and dlls. The wiki tells that \NI should be available since fall 2017 but seems as if in texlive 2018 still not incorporated but wiki ( https://wiki.contextgarden.net/Tabulate) also talks about undocumented \itemtag and that works for my installation. \starttext \startplacetable[title={some caption},reference={fig:somefig}] \startitemize[a][stopper=)] \starttabulate \NC \itemttag \NC \startMPcode input heap ; \stopMPcode \NC\NR \stoptabulate \stopitemize \stopplacetable \stoptext Thanks again Xristoph -- -- Christoph Hintermüller Dipl.-Ing. Dr. MBA. MSc JKU Institute of Biomedical Mechatronics Altenberger Straße 69, 4040 Linz, Austria, Cell: +43 650 8827347 Tel. +43 732 2468 4813 Email: christoph.hintermuel...@jku.at ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] startcombination place reference left of images instead below
Thankt you very much to you both On Tue, 2020-03-24 at 13:34 +0100, Pablo Rodriguez wrote: > On 3/24/20 11:01 AM, Christoph Hintermüller wrote: > > [...] > > What alternative installation packages do you recommend exempt > > compiling from sources? > > Hi Christoph, > > I guess http://pragma-ade.com/install.htm contains what you need. > But on production system i do prefer pre packaged stuff which is updated automatically and does not need manual install. I managed to update to 2018 version which also does not recognize \NI. The 2019 packages better the ones from the texlive ppa of Jonathanf are broken at least for context. I do get errors in missing module files for lua and others. I think i have to not use \NI and tabluate for now. Thanks anyway Best Xristoph -- -- Christoph, Julia, R. Hintermüller Eisenhandstraße 33/23 4020 Linz Austria Tel.: +43 650 8827347 mail: christ...@out-world.com mail: ju...@out-world.com www: http://www.out-world.com ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] startcombination place reference left of images instead below
Hi Wolfgang > Did my first tabulate/itemize example work for you? > > I have no problem including your graphic in a table although the > size > isn't perfect. > > \starttext > > \startplacetable[title={some caption},reference={fig:somefig}] > \startitemize[a][stopper=)] > \starttabulate > \NI \startMPcode input heap ; \stopMPcode \NC\NR > \stoptabulate > \stopitemize > \stopplacetable > > \stoptext > > Without the actual error message it's hard to tell what's wrong but > I > guess your installation doesn't know the \NI command for tabulate. > > The best would be to update your three year old ConTeXt version. > It seems so I tried to update everything using the latest distributeion of texlive for Ubuntu 18.04 form launchpad.net jonathanf but it seems as he does not really verify the context and luatex packages. Do you know a wroking ubuntu debian repo/ppa for installing context and all related? Alternatively as i do get lua errors what luaversion would you recommend and what additional lua packages are necessary possibly not considered by jonathanf? What alternative installation packages do you recommend exempt compiling from sources? Best Xristoph -- -- Christoph Hintermüller Dipl.-Ing. Dr. MBA. MSc JKU Institute of Biomedical Mechatronics Altenberger Straße 69, 4040 Linz, Austria, Cell: +43 650 8827347 Tel. +43 732 2468 4813 Email: christoph.hintermuel...@jku.at ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] startcombination place reference left of images instead below
Hi When using refernece instead of column mode in start combination: Is it possible to tell context to place the reference label left or right of the picture/table etc and not below? Or do i have to use multiple columns and put reference manually and how? Following: ++ a) | first comination element | ++ ++ b) | second comination element | ++ instead of: ++ | first comination element | ++ (a) ++ | second comination element | ++ (b) Best Xristoph ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Quick question about dual output pdf and epub
Hi Hans [Inline Response to message by Hans Hagen, Fr, 2020-02-28 22:39 +0100: Answers and comments below corresponding cited paragraphs.] > It depends a bit. One can for instance make the mp images > independent > (include mp code from a file) and then also make small independent > pdf > files from them that then can be converted to svg using mutool / > mudraw. What is i already do as MP images are created from Inkscape SVG images by exporting them to EPS. which are further converted to MP using pstoedit with some minor sed based postprocessing (removing defaultfont instruction, modifying showtext macro to daw textetx). This works pleasingly well. I find it quite annoying if ebooks try to enforce a specific branded font and font size, disallowing handicapped readers for example to use the Dyslexic font or alike, set a wider spacing of glyphs or use big fontsizes for better reading experience. Thus i would be ok directly using the Inkscape SVG images or a canonicalized version thereof unsing different font than set for the rest of the document. Thus as a first solution it would be ok for me switching between MP and SVG image using \startmode \stopmode. > You can try that concept with > > \startMPpage > some mp code > \stopMPage > > If we're only talking of 'kind of stand alone images' (not > backgrounds > behind texts and other ornamental mp images) I can think about some > mechanism that does that automatic. In the end much is possible > (given > time and reason) and often not even that hard to do. > Hm as said above I already take the opposit route to obtain MP images cause of using same fonts on images as in the rest of the document through texttext macro. Thus it is rather strange to than backconvert the MP image again into an SVG. The resulting SVG has the same fonts as as i set for the pdfdocument but when users switch fonts on their reader or fontsize the fonts in the images will not change too so, having matching fonts as of now is of not much use. And it is questionable whether it ever will be unless minimum image size would automatically scaleup with fontsize and spacing too. And than it would require to strip the texts from the original SVG and overtype them using context/tex commands only. The latter would call for a context specific Exportmodule for Inkscape and others which would have to be coded first. Best Xristoph ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Quick question about dual output pdf and epub
Hi Hust not to miss something or mess up every thing. Can i setup my document preamble such that i can without any switching create pdf and epub output at the same time. Want to provide my lecture notes in pdf and epub format. In other words does it have any side effects on pdf output, if i put \setuptoutput command preparing document for xhtml/epub output in my document preamble/main document? Or would i have to enclose this in some \ifelse conditional block? If is there a possibility to control condition from mtxrun command line? Best Xristoph ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Howto metapost textext set or change basepoint (origin) baseline of text
Hi Hans On Thu, 2020-02-20 at 10:28 +0100, Hans Hagen wrote: > On 2/20/2020 10:15 AM, Christoph Hintermüller wrote: > > You can append a palcement suffix, like: > >textext.dflt > > you can try: > >lft rt bot top ulft urt llft lrt d dflt drt origin raw > Thanks again. textext.origin was the solution i was not able to properly figure Best Xristoph ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Howto metapost textext set or change basepoint (origin) baseline of text
Hi Hans On Thu, 2020-02-20 at 10:28 +0100, Hans Hagen wrote: > On 2/20/2020 10:15 AM, Christoph Hintermüller wrote: > > > You can append a palcement suffix, like: > >textext.dflt > > you can try: > >lft rt bot top ulft urt llft lrt d dflt drt origin raw > Thank you very much, that was what i missed to properly get when reading manuals. > (if instead of an eps export you can use svg that can be an > alternative > route) > Yes i know but i want text inside figure to be typeset by context to be able to use all the cool stuff including math fonts and others offered by context and its packages. And again i was not able to deduce any hint that this magically would happen for SVG directly. What i understood is it will be converted to pdf via cli interface of inkscape and simply included as pdf image. Best Xristoph ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Howto metapost textext set or change basepoint (origin) baseline of text
Hi I have the following problem. I convert a eps file using pstoedit into meta post file. When running this file through mptopdf the resulting pdf image is as expected. When i include, using the input command, the file within a startMPcode endMPcode or startMPpage stopMPpage after replacing simple draw ... by draw textext(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 ___