Re: [NTG-context] ConTeXt meeting 2023(!)

2022-05-18 Thread Bruce Horrocks via ntg-context


> On 17 May 2022, at 07:49, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> Would that make a difference for you?

Seven days is a big time commitment, unless you are a major user of ConTeXt. Is 
there a possibility to split it up into "professional" during the week and 
"hobbyist" over the weekend so people could come for just the weekend, or the 
whole week?

—
Bruce Horrocks
Hampshire, UK
___
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] ignore not closed tags in XML input

2022-05-18 Thread Bruce Horrocks via ntg-context


> On 18 May 2022, at 17:00, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> 
> Sorry for explaining myself so poorly.
> 
> One of the not irrelevant tasks for me is finding examples of XML code.

Perhaps you could start by typesetting a technical source rather than prose?

I suggest trying to typeset the UK Meteorological Office's Shipping Forecast :-)

- web page version
  


- XML source data
  


- as broadcast on the Radio
  

It's a good (in my opinion) source because it is amenable to being printed in 
several different ways: one might be to simply copy the webpage's layout, while 
another could be to use columns to fit more onto a single page of text.



Alternatively, a much more demanding exercise would be to typeset the user 
manual for the XML editing software "Oxygen".
  

The XML source for the manual is here:
  


—
Bruce Horrocks
Hampshire, UK

___
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] split TABLE cells

2022-05-18 Thread Steffen Wolfrum via ntg-context
Hi,

I just found an old mail from 30 May 2008:

How do I split not only TABLE but cells? It was not possible then.

\starttext
\bTABLE[split=yes,option=stretch]
\bTR
\bTD
\input tufte \input knuth Hello world ...
\eTD
\bTD
\input tufte
\eTD
\bTD
\input knuth
\eTD
\eTR
\bTR
\bTD
Test
\eTD
\bTD
Test
\eTD
\bTD
Test
\eTD
\eTR
\eTABLE
\stoptext


Best wishes, Steffen
___
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] ignore not closed tags in XML input

2022-05-18 Thread Thangalin via ntg-context
Hey Pablo,

> One of the not irrelevant tasks for me is finding examples of XML code.

To clarify, XHTML documents *are* XML documents. XHTML happens to use a
standardized set of XML element and attribute names. All XHTML examples are
also XML examples.

> But my worries came from having to sanitize HTML sources (which aren’t

That was discussed in the blog post: finding a source of well-formed XHTML
documents. There are a number of tools to sanitize HTML, as mentioned in
the thread. KeenWrite uses the Java-based JSoup library https://jsoup.org/
to sanitize HTML and then create an XHTML version.

All the best!
___
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] ignore not closed tags in XML input

2022-05-18 Thread Pablo Rodriguez via ntg-context
On 5/18/22 03:23, Thangalin via ntg-context wrote:
> […]
>   I wanted to write an introduction on how to typeset XML sources with
>   ConTeXt (at least, in Spanish).
>
> See:
> https://dave.autonoma.ca/blog/2020/04/11/project-gutenberg-projects/
>
> It's English, but describes a fair amount of what you're probably
> looking to accomplish, and there are all sorts of free translation
> services now.

Hi Dave,

many thanks for your reply.

Your introduction clearly states
(https://dave.autonoma.ca/blog/2020/04/11/project-gutenberg-projects/#xhtml-to-markdown):

  Even though ConTeXt can typeset XML documents, we’ll use XSLT—the
  verbose language only gurus grok without gripes—to convert XHTML into
  a Markdown document that pandoc can read to produce a native ConTeXt
  file.

I’m afraid I’m interested in typesetting XML documents with ConTeXt.

Actually, I have been typesetting XHML documents (generated by pandoc
from Markdown sources) for years now.

Sorry for having explained myself like crap. I wanted to write an
introduction on how to typeset XML sources in ConTeXt. I cannot see how
free translation services may be of help here.

>   One of the main issues I face is to find examples.
>
> See:
>
> https://wiki.contextgarden.net/XML
> https://wiki.contextgarden.net/Getting_Started_with_XML_and_ConTeXt_using_TEXML
>
> And themes for my text editor, KeenWrite, in particular:
>
> https://github.com/DaveJarvis/keenwrite-themes/tree/main/xhtml
> https://github.com/DaveJarvis/keenwrite-themes/tree/main/tarmes
> https://github.com/DaveJarvis/keenwrite-themes/tree/main/boschet

Sorry for explaining myself so poorly.

One of the not irrelevant tasks for me is finding examples of XML code.

>   Maybe all XML handling is way more complex than I originally thought.
>
> It takes some elbow grease. Conceptually, it's essentially mapping XML
> elements to xmlsetups, which are used to apply typesetting instructions.

I agree, this is basically the idea.

But my worries came from having to sanitize HTML sources (which aren’t
strict XML-compliant).

Many thanks for your help,

Pablo
___
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] PDF/A-3, XMP and Factur-X

