[dev-context] Re: Inline items indent paragraph

2023-08-23 Thread Wolfgang Schuster
Hans Hagen schrieb am 24.08.2023 um 00:28: On 8/23/2023 10:13 PM, Wolfgang Schuster wrote: Hi, when inline items are used and the itemize environment has a settings for the margin the value the whole paragraph is indented by the set value for itemize. [...] We need a check in this case

[dev-context] Inline items indent paragraph

2023-08-23 Thread Wolfgang Schuster
Hi, when inline items are used and the itemize environment has a settings for the margin the value the whole paragraph is indented by the set value for itemize. \starttext \samplefile{lorem} \samplefile{lorem}\startitemize[a,intext][margin=2em]\item one \item two \stopitemize

[dev-context] strc-itm.mklx

2023-08-16 Thread Wolfgang Schuster
Hi, The \ifzerodim check (one line 1599 in strc-itm.mklx) doesn't work here because it happens after the box is flushed and the width is always 0pt. \def\strc_itemgroups_handle_groups_text_item   {\hbox {\ifconditional\c_strc_itemgroups_sub     \dostarttagged\t!ignore\empty    

[dev-context] tabl-tbl.mkxl

2022-05-29 Thread Wolfgang Schuster
Hi, the \tabl_tabulate_NR_common needs \tolerant, otherwise \NR fails when it appear at the end of an included file. tabl-tbl.mkxl, line 1971 (LMTX only): -\permanent\protected\def\tabl_tabulate_NR_common#1#2#.#3% #. gobbles pars and spaces

[dev-context] strc-sec.mkxl

