Re: [NTG-context] Modifying bibliography entries using lua

2018-07-23 Thread Hans Hagen
On 7/23/2018 10:17 PM, Stanislav Sokolenko wrote: Thanks Hans, that's really helpful! This is not for the fainthearted so here we go \startluacode     function document.MyBoldPub(set,tag) -- local a = publications.getfield(set,tag,"author") -- inspect(a) -- local c =

Re: [NTG-context] Modifying bibliography entries using lua

2018-07-23 Thread Stanislav Sokolenko
Thanks Hans, that's really helpful! This is not for the fainthearted so here we go \startluacode     function document.MyBoldPub(set,tag) -- local a = publications.getfield(set,tag,"author") -- inspect(a) -- local c = publications.getcasted(set,tag,"author") -- inspect(c)   

Re: [NTG-context] Modifying bibliography entries using lua

2018-07-23 Thread Hans Hagen
On 7/23/2018 6:42 PM, Stanislav Sokolenko wrote: Dear list, I'm struggling to output bibliography entries into lua for string modification (like making a particular author name bold). In effect, I just need something like the following: \starttexdefinition btx:customauthor    

Re: [NTG-context] How to get mail and phone symbols?

2018-07-23 Thread Lizardo M. Reyna Bowen
Thanks Hans, there are many symbols. On 07/23/2018 11:20 AM, Hans Hagen wrote: > On 7/23/2018 5:52 PM, Lizardo M. Reyna Bowen wrote: >> Hi, >> >> I want to use the some symbols for phone and email (envelope) in my >> curriculum vitae to get it look more modern. >> >> How is the way to do it in

Re: [NTG-context] How to get mail and phone symbols?

2018-07-23 Thread Lizardo M. Reyna Bowen
Thanks to all, the fontawesome solution was the simplest. It look nice now. -- Dr. Lizardo M. Reyna Bowen Docente Facultad de Ingeniería Agrícola | Universidad Técnica de Manabí [Dirección] Lodana, Santa Ana, Manabí, Ecuador [Móvil] +593 982924637 PGP Key: 0xa35a15b90ee64e8d

Re: [NTG-context] SHA512 for LuaTeX-5.2

2018-07-23 Thread Pablo Rodriguez
On 07/23/2018 06:23 PM, Hans Hagen wrote: > On 7/23/2018 6:04 PM, Pablo Rodriguez wrote: >> [...] >> Would it be possible to use the function to hash external binary files? >> >> Many thanks for your help, > > utilities.sha2.hash512(io.loaddata("foo.bin")) > > on the average it's fast enough

[NTG-context] Modifying bibliography entries using lua

2018-07-23 Thread Stanislav Sokolenko
Dear list, I'm struggling to output bibliography entries into lua for string modification (like making a particular author name bold). In effect, I just need something like the following: \starttexdefinition btx:customauthor     \startluacode     local text = context.btxflush('author')    

Re: [NTG-context] How to get mail and phone symbols?

2018-07-23 Thread Marcus Vinicius Mesquita
\definesymbol[e-mail][\getglyphdirect{FontAwesome}{\number"F003}] \definesymbol[phone][\getglyphdirect{FontAwesome}{\number"F095}] \starttext \symbol[e-mail] someone@somewhere \symbol[phone] your number \stoptext Fonts Awesome: https://fontawesome.com/

Re: [NTG-context] SHA512 for LuaTeX-5.2

2018-07-23 Thread Hans Hagen
On 7/23/2018 6:04 PM, Pablo Rodriguez wrote: On 07/23/2018 05:42 PM, Hans Hagen wrote: On 7/23/2018 4:51 PM, Pablo Rodriguez wrote: On 07/22/2018 10:56 PM, Hans Hagen wrote: why not use utilities.sha2.hash512(str) Many thanks for your reply, Hans. \starttext

Re: [NTG-context] How to get mail and phone symbols?

2018-07-23 Thread Hans Hagen
On 7/23/2018 5:52 PM, Lizardo M. Reyna Bowen wrote: Hi, I want to use the some symbols for phone and email (envelope) in my curriculum vitae to get it look more modern. How is the way to do it in ConTexT? \usesymbols[mvs] % \setupsymbolset[martinvogel 2] \starttext % \symbol[Telephone]

Re: [NTG-context] How to get mail and phone symbols?

2018-07-23 Thread Aditya Mahajan
On Mon, 23 Jul 2018, Lizardo M. Reyna Bowen wrote: Hi, I want to use the some symbols for phone and email (envelope) in my curriculum vitae to get it look more modern. How is the way to do it in ConTexT? Use a font that provides these symbols. One option is fontawesome.

Re: [NTG-context] SHA512 for LuaTeX-5.2

2018-07-23 Thread Pablo Rodriguez
On 07/23/2018 05:42 PM, Hans Hagen wrote: > On 7/23/2018 4:51 PM, Pablo Rodriguez wrote: >> On 07/22/2018 10:56 PM, Hans Hagen wrote: >>> why not use >>> >>> utilities.sha2.hash512(str) >> >> Many thanks for your reply, Hans. >> >> \starttext >>