2022-05-18 Thread Henning Hraban Ramm via ntg-context

Hi again,

I’m looking into extending my ConTeXt-made invoices with embedded XML 
data according to the DE/FR Factur-X standard (in Germany also known as 
ZUGFeRD).


Does anyone have some experience with that?

For that, I need PDF/A-3(a) compliant documents – current documentation 
is only on PDF/A-1(a), but that doesn’t seem to be the problem.


Now I’m supposed to put additional information into the XMP metadata.
I found lpdf-xmp.lua; but it seems like I can’t just use

\startluacode
lpdf.addtoinfo("TEST","Hraban was here!")
lpdf.addxmpinfo("UStID","123456")
\stopluacode

Would I need to add my tags to the mapping table of lpdf-xmp.lua?

Or circumvent it after a look at the function concerned:

function lpdf.addxmpinfo(tag,value,check)
local pattern = permitdetail(tag)
if type(pattern) == "string" then
xmlfillin(xmp or valid_xmp(),pattern,value,check)
end
end

If I try to use xml.fillin, I apparently need the name of the current 
xml file, but valid_xmp is a local function. If just use the default...


xml.fillin("lpdf-pdx.xml","metadata","UStID","123456")

... at least I find no traces of that key in the extended metadata 
dialog of Acrobat Pro 9. I also tried different values like "xmp" 
instead of metadata. Clearly I don’t understand what I’m doing here ;)


Is there a check against some schema involved?

It looks like I should include an additional XMP schema for Factur-X 
with the URI "urn:factur-x:pdfa:CrossIndustryDocument:invoice:1p0#", 
prefix "fx". How can I do that?


This is the example from the docs:


INVOICE
factur-x.xml
1.0
EXTENDED


Then I’d use \attachment to include my "factur-x.xml" invoice (that I 
must generate from my Lua invoice code), but that’s a task for another 
day ;)


Hraban
___
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] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
I found a way to wrap everything before \startdocument, so I think this
looks like a template more or less:

In case anyone is interested, here's the MWE:

\definenote[address]
\setupnote[address][rule=off,location=text]


\setupnotation[footnote][numberconversion=numerals]

\definenote[putjustmark]
\setupnote[putjustmark][location=none]
\setupnotation[putjustmark][numberconversion=set 2]


\definenote[putjustnote][footnote]
\setupnote[putjustnote][textcommand=\gobbleoneargument]
\setupnotation[putjustnote][numberconversion=set 2]

\newif\ifnoteintitle
\newtoks\titlefootnotes

\titlefootnotes\emptytoks


