[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-18 Thread Gerion Entrup
Am Montag, 17. Juni 2024, 21:20:19 MESZ schrieb Wolfgang Schuster: > Gerion Entrup schrieb am 17.06.2024 um 13:04: > > Am Donnerstag, 6. Juni 2024, 16:34:03 MESZ schrieb Wolfgang Schuster: > >> [...] > >> > >> Wolfgang > >> > > > > I tried to combine this with the code of the mail thread: "setuphe

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-17 Thread Wolfgang Schuster
Gerion Entrup schrieb am 17.06.2024 um 13:04: Am Donnerstag, 6. Juni 2024, 16:34:03 MESZ schrieb Wolfgang Schuster: [...] Wolfgang I tried to combine this with the code of the mail thread: "setuphead in connection with the command argument" but had not luck. ConTeXt always stops with: ``` c

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-17 Thread Gerion Entrup
Am Donnerstag, 6. Juni 2024, 16:34:03 MESZ schrieb Wolfgang Schuster: > \startsetups [userdata:extract] > \startnarrower > \setupindenting[next] > \getuserdata > \hairline > \dontleavehmode\wordright{\itx\userdataparameter{author}} > \stopnarrower > \st

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Gerion Entrup
Am Donnerstag, 6. Juni 2024, 13:51:53 MESZ schrieb Hans Hagen via ntg-context: > On 6/6/2024 12:30 PM, Gerion Entrup wrote: > > Hi, > > > > I like to achieve something that looks like this: > > ``` > > \definedelimitedtext[extract][blockquote] > > \setupdelimitedtext > >[extract] > >[leftm

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Gerion Entrup
\dontleavehmode\wordright{\itx\userdataparameter{author}} > \stopnarrower > \stopsetups > > \defineuserdataalternative >[extract] >[renderingsetup=userdata:extract] > > \defineuserdata >[extract] >[style=italic, > alternative=extract] >

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Hans Hagen via ntg-context
On 6/6/2024 4:34 PM, Wolfgang Schuster wrote: Gerion Entrup schrieb am 06.06.2024 um 12:30: Hi, I like to achieve something that looks like this: ``` \definedelimitedtext[extract][blockquote] \setupdelimitedtext    [extract]    [leftmargin=1.5pc,     style={\italic},     before={\setupindenting

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Wolfgang Schuster
Gerion Entrup schrieb am 06.06.2024 um 12:30: Hi, I like to achieve something that looks like this: ``` \definedelimitedtext[extract][blockquote] \setupdelimitedtext [extract] [leftmargin=1.5pc, style={\italic}, before={\setupindenting[next]}, after={\blank[1ex] \hrule \blank[1

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Hans Hagen via ntg-context
On 6/6/2024 12:30 PM, Gerion Entrup wrote: Hi, I like to achieve something that looks like this: ``` \definedelimitedtext[extract][blockquote] \setupdelimitedtext [extract] [leftmargin=1.5pc, style={\italic}, before={\setupindenting[next]}, after={\blank[1ex] \hrule \blank[1ex]

[NTG-context] Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-06 Thread Gerion Entrup
Hi, I like to achieve something that looks like this: ``` \definedelimitedtext[extract][blockquote] \setupdelimitedtext [extract] [leftmargin=1.5pc, style={\italic}, before={\setupindenting[next]}, after={\blank[1ex] \hrule \blank[1ex] \startalignment[flushright] \tfx\italic{René Des

[NTG-context] Re: How to Define a New Language

2024-05-27 Thread ai2472206007
Thanks for your reply, I found out that I just deleted the code 'default=cn', and it actually worked. With just this code system can install the language normally, and then get the correct 'labeltext'. %%% \installlanguage [zh-tw] [patterns=cn]% install traditional chinese %%% _

[NTG-context] Re: How to Define a New Language

2024-05-24 Thread Wolfgang Schuster
ai2472206...@yeah.net schrieb am 24.05.2024 um 16:39: 3. In general, it is enough to distinguish between Chinese Simplified Chinese and Chinese Traditional. Chinese has a large number of Chinese characters, therefore the fonts produced are generally divided into Chinese Simplified and Chinese

[NTG-context] Re: How to Define a New Language

2024-05-24 Thread ai2472206007
3. In general, it is enough to distinguish between Chinese Simplified Chinese and Chinese Traditional. Chinese has a large number of Chinese characters, therefore the fonts produced are generally divided into Chinese Simplified and Chinese Traditional. This causes Chinese Simplified Chinese fon

[NTG-context] Re: How to Define a New Language

2024-05-24 Thread ai2472206007
Thanks for the reply, the part about fonts is no problem on my system. ___ 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/ma

[NTG-context] Re: How to Define a New Language

2024-05-24 Thread Wolfgang Schuster
ai2472206...@yeah.net schrieb am 24.05.2024 um 14:05: Hello, everyone. As the title describes, I want to define a new language: Chinese Traditional. Based on what I could find on the Internet, I made these settings. But I couldn't get the results I wanted. %%%start example \usetypescrip

[NTG-context] Re: How to Define a New Language

2024-05-24 Thread Jean-Pierre Delange
et a écrit : Hello, everyone. As the title describes, I want to define a new language: Chinese Traditional. Based on what I could find on the Internet, I made these settings. But I couldn't get the results I wanted. %%%start example \usetypescriptfile[osx] \setupbodyfont [stfangsong] \

[NTG-context] Re: How to Define a New Language

2024-05-24 Thread ai2472206007
and ,I've found that along with the language, there is also a 'mode', and when I define a new language, does I also define such a new mode, like 'startmode[*en]stopmode'? ___ If your question

[NTG-context] How to Define a New Language

2024-05-24 Thread ai2472206007
Hello, everyone. As the title describes, I want to define a new language: Chinese Traditional. Based on what I could find on the Internet, I made these settings. But I couldn't get the results I wanted. %%%start example \usetypescriptfile[osx] \setupbodyfont [stfangsong] \unpr

[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-28 Thread ai2472206007
Thanks for the detailed answer, my problem was solved very well through the code you provided -- Muyik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-cont

[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-27 Thread Wolfgang Schuster
ai2472206...@yeah.net schrieb am 25.04.2024 um 10:24: hi! I'm new to ConTeXt. I want to define a command with sidenote function. This [setupsidenote] command inherits the options of [setupmargindata], [setupcounter] and [setupframed]. just like [setupenumeration] inherits the opti

[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-26 Thread ai2472206007
Thanks for your reply. The kanji part requires a specific font and typescript file, which I defined on my own computer but forgot to add to this example. This is something I didn't take into account. It's true, I need to think about what exactly my command needs, not build an all-powerful comm

[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-26 Thread Bruce Horrocks
y to setupcounter to each use of \setupcounter, pass on the ones that apply to setupframed to each use of \setupframed and so on. Thsi is releatively easy in Lua where you could define a list of all possible commands and which macro they apply to then loop through it looking to see if that option

[NTG-context] Define a new command that inherits from multiple other command options

2024-04-25 Thread ai2472206007
hi! I'm new to ConTeXt. I want to define a command with sidenote function. This [setupsidenote] command inherits the options of [setupmargindata], [setupcounter] and [setupframed]. just like [setupenumeration] inherits the option of [setupcounter]. I've defined the following sideno

[NTG-context] Re: Why is header page number appearing when I define a header?

2024-03-17 Thread Hraban Ramm
Am 16.03.24 um 22:28 schrieb Marco Patzer: On Sat, 16 Mar 2024 20:33:33 + (UTC) Joel via ntg-context wrote: How do I remove the page number from the header texts? \setupheadertexts [] or \setuplayouttext [header][text] [middletext=] I’d have guessed \setuppagenumber

[NTG-context] Re: Why is header page number appearing when I define a header?

2024-03-16 Thread Marco Patzer
On Sat, 16 Mar 2024 20:33:33 + (UTC) Joel via ntg-context wrote: > How do I remove the page number from the header texts? \setupheadertexts [] or \setuplayouttext [header][text] [middletext=] Marco _

[NTG-context] Why is header page number appearing when I define a header?

2024-03-16 Thread Joel via ntg-context
top and page numbers in the bottom corners. But somehow when I define this code, its also adding the page number not just to the bottom of the page, but to the top of the page as well. How do I remove the page number from the header texts? --Joel

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-09 Thread Henning Hraban Ramm
Am 08.09.23 um 19:37 schrieb Henning Hraban Ramm: But it uses its own page size, I don’t understand why. I need the bleed/trim area. If I use \setlayer in the setup, the content gets placed on the next page, i.e. under the text. \structureuservariable{image} in the setup gets the value from

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Henning Hraban Ramm
Am 08.09.23 um 17:02 schrieb Henning Hraban Ramm: We can discuss the details next week and you put the resulting template on the wiki. Ah, I guess I understand the template mechanism. Yet again glorious setups. Will probably manage. So far: \definepageinjection[chapter:start][ page=left,

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Henning Hraban Ramm
Am 08.09.23 um 16:21 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 08.09.2023 um 13:09: Am 08.09.23 um 12:35 schrieb Wolfgang Schuster: For images (and other content) which are placed on a separate page at the start of a chapter you can use the pageinjection mechanism which was add

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 08.09.2023 um 13:09: Am 08.09.23 um 12:35 schrieb Wolfgang Schuster: For images (and other content) which are placed on a separate page at the start of a chapter you can use the pageinjection mechanism which was added for this purpose. Thank you! You’re right,

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Henning Hraban Ramm
Am 08.09.23 um 12:35 schrieb Wolfgang Schuster: For images (and other content) which are placed on a separate page at the start of a chapter you can use the pageinjection mechanism which was added for this purpose. Thank you! You’re right, that might be enough. (Documented only in https://wi

[NTG-context] Re: how to define an environment with key=value arguments

2023-09-08 Thread Wolfgang Schuster
better define start and stop separately? \def\startMyFigure[#1]{ % e.g. use utilities.parsers.settings_to_hash(#1) } \def\stopMyFigure{} Probably I’ll need to catch the content (\externalfigure, might become more) and use it in a \setlayer – so perhaps something like \definebuffer[MyFigure

[NTG-context] how to define an environment with key=value arguments

2023-09-08 Thread Henning Hraban Ramm
, even if the interface looks similar, since it’s always a full page in a fixed place, I need no numbering and can place the caption myself. Does it make sense to use \definestartstop? How would I “plugin“ the argument handling? Or should I better define start and stop separately? \def

Re: [NTG-context] define math function with \, inside

2023-05-01 Thread Stefan Haller via ntg-context
Hi Mikael, On Mon, May 01, 2023 at 05:48:40PM +0200, Mikael Sundqvist via ntg-context wrote: > [...] > This works here (but maybe there should be a simpler way): > > \definemathfunction > [argmax] > [mathlimits=auto] > > \setupmathlabeltext > [en] > [argmax=arg\sixperemspace max] > [...

Re: [NTG-context] define math function with \, inside

2023-05-01 Thread Mikael Sundqvist via ntg-context
Hi, On Mon, May 1, 2023 at 5:27 PM Stefan Haller via ntg-context wrote: > > Hi all, > > I wanted to define a custom math function (similar to log etc.) for > argmax. However, I wanted to have a small space between "arg" and "max" > and limits should work

[NTG-context] define math function with \, inside

2023-05-01 Thread Stefan Haller via ntg-context
Hi all, I wanted to define a custom math function (similar to log etc.) for argmax. However, I wanted to have a small space between "arg" and "max" and limits should work properly. I am using a up-to-date LMTX installation. Without the first constraint it&

[NTG-context] How to define a section title, after the section title appears?

2022-06-12 Thread Joel via ntg-context
l or \chaptertitleis can give the current chapter number. I tried defining chapter titles inside the macros, `\setvalue{title\recurselevel}{Cause and Effect}`, but \getvalue{title\recurselevel}` couldn't find the defined value. I tried just defining in each macro \define\thesectiontitleis{Co

Re: [NTG-context] How do I define a smallcaps font?

2022-04-25 Thread Joel via ntg-context
16:21 schrieb Joel via ntg-context: > I have a font that already comes with a smallcaps variant. > > How do I define it? > > I've tried the following, which I think should work from the > documentation I've seen, but doesn't: > > > \starttypescript[s

Re: [NTG-context] How do I define a smallcaps font?

2022-04-24 Thread Henning Hraban Ramm via ntg-context
Am 24.04.22 um 16:21 schrieb Joel via ntg-context: I have a font that already comes with a smallcaps variant. How do I define it? I've tried the following, which I think should work from the documentation I've seen, but doesn't: \starttypescript[serif]                      

[NTG-context] How do I define a smallcaps font?

2022-04-24 Thread Joel via ntg-context
I have a font that already comes with a smallcaps variant. How do I define it? I've tried the following, which I think should work from the documentation I've seen, but doesn't: \starttypescript[serif]                            [garamond]     \definefontsynonym[Serif]          

Re: [NTG-context] What is the proper way to define many different list types in a document?

2022-01-24 Thread Aditya Mahajan via ntg-context
d be > defining them, so the settings from one type don't spill over into the other > types? > --Joel > > %prompt > > \definesymbol[bighand][{{☞}}] > > \define[1]\prompt{% >     \setupitemize[symbol=bighand] >     \startitemize >         {\it #1} >     \s

[NTG-context] What is the proper way to define many different list types in a document?

2022-01-24 Thread Joel via ntg-context
es? --Joel %prompt \definesymbol[bighand][{{☞}}] \define[1]\prompt{%     \setupitemize[symbol=bighand]     \startitemize         {\it #1}     \stopitemize }% \prompt{What did you learn about today?} %vocabulary \startcolumns[n=3]\startitemize[n] \item word1 \item word2 \item word3 \stopitemize\s

[NTG-context] How to define where \typesetbuffer store its pdf output ?

2021-06-12 Thread Garulfo
Hi all, is there a mean to define where \typesetbuffer store its pdf output ? (to avoid messing up the main directory). Garuflo ___ If your question is of interest to others as well, please add an entry to the

Re: [NTG-context] Define new symbol by stitching two symbols together

2021-05-24 Thread Nicola
On 2021-05-24, Aditya Mahajan wrote: > On Sun, 23 May 2021, Hans Hagen wrote: > >> On 5/22/2021 8:23 PM, Nicola wrote: >> > I would like to define new symbols by stitching together existing >> > glyphs. This is what I have come up so far: >> > &

Re: [NTG-context] Define new symbol by stitching two symbols together

2021-05-24 Thread Aditya Mahajan
On Sun, 23 May 2021, Hans Hagen wrote: > On 5/22/2021 8:23 PM, Nicola wrote: > > I would like to define new symbols by stitching together existing > > glyphs. This is what I have come up so far: > > > > \define[1]\Transition{-\!\![#1]\!\!\rightarrow} > &

Re: [NTG-context] Define new symbol by stitching two symbols together

2021-05-23 Thread Hans Hagen
On 5/22/2021 8:23 PM, Nicola wrote: I would like to define new symbols by stitching together existing glyphs. This is what I have come up so far: \define[1]\Transition{-\!\![#1]\!\!\rightarrow} \starttext \m{L\Transition{A}R} \stoptext This should render as -[ ]->, idea

[NTG-context] Define new symbol by stitching two symbols together

2021-05-22 Thread Nicola
I would like to define new symbols by stitching together existing glyphs. This is what I have come up so far: \define[1]\Transition{-\!\![#1]\!\!\rightarrow} \starttext \m{L\Transition{A}R} \stoptext This should render as -[ ]->, ideally with no space between the dash or

Re: [NTG-context] \define in conflict with \startxtable[]

2020-11-08 Thread Wolfgang Schuster
Sylvain Hubert schrieb am 08.11.2020 um 04:54: Dear List, Could anyone manage to typeset the following example? Here [] causes an error "Extra }, or forgotten \endgroup".     \starttext     \define\sample{     \startxtable[]     \startxtablehead     \startxrow     \star

[NTG-context] \define in conflict with \startxtable[]

2020-11-07 Thread Sylvain Hubert
Dear List, Could anyone manage to typeset the following example? Here [] causes an error "Extra }, or forgotten \endgroup". \starttext \define\sample{ \startxtable[] \startxtablehead \startxrow \startxcell 123\stopxcell \stopxrow \stopxtablehead \

Re: [NTG-context] How to define a {\bf}-compatible fake-bold switcher?

2020-11-07 Thread Hans Hagen
On 11/7/2020 6:45 PM, Pablo Rodriguez wrote: On 11/7/20 6:18 PM, Sylvain Hubert wrote: Thank you so much, Pablo. This is exactly what I needed. Could you also tell me where you have learnt these features? I had been searching for this for hours but \effect was still the best of what I've got. I

Re: [NTG-context] How to define a {\bf}-compatible fake-bold switcher?

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 6:18 PM, Sylvain Hubert wrote: > Thank you so much, Pablo. This is exactly what I needed. > > Could you also tell me where you have learnt these features? I had been > searching for this for hours but \effect was still the best of what I've > got. Indeed, googling 'context+tex+boldened'

Re: [NTG-context] How to define a {\bf}-compatible fake-bold switcher?

2020-11-07 Thread Sylvain Hubert
' results in nothing useful. Sylvain On Sat, 7 Nov 2020 at 16:41, Pablo Rodriguez wrote: > On 11/7/20 4:06 PM, Sylvain Hubert wrote: > > [...] > > Could anyone help me define a {\bf}-aware version of \fakebf which can > > render the "4 5 6" in the example abov

Re: [NTG-context] How to define a {\bf}-compatible fake-bold switcher?

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 4:06 PM, Sylvain Hubert wrote: > [...] > Could anyone help me define a {\bf}-aware version of \fakebf which can > render the "4 5 6" in the example above in latinmodern's bold? Hi Sylvain, there is an already defined font feature that fakes boldened fonts: bol

[NTG-context] How to define a {\bf}-compatible fake-bold switcher?

2020-11-07 Thread Sylvain Hubert
Dear List, I'm using a weirdfont that does not have a pre-defined bold variant but still want to emboldening short extracts of text occasionally, so I've defined \defineeffect[thicker][alternative=both,rulethickness=0.3pt] \define\fakebf{\effect[thicker]} but in situa

Re: [NTG-context] How to define an array of pens

2020-06-22 Thread Alan Braslau
On 22/06/20 01:17, Otared Kavian wrote: for j = -1 step 1 until 1 : MyPens[j] := pencircle scaled 2pt ; % I would like to say here (2+j) pt endfor MyPens[j] := pencircle scaled (2+j)*pt ; pt is just a variable, and one can write 2pt implicitly implying the mul

Re: [NTG-context] How to define an array of pens

2020-06-22 Thread Otared Kavian
r wrote: > > > >> On 22 Jun 2020, at 09:17, Otared Kavian wrote: >> >> Hi Hans, >> >> After learning from you how to define an array of colors and paths, I would >> like to know how is it possible to define a variable pen size. >> In t

Re: [NTG-context] How to define an array of pens

2020-06-22 Thread Taco Hoekwater
> On 22 Jun 2020, at 09:17, Otared Kavian wrote: > > Hi Hans, > > After learning from you how to define an array of colors and paths, I would > like to know how is it possible to define a variable pen size. > In the following working example below, I would like to repla

[NTG-context] How to define an array of pens

2020-06-22 Thread Otared Kavian
Hi Hans, After learning from you how to define an array of colors and paths, I would like to know how is it possible to define a variable pen size. In the following working example below, I would like to replace MyPens[j] := pencircle scaled 2pt ; by something like MyPens[j

Re: [NTG-context] How to define an array of colors in Metafun

2020-06-20 Thread Hans Hagen
a lua code and passed to Metapost, I wonder if it is possible to define an array of colors named mycolor, so that I could say draw mygraph(j) withcolor mycolor(j) ; Here the variable j takes integer values (say between 1 and 10), and one would have defined mycolor(1) through mycolor(10

[NTG-context] How to define an array of colors in Metafun

2020-06-20 Thread Otared Kavian
if it is possible to define an array of colors named mycolor, so that I could say draw mygraph(j) withcolor mycolor(j) ; Here the variable j takes integer values (say between 1 and 10), and one would have defined mycolor(1) through mycolor(10). Thanks in advance for any help: Otared K

Re: [NTG-context] How to define a font with an effect as a font with \definefont

2020-05-23 Thread Gerben Wierda
> On 23 May 2020, at 20:06, Wolfgang Schuster > wrote: > > Pablo Rodriguez schrieb am 23.05.2020 um 20:02: >> On 5/23/20 11:52 AM, Gerben Wierda wrote: >>> [] >>> Actually, my setup is Optima with Helvetica used for Cyrillic: >>> >>> \definefallbackfamily >>> [archimate] >>> [ss] >>> [H

Re: [NTG-context] How to define a font with an effect as a font with \definefont

2020-05-23 Thread Pablo Rodriguez
On 5/23/20 9:50 PM, Gerben Wierda wrote: > [...] >>> \definefontfeature >>>   [effect-widen] >>>   [effect={width=.2,delta=0.3}] >>> >>> \definefallbackfamily >>>   [archimate] >>>   [ss] >>>   [Helvetica] >>>   [preset=range:cyrillic, >>>    tf=style:light, >>>

Re: [NTG-context] How to define a font with an effect as a font with \definefont

2020-05-23 Thread Rik Kabel
On 5/23/2020 15:50, Gerben Wierda wrote: On 23 May 2020, at 20:06, Wolfgang Schuster > wrote: Pablo Rodriguez schrieb am 23.05.2020 um 20:02: On 5/23/20 11:52 AM, Gerben Wierda wrote: [] Actually, my setup is Optima with Helvetica used for Cyrilli

Re: [NTG-context] How to define a font with an effect as a font with \definefont

2020-05-23 Thread Pablo Rodriguez
On 5/23/20 8:06 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 23.05.2020 um 20:02: >> On 5/23/20 11:52 AM, Gerben Wierda wrote: >>> [] >>> Actually, my setup is Optima with Helvetica used for Cyrillic: >>> >>> \definefallbackfamily >>>   [archimate] >>>   [ss] >>>   [Helvetica] >>>

Re: [NTG-context] How to define a font with an effect as a font with \definefont

2020-05-23 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 23.05.2020 um 20:02: On 5/23/20 11:52 AM, Gerben Wierda wrote: [] Actually, my setup is Optima with Helvetica used for Cyrillic: \definefallbackfamily   [archimate]   [ss]   [Helvetica]   [preset=range:cyrillic,    tf=style:light,    it=style:lightoblique,    b

Re: [NTG-context] How to define a font with an effect as a font with \definefont

2020-05-23 Thread Pablo Rodriguez
On 5/23/20 11:52 AM, Gerben Wierda wrote: > [] > Actually, my setup is Optima with Helvetica used for Cyrillic: > > \definefallbackfamily >   [archimate] >   [ss] >   [Helvetica] >   [preset=range:cyrillic, >    tf=style:light, >    it=style:lightoblique, >    bf=style:regular, >    bi=style:obliqu

[NTG-context] How to define a font with an effect as a font with \definefont

2020-05-23 Thread Gerben Wierda
Wityh this working example: \starttext The quick brown fox jumped over the lazy dog \definefontfeature [effect-widen] [effect={width=.2,delta=0.3}] \definedfont[Sans*widen,effect-widen] The quick brown fox jumped over the lazy dog \stoptext I am puzzling to turn my working \definedfont into a

Re: [NTG-context] How to define the font size of the page header?

2019-11-06 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 06.11.2019 um 08:46: On 11/6/19 3:15 AM, Kerry Sainsbury wrote: Hi Folks, Sorry for the constant interruptions, but I can't find an answer in any of the many PDFs or webpages I can find. How do I define the font size of the page header? Hi Kerry, use the foll

Re: [NTG-context] How to define the font size of the page header?

2019-11-06 Thread Wolfgang Schuster
Kerry Sainsbury schrieb am 06.11.2019 um 03:15: Hi Folks, Sorry for the constant interruptions, but I can't find an answer in any of the many PDFs or webpages I can find. How do I define the font size of the page header? If I'm not using a custom font, I can call \switchbodyfon

Re: [NTG-context] How to define the font size of the page header?

2019-11-06 Thread Kerry Sainsbury
for the constant interruptions, but I can't find an answer in any > > of the many PDFs or webpages I can find. > > > > How do I define the font size of the page header? > > Hi Kerry, > > use the following: > > \setupheadertexts[Pagenumber][pagenumber] >

Re: [NTG-context] How to define the font size of the page header?

2019-11-05 Thread Pablo Rodriguez
On 11/6/19 3:15 AM, Kerry Sainsbury wrote: > Hi Folks, > > Sorry for the constant interruptions, but I can't find an answer in any > of the many PDFs or webpages I can find. > > How do I define the font size of the page header? Hi Kerry, use the following: \setu

[NTG-context] How to define the font size of the page header?

2019-11-05 Thread Kerry Sainsbury
Hi Folks, Sorry for the constant interruptions, but I can't find an answer in any of the many PDFs or webpages I can find. How do I define the font size of the page header? If I'm not using a custom font, I can call \switchbodyfont prior to calling \setuplayouttext, which, if I'

[NTG-context] Is it possible to define a float environment that uses 2 captions? (and another question)

2019-07-09 Thread Andres Conrado Montoya
I'm working on a book that uses tables and figures, but the editors want to use to diffferent captions for each figure: one as usual, with the float description and number, and another one with a "Source" for said float. Something like: - |

Re: [NTG-context] How to define a new language?

2019-03-01 Thread Arthur Reutenauer
On Thu, Feb 28, 2019 at 01:23:51PM -0500, Paul Hoffman wrote: > It's an invented language, so no one else will ever need to use it. Maybe so -- though you can’t know that for sure -- but if you’re down the path of requesting a change in a ConTeXt script to add it locally, you might as well pub

Re: [NTG-context] How to define a new language?

2019-02-28 Thread Paul Hoffman
On Thu, Feb 28, 2019 at 06:19:24PM +0100, Wolfgang Schuster wrote: > Paul Hoffman schrieb am 27.02.19 um 23:05: > >I'm trying to define a new language for use in a bilingual document, but > >my hyphenation patterns are being ignored and I'm sure I must be doing > >

Re: [NTG-context] How to define a new language?

2019-02-28 Thread Wolfgang Schuster
Paul Hoffman schrieb am 27.02.19 um 23:05: I'm trying to define a new language for use in a bilingual document, but my hyphenation patterns are being ignored and I'm sure I must be doing something wrong. For which Language do you need patterns? Did you try to contact Arthur or Mo

Re: [NTG-context] How to define a new language?

2019-02-28 Thread Paul Hoffman
On Wed, Feb 27, 2019 at 05:05:05PM -0500, Paul Hoffman wrote: > I'm trying to define a new language for use in a bilingual document, but > my hyphenation patterns are being ignored and I'm sure I must be doing > something wrong. Never mind, I solved the problem. I'll

[NTG-context] How to define a new language?

2019-02-27 Thread Paul Hoffman
I'm trying to define a new language for use in a bilingual document, but my hyphenation patterns are being ignored and I'm sure I must be doing something wrong. I've devised a minimal example that should hyphenate between vowels but doesn't. Here's the

Re: [NTG-context] Define color with calculations

2019-02-18 Thread Henri Menke
On 19/02/19 10:33 AM, Wolfgang Schuster wrote: > Mohammad Hossein Bateni schrieb am 18.02.19 um 04:37: >> Hi, >> >> When I use definecolor, (how) can I use computations in setting the >> value of a component?  Something like the following... >> >> \definecolor[mycolor][r=0.5*0.7] > > \starttext >

Re: [NTG-context] Define color with calculations

2019-02-18 Thread Wolfgang Schuster
Mohammad Hossein Bateni schrieb am 18.02.19 um 04:37: Hi, When I use definecolor, (how) can I use computations in setting the value of a component?  Something like the following... \definecolor[mycolor][r=0.5*0.7] \starttext \colored[r=\cldcontext{0.5*0.7}]{\cldcontext{0.5*0.7}} \colored[

Re: [NTG-context] Define color with calculations

2019-02-18 Thread Mohammad Hossein Bateni
Thanks, Henri! Works like a charm. On Sun, Feb 17, 2019 at 11:03 PM Henri Menke wrote: > Use Lua. > > > \def\eval#1{\ctxlua{% > local context = context > local _ENV = math > context(#1) > }} > > \definecolor[mycolor][r=\eval{0.5*0.7}] > > \starttext > > \color[mycolor]{Hello!} > > \

Re: [NTG-context] Define color with calculations

2019-02-17 Thread Henri Menke
Use Lua. \def\eval#1{\ctxlua{% local context = context local _ENV = math context(#1) }} \definecolor[mycolor][r=\eval{0.5*0.7}] \starttext \color[mycolor]{Hello!} \stoptext On 18/02/19 4:37 PM, Mohammad Hossein Bateni wrote: > Hi, > > When I use definecolor, (how) can I use co

[NTG-context] Define color with calculations

2019-02-17 Thread Mohammad Hossein Bateni
Hi, When I use definecolor, (how) can I use computations in setting the value of a component? Something like the following... \definecolor[mycolor][r=0.5*0.7] Thanks, ~MHB ___ If your question is of interest to othe

Re: [NTG-context] Define the dimensions of a layout

2018-08-09 Thread Lizardo M. Reyna Bowen
Hi, May be this setup works. \setuppapersize[A4] \setuplayout[   header=20mm,   footer=20mm,   height=fit,   topspace=0cm,   width=fit,   backspace=2cm,   rightmargin=0cm,   leftmargin=0cm,   leftmargindistance=0pt,   rightmargindistance=0pt] \showframe \starttext  \showsetups \stoptext Reg

Re: [NTG-context] Define the dimensions of a layout

2018-08-08 Thread Wolfgang Schuster
\setuplayout [topspace=10mm, header=10mm, footer=10mm, height=middle, backspace=20mm, width=middle] \showframe \starttext \showsetups \stoptext Wolfgang Lizardo M. Reyna Bowen schrieb am 09.08.18 um 04:50: Hi, May be this setup works. \setuppapersize[A4] \setuplayout[

Re: [NTG-context] Define the dimensions of a layout

2018-08-08 Thread Lizardo M. Reyna Bowen
Hi, May be this setup works. \setuppapersize[A4] \setuplayout[   header=20mm,   footer=20mm,   height=fit,   topspace=0cm,   width=fit,   backspace=2cm,   rightmargin=0cm,   leftmargin=0cm,   leftmargindistance=0pt,   rightmargindistance=0pt] \showframe \starttext  \showsetups \stoptext -- D

[NTG-context] Define the dimensions of a layout

2018-08-08 Thread Fabrice Couvreur
Hello, I want the text area to be surrounded by a margin of 20 mm (top, right, left and bottom). I have already done this to have a left and right margin of 20 mm. \setuplayout [height=middle, backspace=20mm, width=middle] I think that I must now have : topdistance + header + headerdist

Re: [NTG-context] unable to define 'texgyrepagella-regula' error etc.

2018-07-26 Thread Hans Hagen
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 -

Re: [NTG-context] unable to define 'texgyrepagella-regula' error etc.

2018-07-26 Thread Jeong Dal
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

Re: [NTG-context] unable to define 'texgyrepagella-regula' error etc.

2018-07-26 Thread Hans Hagen
kiv/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'

[NTG-context] unable to define 'texgyrepagella-regula' error etc.

2018-07-25 Thread Jeong Dal
onTeXt/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 l

Re: [NTG-context] unable to define 'texgyrepagella-regula' error etc.

2018-07-25 Thread Otared Kavian
27; is > not found using lookup 'file' > fonts > defining > unknown font 'texgyreheros-regular', loading > aborted > fonts > defining > unable to define 'texgyreheros-regular' as > 'dummy--0' > floatblock

[NTG-context] unable to define 'texgyrepagella-regula' error etc.

2018-07-24 Thread Jeong Dal
ing lookup 'file' fonts > defining > unknown font 'texgyreheros-regular', loading aborted fonts > defining > unable to define 'texgyreheros-regular' as 'dummy--0' floatblocks > '1' placed (here) fonts

Re: [NTG-context] define xml entity

2018-04-03 Thread Hans Hagen
On 4/3/2018 9:00 AM, dr. Hans van der Meer wrote: How do I define an xml entity like ä? Is there an \xml-operation for defining an entity? Such that I can say \xml{ABC}{an alphabet} for using &ABC; so that it produces “an alphabet”, for example. You can find some in the test suite but it b

[NTG-context] define xml entity

2018-04-03 Thread dr. Hans van der Meer
How do I define an xml entity like ä? Is there an \xml-operation for defining an entity? Such that I can say \xml{ABC}{an alphabet} for using &ABC; so that it produces “an alphabet”, for example. dr. Hans van der

Re: [NTG-context] How to define a new font style using \definefontstyle?

2017-01-31 Thread Antoine Cailliau
I'm not sure I understand. Myriad Pro has normal and semi-extended versions. Do you suggest to have different typefaces for normal and semi-extended version ? (Which makes no sense for roman then). I'd like to use both normal and semi-extended versions, both with their bold, italic, etc. styles.

Re: [NTG-context] How to define a new font style using \definefontstyle?

2017-01-30 Thread Hans Hagen
On 1/30/2017 9:12 AM, Antoine Cailliau wrote: No one? Is there a documentation somewhere or an example I could refer to? Thanks in advance, Antoine On 23 January 2017 at 12:48, Antoine Cailliau mailto:antoinecaill...@gmail.com>> wrote: Hi, I'm trying to declare a new font style. I de

Re: [NTG-context] How to define a new font style using \definefontstyle?

2017-01-30 Thread Antoine Cailliau
No one? Is there a documentation somewhere or an example I could refer to? Thanks in advance, Antoine On 23 January 2017 at 12:48, Antoine Cailliau wrote: > Hi, > > I'm trying to declare a new font style. I declare it with \definefontstyle > [sx] [sx] but the compilation fails when I use \sx i

[NTG-context] How to define a new font style using \definefontstyle?

2017-01-23 Thread Antoine Cailliau
Hi, I'm trying to declare a new font style. I declare it with \definefontstyle [sx] [sx] but the compilation fails when I use \sx in my document. I found an older message from 2009 similar to my issue but with public solution. May be some private response from Hans Hagen is missing? ( https://mai

Re: [NTG-context] How to define a TeX logic function with a boolean returned from a Lua function and \edef fixed value

2017-01-18 Thread Hans Hagen
On 1/18/2017 4:29 PM, DesdeChaves wrote: Dear sirs, Is there a way to compare, in TeX environment, a value returned from a lua function with a TeX variable? Please see this code: \def\aleatorioValue{ \startlua local nu = math.random(1,10); if nu<5 return 1 else return 0 end \stoplua } \edef

[NTG-context] How to define a TeX logic function with a boolean returned from a Lua function and \edef fixed value

2017-01-18 Thread DesdeChaves
Dear sirs, Is there a way to compare, in TeX environment, a value returned from a lua function with a TeX variable? Please see this code: \def\aleatorioValue{ \startlua local nu = math.random(1,10); if nu<5 return 1 else return 0 end \stoplua } \edef\controlValue{1} \edef\inferior{Number too s

  1   2   3   4   >