2022-05-17 Thread Wolfgang Schuster
Hi, I'm not sure if my message on the regular list got noticed but     \setuphead[chapter][referenceprefix=+] doesn't work in LMTX and MkIV. Below is a fix the LMTX version (I used MkII as reference): \def\strc_sectioning_set_reference_prefix   {\ifempty\currentstructurereferenceprefix

[dev-context] page-pcl.mkxl

2022-05-16 Thread Wolfgang Schuster
Hi, \def\page_col_routine_package_step   {% needs packaging anyway    \mofcolumns\recurselevel % added    \getboxfromcache{\s!pagecolumn}{\number\recurselevel}\scratchbox \page_lines_add_numbers_to_box\scratchbox\recurselevel\c_page_col_n_of_columns\plusone % new

Re: [dev-context] \somewhere is broken in lmtx

2021-11-20 Thread Wolfgang Schuster
Taco Hoekwater schrieb am 19.11.2021 um 16:35: Hi, It just seems to typeset all its arguments, or something. Works fine in mkiv mode. MWE: https://wiki.contextgarden.net/Command/somewhere (I set the wiki example up to use mkiv instead so it looks ok there) strc-ref.mklx: The \numexpr

Re: [dev-context] startfigure / placestartfigure confusion

2021-11-19 Thread Wolfgang Schuster
Alan Braslau schrieb am 20.11.2021 um 04:26: Shouldn't it be: \startfigure [reference=mycow] \externalfigure [cow.pdf] [width=4cm] \stopfigure On 19Nov21, at 19/11/21, 06:35, Taco Hoekwater wrote: % MWE (assuming I understand the supposed syntax correctly): \starttext

Re: [dev-context] \offset

2021-11-19 Thread Wolfgang Schuster
Taco Hoekwater schrieb am 19.11.2021 um 15:34: Hi, It looks like the \offset command is not quite exact? See attached output, which I thought should be exactly centred horizontally. Instead, it shifts too far to the left. Normally I would suspect a stray space somewhere, but I do not see

[dev-context] font-sel.lua

2021-09-23 Thread Wolfgang Schuster
Hi, below is a short patch for \definefontfamily. function selectfont.registerfiles(index)     local data  = data[index]     local colon = splitat(":",true)     for alternative, _ in next, alternatives do     local arguments = data.alternatives[alternative]     if arguments and

[dev-context] page-inj.mkvi/mklx

2021-09-10 Thread Wolfgang Schuster
Hi, the \pageinjection command needs a slightly modified version (which uses \printpaperwidth and \printpaperheight) of \page_injections_flush_indeed because the current version has problems to adjust the paper size when multiple injections with different sizes appear at the same spot.

Re: [dev-context] [NTG-context] Create an enumeration style

2021-08-09 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 09.08.2021 um 14:16: Hi Wolfgang, Thank you for your suggestion. I tested the code and the result is not what I expected from the second item : "2 exemple" instead of "2^{e} exemple", "3 exemple" instead of "3^{e} exemple" ... core-con.lua (line 1155): local

[dev-context] strc-des.mklx: referencetext

2020-12-22 Thread Wolfgang Schuster
Hi, there are two bugs in the description/enumeration code (strc-des.mklx). 1. A entry for the referencetext key is missing in the argument of descriptions and 2. the title_state reset is wrong because it disables the title when \startdescription[title=...] is used. line 113ff:

[dev-context] m-scite.mkiv

2020-11-26 Thread Wolfgang Schuster
Hi, there is a \relax missing at the end of \hskip (line 342): \unexpanded\def\buff_scite_slxb#1%   {% we can have a side float    \advance\hangindent\numexpr#1+2\relax\scitespaceskip -  \begstrut\hskip#1\scitespaceskip +  \begstrut\hskip#1\scitespaceskip\relax    \ifcase\hangafter

[dev-context] cont-log.mkxl

2020-11-24 Thread Wolfgang Schuster
Hi, \frozen\instance\protected\def\XeTeX   {X\lower.5\exheight    \hbox {\kern-.15\emwidth   \iffontchar\font"018E\relax     \char"018E%   \else     \ifx\fontalternative\s!bf \mirror{E}\orelse     \ifx\fontalternative\s!it\syst_logos_xetex_e\orelse    

[dev-context] strc-des.mklx

2020-11-24 Thread Wolfgang Schuster
Hi, -\tolerant\protected\def\strc_descriptions_command[#1]#*[#2]#:#*#=% +\tolerant\protected\def\strc_descriptions_command[#1]#*[#2]%   {\begingroup    \strc_constructions_initialize{#1}%    \ifhastok={#2}% \expandafter\strc_descriptions_command_setups   

[dev-context] tabl-ntb.mkxl

2020-11-24 Thread Wolfgang Schuster
Hi, -\tolerant\def\tabl_ntb_th[#1]#2\eTH +\tolerant\def\tabl_ntb_th[#1]#:#2\eTH {\tabl_ntb_td[#1,\c!color=\naturaltablelocalparameter\c!headcolor,\c!style=\naturaltablelocalparameter\c!headstyle,\c!aligncharacter=\v!no]#2\eTD} -\tolerant\def\tabl_ntb_tn[#1]#2\eTN

[dev-context] publ-xml.mkxl: convertbtxdatasettoxml

2020-11-21 Thread Wolfgang Schuster
Hi, missing "s" (or #1) at the end of \ifparameter. \permanent\tolerant\protected\def\convertbtxdatasettoxml[#1]% - {\clf_convertbtxdatasettoxml{\ifparameter\or#1\else\s!default\fi}} % or current when not empty + {\clf_convertbtxdatasettoxml{\ifparameters\or#1\else\s!default\fi}} % or current

[dev-context] prop-ini.mkxl: \stopproperty

2020-11-21 Thread Wolfgang Schuster
Hi, \properties_stop calls itself \protected\def\properties_stop   {\properties_stop    \popmacro\properties_stop} Wolfgang ___ dev-context mailing list dev-context@ntg.nl https://mailman.ntg.nl/mailman/listinfo/dev-context

Re: [dev-context] strc-lst.mklx: \completecontent

2020-11-20 Thread Wolfgang Schuster
Hans Hagen schrieb am 20.11.2020 um 20:10: On 11/20/2020 3:42 PM, Wolfgang Schuster wrote: Hi, combined lists with title are broken because they use the wrong function. \permanent\tolerant\protected\def\definecombinedlist[#tag]#spacer[#list]#spacer[#settings]% {\definelist[#tag][\c

[dev-context] strc-lst.mklx: \completecontent

2020-11-20 Thread Wolfgang Schuster
Hi, combined lists with title are broken because they use the wrong function. \permanent\tolerant\protected\def\definecombinedlist[#tag]#spacer[#list]#spacer[#settings]% {\definelist[#tag][\c!criterium=\v!local,\c!reference=,\c!alternative=,\c!list={#list},#settings]% inherits from root

[dev-context] core-con.mkxl: \date

2020-11-16 Thread Wolfgang Schuster
Hi, a optional space is missing between the arguments of \date (line 452): -\permanent\tolerant\protected\def\date[#1][#2]% sets the date ! +\permanent\tolerant\protected\def\date[#1]#*[#2]% sets the date !   {\dontleavehmode    ...    \endgroup} Wolfgang

[dev-context] buff-ver.mkxl: language -1

2020-11-16 Thread Wolfgang Schuster
Hi, I think these can be changed to use \nohyphens instead of the language hack. line 70--75: \protected\def\buff_verbatim_obey_breakpoints   {\language\minusone  % tricky as this affects the pagebuilder    \veryraggedright} \protected\def\buff_verbatim_ignore_hyphens   {\language\minusone}

Re: [dev-context] anch-tab.mkxl: \XC

2020-11-16 Thread Wolfgang Schuster
Hans Hagen schrieb am 16.11.2020 um 19:05: On 11/16/2020 6:53 PM, Wolfgang Schuster wrote: Hi, there are two problems in the following definitions (line 90--99). 1. Extra "s" on \ifparameter 2. \anch_table_check_state doesn't work anymore because it tries to change

[dev-context] tabl-ntb.mkxl: \bTABLEhead etc.

2020-11-16 Thread Wolfgang Schuster
Hi, the #: is missing between both argument in the header, footer ... blocks (line 898--901). -\permanent\tolerant\protected\def\bTABLEhead[#1]#2\eTABLEhead{\appendtoks\tabl_ntb_section[#1]{#2}\to\t_tabl_ntb_head}

[dev-context] math-fen.mkxl: Wrong parameter passed to \setupcurrentmathfence

2020-11-14 Thread Wolfgang Schuster
Hi, on line 226 the wrong parameter is passed to \setupcurrentmathfence. \tolerant\protected\def\math_fenced_fenced[#1]#*[#2]%   {\advance\c_math_fenced_nesting\plusone    \begingroup    \edef\currentmathfence{#1}% -  \ifparameter#2\or\setupcurrentmathfence[#1]\fi + 

[dev-context] anch-tab.mkxl: \iffirstargument

2020-11-11 Thread Wolfgang Schuster
Hi, the following definitions (line 90 to 93) still use \iffirstargument. \permanent\tolerant\protected\def\tbXC [#1]{\anch_table_check_state\iffirstargument\anch_tables_indeed_XC [#1]\else\expandafter\NC\fi}

[dev-context] meta-ini.mkxl: \usestaticMPfigure

2020-11-11 Thread Wolfgang Schuster
Hi, the \usestaticMPfigure still use the \ifsecondargument check. \permanent\tolerant\protected\def\usestaticMPfigure[#1]#*[#2]%   {\ifsecondargument \scale[#2]{\reuseMPgraphic{\??mpstaticgraphic#1}}%    \else \reuseMPgraphic{\??mpstaticgraphic#1}%    \fi} Wolfgang

[dev-context] pack-box.mkxl: \setlayeranchored

2020-11-11 Thread Wolfgang Schuster
Hi, the \or has to be replace with \else. \permanent\tolerant\protected\def\setlayeranchored[#1]#*[#2]%   {\begingroup    \ifarguments \dowithnextbox    {\endgroup}% -  \or +  \else \dowithnextbox    {\checkpositionoverlays     \setbox\b_pack_anchors\box\nextbox    

[dev-context] strc-num.mkxl: \setcounter

2020-11-10 Thread Wolfgang Schuster
Hi, the definitions for \setcounter and everything until \countersubs need a \else for the subcounter values. \permanent\tolerant\protected\def\setcounter[#1]#*[#2]#*[#3]%   {\ifarguments\or\or \clf_setcounter {\namedcounterparameter{#1}\s!name}\numexpr#2\relax\or +  \else

[dev-context] tabl-tab.mkxl: \TB and \HL

2020-11-09 Thread Wolfgang Schuster
Hi, two bugs in the definitions for the \HL and \TB commands. \permanent\tolerant\protected\def\tabl_table_HL[#1]%   {\tabl_tables_chuck_auto_row    ... \bgroup \global\c_tabl_table_hrule_thickness_factor\m_tabl_table_HLheight\relax -  \iffirstargument +  \iftok{#1}\emptytoks\else  

[dev-context] type-ini.mklx: \definetypescriptsynonym

2020-11-09 Thread Wolfgang Schuster
Hi Hans, the \definetypescriptsynonym command still use \ifsecondargument in the definition. \permanent\tolerant\protected\def\definetypescriptsynonym[#name]#spacer[#synonym]%   {\ifsecondargument\setevalue{\??typescriptsynonyms#name}{#synonym}\fi} Wolfgang

[dev-context] symb-ini.mkxl: \doifelsesymboldefined

2020-11-07 Thread Wolfgang Schuster
Hi Hans, the \orelse branch can't be used because \c_symb_found still has the same value. Wolfgang \permanent\protected\def\doifelsesymboldefined#1%   {\begingroup    \edef\currentsymbol{#1}%    \let\symb_fetch\symb_fetch_first    \setfalse\c_symb_found    \the\t_symb_setups   

Re: [dev-context] [CG Wiki] \setuplanguage

2020-11-04 Thread Wolfgang Schuster
Tomas Hala schrieb am 04.11.2020 um 21:14: Thank you for this confirmation. Should not be better to replace on the wiki "file" by "language code" in this case? No because you don't have to use a language code for the name of the pattern file. Wolfgang

Re: [dev-context] [NTG-context] update and meeting

2020-09-21 Thread Wolfgang Schuster
Taco Hoekwater schrieb am 21.09.2020 um 14:44: Hi Hans, On 15 Sep 2020, at 18:44, Hans Hagen wrote: (2) Another change is in the \startdocument mechanism. This (already old and rusted) wrapper runs on top of variables but we think no one knows (or uses) that. So, it now is a real wrapper

[dev-context] \grabuntil

2020-09-08 Thread Wolfgang Schuster
Hi, the \grabuntil command fails when it uses \begincsname to create the delimiter. \unprotect \protected\def\grabuntil#1%  %{\expandafter\syst_helpers_grab\expandafter{\begincsname#1\endcsname}}   {\expandafter\syst_helpers_grab\expandafter{\csname#1\endcsname}} \protect

[dev-context] Reset breakpoints for verbatim

2020-09-07 Thread Wolfgang Schuster
Hi Hans, in verbatim mode a reset for breakpoints is missing. \setbreakpoints[compound] %\appendtoks %  \resetbreakpoints %\to \everyinitializeverbatim \starttext \starttyping xxx() \stoptyping \stoptext buff-ver.mkiv|mkxl (line 38ff): \appendtoks     \the\everyresettypesetting    

[dev-context] strc-itm.mkvi|mkxl

2020-08-16 Thread Wolfgang Schuster
Hi, missing replacement of \!!minus \def\strc_itemgroups_set_text_item_distance_indeed   {\assignvalue \m_strc_itemgroups_text_distance \m_strc_itemgroups_text_distance {.5\interwordspace\s!plus.5\emwidth}% {\interwordspace  \s!plus  \emwidth}% -    {\emwidth \s!plus

[dev-context] strc-itm.mklx: Interface check

2020-06-22 Thread Wolfgang Schuster
Hi, the check for the current interface on line 1596 doesn't work because it uses the undefined \v!english variable which should be \s!english. To ensure commands like \sym work after the fix a few synonyms have to be added to \itemgroupcommands. Line 1579 ff: \appendtoks     \let\item

[dev-context] strc-itm.mklx: \startspecialitemgroupitem

2020-06-22 Thread Wolfgang Schuster
Hi, the \startspecialitemgroupitem command lacks a entry for \txt. A new entry on line 1324 is needed: \letvalue{\??itemgroupstart\v!item}\strc_itemgroups_start_do_item \letvalue{\??itemgroupstart\v!sub }\strc_itemgroups_start_subitem \letvalue{\??itemgroupstart\v!sym

[dev-context] back-pdf.mkiv/mkxl

2020-05-25 Thread Wolfgang Schuster
Hi, the \ifempty command was added to the MkIV instead of the LMTX file. \appendtoks     \edef\p_file{\backendparameter{xmpfile}}%     \ifempty\p_file\else   \clf_setxmpfile{\p_file}%     \fi \to \everysetupbackend Wolfgang ___ dev-context

[dev-context] pack-mrl.mkiv

2020-05-25 Thread Wolfgang Schuster
Hi, line 39 (third argument is missing): -\installsimplecommandhandler \??blackrules {blackrules} +\installsimplecommandhandler \??blackrules {blackrules} \??blackrules Wolfgang ___ dev-context mailing list dev-context@ntg.nl

[dev-context] pack-bar.mkiv

2020-05-25 Thread Wolfgang Schuster
Hi, -\installsimplecommandhandler \??positionbar {positionbar} +\installsimplecommandhandler \??positionbar {positionbar} \??positionbar Wolfgang ___ dev-context mailing list dev-context@ntg.nl https://mailman.ntg.nl/mailman/listinfo/dev-context

[dev-context] typo-del.mkiv

2020-04-30 Thread Wolfgang Schuster
Hi, the patch below makes it possible to change the interlinespace for blockquote etc. with the style key, e.g. \setupblockquote[style={\setupinterlinespace[...]}. The extra group is needed for the nextleft and nextright keys. \def\typo_delimited_start_par_indeed[#1]%  

Re: [dev-context] data-vir.lua: Extra tracker

2020-04-05 Thread Wolfgang Schuster
Wolfgang Schuster schrieb am 05.04.2020 um 17:28: Hi, the following tracker has to be removed because a) there is a tracker with the same name in data-zip.lua and b) the file contains another tracker for trace_virtual. data-vir.lua (line 15): trackers.register("resolvers.loc

[dev-context] data-vir.lua: Extra tracker

2020-04-05 Thread Wolfgang Schuster
Hi, the following tracker has to be removed because a) there is a tracker with the same name in data-zip.lua and b) the file contains another tracker for trace_virtual. data-vir.lua (line 15): trackers.register("resolvers.locating", function(v) trace_virtual = v end) Wolfgang

[dev-context] Keep extreme tables on the same page as previous content

2020-04-04 Thread Wolfgang Schuster
Hi, when you use extreme tables without a float environment but repeat the header the table always starts on a new page. begin example \starttext \samplefile{weisman} \blank \startxtable[header=repeat,split=repeat]     \startxtablehead     \startxrow \startxcell Table head

[dev-context] scite module adds empty line at the end

2020-03-26 Thread Wolfgang Schuster
Hi, when I use the scite module to format code blocks I get a empty line at the end of the environment. The cause for this is the "lines" environment used by the module which adds a \blank at the end. A custom lines environment without before/after values would help here. begin

[dev-context] m-scite.mkiv

2020-03-14 Thread Wolfgang Schuster
Hi, the scite module loads the wrong formatter for C/ C++ code. Line 320 in m-scite.mkiv: -\definetyping[CPP] [option=web] +\definetyping[CPP] [option=cpp] Wolfgang ___ dev-context mailing list dev-context@ntg.nl

[dev-context] \tochar problem with symbols

2020-03-09 Thread Wolfgang Schuster
Hi Hans, I encountered a nasty problem when I tried to make symbols for the Libertinus keyboard font. Whenever I tried to make a table with all symbols in the font ConTeXt stops with a error message. begin example \definefontsynonym [LibertinusKeyboard]

Re: [dev-context] Wrong number for previous/next section value

2020-01-14 Thread Wolfgang Schuster
Hans Hagen schrieb am 14.01.2020 um 09:58: On 1/13/2020 10:01 PM, Wolfgang Schuster wrote: Hi, I try to get the counter value of the next section but the result is always the value for the current section (e.g. section 3 shows also 3 as value for the next section). \startbuffer[headnumber

[dev-context] Wrong number for previous/next section value

2020-01-13 Thread Wolfgang Schuster
Hi, I try to get the counter value of the next section but the result is always the value for the current section (e.g. section 3 shows also 3 as value for the next section). \startbuffer[headnumber]     \starttabulate     \NC first    \EQ \somenamedheadnumber {section} {first}    \NC\NR    

[dev-context] Paragraph indentation after indentnext=no

2020-01-02 Thread Wolfgang Schuster
Hi Hans, below is a fix for the following question on the mailing list: https://mailman.ntg.nl/pipermail/ntg-context/2019/096591.html When you use the "indentnext=no" setting for a environment the following paragraph will never be indented unless you use the \doindentation command. When

Re: [dev-context] Add headcommand to floatcaption

2019-12-27 Thread Wolfgang Schuster
Hans Hagen schrieb am 25.12.2019 um 15:21: On 12/25/2019 12:01 AM, Henri Menke wrote: Dear Hans, Could you please add the possibility to switch the headcommand to floatcaption?  Below you can find a simple patch that implements what I am proposing. Happy holidays, Henri --- [...] ok, given

Re: [dev-context] Add headcommand to floatcaption

2019-12-25 Thread Wolfgang Schuster
Hans Hagen schrieb am 25.12.2019 um 15:21: On 12/25/2019 12:01 AM, Henri Menke wrote: Dear Hans, Could you please add the possibility to switch the headcommand to floatcaption?  Below you can find a simple patch that implements what I am proposing. Happy holidays, Henri --- diff --git

[dev-context] Inner/outer alignment resets text direction

2019-12-16 Thread Wolfgang Schuster
Hi, when inner/outer alignment of paragraphs is used in a doublesided document with the text direction from RTL, the direction is changed back to LTR starting with the second page. The reason for this is the \signalinnerrealign (or \signalouterrealign) command.

[dev-context] \textrule and Bidi

2019-12-16 Thread Wolfgang Schuster
Hi, in RTL text direction the middle and bottom alternatives of \textrule extend into the right margin. \setupalign[righttoleft] \starttext \textrule[top]{} \textrule[middle]{} \textrule[bottom]{} \stoptext A fix for this is to use \naturalvpack instead of \vpack. pack-mrl.mkiv

[dev-context] \setupalign[flushinner]

2019-12-16 Thread Wolfgang Schuster
Hi, the results of the inner and flushinner (and also outer and flushouter) keywords for \setupalign are reversed compared to MkII. I guess this happened when the code was rewritten. Attached are results from the following example in MkII and MkIV. \setuppapersize[A5][A5] \starttext

[dev-context] pack-lyr.mkiv|mkxl

2019-11-30 Thread Wolfgang Schuster
Hi, there is a extra "s" at the end of each \lastnamedcs. \def\pack_layers_flush_double#1%   {\startoverlay {\ifcsname\??layerbox\currentlayer\endcsname -   \ifvoid\lastnamedcss\else \chardef\b_layer_two\lastnamedcs +   \ifvoid\lastnamedcs\else \chardef\b_layer_two\lastnamedcs  

[dev-context] \doiftext and fallback fonts

2019-10-07 Thread Wolfgang Schuster
Hi Hans, the \doiftext(else) command gives a wrong result when the checked character comes from a fallback font. \definefontfallback [testfallback] [file:dejavuserif] [greekandcoptic] \definefontsynonym [FallbackTest] [file:lmroman10-regular] [fallbacks=testfallback] \starttext

Re: [dev-context] [NTG-context] Side figure bug in mkiv?

2019-07-19 Thread Wolfgang Schuster
Taco Hoekwater schrieb am 19.07.2019 um 16:20: On 19 Jul 2019, at 16:03, Alan Braslau wrote: On Fri, 19 Jul 2019 14:39:11 +0200 Taco Hoekwater wrote: but that is quite silly. Is there some official command to ‘fix' this issue? \bold{ bla bla} Because of the streaming nature of xml

[dev-context] strc-blk.lua

2019-06-18 Thread Wolfgang Schuster
Hi, the blocks.select function needs a check on line 122 for the mtags variable which can be nil. function blocks.select(state,name,tag,criterium)     criterium = criterium or "text"     if find(tag,"=",1,true) then     tag = ""     end     local names  = settings_to_set(name)     local

Re: [dev-context] Missing indentnext check in buff-ver.mkiv

2019-05-27 Thread Wolfgang Schuster
Hans Hagen schrieb am 27.05.2019 um 09:42: On 5/26/2019 11:30 PM, Henri Menke wrote: Dear devs, \typebuffer does not obey the indentnext option from \setuptyping because the corresponding checks are missing in \buff_verbatim_type_buffer and \buff_verbatim_type_buffer_indeed.  I have attached

Re: [dev-context] Interface fails fail to create PDF

2019-05-07 Thread Wolfgang Schuster
Hans Hagen schrieb am 07.05.2019 um 10:35: in back-lpd.lua, can you see what goes on in local function prepare() maybe add some prints I tried but it's useless because ConTeXt never enables the "pdf" driver but stays with "default". I noticed this after adding print to drivers.enable in

Re: [dev-context] Interface fails fail to create PDF

2019-05-07 Thread Wolfgang Schuster
Hans Hagen schrieb am Di., 7. Mai 2019, 09:10: > On 5/7/2019 6:42 AM, Wolfgang Schuster wrote: > > Hi, > > > > when I add new commands, options etc. to interface files I often run > > context on the file itself to create a PDF to check the content but for > > Lua

[dev-context] Interface fails fail to create PDF

2019-05-06 Thread Wolfgang Schuster
Hi, when I add new commands, options etc. to interface files I often run context on the file itself to create a PDF to check the content but for Luametatex this doesn't work anymore. When I run ConTeXt like this     context i-framed.xml I can see ConTeXt creating pages     mtx-context

[dev-context] lmtx and page injections

2019-04-04 Thread Wolfgang Schuster
Hi Hans, the new luametatex release doesn't work with the \pageinjection command. The resulting pdf shows the same content on all pages, e.g. in the following example I get the first page twice. \starttext Before \pageinjection [empty] After \stoptext Wolfgang

Re: [dev-context] comment for attachments in PDF/A-3

2019-03-24 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 24.03.19 um 21:13: On 3/24/19 6:59 PM, Wolfgang Schuster wrote: [...]     \attachment[file=] instead of     \attachment[] The name of the first argument can be used to refer to a previously defined attachment (can be done with \registerattachment) but ConTeXt

Re: [dev-context] comment for attachments in PDF/A-3

2019-03-24 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 24.03.19 um 18:12: On 3/21/19 6:35 PM, Hans Hagen wrote: On 3/20/2019 10:46 PM, Pablo Rodriguez wrote: [...] In some scenarios, this could be a security issue. Wouldn’t it be possible that the content of the /Names entries would be replaced by the option keys

[dev-context] typo-brk.lua

2019-03-22 Thread Wolfgang Schuster
Hi, a local definition for numbers has to be added to get language dependant settings to \definebreakpoint. function breakpoints.handler(head)     local done    = false     local attr    = nil     local map = nil     local current = head     while current do     local char, id =

[dev-context] Argument of \setupbtx[command=...] appears twice

2019-03-15 Thread Wolfgang Schuster
Hi Hans and Alan, the argument of the command key for the \setupbtx command is shown twice in the running text. \usebtxdataset[mkiv-publications.bib] \setupbtx[command=\groupedcommand{<}{>}] \starttext \cite[article] \placelistofpublications \stoptext A possible fix for this is to

[dev-context] publ-imp-commands.mkvi

2019-03-15 Thread Wolfgang Schuster
Hi, the following change is needed in the publication file \let\<< -\let\<> +\let\>> because the wrong assignment creates a wrong bracket in math mode for left/right delimiters. \starttext \m { \left\< x \right\> } \m { \left\> x \right\< } \stoptext Wolfgang

[dev-context] strc-ren.mkiv

2019-02-27 Thread Wolfgang Schuster
Hi Hans, when you use “text” alternative for \setuphead and enable text indentation the paragraph after the section title isn’t indented. \setupindenting[yes,big] \setuphead[section][alternative=text] \starttext \section{Introduction} \input knuth \stoptext This is caused by the

[dev-context] math-fen.mkiv: typos

2019-02-21 Thread Wolfgang Schuster
Hi, line 500 (missing “hesis” in “parenthesis”): -\installmathfencepair ) \Rparentmirrored ( \Lparentmirrored +\installmathfencepair ) \Rparenthesismirrored ( \Lparenthesismirrored line 531(missing “al” in “interval”): -\installmathfencepair ⦗ \Linterv  ⦘ \Rinterv

[dev-context] syst-aux.mkiv: \processassignlist

2019-02-09 Thread Wolfgang Schuster
Hi, the conditional for ##3 is wrong (should be true). \unexpanded\def\processassignlist#1[#2]#3%   {\def\syst_helpers_process_assign_list_assign[##1=##2=##3]% -    {\doifnot{##3}\relax{#3{##1}}}% +    {\doif{##3}\relax{#3{##1}}}%    \def\syst_helpers_process_assign_list_step##1%

Re: [dev-context] Caption in floatcombination is too low

2019-02-06 Thread Wolfgang Schuster
Wolfgang Schuster schrieb am 26.01.19 um 20:15: Hi Hans, there is a big gap between the content and the caption of each float in a floatcombination environment. begin example \useMPlibrary[dum] \starttext \startplacefigure[title={First graphic}]   \externalfigure[one] \stopplacefigure

Re: [dev-context] i-columns.xml small correction

2019-02-05 Thread Wolfgang Schuster
Hans Hagen schrieb am 05.02.19 um 12:09: On 2/5/2019 11:51 AM, Taco Hoekwater wrote: Hi, In the definition of “setupcolumns”, there are two cd:inherits misrepresented as cd:constants:               ok, i'll fix it I have to change the definition of

[dev-context] math-ini.mkiv: \mathminus

2019-02-05 Thread Wolfgang Schuster
Hi Hans, the definition for \mathminus uses a en dash for math mode which seems wrong to me. Shouldn’t math use a normal hyphen character? \unexpanded\def\mathminus{\ifmmode –\else\iffontchar\font`−−\else –\fi\fi} Wolfgang ___ dev-context mailing

[dev-context] core-con.mkiv: Wrong argument for \date

2019-02-04 Thread Wolfgang Schuster
Hi Hans, you pass the wrong argument (#1 instead of #2) to the Lua function for the \date command. \def\syst_converters_date[#1][#2]%   {\dontleavehmode    \begingroup    \scratchcounterone  \normalyear    \scratchcountertwo  \normalmonth    \scratchcounterthree\normalday    \iffirstargument

[dev-context] Caption in floatcombination is too low

2019-01-26 Thread Wolfgang Schuster
Hi Hans, there is a big gap between the content and the caption of each float in a floatcombination environment. begin example \useMPlibrary[dum] \starttext \startplacefigure[title={First graphic}]   \externalfigure[one] \stopplacefigure \startfloatcombination  

[dev-context] spac-hor.mkiv: Missing delimiter for \quad

2018-12-27 Thread Wolfgang Schuster
Hi Hans, the definitions for \quad, \qquad and \enskip need a \relax at the end. -   \unexpanded\def\enskip{\hskip.5\emwidth} -   \unexpanded\def\quad  {\hskip  \emwidth} -   \unexpanded\def\qquad {\hskip 2\emwidth} +   \unexpanded\def\enskip{\hskip.5\emwidth\relax} +    \unexpanded\def\quad 

Re: [dev-context] interface file typos and a question

2018-12-14 Thread Wolfgang Schuster
Taco Hoekwater schrieb am 14.12.18 um 14:29: Hi, Whenever I have a few off minutes, I am working on an extension to the wiki. The idea is to have an extra extension tag … which fetches the html syntax of a ConTeXt command from a wiki database table. More later on that. While working on that

[dev-context] x-setups-basics.mkiv

2018-11-26 Thread Wolfgang Schuster
Hi Hans, the argument check in \cmd_show_setup_yes has to go away. \def\cmd_show_setup_yes[#1]% - {\iffirstargument -    \cmd_show_setup_nop{#1}% -  \else -    \expandafter\cmd_show_setup_nop -  \fi} + {\cmd_show_setup_nop{#1}} Wolfgang ___

[dev-context] core-env.mkiv

2018-11-18 Thread Wolfgang Schuster
Hi, on line 800 you pick the wrong number of arguments. \unexpanded\def\doifelseemptyvariable#1#2%   %{\edef\m_syst_string_one{\csname\??variables\ifcsname\??variables#1:#2\endcsname#1:#2\else:\fi\endcsname}%   {\edef\m_syst_string_one{\begincsname\??variables#1:#2\endcsname}%   

[dev-context] x-setups-basics.mkiv

2018-11-10 Thread Wolfgang Schuster
Hi Hans, can you add     \setupxml[\c!entities=\v!yes] to the module because I need a few entities ( and ) from the extended list. Wolfgang ___ dev-context mailing list dev-context@ntg.nl https://mailman.ntg.nl/mailman/listinfo/dev-context

[dev-context] meta-imp-txt.mkiv: EnglishRule

2018-09-09 Thread Wolfgang Schuster
Hi, the height variable in the EnglishRule graphic needs an assignment, otherwise you get a error when there is a previous graphic which also use height as a variable name. meta-imp-txt.mkiv: \startuniqueMPgraphic{EnglishRule}{height,width,color} -   height = \MPvar{height} ; +   height :=

[dev-context] symb-ini.mkiv: \symbol and fontawesome

2018-08-31 Thread Wolfgang Schuster
Hi Hans, the two argument version of the \symbol commands needs an additional branch to support the new symbol mechanism which is used with fontawesome. \unprotect % \def\symb_place_normal_a[#1][#2]% %   {\edef\currentsymbol{#2}% %    \ifcsname\??symbol#1:#2\endcsname %  

Re: [dev-context] User defined environments with parameters

2018-08-25 Thread Wolfgang Schuster
Aditya Mahajan schrieb am 25.08.18 um 19:02: On Sat, 25 Aug 2018, Wolfgang Schuster wrote: Hi, sometimes one needs a environment where you have to set different strings. While we have \definestartstop to create new environments it doesn’t provide a mechanism to pass values

[dev-context] User defined environments with parameters

2018-08-25 Thread Wolfgang Schuster
Hi, sometimes one needs a environment where you have to set different strings. While we have \definestartstop to create new environments it doesn’t provide a mechanism to pass values to the environment. Attached is a prototype for such a environment where you can pass values (only style,

Re: [dev-context] lang-ini.mkiv: \startlanguage

2018-08-24 Thread Wolfgang Schuster
18:58: On 8/22/2018 9:52 PM, Wolfgang Schuster wrote: Hi Hans, can you add a environment version of the \language command. \unexpanded\def\startlanguage {\begingroup\language} \let\stoplanguage\endgroup Grouped or not? This is also an option: \unprotect \unexpanded\def\startlanguage

[dev-context] lang-ini.mkiv: \startlanguage

2018-08-22 Thread Wolfgang Schuster
Hi Hans, can you add a environment version of the \language command. \unexpanded\def\startlanguage {\begingroup\language} \let\stoplanguage\endgroup Wolfgang ___ dev-context mailing list dev-context@ntg.nl

Re: [dev-context] Start sections with 0

2018-08-12 Thread Wolfgang Schuster
counting from zero, for some reason... :-) Alan On Sat, 11 Aug 2018 20:13:59 +0200 Wolfgang Schuster wrote: Hi Hans, can you add a conversion which let us show 0 as value for the first chapter etc. \def\zeronumberconversion#1{\number\numexpr#1-1\relax} \defineconversion [zero

[dev-context] Start sections with 0

2018-08-11 Thread Wolfgang Schuster
Hi Hans, can you add a conversion which let us show 0 as value for the first chapter etc. \def\zeronumberconversion#1{\number\numexpr#1-1\relax} \defineconversion [zero] [\zeronumberconversion] \defineconversionset [zero] [n,zero] [n] \setuphead [sectionconversionset=zero] \starttext

[dev-context] page-pcl.mkiv

2018-08-07 Thread Wolfgang Schuster
Hi, line 772 uses mixedcolumns parameter to set the text color. \unexpanded\def\page_col_start_yes {\d_page_col_distance \pagecolumnsparameter\c!distance\relax ... % \useprofileparameter\pagecolumnsparameter % - \usemixedcolumnscolorparameter\c!color +

Re: [dev-context] language synonyms for registers

2018-07-15 Thread Wolfgang Schuster
I need time to think about it. Wolfgang Hans Hagen 15. Juli 2018 um 20:02 On 7/15/2018 5:23 PM, Pablo Rodriguez wrote: Depends on Wolfgangs and Thomas assessment. -

Re: [dev-context] scrp-ini.mkiv: Global attributes for \setscript command

2018-07-09 Thread Wolfgang Schuster
Hans Hagen 9. Juli 2018 um 23:12 ok, another attempt ... see typo-dir file It works for my small test file, Idris can check it with a real document. Thank you very much, Wolfgang ___ dev-context mailing list

Re: [dev-context] scrp-ini.mkiv: Global attributes for \setscript command

2018-07-09 Thread Wolfgang Schuster
متحان test] \starttext Test امتحان test\footnote{Test امتحان test} Test امتحان test\inmargin{Test امتحان test} \stoptext Wolfgang Hans Hagen <mailto:j.ha...@xs4all.nl> 9. Juli 2018 um 18:48 On 7/9/2018 4:24 PM, Wolfgang Schuster wrote: i made it a bit more generic ... beta on ftp ... 'pick

Re: [dev-context] scrp-ini.mkiv: Global attributes for \setscript command

2018-07-09 Thread Wolfgang Schuster
Hans Hagen 9. Juli 2018 um 15:01 how about this (a bit like languages and bodyfonts) \unprotect \newconstant\c_scripts_injection \c_scripts_injection\attributeunsetvalue \newconstant\c_scripts_splitting \c_scripts_splitting\attributeunsetvalue

Re: [dev-context] scrp-ini.mkiv: Global attributes for \setscript command

2018-07-09 Thread Wolfgang Schuster
Hans Hagen 8. Juli 2018 um 23:02 it needs a bit of thinking (even bidi) ... it compares to global and local bodyfonts what if a page break occurs in the middle of japanese local text while the global script is chinese I can understand your concerns. Another

[dev-context] scrp-ini.mkiv: Global attributes for \setscript command

2018-07-08 Thread Wolfgang Schuster
Hi Hans, the \setscript command has the same problem with local attributes as the bidi mechanism. Some of the following attributes in scrp-ini.mkiv have to be global: \definesystemattribute[scriptinjection][public] \definesystemattribute[scriptsplitting][public]

  1   2   3   4   5   >