\def\thanks#1{\noteintitletrue\putjustmark{#1}\doglobal\appendtoks
\putjustnote{#1} \to \titlefootnotes}
\def\email#1{\noteintitletrue\putjustmark{#1}\doglobal\appendtoks
\putjustnote{#1} \to \titlefootnotes}

\def\unskipfunnylines{\ifnoteintitle\endgraf\kern-2\lineheight\fi}


\definenamespace
   [addr]
   [type=module,
name=address,
command=yes,
setup=list,
parent=addr,
  ]

\define[1]\useaddress
{\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}}



\setupaddress[style=italic]
\defineaddress[fst][name={Name of Institute or Affiliation, City, Country}]
\defineaddress[snd][name={Name of Secondary Institute or Affiliation, City,
Country}]
\defineaddress[thd][name={Name of Third Institute or Affiliation, City,
Country}]

\processcommacommand[fst,snd,thd]\useaddress



\startsetups [document:start]
The Title\dorecurse{10}{\expanded{\thanks{Work supported by fund
\recurselevel.}}}
\endgraf

Me\dorecurse{10}{\expanded{\email{\tt my.name@mailbox.\recurselevel.com
}}\high{,}}\note[address][fst]\high{,}\note[address][snd]\high{,}\note[address][thd]
\endgraf

\placenotes[address]

\blank[medium]
  \startcolumns\hyphenpenalty1000

  \the\titlefootnotes\relax

  \setcounter[footnote][0]

  \unskipfunnylines

\stopsetups

\startsetups [document:stop]
  \stopcolumns
\stopsetups



\startdocument


test\footnote{test}

\input knuth

\input knuth

\input knuth

\input knuth

\stopdocument



On Wed, May 18, 2022 at 10:02 PM Ross  wrote:

> After some visualisations, I found that my token \titlefootnotes will
> ALWAYS generate two lines if there is/are any non-zero number of footnotes
> there. Interesting. So I need a \newif that each time a \thanks or \email
> is invoked, it'll set to true and I'll unskip the 2\lineheight afterwards.
>
> I still don't know why this \kern macro won't have any effect if it's
> inside a token or a \startsetup.
>
> On Wed, May 18, 2022 at 4:56 PM Ross  wrote:
>
>> Hi Massi,
>>
>> You are a champion!
>>
>> On Wed, May 18, 2022 at 4:41 PM mf  wrote:
>>
>>> I hope I got the point now:
>>>
>>> ...
>>> \startcolumns
>>>
>>> \the\titlefootnotes
>>>
>>> \kern-\rawcountervalue[address]\lineheight % dirty trick
>>>
>>> test\footnote{test}
>>>
>>> \input knuth
>>>
>>> \stopcolumns
>>> ...
>>>
>>> Massi
>>>
>>> Il 18/05/22 10:07, Ross ha scritto:
>>> > Dear Massi,
>>> >
>>> > Thanks for your solution. But the thing may be related to the
>>> > \appendtoks macro. It doesn't work to put just \setnotetext there.
>>> > \note works fine, so that's the reason I need the "full functional
>>> macro".
>>> >
>>> > Maybe I didn't get the point, so if it's not too much to ask, could
>>> you
>>> > do it on my MWE?
>>> >
>>> > PS: sorry I have to use another email account because my institute
>>> > mailbox took forever to get the message before my government (China)
>>> > finishes auditing it.
>>> >
>>> > Best wishes,
>>> > Zhichu
>>> >
>>> > On Wed, May 18, 2022 at 3:36 PM mf via ntg-context >> > > wrote:
>>> >
>>> > Is this what you mean?
>>> >
>>> > \starttext
>>> > Hello\footnotetext{Footnote without mark}.
>>> > \stoptext
>>> >
>>> > Kind regards,
>>> > Massi
>>> >
>>> > Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto:
>>> >  > Hi everybody,
>>> >  >
>>> >  >
>>> >  > After some attempts to put footnotes in a mixed 1&2 columns
>>> > layout, I
>>> >  > decide to put marks in the one-column environment and flush them
>>> > when
>>> >  > entering the two-column environment.
>>> >  >
>>> >  >
>>> >  > The code is ugly but the result is acceptable. Except that the
>>> > invisible
>>> >  > footnote marks do generate something in the main text, so
>>> there's a
>>> >  > blank line for each footnote.
>>> >  >
>>> >  >
>>> >  > Here's an MWE:
>>> >  >
>>> >  >
>>> >  > =
>>> >  >
>>> >  > \definenote[address]
>>> >  > \setupnote[address][rule=off,location=text]
>>> >  >
>>> >  >
>>> >  >
>>> >  > \definenote[putjustmark]
>>> >  > \setupnote[putjustmark][location=none]
>>> >  > \setupnotation[putjustmark][numberconversion=set 2]
>>> >  >
>>> >  >
>>> >  > \definenote[putjustnote]%[footnote] % if footnotes need to be
>>> > grouped,
>>> >  > uncomment 

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
After some visualisations, I found that my token \titlefootnotes will
ALWAYS generate two lines if there is/are any non-zero number of footnotes
there. Interesting. So I need a \newif that each time a \thanks or \email
is invoked, it'll set to true and I'll unskip the 2\lineheight afterwards.

I still don't know why this \kern macro won't have any effect if it's
inside a token or a \startsetup.

On Wed, May 18, 2022 at 4:56 PM Ross  wrote:

> Hi Massi,
>
> You are a champion!
>
> On Wed, May 18, 2022 at 4:41 PM mf  wrote:
>
>> I hope I got the point now:
>>
>> ...
>> \startcolumns
>>
>> \the\titlefootnotes
>>
>> \kern-\rawcountervalue[address]\lineheight % dirty trick
>>
>> test\footnote{test}
>>
>> \input knuth
>>
>> \stopcolumns
>> ...
>>
>> Massi
>>
>> Il 18/05/22 10:07, Ross ha scritto:
>> > Dear Massi,
>> >
>> > Thanks for your solution. But the thing may be related to the
>> > \appendtoks macro. It doesn't work to put just \setnotetext there.
>> > \note works fine, so that's the reason I need the "full functional
>> macro".
>> >
>> > Maybe I didn't get the point, so if it's not too much to ask, could you
>> > do it on my MWE?
>> >
>> > PS: sorry I have to use another email account because my institute
>> > mailbox took forever to get the message before my government (China)
>> > finishes auditing it.
>> >
>> > Best wishes,
>> > Zhichu
>> >
>> > On Wed, May 18, 2022 at 3:36 PM mf via ntg-context > > > wrote:
>> >
>> > Is this what you mean?
>> >
>> > \starttext
>> > Hello\footnotetext{Footnote without mark}.
>> > \stoptext
>> >
>> > Kind regards,
>> > Massi
>> >
>> > Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto:
>> >  > Hi everybody,
>> >  >
>> >  >
>> >  > After some attempts to put footnotes in a mixed 1&2 columns
>> > layout, I
>> >  > decide to put marks in the one-column environment and flush them
>> > when
>> >  > entering the two-column environment.
>> >  >
>> >  >
>> >  > The code is ugly but the result is acceptable. Except that the
>> > invisible
>> >  > footnote marks do generate something in the main text, so
>> there's a
>> >  > blank line for each footnote.
>> >  >
>> >  >
>> >  > Here's an MWE:
>> >  >
>> >  >
>> >  > =
>> >  >
>> >  > \definenote[address]
>> >  > \setupnote[address][rule=off,location=text]
>> >  >
>> >  >
>> >  >
>> >  > \definenote[putjustmark]
>> >  > \setupnote[putjustmark][location=none]
>> >  > \setupnotation[putjustmark][numberconversion=set 2]
>> >  >
>> >  >
>> >  > \definenote[putjustnote]%[footnote] % if footnotes need to be
>> > grouped,
>> >  > uncomment the second argument and the line after
>> \the\titlefootnotes
>> >  > \setupnote[putjustnote][textcommand=\gobbleoneargument]
>> >  > \setupnotation[putjustnote][numberconversion=set 2]
>> >  >
>> >  >
>> >  > \newtoks\titlefootnotes
>> >  >
>> >  >
>> >  > \def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to
>> >  > \titlefootnotes}
>> >  > \def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to
>> >  > \titlefootnotes}
>> >  >
>> >  >
>> >  > \appendtoks
>> >  >\setcounter[footnote][0] % this looks stupid because it has no
>> > effect
>> >  >%\setupnotation[footnote][numberconversion=numerals]
>> >  > \to \titlefootnotes
>> >  >
>> >  > \definenamespace
>> >  > [addr]
>> >  > [type=module,
>> >  >  name=address,
>> >  >  command=yes,
>> >  >  setup=list,
>> >  >  parent=addr,
>> >  >]
>> >  >
>> >  > \define[1]\useaddress
>> >  >
>> {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}}
>> >  >
>> >  >
>> >  > \starttext
>> >  >
>> >  >
>> >  >
>> >  > \defineaddress[fst][name={Name of Institute or Affiliation, City,
>> > Country}]
>> >  > \defineaddress[snd][name={Name of Secondary Institute or
>> > Affiliation,
>> >  > City, Country}]
>> >  >
>> >  > \processcommacommand[fst,snd]\useaddress
>> >  >
>> >  >
>> >  > The Title\thanks{Work supported by somebody.}
>> >  >
>> >  >
>> > Me\email{myemail@some.where
>> }\high{,}\note[address][fst]\high{,}\note[address][snd]
>> >
>> >  >
>> >  >
>> >  >
>> >  > \placenotes[address]
>> >  >
>> >  > \blank[medium]
>> >  >
>> >  > \startcolumns
>> >  >
>> >  >
>> >  > \the\titlefootnotes
>> >  >
>> >  > %\setcounter[footnote][0] % why it's necessary to set the counter
>> >  > outside the token if I define [putjustnote] as [footnote]?
>> >  >
>> >  >
>> >  > test\footnote{test}
>> >  >
>> >  > \input knuth
>> >  >
>> >  >
>> >  >
>> >  > \stopcolumns
>> >  >
>> >  > 