[NTG-context] How to get mail and phone symbols?

2018-07-23 Thread Lizardo M. Reyna Bowen
Hi, I want to use the some symbols for phone and email (envelope) in my curriculum vitae to get it look more modern. How is the way to do it in ConTexT? Thanks -- Dr. Lizardo M. Reyna Bowen Docente Facultad de Ingeniería Agrícola | Universidad Técnica de Manabí [Dirección] Lodana, Santa

Re: [NTG-context] SHA512 for LuaTeX-5.2

2018-07-23 Thread Hans Hagen
On 7/23/2018 4:51 PM, Pablo Rodriguez wrote: On 07/22/2018 10:56 PM, Hans Hagen wrote: why not use utilities.sha2.hash512(str) Many thanks for your reply, Hans. \starttext \def\hashfive#1{\ctxlua{context(utilities.sha2.hash512("#1"))}} \hashfive{a} \stoptext ConTeXt

Re: [NTG-context] Numbering properties in a chapter

2018-07-23 Thread Pablo Rodriguez
On 07/23/2018 05:11 PM, Fabrice Couvreur wrote: > Hello, > I would like the numbering of the properties to be like this : > [...] > I thought it was enough to use the key way = bychapter Hi Fabrice, "way=bychapter" resets numbering in each chapter. You need this: \setupenumerations[

[NTG-context] Numbering properties in a chapter

2018-07-23 Thread Fabrice Couvreur
Hello, I would like the numbering of the properties to be like this : First chapter Property 1.1 Property 1.2 Second chapter Property 2.1 Property 2.2 I thought it was enough to use the key way = bychapter Thanks Fabrice \define[1]\ProprieteHeadcommand {\textrule[top]{#1}}

Re: [NTG-context] Align the chapter-title to the middle of the header

2018-07-23 Thread Pablo Rodriguez
On 07/23/2018 03:59 PM, Huseyin Özoguz wrote: > Dear list, > > how can I align the text of the header in the double-page layout to the > middle? > > I want something like that: > > \setupheadertexts > [{\startalignment[middle] \definedfont[name:Gentium_Basic at > 9pt]\getmarking[chapter]

Re: [NTG-context] Align the chapter-title to the middle of the header

2018-07-23 Thread Aditya Mahajan
On Mon, 23 Jul 2018, Huseyin Özoguz wrote: Dear list, how can I align the text of the header in the double-page layout to the middle? I want something like that: \setupheadertexts [{\startalignment[middle] \definedfont[name:Gentium_Basic at 9pt]\getmarking[chapter] \stopalignment}][]

Re: [NTG-context] SHA512 for LuaTeX-5.2

2018-07-23 Thread Pablo Rodriguez
On 07/22/2018 10:56 PM, Hans Hagen wrote: > why not use > > utilities.sha2.hash512(str) Many thanks for your reply, Hans. \starttext \def\hashfive#1{\ctxlua{context(utilities.sha2.hash512("#1"))}} \hashfive{a} \stoptext ConTeXt complains: [ctxlua]:1: attempt to index field

[NTG-context] Align the chapter-title to the middle of the header

2018-07-23 Thread Huseyin Özoguz
Dear list, how can I align the text of the header in the double-page layout to the middle? I want something like that: \setupheadertexts [{\startalignment[middle] \definedfont[name:Gentium_Basic at 9pt]\getmarking[chapter] \stopalignment}][] [][] Of course, that does not work. By default,

[NTG-context] Limit text width in items

2018-07-23 Thread 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.

Re: [NTG-context] Problem with pagella font (beta)

2018-07-23 Thread Fabrice Couvreur
Hi Wolgang, I followed your explanations, and it works perfectly. Thank you very much ! Fabrice 2018-07-23 12:39 GMT+02:00 Wolfgang Schuster : > Hi Fabrice, > > you can download the fonts from the GUST [1] website (the flat package is > enough because you need only the opentype files) and put

[NTG-context] page interaction in contents list entry

2018-07-23 Thread 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? Greetlings, Hraban --- https://www.fiee.net

Re: [NTG-context] Problem with pagella font (beta)

2018-07-23 Thread Wolfgang Schuster
Hi Fabrice, you can download the fonts from the GUST [1] website (the flat package is enough because you need only the opentype files) and put them in your local tex directory in your home folder, e.g. ~/texmf/fonts/data/texgyre/ or you put them in your tex installation, e.g.

[NTG-context] Problem with pagella font (beta)

2018-07-23 Thread Fabrice Couvreur
Hello, I only use the standalone version of ConteXt with Emacs. I can not use the pagella font anymore because the text is in bold type. Wolfgang told me a discussion about this problem that still does not seem to be resolved. By cons, no problem with ConteXt of Texlive 2018. Thank you Fabrice

Re: [NTG-context] two questions about endnotes

2018-07-23 Thread Robert Zydenbos
That was useful! But now I would like to go another step further: in the following, slightly altered example, I use a footnote and endnotes. I know that with "\setupfootnotes [conversion=characters]" the footnote markers are changed to letters instead of numbers. Is there any way of doing this