[NTG-context] How to Create Asymmetrical Continuous Columns in ConTeXt?

2024-01-18 Thread seyal . zavira
Hi all, I have a lengthy text that I wish to seamlessly incorporate using the \input{mytext} command in ConTeXt. Additionally, I aim to present it in asymmetrical continuous columns, where the text flows over several pages. I have tried paragraphs and columns, but in paragraphs, I can't flow t

[NTG-context] how to include an an svg file?

2024-03-12 Thread seyal . zavira
hi all. when i want to put some SVGs in my document the svg does not render properly here is the code: \starttext \startMPcode draw lmt_svg [ filename = "smile.svg"] \stopMPcode \stoptext also when i look at evenmore manual at page15, for font Abelone-FREE the gradients has rendered properly

[NTG-context] Re: how to include an an svg file?

2024-03-12 Thread seyal zavira
thanks for your reply yes but i don't have problem with regular svgs but when svgs has gradient color it does not produce any color in output. you can see my svg in attachment. On Tue, Mar 12, 2024 at 9:43 AM Jean-Pierre Delange wrote: > Hi ! > > Did you have a look at this : > > https://wiki.

[NTG-context] Re: how to include an an svg file?

2024-03-12 Thread seyal zavira
PM, seyal zavira wrote: > > thanks for your reply > > > > yes but i don't have problem with regular svgs but when svgs has > > gradient color it does not produce any color in output. > > > > you can see my svg in attachment. > svg gets worse and worse (esp the

[NTG-context] Re: how to include an an svg file?

2024-03-15 Thread seyal zavira
Thanks you and harban for all your thorough explanation. On Fri, 15 Mar 2024, 23:11 Hans Hagen via ntg-context, wrote: > On 3/13/2024 9:16 AM, Henning Hraban Ramm wrote: > > Am 12.03.24 um 23:59 schrieb seyal zavira: > >> You are correct. when i convert this svg to pdf via

[NTG-context] how to apply gradient color to a piece of text?