[NTG-context] Does writing \emdash versus writing "—" in the source file impact the displayed output?

2022-05-18 Thread Joel via ntg-context
I have been using \endash, \emdash, and \figuredash in place of the various 
types of dashes in my document, \quotation{} around quotes, etc. so basically 
the only really punctuation appearing in the tex file are periods, commas, 
semi-colons, colons, apostrophes, and question-marks. The problem I have is 
when copying to a tool like Grammarly for grammar checks, these special symbols 
throw off the grammar-checking tools.

Does ConTeXt render and display these punctuation differently when I write them 
in the coded form, versus simply writing in the unicode directly?
--Joel
___
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] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
Hi Massi,

You are a champion!

On Wed, May 18, 2022 at 4:41 PM mf  wrote:

> I hope I got the point now:
>
> ...
> \startcolumns
>
> \the\titlefootnotes
>
> \kern-\rawcountervalue[address]\lineheight % dirty trick
>
> test\footnote{test}
>
> \input knuth
>
> \stopcolumns
> ...
>
> Massi
>
> Il 18/05/22 10:07, Ross ha scritto:
> > Dear Massi,
> >
> > Thanks for your solution. But the thing may be related to the
> > \appendtoks macro. It doesn't work to put just \setnotetext there.
> > \note works fine, so that's the reason I need the "full functional
> macro".
> >
> > Maybe I didn't get the point, so if it's not too much to ask, could you
> > do it on my MWE?
> >
> > PS: sorry I have to use another email account because my institute
> > mailbox took forever to get the message before my government (China)
> > finishes auditing it.
> >
> > Best wishes,
> > Zhichu
> >
> > On Wed, May 18, 2022 at 3:36 PM mf via ntg-context  > > wrote:
> >
> > Is this what you mean?
> >
> > \starttext
> > Hello\footnotetext{Footnote without mark}.
> > \stoptext
> >
> > Kind regards,
> > Massi
> >
> > Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto:
> >  > Hi everybody,
> >  >
> >  >
> >  > After some attempts to put footnotes in a mixed 1&2 columns
> > layout, I
> >  > decide to put marks in the one-column environment and flush them
> > when
> >  > entering the two-column environment.
> >  >
> >  >
> >  > The code is ugly but the result is acceptable. Except that the
> > invisible
> >  > footnote marks do generate something in the main text, so there's
> a
> >  > blank line for each footnote.
> >  >
> >  >
> >  > Here's an MWE:
> >  >
> >  >
> >  > =
> >  >
> >  > \definenote[address]
> >  > \setupnote[address][rule=off,location=text]
> >  >
> >  >
> >  >
> >  > \definenote[putjustmark]
> >  > \setupnote[putjustmark][location=none]
> >  > \setupnotation[putjustmark][numberconversion=set 2]
> >  >
> >  >
> >  > \definenote[putjustnote]%[footnote] % if footnotes need to be
> > grouped,
> >  > uncomment the second argument and the line after
> \the\titlefootnotes
> >  > \setupnote[putjustnote][textcommand=\gobbleoneargument]
> >  > \setupnotation[putjustnote][numberconversion=set 2]
> >  >
> >  >
> >  > \newtoks\titlefootnotes
> >  >
> >  >
> >  > \def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to
> >  > \titlefootnotes}
> >  > \def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to
> >  > \titlefootnotes}
> >  >
> >  >
> >  > \appendtoks
> >  >\setcounter[footnote][0] % this looks stupid because it has no
> > effect
> >  >%\setupnotation[footnote][numberconversion=numerals]
> >  > \to \titlefootnotes
> >  >
> >  > \definenamespace
> >  > [addr]
> >  > [type=module,
> >  >  name=address,
> >  >  command=yes,
> >  >  setup=list,
> >  >  parent=addr,
> >  >]
> >  >
> >  > \define[1]\useaddress
> >  >  {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}}
> >  >
> >  >
> >  > \starttext
> >  >
> >  >
> >  >
> >  > \defineaddress[fst][name={Name of Institute or Affiliation, City,
> > Country}]
> >  > \defineaddress[snd][name={Name of Secondary Institute or
> > Affiliation,
> >  > City, Country}]
> >  >
> >  > \processcommacommand[fst,snd]\useaddress
> >  >
> >  >
> >  > The Title\thanks{Work supported by somebody.}
> >  >
> >  >
> > Me\email{myemail@some.where
> }\high{,}\note[address][fst]\high{,}\note[address][snd]
> >
> >  >
> >  >
> >  >
> >  > \placenotes[address]
> >  >
> >  > \blank[medium]
> >  >
> >  > \startcolumns
> >  >
> >  >
> >  > \the\titlefootnotes
> >  >
> >  > %\setcounter[footnote][0] % why it's necessary to set the counter
> >  > outside the token if I define [putjustnote] as [footnote]?
> >  >
> >  >
> >  > test\footnote{test}
> >  >
> >  > \input knuth
> >  >
> >  >
> >  >
> >  > \stopcolumns
> >  >
> >  > \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  /
> > 

