[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

[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 sidenote command

[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-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 is of interest to others

[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

[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] \unprotect

[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 /

[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] Numbers obtained by commands <\datasetvariable> cannot be copied to counters

2024-05-29 Thread ai2472206007
I'm defining a command to generate options for multiple choice questions, but at the moment I'm stuck at this step. I want to get a number and assign a value to the counter, but why can't I get it? \starttext \definedataset [myset] \setdataset[myset] [foo=1,boo=4] \newcount\tempa

[NTG-context] Re: Numbers obtained by commands <\datasetvariable> cannot be copied to counters

2024-05-29 Thread ai2472206007
Thanks, probably interfered with his output in other parts of my command. I didn't locate the error correctly. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

[NTG-context] Re: Numbers obtained by commands <\datasetvariable> cannot be copied to counters

2024-05-29 Thread ai2472206007
Thank you. I will try again. ___ 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: Numbers obtained by commands <\datasetvariable> cannot be copied to counters

2024-05-29 Thread ai2472206007
I must have made a mistake with something, I changed a counter and it somehow worked properly. Because I've designed too many counters, I still haven't figured out exactly what the problem is doing. But admittedly, the question I asked is non-existent. It's a problem with my design.

[NTG-context] Re: Draft vertical text in margins

2024-06-03 Thread ai2472206007
you can try 'setuptext' and '\setuptexttexts' to put "draft" in margin.and use 'orientation' to change direction. \defineframed[marginframe] [width=max, height=max, style=\ss, corner=08, location=lohi,frame=off]

[NTG-context] After using a custom command in the title, the table of contents is not generated properly

2024-06-05 Thread ai2472206007
As described, here is example: % \def\cmd#1{{\tt\textslash #1}} \def\cmdii#1{\tt #1} \def\cmdiii#1{\rm #1} \starttext \placecontent% if i dont place toc command , ConText can render it. \chapter{anything else} \section{\cmdi{with command} section} \section{\cmdii{with command} section}

[NTG-context] Re: After using a custom command in the title, the table of contents is not generated properly

2024-06-05 Thread ai2472206007
I was careless. thank you ___ 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 :