[NTG-context] URLs break bib export
The new tagged biblography export is very nice, but there is a routine (marked UGLY in the source) that causes processing to fail with otherwise-valid input. The failure message is ...eXt/tex/texmf-context/tex/context/base/mkiv/back-exp.lua:3889: invalid capture index stack traceback: [C]: in function 'gsub' ...eXt/tex/texmf-context/tex/context/base/mkiv/back-exp.lua:3889: in function <...eXt/tex/texmf-context/tex/context/base/mkiv/back-exp.lua:3747> (...tail calls...) and two URLs which cause this problem are: url = {http://www.jerwood-no.org.uk/pdf/Dunning%20Kruger.pdf}, url = {http://oll.libertyfund.org/?option=com_staticxt=show.php\%3Fcollection=46=27}, These URLs caused no problem with PDF output or in the previous exports, although they were not printed and exist only in the bibliography. Do I need to protect the special characters in the bib file, or is this a problem with the UGLY code? -- Rik ___ 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] using both footnotes and endnotes in a document
On 27/07/18 12:01, Robert Zydenbos wrote: A puzzle for note specialists: I would like to use both endnotes as well as footnotes in one and the same document, for different kinds of notes. Ideally, I should be able to write something like: - Here is a footnote,\footnote{The footnotes comes here.} and now comes an note that should appear at the end of my text.\endnote{And this is the endnote.} - For this I would need commands for determining the kind of markers for the notes (I know what to do for footnotes: this looks like \setupfootnotes [conversion=characters]; but what does one do for endnotes?) \setupnotation[footnote][numberconversion=characters] \setupnotation[endnote] [numberconversion=set 2] \starttext \footnote{Hello} \footnote{World} \footnote{Oeps} \footnote{\CONTEXT} \endnote{Goodbye} \endnote{Earth} \endnote{End} \endnote{Notes} \placenotes[endnote] \stoptext Robert ___ 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 ___ ___ 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] using both footnotes and endnotes in a document
A puzzle for note specialists: I would like to use both endnotes as well as footnotes in one and the same document, for different kinds of notes. Ideally, I should be able to write something like: - Here is a footnote,\footnote{The footnotes comes here.} and now comes an note that should appear at the end of my text.\endnote{And this is the endnote.} - For this I would need commands for determining the kind of markers for the notes (I know what to do for footnotes: this looks like \setupfootnotes [conversion=characters]; but what does one do for endnotes?) Robert ___ 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] Set up a theorem style
Hello, Perhaps the key proposed by Wolfgang is what I want to do : put a dash between the numbering and the text \setupenumerations[ before={\blank}, after={\blank}, text=Théorème , alternative=serried, headstyle={\sc}, prefix=yes, prefixsegments=chapter, way=bysection, *numberstopper={. ---},* style=italic, ] \defineenumeration[theorem] Fabrice 2018-07-25 12:15 GMT+02:00 Fabrice Couvreur : > Hello, > I used LaTeX for a long time before converting (with difficulty !) to > ConteXt. For example, to define my new theorems, I used the amsthm > package and I did this : > > \newtheoremstyle{theoremdd}% name of the style to be used > {\topsep}% measure of space to leave above the theorem. E.g.: 3pt > {\topsep}% measure of space to leave below the theorem. E.g.: 3pt > {\itshape}% name of font to use in the body of the theorem > {0pt}% measure of space to indent > {\bfseries}% name of head font > * {. ---}% punctuation between head and body* > { }% space after theorem head; " " = normal interword space > {\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}} > > \theoremstyle{theoremdd} > \newtheorem{thmd}{Theorem}[section] > > > > I'm trying to do the same thing with ConTeXt but I can not do it > completely : > > \setupenumerations[ >before={\blank}, >after={\blank}, >text=Théorème, >alternative=serried, >title=no, >prefix=yes, >prefixsegments=chapter, >way=bysection, >right=., >titlestyle=bold, >style=italic, >width=broad, > > ] > > \defineenumeration[theorem] > > > \starttext > > \startchapter[title={First Chapter}] > \startsection[title={First Section}] > \dorecurse{2}{ > \starttheorem > \input ward > \stoptheorem} > \stopsection > \stopchapter > > \startchapter[title={Second Chapter}] > \startsection[title={Second Section}] > \dorecurse{2}{ > \starttheorem > \input ward > \stoptheorem} > \stopsection > \stopchapter > > \stoptext > > Thanks > Fabrice > ___ 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] Issue with page break at \blank samepage
Dear list, Somehow the Following MWE processed with recent betas : \setuplayout[grid=both] % commenting does not change the result \starttext \dorecurse{31}{ A. } \input knuth \blank[line, samepage]Second. \stoptext Outputs a pdf with 2 pages and « Second » is left alone in 2nd page. This is different from online context with prints last line of knuth par in 2nd page too. I thought that « samepage » specifier in \blank prevented page break at that point ? Is there another option for this now ? Thanks Best regards Joseph ___ 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] Issues with vertical spacing in simple case
Thanks a lot for the fix. De : Joseph Canedo Envoyé le :samedi 21 juillet 2018 00:01 À : Hans Hagen; mailing list for ConTeXt users Objet :RE: [NTG-context] Issues with vertical spacing in simple case I’ve modified the MWE to avoid the \\ and it shows same problem. I’ve used the \\ to make a par with 2 lines (lazy typing more words :-). In any case \\ or not, the \hang* directives do not seem taken in consideration in this particular case for last par. Other cases seem to work fine. %\setuplayout[grid=both] %\enabletrackers[vspacing.synchronizepage] \starttext \dorecurse{39}{ A. } Chapitre. \blank[0pt, samepage] \hangindent=30pt\hangafter=-2Third par with some lengthy sentence. Second sentence. Third sentence. Fourth sentence. Fifth sentence. \blank[0pt, samepage] \hangindent=30pt\hangafter=-2 Fourth par not indented. Lengthy sentence. Second sentence. Third sentence. Fourth sentence. Fifth sentence. \stoptext De : Hans Hagen Envoyé le :vendredi 20 juillet 2018 10:51 À : Joseph Canedo; mailing list for ConTeXt users Objet :Re: [NTG-context] Issues with vertical spacing in simple case On 7/19/2018 10:52 PM, Joseph Canedo wrote: > Finally I could make a MWE that reproduces the issue. > > > > %\setuplayout[grid=both] % uncommenting this makes last line not indented. > > %\enabletrackers[vspacing.synchronizepage] > > \starttext > > \dorecurse{39}{ % other values like 40 do not show issue > > A. > > } > > Chapitre. > > \blank[0pt, samepage] > > \hangindent=30pt\hangafter=-2Third par.\\ > > Second line. > > \blank[0pt, samepage] > > \hangindent=30pt\hangafter=-2 Fourth par not indented.\\ Second line not > indented. > > \stoptext it's probably more related to the wrong usage of \\ which you normally should not use at the end of aparagraoh (i'll make the remover for that a bit more clever) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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] Limit text width in items
On 7/26/2018 5:57 PM, Hans Hagen wrote: I can even put \start/stopnarrower in before/after of \setupitemgroup. Its width parameter doesn’t work (at least not together with inmargin). rightmargin=3em - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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] Limit text width in items
On 7/26/2018 5:27 PM, Henning Hraban Ramm wrote: Am 2018-07-26 um 16:03 schrieb Hans Hagen : \def\MyFill#1% {\leaders\hbox to 1em{\hss.\hss}\hfill \rlap{\hbox to \rightskip{\hss#1}}} \showframe \starttext \startnarrower[2*right] \startitemize[packed,joinedup] \startitem \input tufte \MyFill{33} \stopitem \startitem \input knuth \MyFill{99} \stopitem \stopitemize \stopnarrower \stoptext Thank you very much! I can even put \start/stopnarrower in before/after of \setupitemgroup. Its width parameter doesn’t work (at least not together with inmargin). But in your solution the dots (leaders) also stop with the text, and I’d like them to continue up to the number. I tried: \def\MyFill#1{\leaders\hbox to 1em{\hss. }\hfill \rlap{\hbox to \rightskip{\leaders\hbox to 1em{. \hss}\hfill#1}}} But that’s ugly and gives an irregular gap between the two sets. I don’t understand this low level TeX enough... maybe time that i start a manual about tex basics ... \starttexdefinition MyFill #1 \removeunwantedspaces \begingroup \parfillskip-1\rightskip plus 1fil\relax \cleaders\hbox spread 1em{\hss.\hss}\hfill \hbox{#1} \par \endgroup \stoptexdefinition \showframe \starttext \startnarrower[2*right] \startitemize[packed,joinedup] \startitem \input tufte \MyFill{33} \stopitem \startitem \input knuth \MyFill{99} \stopitem \stopitemize \stopnarrower \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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] Limit text width in items
Am 2018-07-26 um 16:03 schrieb Hans Hagen : > \def\MyFill#1% > {\leaders\hbox to 1em{\hss.\hss}\hfill > \rlap{\hbox to \rightskip{\hss#1}}} > > \showframe > > \starttext > > \startnarrower[2*right] > \startitemize[packed,joinedup] > \startitem > \input tufte > \MyFill{33} > \stopitem > \startitem > \input knuth > \MyFill{99} > \stopitem > \stopitemize > \stopnarrower > > \stoptext Thank you very much! I can even put \start/stopnarrower in before/after of \setupitemgroup. Its width parameter doesn’t work (at least not together with inmargin). But in your solution the dots (leaders) also stop with the text, and I’d like them to continue up to the number. I tried: \def\MyFill#1{\leaders\hbox to 1em{\hss. }\hfill \rlap{\hbox to \rightskip{\leaders\hbox to 1em{. \hss}\hfill#1}}} But that’s ugly and gives an irregular gap between the two sets. I don’t understand this low level TeX enough... Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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] unable to define 'texgyrepagella-regula' error etc.
On 7/26/2018 4:53 PM, Jeong Dal wrote: Do you mean “wipe cache” as delete “luatex-cache/context/5fe67…f32e/fonts” folder? yes Do you mean “mtxrun —script —reload —force fonts”? mtxrun —script fonts —reload —force Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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] unable to define 'texgyrepagella-regula' error etc.
Dear Hans, > > > (1) wipe the cache > (2) mtxrun —script --reload -force > Do you mean “wipe cache” as delete “luatex-cache/context/5fe67…f32e/fonts” folder? I open the terminal and run “mtxrun —script — reload -force”, then I got mtxrun | ConTeXt TDS Runner Tool 1.32 mtxrun | mtxrun | no script name given, known scripts: mtxrun | mtxrun | babel 1.20 Babel Input To UTF Conversion mtxrun | base 1.35 ConTeXt TDS Management Tool (aka luatools) mtxrun | bibtex bibtex helpers ……. mtxrun | evohome 1.00 Evohome Fetcher mtxrun | fcd 1.00 Fast Directory Change mtxrun | flac 0.10 ConTeXt Flac Helpers mtxrun | fonts 0.21 ConTeXt Font Database Management mtxrun | grep 0.10 Simple Grepper …… …… mtxrun | watch 1.00 ConTeXt Request Watchdog mtxrun | youless 1.10 YouLess Fetcher Do you mean “mtxrun —script —reload —force fonts”? > Better use type-imp-.mkiv i.e. “-imp-“ in the name for such specific > implementation files > I will change the name. Thank you again. Best regards, Dalyoung ___ 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] about the defining itemized columns.
Dear Hans, Thanks for the solution. It works perfectly. Best regards, Dalyoung >> define[1]\iCol > {\starttabulate[|*{#1}{|lw(\dimexpr.84\makeupwidth/#1\relax)|}]} > ___ 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] page interaction in contents list entry
Am 2018-07-23 um 13:06 schrieb Henning Hraban Ramm : > Dear wizards, > > in a list command (i.e. \setuplist[command=\MyCmd]) I use > \currentlistentrypagenumber to show the page number. > Now I’d like to make this a link, like in a normal ToC. I didn’t find a > suitable command. Is there one? From the sources (strc-ref.mkvi) it looks like \goto{\currentlistentrypagenumber}[page(\currentlistentrypagenumber)] should do the trick. It does show the right page number, but doesn’t make it a link. While \goto{something}{page(30)} works; i.e. it creates a link to page 30 of the PDF, even if the displayed page number (user page?) is different. Is this an expansion problem? Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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] Limit text width in items
On 7/26/2018 3:43 PM, Henning Hraban Ramm wrote: Am 2018-07-23 um 13:33 schrieb Henning Hraban Ramm : Hello again, in the MWE below I’d like to limit the run width of the item text so that the (page) number is standing out, e.g. • This is a long and winding text that leads to a number .. 99 The text can become one or several lines long. I tried to put the text in boxes, e.g. \simplealignedbox{}{}{\vbox{...}} but I got only ugly spacing. Also, the last line of the text continues in that leaders and number. --- \def\leaderfill{\leaders\hbox to 1em{\hss. \hss}\hfill} \starttext \startitemize[packed,joinedup] \startitem \input tufte \leaderfill 33 \stopitem \startitem \input knuth \leaderfill 99 \stopitem \stopitemize \stoptext No idea? Anyone? Would it work to force an overfull hbox somehow in every last line? \def\MyFill#1% {\leaders\hbox to 1em{\hss.\hss}\hfill \rlap{\hbox to \rightskip{\hss#1}}} \showframe \starttext \startnarrower[2*right] \startitemize[packed,joinedup] \startitem \input tufte \MyFill{33} \stopitem \startitem \input knuth \MyFill{99} \stopitem \stopitemize \stopnarrower \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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] Limit text width in items
Am 2018-07-23 um 13:33 schrieb Henning Hraban Ramm : > Hello again, > > in the MWE below I’d like to limit the run width of the item text so that the > (page) number is standing out, e.g. > > • This is a long and winding text > that leads to a number .. 99 > > The text can become one or several lines long. > > I tried to put the text in boxes, e.g. \simplealignedbox{}{}{\vbox{...}} but > I got only ugly spacing. > Also, the last line of the text continues in that leaders and number. > > --- > > \def\leaderfill{\leaders\hbox to 1em{\hss. \hss}\hfill} > > \starttext > > \startitemize[packed,joinedup] > \startitem > \input tufte > \leaderfill 33 > \stopitem > \startitem > \input knuth > \leaderfill 99 > \stopitem > \stopitemize > > \stoptext No idea? Anyone? Would it work to force an overfull hbox somehow in every last line? Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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] about the defining itemized columns.
On 7/26/2018 9:06 AM, Jeong Dal wrote: Dear all, In mathematics, there are many occasions to make exercise problems in columns, and I did that using “tabulate” as following.Thanks Hans for this method! %%% \define\iTwo{\starttabulate[||w(.42\makeupwidth)||lw(.42\makeupwidth)|]} \define\iThree{\starttabulate[||lw(.28\makeupwidth)||lw(.28\makeupwidth)||lw(.28\makeupwidth)|]} \define\iFour{\starttabulate[||lw(.21\makeupwidth)||lw(.21\makeupwidth)||lw(.21\makeupwidth)||lw(.21\makeupwidth)|]} \starttext \startitemize[n] \iTwo \NC \itemtag \NC test1 \NC \itemtag \NC test2 \NC\NR \NC \itemtag \NC test3 \NC \itemtag \NC test4 \NC\NR \NC \itemtag \NC test5 \NC \itemtag \NC test6 \NC\NR \stoptabulate \stopitemize \stoptext %%% It works well. Since the numbers in the definitions are calculated by .84/2, .84/3, .84/4, I want to combine those definitions in one form. Is it possible to define a one definition which can be set by argument as following. \define[1]\iCol{\starttabulate[|*{#1}{|lw(.84/#1)\makeupwidth|}]} When I call it \iCol{2}, the first *{#1} is working, but the second #1 is a problem. I tried \ctxlua for division, but it didn’t work either. Is there a nice way to define them in one definition? It may be my greedy hope. \define[1]\iCol {\starttabulate[|*{#1}{|lw(\dimexpr.84\makeupwidth/#1\relax)|}]} - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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] Questions to PDF/A compliant documents: missing ICC files? -- II.
On 7/26/2018 9:34 AM, Tomas Hala wrote: Fri, Jul 20, 2018 ve 09:24:23PM +0200 Hans Hagen napsal(a): # On 7/20/2018 5:05 PM, Tomas Hala wrote: # >Hi all, # > # >I would like to open the PDF/A topic once more. # # maybe discuss it at the upcoming ctx meeting ... Good idea, indeed. # ... you can prepare a # summative talk about it (including the demands for following some # standard) I guess I can collect only some (unordered) pieces of information about this but I really do not feel up to prepare a talk covering the topic systematically... If it does not matter... just collect them ... luigi can probbaly kick in with some info about validators and so, and we can look into pdf files for further enlightment (i can explain some internals and such) (of course we can also have a m,ore philosophical discussiion about these standards, validation, tagging, fancy pdf features, etc) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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] unable to define 'texgyrepagella-regula' error etc.
On 7/26/2018 2:49 AM, Jeong Dal wrote: Dear all, Yesterday, I asked about a font problem without a mwe. Here is a MWE. % \setuplanguage[kr][patterns=us] \mainlanguage[kr] \setscript[hangul] \usetypescriptfile[type-hcrlvt] \usetypescript[HcrFont] \definefontfeature[kr][script=hang,language=kor,mode=node,analyze=yes] \setupbodyfont[Myface, rm, 11pt] \starttext This is a test file. %이것은 시험 파일입니다. {\bf This is a test file for font.}%{\bf 이것은 시험 파일입니다.} {\sl This is a test file for font.}%{\sl 이것은 시험 파일입니다.} \stoptext Here is a part of log file of the first run. mtx-context | run 1: luatex --fmt="/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="test" --lua="/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./test.tex" --c:input="./test.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:purgeall "cont-yes.mkiv" This is LuaTeX, Version 1.08.0 (TeX Live 2018) system commands enabled. open source > level 1, order 1, name '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' system > system > ConTeXt ver: 2018.07.20 21:20 MKIV beta fmt: 2018.7.24 int: english/english system > system > 'cont-new.mkiv' loaded open source > level 2, order 2, name '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > beware: some patches loaded from cont-new.mkiv close source > level 2, order 2, name '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv' system > files > jobname 'test', input './test', result 'test' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 2, order 3, name '/Users/graph/Documents/TeXfiles/test.tex' open source > level 3, order 4, name '/Users/graph/ConTeXt/tex/texmf-local/context/type-hcrlvt.mkiv' open source > level 4, order 5, name '/Users/graph/ConTeXt/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv' close source > level 4, order 5, name '/Users/graph/ConTeXt/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv' close source > level 3, order 5, name '/Users/graph/ConTeXt/tex/texmf-local/context/type-hcrlvt.mkiv' fonts > defining > font with asked name 'texgyrepagella-regular' is not found using lookup 'file' fonts > defining > unknown font 'texgyrepagella-regular', loading aborted fonts > defining > unable to define 'texgyrepagella-regular' as 'dummy--0' fonts > defining > font with asked name 'texgyrepagella-bold' is not found using lookup 'file' fonts > defining > unknown font 'texgyrepagella-bold', loading aborted fonts > defining > unable to define 'texgyrepagella-bold' as 'dummy--0' fonts > defining > font with asked name 'texgyrepagella-regular' is not found using lookup 'file' fonts > defining > unknown font 'texgyrepagella-regular', loading aborted fonts > defining > unable to define 'texgyrepagella-regular' as 'dummy--0' backend > xmp > using file '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 close source > level 2, order 5, name '/Users/graph/Documents/TeXfiles/test.tex' close source > level 1, order 5, name '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats > used cache path: /Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats > resource resolver: loadtime 0.006 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 14 found files, scanned paths: mkiv lua stats > stored bytecode data: 428 modules (0.208 sec), 93 tables (0.013 sec), 521 chunks (0.220 sec) mkiv lua stats > traced context: maxstack: 1309, freed: 0, unreachable: 1309 mkiv lua stats > cleaned up reserved nodes: 58 nodes, 9 lists of 455 mkiv lua stats > node memory usage: 2 glue, 2 kern, 2 penalty, 13 attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_defined mkiv lua stats > node list callback tasks: 8 unique task lists, 6 instances (re)created, 43 calls mkiv lua stats > used backend: pdf (backend for directly generating pdf output) mkiv lua stats > jobdata time: 0.001 seconds saving, 0.000 seconds loading mkiv lua stats > callbacks: internal: 146, file: 617, direct: 2, late: 0, function 868, total: 1633 mkiv lua stats > loaded patterns: en::2 kr::51, load time: 0.000 mkiv lua stats > result saved in file: test.pdf, compresslevel 3, objectcompresslevel 3 mkiv lua stats > loaded fonts: 3 files: latinmodern-math.otf,
Re: [NTG-context] Questions to PDF/A compliant documents: missing ICC files? -- II.
Fri, Jul 20, 2018 ve 09:24:23PM +0200 Hans Hagen napsal(a): # On 7/20/2018 5:05 PM, Tomas Hala wrote: # >Hi all, # > # >I would like to open the PDF/A topic once more. # # maybe discuss it at the upcoming ctx meeting ... Good idea, indeed. # ... you can prepare a # summative talk about it (including the demands for following some # standard) I guess I can collect only some (unordered) pieces of information about this but I really do not feel up to prepare a talk covering the topic systematically... If it does not matter... Tomáš # >First, I would like to thank Alan, Luigi, Pablo and Henri for their pieces # >of help and information. # > # > # >Summary: # > # > # >(a) where I can find the set of original default*.icc files, # > # ># Alan: /usr/local/share/color/icc/ghostscript # > # >This must be dependent on the version of operating system or on something # >else because on computers I have permission to work on no this subtree is present. # > # ># Luigi: tex/texmf-context/colors/icc # > # >In standalone versions I tried during March and April and Pablo in June, there is really this special directory # >but we found there only one of the files -- default_gray.icc. Other default*.icc files # >(default_cmyk.icc, default_rgb.icc) which are mentioned at http://wiki.contextgarden.net/PDF/A # >were not present. Similarly at http://www.eci.org/en/downloads. # > # ># Henri: http://dl.contextgarden.net/misc/iccprofiles/complete_ICC_profiles.zip # > # >Good deal -- here one can really find all three default*.icc files mentioned at # >http://wiki.contextgarden.net/PDF/A, but with no visible link to the # >mentioned zipfile from this page. # > # > # > # >(b) what is the reason why these files are not included in the TeXlive and garden installations, # >(c) if it is possible to add it there for future, and # > # ># Luigi: They are not included in texlive for some copyright issues. # > # >What is the difference between texlive copyright approach and context standalone copyright approach? # > # >I read a few documents about licences for icc files and it seemed to me that the redistribution is possible, # >for non-commercial use without restrictions, the redistributor is obliged only to add the corresponding # >licence document to the software containing the icc file(s) and must not change the name of the file(s). # > # >So, is possible to add the missing two default*.icc files to the context standalone version? # > # > # > # >(d) if the produced PDF (with \setupbackend[format={pdf/a-1b:2005}...]) is # >PDF/a compliant when these icc files are not present and the whole content # >of the document is only in black (i.e. no grayscale, no colours). # > # ># No reaction. :-) # > # >This question is important only if the default*.icc files are not (will not be) present and used when the PDF file is generated. # >Has somebody got any idea whether the PDF/A without icc files is accepted as PDF/A or not? # > # > # > # >The best, # > # >Tomáš # > # >--- # > # >Tue, Jun 19, 2018 ve 09:38:55AM +1200 Henri Menke napsal(a): # ># # ># # ># On 19/06/18 03:20, Tomas Hala wrote: # ># >Hi all, # ># > # ># >at http://wiki.contextgarden.net/PDF/A I found the following: # ># > # ># >" # ># >In ConTeXt mkiv, in order to create such a compliant PDF/A file, one can do as follows: first install (or check that they are present) the following color profiles files # ># > # ># >default_cmyk.icc # ># >default_gray.icc # ># >default_rgb.icc # ># >ISOcoated_v2_300_eci.icc # ># > # ># >into tex/texmf-context/colors/icc/profiles of your Context standalone directory. The default_*.icc files are part of ghostscript... # ># >" # ># > # ># >So I checked that they are present (CentOS 6.6, GPL Ghostscript 8.70) and # ># >I discovered that these files are not present at any ConTeXt (or TeX) installation from TeXlive # ># >neither as separate files, nor at file context/colors/icc/context/colorprofiles.xml. # ># > # ># >Only default_gray.icc is present as a part of ConTeXt installations from our garden. # ># > # ># >Therefore, I would like to ask # ># >(a) where I can find the set of original default*.icc files, # ># >(b) what is the reason why these files are not included in the TeXlive and garden installations, # ># >(c) if it is possible to add it there for future, and # ># >(d) if the produced PDF (with \setupbackend[format={pdf/a-1b:2005}...]) is PDF/a compliant when these # ># >icc files are not present and the whole content of the document is only in black (i.e. no grayscale, no colours). # ># # ># wget http://dl.contextgarden.net/misc/iccprofiles/complete_ICC_profiles.zip # ># unzip complete_ICC_profiles.zip -d /opt/context/tex/texmf-local # ># # ># > # ># >Our university decided to be "PDF/a compliant", that is the reason why I am asking. # ># > # ># >Best wishes, # ># > # ># >Tomáš # ># > # >#
[NTG-context] about the defining itemized columns.
Dear all, In mathematics, there are many occasions to make exercise problems in columns, and I did that using “tabulate” as following.Thanks Hans for this method! %%% \define\iTwo{\starttabulate[||w(.42\makeupwidth)||lw(.42\makeupwidth)|]} \define\iThree{\starttabulate[||lw(.28\makeupwidth)||lw(.28\makeupwidth)||lw(.28\makeupwidth)|]} \define\iFour{\starttabulate[||lw(.21\makeupwidth)||lw(.21\makeupwidth)||lw(.21\makeupwidth)||lw(.21\makeupwidth)|]} \starttext \startitemize[n] \iTwo \NC \itemtag \NC test1 \NC \itemtag \NC test2 \NC\NR \NC \itemtag \NC test3 \NC \itemtag \NC test4 \NC\NR \NC \itemtag \NC test5 \NC \itemtag \NC test6 \NC\NR \stoptabulate \stopitemize \stoptext %%% It works well. Since the numbers in the definitions are calculated by .84/2, .84/3, .84/4, I want to combine those definitions in one form. Is it possible to define a one definition which can be set by argument as following. \define[1]\iCol{\starttabulate[|*{#1}{|lw(.84/#1)\makeupwidth|}]} When I call it \iCol{2}, the first *{#1} is working, but the second #1 is a problem. I tried \ctxlua for division, but it didn’t work either. Is there a nice way to define them in one definition? It may be my greedy hope. Thanks for reading. Best regards, Dalyoung ___ 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 ___