Re: [NTG-context] List of publications…

2022-05-18 Thread Damien Thiriet via ntg-context
Hi śrīrāma,

> I hope you made the format (context --make) after
> applying the changes.

That's exactly what I missed. Should have read the whole 
thread and not the last part…

Reading your diff, I also didn't comment out the lines with
string.tolower and local lowered, but I guess this is not an issue
since I commented out all the entries with lowered[tag|field]

Many thanks,

Damien Thiriet 
___
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] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
Dear Massi,

Thanks for your solution. But the thing may be related to the \appendtoks
macro. It doesn't work to put just \setnotetext there.
\note works fine, so that's the reason I need the "full functional macro".

Maybe I didn't get the point, so if it's not too much to ask, could you do
it on my MWE?

PS: sorry I have to use another email account because my institute mailbox
took forever to get the message before my government (China) finishes
auditing it.

Best wishes,
Zhichu

On Wed, May 18, 2022 at 3:36 PM mf via ntg-context 
wrote:

> Is this what you mean?
>
> \starttext
> Hello\footnotetext{Footnote without mark}.
> \stoptext
>
> Kind regards,
> Massi
>
> Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto:
> > Hi everybody,
> >
> >
> > After some attempts to put footnotes in a mixed 1&2 columns layout, I
> > decide to put marks in the one-column environment and flush them when
> > entering the two-column environment.
> >
> >
> > The code is ugly but the result is acceptable. Except that the invisible
> > footnote marks do generate something in the main text, so there's a
> > blank line for each footnote.
> >
> >
> > Here's an MWE:
> >
> >
> > =
> >
> > \definenote[address]
> > \setupnote[address][rule=off,location=text]
> >
> >
> >
> > \definenote[putjustmark]
> > \setupnote[putjustmark][location=none]
> > \setupnotation[putjustmark][numberconversion=set 2]
> >
> >
> > \definenote[putjustnote]%[footnote] % if footnotes need to be grouped,
> > uncomment the second argument and the line after \the\titlefootnotes
> > \setupnote[putjustnote][textcommand=\gobbleoneargument]
> > \setupnotation[putjustnote][numberconversion=set 2]
> >
> >
> > \newtoks\titlefootnotes
> >
> >
> > \def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to
> > \titlefootnotes}
> > \def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to
> > \titlefootnotes}
> >
> >
> > \appendtoks
> >\setcounter[footnote][0] % this looks stupid because it has no effect
> >%\setupnotation[footnote][numberconversion=numerals]
> > \to \titlefootnotes
> >
> > \definenamespace
> > [addr]
> > [type=module,
> >  name=address,
> >  command=yes,
> >  setup=list,
> >  parent=addr,
> >]
> >
> > \define[1]\useaddress
> >  {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}}
> >
> >
> > \starttext
> >
> >
> >
> > \defineaddress[fst][name={Name of Institute or Affiliation, City,
> Country}]
> > \defineaddress[snd][name={Name of Secondary Institute or Affiliation,
> > City, Country}]
> >
> > \processcommacommand[fst,snd]\useaddress
> >
> >
> > The Title\thanks{Work supported by somebody.}
> >
> > Me\email{myemail@some.where}\high{,}\note[address][fst]\high{,}\note[address][snd]
>
> >
> >
> >
> > \placenotes[address]
> >
> > \blank[medium]
> >
> > \startcolumns
> >
> >
> > \the\titlefootnotes
> >
> > %\setcounter[footnote][0] % why it's necessary to set the counter
> > outside the token if I define [putjustnote] as [footnote]?
> >
> >
> > test\footnote{test}
> >
> > \input knuth
> >
> >
> >
> > \stopcolumns
> >
> > \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
> >
> ___
>
> >
>
> ___
> 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
>
> ___
>


