[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Florent Michel
h I imagine there will still be > use-cases for html/epub export.) > > > > I have a document where different versions should have a different > number of images. Following an earlier suggestion from Wolfgang, I usually > handle differences between versions of the same document u

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Bruce Horrocks
ugh I imagine there will still be use-cases for > html/epub export.) > > I have a document where different versions should have a different number of > images. Following an earlier suggestion from Wolfgang, I usually handle > differences between versions of the same document u

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Florent Michel
Hi Mikael, > We have some kind of working setup at the moment (here I have some lua > file that compiles lectures in different files to different xhtml > files, exporting svg files for formulas automatically, and so on), but > this is something that will be discussed further during the meeting, >

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Mikael Sundqvist
Hi Florent, On Thu, Aug 14, 2025 at 2:40 PM Florent Michel wrote: > > > AFAIK you need \startimage … \stopimage around everything that should > > become a SVG. > > Ah, good point! I tried adding \startimage … \stopimage around \sttartformula > ... \stopformula , with no luck, unfortunately. > >

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Florent Michel
> AFAIK you need \startimage … \stopimage around everything that should > become a SVG. Ah, good point! I tried adding \startimage … \stopimage around \sttartformula ... \stopformula , with no luck, unfortunately. However, after looking at mtx-epub.lua and experimenting, I realised that running

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Henning Hraban Ramm
Am 14.08.25 um 13:32 schrieb Florent Michel: Thanks a lot Henning! You’re welcome. I tried running: ``` context ./test.tex --mode=show_formula mtxrun --script epub --images test ``` but it still does not seem to generate the images. Is there another option I should pass to either context or

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Florent Michel
Thanks a lot Henning! > The epub script works on the exported xml from a previous context run. > You can apply your mode there. Ah, it seems I was running context and mtxrun in the wrong order. Thanks for the pointer! I tried running: ``` context ./test.tex --mode=show_formula mtxrun --script ep

[NTG-context] Re: mtxrun --script epub and modes

2025-08-14 Thread Henning Hraban Ramm
Am 14.08.25 um 10:01 schrieb Florent Michel: Hi, TL;DR: Is there a way to pass a `mode` argument when running `mtxrun -- script epub --images`? The epub script works on the exported xml from a previous context run. You can apply your mode there. \setupbackend[export=yes]

[NTG-context] mtxrun --script epub and modes

2025-08-14 Thread Florent Michel
agine there will still be use-cases for html/epub export.) I have a document where different versions should have a different number of images. Following an earlier suggestion from Wolfgang, I usually handle differences between versions of the same document using modes, which works very well for pdf ou

[NTG-context] Re: export and tagging

2025-07-26 Thread Hans Hagen via ntg-context
the target audience anyway) .. maybe you should ask / look around for users I have not been able to use the MathBlobs tracker for anything but footnotes. Maybe there is a way (using modes) to replace all math with spelled-out math, and all figures with their alt-texts? too long ago ... ma

[NTG-context] Re: export and tagging

2025-07-26 Thread Henning Hraban Ramm
calling context with --image ? (Didn’t try, it’s just in my notes…) I have not been able to use the MathBlobs tracker for anything but footnotes. Maybe there is a way (using modes) to replace all math with spelled-out math, and all figures with their alt-texts? The above approach should also

[NTG-context] Re: Custom background color for \framed inside lmt_text

2025-07-02 Thread Wolfgang Schuster
1cm,1cm); %working fill fullcircle scaled 2cm shifted (0,3cm) withcolor rose_color; \stopMPcode \stoptext The color modes in TeX and MetaPost are separate systems and while you can't use MetaPost defined colors in TeX the reverse is possible, to use TeX defined color use \MPcolor{..

[NTG-context] Re: Alternate text for figures that includes math

2025-06-20 Thread Pablo Rodriguez via ntg-context
other > ways to access that serialized math? Matthias, no idea, I only found `math.textblobs` included in `math-ini.mkxl`. > One approach to making math and images accessible would be to use > modes to replace all figures with their alt-texts and all math with > their serialized math

[NTG-context] Re: Alternate text for figures that includes math

2025-06-19 Thread Matthias Weber
er ways to access that serialized math? One approach to making math and images accessible would be to use modes to replace all figures with their alt-texts and all math with their serialized math, so that the output of ConTeXt would be a PDF where all elements that are difficult to navigate are rep

[NTG-context] Re: Modes & enumerations

2025-06-05 Thread Aditya Mahajan
On Wed, 28 May 2025, Matthias Weber wrote: > Hello all, > > I would like to typeset a certain enumeration when a corresponding mode is > enabled, like so: > > \defineenumeration[Solution] > [text={Solution:}, > headstyle=bold, >

[NTG-context] Re: Modes & enumerations

2025-06-05 Thread Pablo Rodriguez via ntg-context
On 5/29/25 03:26, Matthias Weber wrote: > [...] > Is there a suitable incantation to make this work? Hi Matthias, I guess that this is only a workaround: \defineenumeration [Solving] [text={Solution:}, headstyle=bold, style=normal,

[NTG-context] Modes & enumerations

2025-05-28 Thread Matthias Weber
Hello all, I would like to typeset a certain enumeration when a corresponding mode is enabled, like so: \defineenumeration [Solution] [text={Solution:}, headstyle=bold, before={\startmode[soluti

[NTG-context] Re: How to easily comment out/uncomment multiple lines all at once?

2025-04-27 Thread mf
Hello, you can use modes. --- \definemode[ModeA][keep] \definemode[ModeB][keep] % ... \starttext \startmode[ModeA] \macroA \stopmode \startmode[ModeB] \macroB \stopmode \stoptext --- Then you type: context --mode=ModeA yourfile.tex or context --mode=ModeB yourfile.tex If

[NTG-context] Re: How to easily comment out/uncomment multiple lines all at once?

2025-04-27 Thread Hans Hagen via ntg-context
there any simpler way to easily switch between the two versions? Search for "modes" ... Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherl

[NTG-context] Re: *Not* starting a section at the very bottom of a page

2025-04-24 Thread Jim
(2) The "bad" page break for Section 2.11 only occurs (at present) in the >> "screen" version, but not in the "paper" version. To fix the screen >> version, on could (I suppose) do >> \ifthisisthescreenversion >> \page &

[NTG-context] Re: *Not* starting a section at the very bottom of a page

2025-04-24 Thread Wolfgang Schuster
on, on could (I suppose) do \ifthisisthescreenversion \page \fi ... command to start Section 2.11 ... but just putting \testpage[5] % or whatever number one likes ... command to start Section 2.11 ... takes care of both formats. 1. Y

[NTG-context] Re: Tagging Math

2025-04-11 Thread Aditya Mahajan
ments, one with > > 1+1 =2 > > and one with > > one plus one equals two > > As for images, I can use modes to accomplish that. The accessible PDF would > contain text only. > There are other things to worry about at some point like indices, > hyperlinks, tab

[NTG-context] Re: Tagging Math

2025-04-11 Thread Matthias Weber
images, I can use modes to accomplish that. The accessible PDF would contain text only. There are other things to worry about at some point like indices, hyperlinks, tables. Matthias > On Apr 11, 2025, at 1:53 PM, Hans Hagen via ntg-context > wrote: > > On 4/11/2025 6:44 PM, Ma

[NTG-context] Re: Alternate text for images?

2025-04-09 Thread Matthias Weber
Hi Pablo (and Hans) No, Acrobat reports an empty page when reading the text, and Preview (on the Mac) doesn’t read anything either. I can’t find the text when looking at the pdf in an editor. I’d be happy to use modes to produce different documents for different user groups, this would make it

[NTG-context] Re: using command line arguments

2024-10-28 Thread Henning Hraban Ramm
problem here? Perhaps my approach is too simplistic, but if I had to do something like that, I would use modes: \startmode [fiee]   \definecolor [OEM] [c=1]   \def{OEM}{fiee} \stopmode and for the fallback, use \startnotallmodes [...] then you can call from the command line with --mode=fiee

[NTG-context] Re: using command line arguments

2024-10-28 Thread Thomas A. Schmitz
simplistic, but if I had to do something like that, I would use modes: \startmode [fiee] \definecolor [OEM] [c=1] \def{OEM}{fiee} \stopmode and for the fallback, use \startnotallmodes [...] then you can call from the command line with --mode=fiee and write \color[OEM]{Company: \OEM} But maybe

[NTG-context] Re: Spacing issue in \digits with mode=3

2024-10-26 Thread Wolfgang Schuster
math. When you use modes 0--2 ConTeXt inserts a space based on the width of an period but the other modes use either \thinspace (mode 3 and 4) or \thickspace (mode 5 and 6) as separator. begin example \setdigitmode{3} \startdocument \type{1,000} = \the\dimexpr\widthofstring{1,000}\relax

[NTG-context] Re: weekend update

2024-06-24 Thread Gerion Entrup
arency hack there? Sure, exactly that :) > > What comes there really handy are range specifiers, what seems not possible > > with this interface. > > For example: "visible on=<2->" renders the content on every page except the > > first one > > or

[NTG-context] Re: weekend update

2024-06-23 Thread Hans Hagen via ntg-context
he mechanism stems from the Beamer overlay specifications, see section 9.3 of the manual [2] and can be much more complicated with modes (section 9.6.2). I don't know beamer other than seeing presentations at meetings but I assume that it has some accumulator. We do have steppers in mkii / mkiv alr

[NTG-context] Re: weekend update

2024-06-23 Thread Gerion Entrup
technique [1], I posted in a > previous thread. > What comes there really handy are range specifiers, what seems not possible > with this interface. > For example: "visible on=<2->" renders the content on every page except the > first one > or "visible on=<1-5,

[NTG-context] Re: weekend update

2024-06-23 Thread Gerion Entrup
15>" on the first page up to the fifth page and from page 13 to 15. The mechanism stems from the Beamer overlay specifications, see section 9.3 of the manual [2] and can be much more complicated with modes (section 9.6.2). To add this to the new interface, if you want

[NTG-context] Re: Figure reference failing

2024-04-10 Thread Henning Hraban Ramm
l in a row.     \startplacetable[mode=columns,reference=demo-1]     \externalfigure[cow][width=\textwidth]     \stopplacetable     \samplefile{tufte} \stoptext so basically we have an "at the spot" placement or a float Is "mode" in floats something new? How is

[NTG-context] Re: Section number in the margin and the section title followed by paragraph!

2024-01-27 Thread Pablo Rodriguez via ntg-context
ve=inmargin (or margin) and alternative=text. I’m afraid they are mutually exclusive alternative modes. Just in case it might help, Pablo ___ If your question is of interest to others as well, please add an en

[NTG-context] Re: QR Code

2023-12-21 Thread Ursula Hermann
tem -> Advanced -> Environment Variables). Details depend on your version of Windows and are explained in Windows help. You should not expect extensive support from the WinEdt Team when it comes to configuring your Windows. Changes to the PATH variable made through WinEdt's PATH pa

[NTG-context] Re: learning about the grid

2023-11-19 Thread Henning Hraban Ramm
Am 19.11.23 um 13:27 schrieb Miguel Diaz: 1. Why are the lines printed one over the other when grid=no? how do profis then use context without grid? That usually only happens in one of the column modes that requires the grid. It doesn’t happen in usual one-column typesetting. There must be

[NTG-context] Re: list of modules: need changes/testing/response

2023-08-31 Thread Henning Hraban Ramm
with TDS. This would be the only way to get the modules script work with those modes (or .tar.gz is also accepted as compression format for the modules script). no, see above Hraban ___ If your question is of

[NTG-context] Re: list of modules: need changes/testing/response

2023-08-31 Thread Pablo Rodriguez
start mixing compression formats, would it be possible that the git checkout selects .zip instead of .tar.gz? Sorry, but the git URL seems to be the only way to get directories that comply with TDS. This would be the only way to get the modules script work with those modes (or .tar.gz is also accepted a

[NTG-context] Re: What are these warnings/errors?

2023-07-18 Thread Gerben Wierda
] > \definefallbackfamily > [archimate] > [ss] > [Hiragino Sans GB] > [preset=range:chinese, >tf=style:W3, >it=style:W3, >bf=style:W6, >bi=style:W6, >force=yes] > > \definefontfeature [expandophian] [extend=1.025] > \definefontfamily >

Re: [NTG-context] Layout with equal margins.

2023-05-21 Thread Wolfgang Schuster via ntg-context
backspace and cutspace keys. In the example below you can switch between the layout of the print and screen version by changing modes. \enablemode[print] %\enablemode[screen] \definepapersize [pawel] [width=432pt,height=648pt] \setuppapersize [pawel] \startmode[print] \setuplayout   [back

Re: [NTG-context] Layout with equal margins.

2023-05-21 Thread Willi Egger via ntg-context
n=60pt, ...] > > The makeup width and text width is calculated as 472pt and the margin appears > to be set just on one side. > > I set both cutspace and backspace to 0pt. I assumed that either value is a > particular area of the page. > > > Has any one of you h

Re: [NTG-context] Layout with equal margins.

2023-05-21 Thread Wolfgang Schuster via ntg-context
to 0pt. I assumed that either value is a particular area of the page. Has any one of you handled such a case? I'll be very glad to get some directions. I can create a simple document with modes or documents to illustrate my case if needed... The example below sets the correct margin

[NTG-context] Layout with equal margins.

2023-05-21 Thread Pawel Urbanski via ntg-context
page. Has any one of you handled such a case? I'll be very glad to get some directions. I can create a simple document with modes or documents to illustrate my case if needed... Thank you, Pawel ___ If

Re: [NTG-context] Nuclear reactions

2023-04-16 Thread Tomáš Hála via ntg-context
}{38}{194} or (with more logical order of parameters) \unexpanded\def\isotope#1#2#3{\dontleavehmode\begingroup\null\lohi[left]{#1}{#2}#3\endgroup} \isotope{38}{999}{Sr} Or for text and math modes together: \unexpanded\def\isotope#1#2#3{% \ifmmode\begingroup\null^^{#1}__{#2}{\rm#3}\endgroup

[NTG-context] lmtx upload

2022-12-01 Thread Hans Hagen via ntg-context
Hi, I uploaded lmtx. Most significate: - A slightly different implementaqtion of font modes 'base' and 'none' (hopefully no side effects). - A few math updates (like primes done a bit differently, we made some choices here). - Limited support for colr format 1 as n

Re: [NTG-context] How do I write a digital book that can become a physical book without a lot of modifications?

2022-09-10 Thread Mikael Sundqvist via ntg-context
book that doesn't have to be heavily modified in > order to become a physical book? I want almost no modification at all. I think you can use modes: https://wiki.contextgarden.net/Modes. Simply do different setups in different modes. Then choose t

Re: [NTG-context] Count (and limit) glyphs per line?

2022-07-18 Thread Benjamin Buchmuller via ntg-context
f concept that gives an idea. No upload as first we need to do some wrapping up of math. Not that we needed something in the engine other than the linebreak helper to accept direct modes (no need to go back and forth then and i only want write this crap once). Could be a module although it'

[NTG-context] What is going wrong with this use of --mode for switching language?

2022-07-08 Thread Gerben Wierda via ntg-context
\phrasetext{sheettitle} \stoptext I run this with one of three modes: context --mode=EN --result=test-en test.tex context --mode=RU --result=test-ru test.tex context --mode=EL --result=test-el test.tex This works for EN, RU, but not for EL. When I run with “—mode=EL” I get EN. Why? I am either blind or

Re: [NTG-context] Count (and limit) glyphs per line?

2022-06-26 Thread Hans Hagen via ntg-context
d in that anyway: thinking probably stops at the number '120'). Attached a proof of concept that gives an idea. No upload as first we need to do some wrapping up of math. Not that we needed something in the engine other than the linebreak helper to accept direct modes (no need to go b

Re: [NTG-context] Can I simplify this to some sort of logic so it scales better?

2022-06-06 Thread Wolfgang Schuster via ntg-context
language added this becomes more and more complex. I was wondering what would be a good approach to simplify it. I want to make sure that one and only one of these modes is active and that if no mode is entered on the command line the mode is EN. %\enablemode[EN] \enablemode[FR] %\enablemode

[NTG-context] Can I simplify this to some sort of logic so it scales better?

2022-06-06 Thread Gerben Wierda via ntg-context
becomes more and more complex. I was wondering what would be a good approach to simplify it. I want to make sure that one and only one of these modes is active and that if no mode is entered on the command line the mode is EN. Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda&

Re: [NTG-context] Can I use language as a mode (set on the command line) and simplify this?

2022-05-11 Thread Pablo Rodriguez via ntg-context
On 5/11/22 09:40, Gerben Wierda via ntg-context wrote: >> On 11 May 2022, at 08:59, Taco Hoekwater wrote: >> [...] >> The language settings trigger a system mode, see >> >> https://wiki.contextgarden.net/Modes#System_modes > > Thanks, but how do I influence

Re: [NTG-context] Does \startnotallmodes work?

2022-05-11 Thread Gerben Wierda via ntg-context
d the Art of Enterprise Architecture >> <https://ea.rna.nl/the-book/> >> Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/> >> > Gerben, > > \startnotallmodes is behaving as it should. Here, it is not the case that RU > and FR (all the list

Re: [NTG-context] Can I use language as a mode (set on the command line) and simplify this?

2022-05-11 Thread Gerben Wierda via ntg-context
ine instead, enable a mode derived from a language set on the >>> command line, > > The language settings trigger a system mode, see > > https://wiki.contextgarden.net/Modes#System_modes Thanks, but how do I influence this from the co

Re: [NTG-context] Can I use language as a mode (set on the command line) and simplify this?

2022-05-11 Thread Taco Hoekwater via ntg-context
settings trigger a system mode, see https://wiki.contextgarden.net/Modes#System_modes Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of inte

Re: [NTG-context] Does \startnotallmodes work?

2022-05-10 Thread Rik Kabel via ntg-context
a.nl/the-book-edition-iii/> Gerben, \startnotallmodes is behaving as it should. Here, it is not the case that RU and FR (all the listed modes) are set, so EN is enabled, and you actually have both FR and EN set. Try the following with context —mode=FR and make sure you understan

Re: [NTG-context] Simple question

2022-05-10 Thread Denis Maier via ntg-context
Don't know how if there's an automatic way, perhaps look into ctx processing instructions. Anyway you can use --result=name As you have to set quite a few options on the command line (modes, language) you'll perhaps want to use a makefile anyway. _

Re: [NTG-context] Simple question

2022-05-10 Thread Henning Hraban Ramm via ntg-context
s \translatephrase; for your figures I’d just just a language variable in the path, like \externalfigure[images/\LANG/cow.pdf] If this is always the current language, use \currentlanguage. You can also setup the language dependent directory in \setupexternalfigures. Regarding modes, the current

Re: [NTG-context] Trying to get a simple bibliography

2022-03-27 Thread Jean-Pierre Delange via ntg-context
ancienne::Laks2002]}. \stopchapter \startchapter[title={Qu’est-ce que la Philosophie politique ?}] On pourrait commencer par énoncer la différence entre la {\it philosophie politique} et la {\it science politique} : la sicence politique est l’étude des institutions politiques, des modes de suffra

[NTG-context] ConTeXt support in LTEX

2021-11-29 Thread Saša Janiška via ntg-context
Hello, didn't have time to (properly) test, but you might be interested to hear that since 15.2.0 release - hot from the owen - there is now support for ConTeXt as well. Sincerely, Gour -- Bewildered by the modes of material nature, the ignorant fully engage themselves in material activ

Re: [NTG-context] Blocks inside a conditional mode.

2021-11-28 Thread Fabrice L via ntg-context
ed conditional mode.. is this the problem ?). > > You can’t nest modes in \startmode ... \stopmode. > I don’t know what are the limitations of \doifmode. According to the wiki, we cannot nest several \startmode …\stopmode, but there is no limitation with \doifmode. > > Maybe i

Re: [NTG-context] Blocks inside a conditional mode.

2021-11-28 Thread Henning Hraban Ramm via ntg-context
Am 28.11.21 um 19:39 schrieb Fabrice L via ntg-context: I have an error when I try to insert a block inside a conditional mode (but there is two nested conditional mode.. is this the problem ?). You can’t nest modes in \startmode ... \stopmode. I don’t know what are the limitations of

[NTG-context] Blocks inside a conditional mode.

2021-11-28 Thread Fabrice L via ntg-context
MWE — Blocks and modes usually works fine for me, but here, I do not understand my error. Thanks for any help ! Fabrice. Note : in case this way of doing things seems a bit silly, here are more explanations. I do use mode « CourseOne » here because in the real life, the content in

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
l experiment with this method as well, comparing and contrasting with blocks and Aditya's modes method. It might be a bit annoying, but you could end the previous mode before starting the next. Assuming that I'm not misunderstanding you: For a book-length project, that would be bey

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
On Wed, 17 Nov 2021 11:54:52 -0700, Hans Hagen via ntg-context wrote: Blocks are a better mechanism, but I still prefer modes here because I find the \beginblock ... \endblock syntax to be a bit awkward in a context document. it also depends on usage ... you can have blocks and delay

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
On Wed, 17 Nov 2021 10:56:46 -0700, Aditya Mahajan via ntg-context wrote: But you don't have to directly use the modes. The following will work: \definestartstop[abridged] % By default, don't show the unabridged text \definebuffer[unabridged][local=yes, nested=yes] \startmode[

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Hans Hagen via ntg-context
حامد via ntg-context wrote: Dear gang, For creating/authoring content in ConTeXt: Can modes or the like be used for content control? For example, someone wants to write at least two versions of a book managed from a single file. So, e.g., we may have a) abridged content b) unabridged content

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Aditya Mahajan via ntg-context
> > wrote: > > > > > Dear gang, > > > > > > For creating/authoring content in ConTeXt: Can modes or the like be used > > > for content control? For example, someone wants to write at least two > > > versions of a book managed from a sin

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Henning Hraban Ramm via ntg-context
}{Conditional text}. I don’t think you would get shorter markup with nesting. More possibilities see https://wiki.contextgarden.net/Modes > Consider variant texts: > > === > Here is some text that > contains % mode=variantone > includes % mode=varianttwo > is comprise

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Taco Hoekwater via ntg-context
Hi Idris, I think Hans was trying to point you to the blocks mechanism. Blocks *do* nest: \defineblock[sectionblock] \defineblock[myblock] \startmode[variantone] \keepblocks[sectionblock] \keepblocks[myblock] \stopmode \startmode[varianttwo] \keepblocks[sectionblock] \stopmode \starttext \begi

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
sts of modes? \startmode[short,long] Something that appears everywhere. \stopmode \startmode[long] % or \startnotmode[short] Something that’s only in the long version. \stopmode Many thanks; will study this. Unfortunately - as pointed out on the wiki - modes cannot be nested. : Why would you nee

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Henning Hraban Ramm via ntg-context
> Am 17.11.2021 um 04:06 schrieb ⁨Idris Samawi Hamid ادريس سماوي حامد via > ntg-context⁩ <⁨ntg-context@ntg.nl⁩>: > > Unfortunately - as pointed out on the wiki - modes cannot be nested. Why would you need that? You know about \startnotmode and that you can use lists of

Re: [NTG-context] Can modes be used for content control?

2021-11-16 Thread Hans Hagen via ntg-context
On 11/17/2021 12:25 AM, Idris Samawi Hamid ادريس سماوي حامد via ntg-context wrote: Dear gang, For creating/authoring content in ConTeXt: Can modes or the like be used for content control? For example, someone wants to write at least two versions of a book managed from a single file. So, e.g

Re: [NTG-context] Can modes be used for content control?

2021-11-16 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
Hi Aditya, Many thanks; see below: On Tue, 16 Nov 2021 17:23:59 -0700, Aditya Mahajan via ntg-context wrote: On Tue, 16 Nov 2021, Idris Samawi Hamid ادريس سماوي حامد via ntg-context wrote: Dear gang, For creating/authoring content in ConTeXt: Can modes or the like be used for content

Re: [NTG-context] Can modes be used for content control?

2021-11-16 Thread Aditya Mahajan via ntg-context
On Tue, 16 Nov 2021, Idris Samawi Hamid ادريس سماوي حامد via ntg-context wrote: > Dear gang, > > For creating/authoring content in ConTeXt: Can modes or the like be used > for content control? For example, someone wants to write at least two > versions of a book managed fro

[NTG-context] Can modes be used for content control?

2021-11-16 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
Dear gang, For creating/authoring content in ConTeXt: Can modes or the like be used for content control? For example, someone wants to write at least two versions of a book managed from a single file. So, e.g., we may have a) abridged content b) unabridged content - includes a) c) abridged

Re: [NTG-context] improve bad habits deduplicate redundant defined values

2021-09-18 Thread Hans Hagen via ntg-context
. Obviously, these articles should rely on the same environment files. But how would you deal with those cases where you'd need a slightly different table layout in one article? one can always use 'modes' (andf run wit

Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-27 Thread Joey McCollum via ntg-context
the > third name, while in list entries, all names should be printed in full. > >>> > >>> I thought that the following settings would work: > >>> > >>> \definebtx > >>> [sbl:\s!list] > >>> [sbl] > >>> [\c!others

Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-27 Thread Ágoston Volcz via ntg-context
, while in list entries, all names should be printed in full. >>> >>> I thought that the following settings would work: >>> >>> \definebtx >>> [sbl:\s!list] >>> [sbl] >>> [\c!otherstext=, >>> \c!etallimit=, >>&

Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-26 Thread Joey McCollum via ntg-context
c!authorconversion=inverted] % TODO: need to print the first name >> inverted, with all subsequent names in normal order >> >> \definebtx >> [sbl:\s!cite] >> [sbl] >> [\c!otherstext={\btxspace\btxlabeltext{others}}, % use et al. for >> truncated author / ed

Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-26 Thread Joey McCollum via ntg-context
, % use et al. for > truncated author / editor list >\c!etallimit=3, % don't use et al. for 3 or fewer authors >\c!etaldisplay=3, % >\c!authorconversion=\v!normal] % by default, use normal name order for > in-text citations > > But only the "list" setting

[NTG-context] Different author rendering in entry citation vs. list

2021-08-25 Thread Joey McCollum via ntg-context
his might be because the setup for "entry" citations invokes \btxhandleciteentry and therefore uses "list" settings everywhere except where I check modes for conditional formatting. But is there a command or environment I can use to change authorconversion locally, based on the current mode

Re: [NTG-context] Conditional formatting with *frontpart, *bodypart, *backpart modes

2021-08-12 Thread Pablo Rodriguez via ntg-context
gt; body, and back matter using modes. > [...] Hi Joey, the command is just different: \startsectionblockenvironment[frontpart] \setupbodyfont[modern] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setupbodyfont[pagella] \stopsectionblockenvironment \startse

[NTG-context] Conditional formatting with *frontpart, *bodypart, *backpart modes

2021-08-12 Thread Joey McCollum via ntg-context
Hi, I was curious about the possibility of handling general formatting settings (e.g., page layout, headers and footers, page numbering, alignment, default body font assignment, etc.) conditionally for front, body, and back matter using modes. According to the wiki page at https

Re: [NTG-context] columnsets messed up

2021-07-02 Thread Hans Hagen
ut doesn’t actually use \chapter but its own convoluted \startArticle. Until last issue it tried to be flexible and setup three different column modes. Now I eliminated the last leftovers of that. I still struggle to understand some pecularities... What I did wrong: * \setuplayout[grid=yes] is

Re: [NTG-context] columnsets messed up

2021-07-02 Thread Henning Hraban Ramm
gt even force that but not now). > Then, \chapter itself flushes pages so that should be disabled. Thank you, I got it mostly working now. The CGJ layout doesn’t actually use \chapter but its own convoluted \startArticle. Until last issue it tried to be flexible and setup three different co

Re: [NTG-context] no leavevmode

2021-05-28 Thread Hans Hagen
text. Whereas not starting with an \hbox does an implicite switch to horizontal mode. I can imagine that this behaviour could be confusing for users not well versed in the different behaviour of the horizontal and vertical modes. Therefore my question: Wouldn't it be wise to implement

[NTG-context] no leavevmode

2021-05-27 Thread Hans van der Meer
implicite switch to horizontal mode. I can imagine that this behaviour could be confusing for users not well versed in the different behaviour of the horizontal and vertical modes. Therefore my question: Wouldn't it be wise to implement that \leavevmode? \startsubsection[title=TEST] \hbox{abc

Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Nicola
0", -- 0 ["luatex.nestsize"] = "1000", --50 ["luatex.maxinopen"] ="500", --15 ["luatex.maxprintline"] = " 1", --79 ["

Re: [NTG-context] Typing within doifmode leads to error

2021-03-21 Thread Christoph Reller
x.modes['A'] then > > context("A") > >end > > \stopluacode > > > > A > > > > \stoptext > > > > With ConTeXt LMTX 2021.03.17 the output of the above is a single "A". I > > would expect two. What am

Re: [NTG-context] Typing within doifmode leads to error

2021-03-19 Thread Christoph Reller
tx-context | fatal error: return code: 1 > > > > Compilation is successful if I replace doifmode{mode}{...} by > > \startmode[mode]...\stopmode. > > > > Is there anything I'm missing? (This could be a bug.) > not a bug, just the way tex works .. modes cannot

Re: [NTG-context] Typing within doifmode leads to error

2021-03-19 Thread Hans Hagen
ex works .. modes cannot know that what goes into an argument is something verbose but you can use this (also more efficient here): \definetyping[T] \definemode[mode][yes] \starttext \startmode[mode] \startT Bla \stopT \stopmode \stoptext % there's also

Re: [NTG-context] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-20 Thread juh
Am Fri, Feb 19, 2021 at 01:17:15PM +0100 schrieb Hans Hagen: > On 2/19/2021 11:46 AM, juh wrote: > > Am Fri, Feb 19, 2021 at 10:47:36AM +0100 schrieb Hans Hagen: > > > The question is: what happens in that file with modes? > > > > Nothing too fancy. I attached t

Re: [NTG-context] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-20 Thread Hans Hagen
On 2/20/2021 4:42 PM, juh wrote: Am Fri, Feb 19, 2021 at 01:17:15PM +0100 schrieb Hans Hagen: On 2/19/2021 11:46 AM, juh wrote: Am Fri, Feb 19, 2021 at 10:47:36AM +0100 schrieb Hans Hagen: The question is: what happens in that file with modes? Nothing too fancy. I attached the files with

Re: [NTG-context] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-19 Thread juh
Am Fri, Feb 19, 2021 at 10:47:36AM +0100 schrieb Hans Hagen: > The question is: what happens in that file with modes? Nothing too fancy. I attached the files with mode definitions -- -- Autoren-Homepage: . http://literatur.hasecke.com Satiren & Essays: ...

[NTG-context] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-19 Thread juh
iggers \the \outputpenalty \endcsname \lastnamedcs \else \page_otr_command_routine \fi {\inotrtrue \the \everybeforeoutput \page_otr_triggered_output_routine \relax \the \everyafteroutput } ... \stopproduct Are there changes with modes or setupbackend in lmtx? My configuration is: \setup

Re: [NTG-context] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-19 Thread Hans Hagen
On 2/19/2021 11:46 AM, juh wrote: Am Fri, Feb 19, 2021 at 10:47:36AM +0100 schrieb Hans Hagen: The question is: what happens in that file with modes? Nothing too fancy. I attached the files with mode definitions works here so you need to make a mwe Hans

Re: [NTG-context] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-19 Thread Hans Hagen
files and bleed, it get this error: tex error > tex error on line 1 in file ./prod-poster-motiv-souveraenitaet.tex: You can't use 'integer 340' in internal vertical mode The question is: what happens in that

[NTG-context] [solved] Re: fatal error: return code: 256

2021-01-02 Thread Saša Janiška
lities he has acquired from the modes of material nature; therefore no one can refrain from doing something, not even for a moment. ___ If your question is of interest to others as well, please add an entry to the Wiki! m

Re: [NTG-context] Installing VSCode extension?

2020-12-17 Thread Mikael Sundqvist
rely, > Gour > > -- > Everyone is forced to act helplessly according to the qualities > he has acquired from the modes of material nature; therefore no > one can refrain from doing something, not even for a moment. > > > > ___

Re: [NTG-context] Installing VSCode extension?

2020-12-17 Thread Saša Janiška
On Thu, 17 Dec 2020 07:51:34 +0100 Mikael Sundqvist wrote: > To set the color theme, click the blue button "Set color theme". So, this is the only thing which can be configured? Sincerely, Gour -- Everyone is forced to act helplessly according to the qualities he has acquired f

  1   2   3   4   5   6   7   8   >