2024-04-07 Thread seyal . zavira
hi all, when i look at luametafun manual there are some intresting examples that can apply gradient colors to metapost paths. how i can apply this cool feature to a piece of text? i tried the code below but it does not produce any result. \definecolor[Gleft] [h=9f9393] \definecolor[Gright] [h=f

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-07 Thread seyal zavira
thank you Harban and Keith McKay. \startMPpage > picture tt ; tt := lmt_outline [ > kind = "path", > text = "\definedfont[name:texgyrepagellabold*default]foo f o o", > ] ; > > fill > for i within tt : pathpart i && endfor cycle > withshademet

[NTG-context] how to apply metapost effects to section title?

2024-04-09 Thread seyal . zavira
i want to produce a gradient header i tried this code but it does not produce any result: \startext \def\Mystyle#1{\startMPcode picture tt ; tt := lmt_outline [ kind = "path", text = "#1", ] ; fill for i within tt : pathpart i && endfor cycle withshademethod "linear"

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-09 Thread seyal zavira
ed the codes and pdf results. On Mon, Apr 8, 2024 at 4:37 AM Hans Hagen wrote: > On 4/8/2024 8:22 AM, seyal zavira wrote: > > thank you Harban and Keith McKay. > > > > \startMPpage > >picture tt ; tt := lmt_outline [ > >k

[NTG-context] rendering arabic diacritics

2024-05-09 Thread seyal . zavira
Hi all, when i want to use the linked font for arabic texts it doesn't render diacritics properly i doesn't have problem with this font in inkscape or libreoffice what featureset should i apply? font link: https://drive.google.com/file/d/1hCcv6wqWjd-5GEKnaowh8E8YVbTgGqQr/view?usp=sharing this i

[NTG-context] Re: rendering arabic diacritics

2024-05-09 Thread seyal zavira
Of course! i attached output file before and after applying new patch On Thu, May 9, 2024 at 9:08 AM Hamid,Idris wrote: > > > -- Original Message -- > From "Hans Hagen" > To "ntg-context@ntg.nl" > Date 5/9/2024 6:29:40 AM > Subject [NTG-context] Re: rendering arabic diacritics > > **

[NTG-context] applying style to frame content

2024-05-14 Thread seyal . zavira
Hi all, what is the better way to apply a metapost effect to a piece of any structure text for example when defining footnotes, frames , etc. i use this method for frames: this is my MWE: \defineframed[Myframe][frame=off] \starttexdefinition spaces protected Mystyle #1 \startMPcode pictu

[NTG-context] defining hashtag simulator

2024-05-18 Thread seyal . zavira
Hi all, I want to define a command that simulate hashtag behavior in social networks, In other words, this command should put the hashtag sign at the beginning of it, replace spaces with dashes and also it should be a clickable link and unbreakable world. I mean like this, for example: \myhasht

[NTG-context] Re: defining hashtag simulator

2024-05-19 Thread seyal . zavira
Thanks. What if we want the text to be copied when it is clicked? I found these link on the stack site for this https://tex.stackexchange.com/questions/174637/copy-to-clipboard-feature-in-pdf-output/545107#545107 also i defined this: \def\Hashtag#1{ \hbox{\tfa\ctxlua{ str = "#1"

[NTG-context] simplify side by side Poems

2024-05-23 Thread seyal . zavira
Hi all, i want to use tables for constructing poems structure this snippet of code works well: \startsetups tablepoem \setupTABLE[column][each][width=5cm] \stopsetups \starttext \bTABLE[setups=tablepoem] \bTR \bTD One one ons ksl \eTD \bTD two gfjgfd oski kwo \eTD \eTR \bTR \bTD One wer s dft

[NTG-context] Re: simplify side by side Poems

2024-05-23 Thread seyal . zavira
Thanks so much but what should a person do if he wants to define an equivalent of \eTD? for example it can be useful for RTL language such as: \def\پسل{\eTD} and as you said this code will not work. ___ If your questio

[NTG-context] Re: simplify side by side Poems

2024-05-24 Thread seyal . zavira
Thanks so much i also could define poem structure like this: Using table method: \protected\def\PoemStart#1\PoemStop {\bTABLE[setups=tablepoem]#1\eTABLE} \protected\def\Beyt#1 {\bTR #1 \eTR} \protected\def\Misra#1 {\bTD #1 \eTD} \starttext \PoemStart \Beyt{\Misra{the first sentence}

[NTG-context] Re: Number in a circle

2024-05-27 Thread seyal zavira
if you don't want to use metapost you can also use svg for background for example: \startuniqueMPgraphic{centered_svg} draw lmt_svg [ filename = "badge.svg", width = OverlayWidth, y = OverlayHeight/2, ] ; \stopuniqueMPgraphic \defineoverlay [svgback] [\useMPgraphic{center

[NTG-context] Scale notation base on current font

2024-06-08 Thread seyal . zavira
Hi all, There's a problem when I want to define the note so that it's displayed according to the size and font of the text: this MWE change the notation size: \definenote[Mynote][location=text,before={},] \setupnote[Mynote] [location=left, textcommand=\tfb \raise 0.2ex\hbox, ] \star

[NTG-context] Re: Scale notation base on current font

2024-06-08 Thread seyal zavira
Thanks sorry for incomplete example the code below shows the problem better: \setupinteraction[state=start] \definenote[Mynote][location=text,before={},] \setupnote[Mynote] [location=left, textcommand={\tfa \raise 0.2ex\hbox}, ] \definefont[highfont][name:ibmplexsansbold*default at 1

[NTG-context] Re: Scale notation base on current font

2024-06-08 Thread seyal . zavira
Thanks so much it works great. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage

[NTG-context] Re: Scale notation base on current font

2024-06-08 Thread seyal . zavira
This is also important Thanks for your helpful hint. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-c

[NTG-context] Re: Scale content to height of the font, measure font height

2024-06-10 Thread seyal zavira
Also you can use this: assuming that you have a fixed size figure such as a pdf page: \definesymbol[Bsymbol][{\scale[width=1.6ex]{\externalfigure[myfile.pdf][page=1]}}] \define\mysym{\kern 0.2em \symbol[Bsymbol] \kern 0.3em} \starttext this is a sample\mysym text. \tfa{this is a sample\mysym tex

[NTG-context] Re: context / auctex problem?

2024-06-17 Thread seyal zavira
In Emacs, I prefer use pure ConTeXt. I have attached my Emacs init file. This setup is so satisfying. You can compile your documents with just C-c c and view them with C-c v. Also, you don't need to close the PDF after every compile (Evince will restart the contents after compilation). In GNOME, yo