-- 
Best Regards
Chen
___
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] Can I just put a footnote without marking in the main text?

2022-05-18 Thread mf via ntg-context

Is this what you mean?

\starttext
Hello\footnotetext{Footnote without mark}.
\stoptext

Kind regards,
Massi

Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto:

Hi everybody,


After some attempts to put footnotes in a mixed 1&2 columns layout, I 
decide to put marks in the one-column environment and flush them when 
entering the two-column environment.



The code is ugly but the result is acceptable. Except that the invisible 
footnote marks do generate something in the main text, so there's a 
blank line for each footnote.



Here's an MWE:


=

\definenote[address]
\setupnote[address][rule=off,location=text]



\definenote[putjustmark]
\setupnote[putjustmark][location=none]
\setupnotation[putjustmark][numberconversion=set 2]


\definenote[putjustnote]%[footnote] % if footnotes need to be grouped, 
uncomment the second argument and the line after \the\titlefootnotes

\setupnote[putjustnote][textcommand=\gobbleoneargument]
\setupnotation[putjustnote][numberconversion=set 2]


\newtoks\titlefootnotes


\def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to 
\titlefootnotes}
\def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to 
\titlefootnotes}



\appendtoks
   \setcounter[footnote][0] % this looks stupid because it has no effect
   %\setupnotation[footnote][numberconversion=numerals]
\to \titlefootnotes

\definenamespace
    [addr]
    [type=module,
     name=address,
     command=yes,
     setup=list,
     parent=addr,
   ]

\define[1]\useaddress
     {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}}


\starttext



\defineaddress[fst][name={Name of Institute or Affiliation, City, Country}]
\defineaddress[snd][name={Name of Secondary Institute or Affiliation, 
City, Country}]


\processcommacommand[fst,snd]\useaddress


The Title\thanks{Work supported by somebody.}

Me\email{myemail@some.where}\high{,}\note[address][fst]\high{,}\note[address][snd] 




\placenotes[address]

\blank[medium]

\startcolumns


\the\titlefootnotes

%\setcounter[footnote][0] % why it's necessary to set the counter 
outside the token if I define [putjustnote] as [footnote]?



test\footnote{test}

\input knuth



\stopcolumns

\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
___ 


___
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
___