Re: [NTG-context] expansion of section title

2023-06-27 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 27.06.2023 um 20:55: \defineregister[todos] % add a "todos" index entry with the current section title \define[1]\TODO{\todos{\structurevariable{title}}} \chapter{Something} \TODO{This is still empty!} % at the end of the book \chapter{work list}

Re: [NTG-context] Using the open source Cabin font

2023-06-16 Thread Wolfgang Schuster via ntg-context
Hi Gerben, can you try the static version of the fonts. When I tried the variable width version no files are listed but with the static version I had no problems to load the font. \definefontfamily [archimate] [ss] [Cabin] \setupbodyfont [archimate] \starttext {\bf The quick brown fox

Re: [NTG-context] setuphead page=right and blank even page.

2023-06-11 Thread Wolfgang Schuster via ntg-context
Alan Braslau schrieb am 11.06.2023 um 20:12: On 10/06/23 10/06/23, 12:42, Wolfgang Schuster via ntg-context wrote: Alan Braslau via ntg-context schrieb am 10.06.2023 um 12:28: Hello, \setuphead   [part,chapter,title]   [page=right] will start a part, chapter, or title on an odd page (right

Re: [NTG-context] setuphead page=right and blank even page.

2023-06-10 Thread Wolfgang Schuster via ntg-context
Alan Braslau via ntg-context schrieb am 10.06.2023 um 12:28: Hello, \setuphead   [part,chapter,title]   [page=right] will start a part, chapter, or title on an odd page (right), inserting a "blank" even page if necessary. How can I get this blank even page to be truely blank, that is with no

Re: [NTG-context] Page breaks with \defineparagraphs possible?

2023-06-04 Thread Wolfgang Schuster via ntg-context
Berend de Boer via ntg-context schrieb am 05.06.2023 um 00:02: Dear all, I've noticed that \defineparagraphs does not break across pages. That would be a huge page saver in my case. Do I have any options for page breaking across a set of parallel paragraphs? Initially I just had a

Re: [NTG-context] \getbuffer without extra whitespace?

2023-05-29 Thread Wolfgang Schuster via ntg-context
Gerben Wierda via ntg-context schrieb am 29.05.2023 um 16:19: If I do something like: \startbuffer[version]20230529a\stopbuffer Version: \getbuffer[version]-en I get whitespace between the content of the buffer and “-en” What is the proper LMTX way to do this? You need the \inlinebuffer

Re: [NTG-context] font size and style

2023-05-26 Thread Wolfgang Schuster via ntg-context
Hans van der Meer via ntg-context schrieb am 26.05.2023 um 21:38: Calling "\bf\tfa  TEXT" for example leaves the TEXT not in bold because \tfa does not respect the current style. As does \small, etc. Shown by looking at the meaning of for example \small: \small=protected

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

2023-05-22 Thread Wolfgang Schuster via ntg-context
Pawel Urbanski via ntg-context schrieb am 21.05.2023 um 22:27: Thanks Wolfgang! Just last few questions and I og wiht cows home... :) ** Does backspace or cutspace cover the inner space where bhe book binding is located? backspace sets the inner margin and cutspace the outer margin. **

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

2023-05-21 Thread Wolfgang Schuster via ntg-context
Pawel Urbanski via ntg-context schrieb am 21.05.2023 um 20:39: Hi, Using the 'backspace' key worked for setting up equal margins for my downloadable version. I created a mode for printing where I used the following values: \setuplayout[     rightmargin=52pt, leftmargin=52pt,    

Re: [NTG-context] How to really force figure to appear "here"?

2023-05-21 Thread Wolfgang Schuster via ntg-context
Joel via ntg-context schrieb am 21.05.2023 um 15:11: Here, I've created an example that does just that. I want the figure to appear immediately after the bold text. Even if a lot of whitespace is placed and the figure appears on the next page, that is fine, but I don't want the next group of

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

2023-05-21 Thread Wolfgang Schuster via ntg-context
Pawel Urbanski via ntg-context schrieb am 21.05.2023 um 13:56: Dear Friends, I played wih hte setup and read the posts on the list. Apparently the mechanism for setting different margins can be confusing at times. At least, it is for a beginner. I want to create 2 versions of my book:

Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Wolfgang Schuster via ntg-context
Jeroen via ntg-context schrieb am 19.05.2023 um 14:22: In order to get some inline framed verbatim text, I have in the past always used the following: \starttext This is an \inframed   [frame=on,   corner=00, radius=2mm,offset=-1.5pt]   {\ttx \bf example} \stoptext Since this has come-up

Re: [NTG-context] Probably simple: using a variable for \switchtobodyfont size

2023-05-19 Thread Wolfgang Schuster via ntg-context
Gerben Wierda via ntg-context schrieb am 19.05.2023 um 11:43: I want to use a variable for a font size so I can set it based on language (as some translated texts have widely different sizes) This fails: %=== \newdimen\relationsFontSize \relationsFontSize=8pt

Re: [NTG-context] Flushright problems with Japanese

2023-05-16 Thread Wolfgang Schuster via ntg-context
Gerben Wierda via ntg-context schrieb am 16.05.2023 um 09:54: That does not make a difference. Output of both lines \framed[width=\textwidth,frame=off,align=flushright]{作図:A bit of text} \framed[width=\textwidth,frame=off,align=flushright,broad]{作図:A bit of text}

Re: [NTG-context] Linebreaking in Japanese in ConTeXt

2023-04-30 Thread Wolfgang Schuster via ntg-context
Gerben Wierda via ntg-context schrieb am 30.04.2023 um 10:48: On 30 Apr 2023, at 10:04, Wolfgang Schuster via ntg-context mailto:ntg-context@ntg.nl>> wrote: begin example \definefontfamily [noto-jp] [rm] [Noto Serif CJK JP] \definefontfamily [noto-jp] [ss] [Noto Sans

Re: [NTG-context] Linebreaking in Japanese in ConTeXt

2023-04-30 Thread Wolfgang Schuster via ntg-context
Gerben Wierda via ntg-context schrieb am 30.04.2023 um 09:12: I am currently testing with a Japanese translation of something I originally created in English using the ConTeXt engine (LMTX). I run into the fact that Japanese has no use for whitespace, so most of the time TeX has no idea where

Re: [NTG-context] About \blackrule

2023-04-19 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 19.04.2023 um 17:01: Hi, The idea is to have a black square whose height is that of the number 3. Thanks Fabrice \setupbodyfont[12pt,pagella] \starttext  \blackrule[width=0.71em,height=0.71em]37254H

Re: [NTG-context] Userdata environment

2023-04-03 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 03.04.2023 um 21:42: Hi, I have already created a thread on the subject and Wolgang, Marco and Taco have replied but the userdata environment is not yet clear to me. I would like, if possible, to write a definition, a property or a theorem on the

Re: [NTG-context] Numbering of figures after defining a new float

2023-03-30 Thread Wolfgang Schuster via ntg-context
Willi Egger via ntg-context schrieb am 30.03.2023 um 17:09: Hello everybody, I am still working on the previously mentioned project, consisting out of different parts. There are about 25 chapters in each part and most of the chapters contain figures. When using the predefined figure

Re: [NTG-context] xtable - what might prevent splitting?

2023-03-28 Thread Wolfgang Schuster via ntg-context
jbf schrieb am 28.03.2023 um 10:43: Got it! But I would not have picked that up from reading http://www.pragma-ade.nl/general/manuals/xtables-mkiv.pdf, which was my guide for this particular exercise. It certainly says \placetable[here,split] but there is no mention of the \start...stop

Re: [NTG-context] xtable - what might prevent splitting?

2023-03-28 Thread Wolfgang Schuster via ntg-context
jbf via ntg-context schrieb am 28.03.2023 um 10:27: I cannot understand why my xtable setup does not split to the next page. As far as I can see I have it set up correctly... though obviously not! What might be wrong? Below is a sample. In the real case the number of rows would demand a

Re: [NTG-context] rotated headers in natural tables

2023-03-17 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 15.03.2023 um 19:15: Hi! In my table, I want the header texts to be 90˚ rotated and aligned to the bottom of their cell. I couldn’t find an option to do that. Tried \dontleavehmode or \hfill in my \RtH macro to no avail. Is it possible?

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Wolfgang Schuster via ntg-context
Keith McKay via ntg-context schrieb am 16.03.2023 um 17:59: Hi, I would like to position a combination of images where the centre of the combination coincides with the centre of the text area of a page. In the example below I have made the combination into a layer thinking that this would

Re: [NTG-context] Did dotless i disappear ?

2023-03-13 Thread Wolfgang Schuster via ntg-context
Otared Kavian via ntg-context schrieb am 13.03.2023 um 16:28: Hi Hans, I just noticed that the dotless i « \i » is not anymore recognized in ConTeXt. Of course one can nowadays find other ways to have it typeset, but in old documents which are included as inputs one has to correct this

Re: [NTG-context] [ TEXpage empty lines ]

2023-03-08 Thread Wolfgang Schuster via ntg-context
Pablo Rodriguez via ntg-context schrieb am 08.03.2023 um 20:01: On 3/8/23 17:37, Hans Hagen via ntg-context wrote: On 3/8/2023 5:29 PM, Pablo Rodriguez via ntg-context wrote: \null\\ I prefer \crlf because \null is well, can you guess? Good to know, but I thought that \\ was exactly

Re: [NTG-context] Problem with \setuplayout parameters being ignored

2023-03-05 Thread Wolfgang Schuster via ntg-context
Keith McKay schrieb am 05.03.2023 um 18:10: Thank you so much Wolfgang! I should have realised that. It's what I get for trying to write readable code. You can use the = to align keys and values, e.g. \setuplayout   [backspace=2.5cm,   margin=0.5cm,    width=16cm,   header=1cm,

Re: [NTG-context] Problem with \setuplayout parameters being ignored

2023-03-05 Thread Wolfgang Schuster via ntg-context
Keith McKay via ntg-context schrieb am 05.03.2023 um 17:54: Hi I'm having a strange problem with the \setuplayout command with the parameters being ignored. In the code below the only parameter which does get setup is the backspace parameter, the header, footer, width, and margin parameters

Re: [NTG-context] Makeup and page numbering increment

2023-02-15 Thread Wolfgang Schuster via ntg-context
Alex Leray via ntg-context schrieb am Mi., 15. Feb. 2023, 11:59: > Hi Mikael, > > here it is: > > %%% > \definemakeup [title] [doublesided=empty] > Add pagestate=start to the settings. Wolfgang ___ If your question

Re: [NTG-context] Trouble with latest...

2023-01-08 Thread Wolfgang Schuster via ntg-context
Thomas A. Schmitz via ntg-context schrieb am 08.01.2023 um 20:02: Hi all, I tried upgrading to the 2023 version, but generating the format fails with lots of these messages: ! Control sequence expected instead of undefined. \syst_basics_allocate_yes #1#2#3#4#5->\ifnum #1<#4\relax

Re: [NTG-context] numbering questions

2023-01-01 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 31.12.2022 um 18:23: A happy new year to everyone! I’m playing with some examples of section numbering. * Is there a setup to influence the order of number segments? I.e. can I have “section.chapter.part“ instead of “part.chapter.section”? You

Re: [NTG-context] Command line arguments on context project

2022-12-19 Thread Wolfgang Schuster via ntg-context
Aditya Mahajan via ntg-context schrieb am 19.12.2022 um 16:01: On Sun, 18 Dec 2022, Alan Braslau via ntg-context wrote: On Fri, 16 Dec 2022 16:14:33 + Jethro Djan via ntg-context wrote: 2. How do I get CoTeXt to recognise the ref.bib file when I run the components not the product?

Re: [NTG-context] Command line arguments on context project

2022-12-16 Thread Wolfgang Schuster via ntg-context
Jethro Djan via ntg-context schrieb am 16.12.2022 um 17:14: Dear list, I am using the project structure to typeset my thesis. This is how the directory looks like: chapters/chapter1.tex chapters/chapter2.tex … output/ env_thesis.tex prd_main.tex ref.bib I didn’t use the project. 1. How do

Re: [NTG-context] Project structure with nested subfolders and shared environments.

2022-12-16 Thread Wolfgang Schuster via ntg-context
Pawel Urbanski via ntg-context schrieb am 16.12.2022 um 10:09: Hi, To address the first question: \usepath[{Metadata}] % Is the actual code - I put spaces for readability reasons, which was a bad idea. When I compile a document I switch to the SubSubFolder for the document file is in

Re: [NTG-context] Non-standard font alternatives

2022-12-14 Thread Wolfgang Schuster via ntg-context
Matthew McCabe via ntg-context schrieb am 13.12.2022 um 09:15: Hi list, I'm looking to import a font with medium and light weights (in this case Roboto) and define font alternatives so one can quickly switch to light text just as one would switch to bold text. There is a stackexchange answer

Re: [NTG-context] Can I use \starthangaround?

2022-12-01 Thread Wolfgang Schuster via ntg-context
peter.hopcroft--- via ntg-context schrieb am 01.12.2022 um 04:15: \starthangaround is mentioned in these context garden wiki pages: https://wiki.contextgarden.net/CD_Booklet https://wiki.contextgarden.net/Unexpected_behavior When I try to use examples from these pages I get an error that

Re: [NTG-context] Why are my captions overlapping next text in combinations?

2022-11-26 Thread Wolfgang Schuster via ntg-context
Joel via ntg-context schrieb am 25.11.2022 um 23:25: I have some combinations used throughout my document like this: \starttext \startcombination[4*2]             {%  \framed[width=.25\textwidth, height=.25\textwidth]{}%  }{%                 \strut word \\ \thinrule\hairline\hairline%          

Re: [NTG-context] \setupmathematics oddity

2022-11-20 Thread Wolfgang Schuster via ntg-context
Alan Bowen via ntg-context schrieb am 18.11.2022 um 23:48: The following \setupmathematics[autopunctuation={all,semicolon}] %\setupmathematics[autopunctuation={all, semicolon}] %\setupmathematics[autopunctuation={all,semicolon,colon}] \starttext \startformula 0,0;2,0,35,17,40,41\textdegree{}

Re: [NTG-context] Do environment files add implicit \starttext ... \stopttext

2022-11-18 Thread Wolfgang Schuster via ntg-context
Pablo Rodriguez via ntg-context schrieb am 15.11.2022 um 16:06: On 11/15/22 13:22, Denis Maier via ntg-context wrote: Hi, if I process an XML buffer, I’ve noticed I need to wrap the \xmlprocessbuffer in a \starttext ... \stoptext pair. [] However, if I have the XML and the setups in dedicated

Re: [NTG-context] Do environment files add implicit \starttext ... \stopttext

2022-11-16 Thread Wolfgang Schuster via ntg-context
Denis Maier via ntg-context schrieb am 15.11.2022 um 13:22: Hi, if I process an XML buffer, I’ve noticed I need to wrap the \xmlprocessbuffer in a \starttext ... \stoptext pair. [...] However, if I have the XML and the setups in dedicated files, there seems to be no need for \starttext

Re: [NTG-context] \definemeasure / \dimexpr

2022-11-13 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 13.11.2022 um 11:37: One problem left with dimensions that I can’t reproduce in a minimal example: I want to calculate the spine width of the cover from the number of content pages: \useexternalfigure[CONTENT][book.pdf]

Re: [NTG-context] Defineenumeration head offset

2022-11-07 Thread Wolfgang Schuster via ntg-context
Alexandre Christe via ntg-context schrieb am 07.11.2022 um 21:04: Dear list, Is there a trick to not apply the leftoffset to the header of a defineenumeration? MWE: [...] You can use \offset to shift the enumeration title. \defineframed   [ExampleHeadFrame]   [location=low,   

Re: [NTG-context] \jobname and \doifelse

2022-11-05 Thread Wolfgang Schuster via ntg-context
Pablo Rodriguez via ntg-context schrieb am 05.11.2022 um 16:30: Dear list, using current latest (2022.10.22 11:23), I have the following sample: \starttext \doifelse{\jobname}{a} {yes}{no} \jobname \startluacode if tex.jobname == "a" then context("yes") else

Re: [NTG-context] Adding support for German language to the Words conversion

2022-10-31 Thread Wolfgang Schuster via ntg-context
Hi Marcus, do you have an update on the support for german verbose numbers? Wolfgang Hans Hagen via ntg-context schrieb am 10.10.2022 um 23:44: On 10/10/2022 9:21 PM, Marcus Christopher Ludl via ntg-context wrote: Hello all, this is my first contribution to this mailing list.  Recently,

Re: [NTG-context] How to make a row of text have vertical centering in tabulate environment?

2022-10-25 Thread Wolfgang Schuster via ntg-context
Joel via ntg-context schrieb am 25.10.2022 um 02:35: I have a simple tabulate environment like this: \starttext \starttabulate[|p(.45\textwidth)|cp(.1\textwidth)|p(.45\textwidth)|]             \NR                 \HL                 \NC Cause    \NC \NC Effect    \NC\NR          

Re: [NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Wolfgang Schuster via ntg-context
Oliver Sieber via ntg-context schrieb am 19.10.2022 um 11:31: Dear ConTeXt Users I am relatively new to context and I am suffering with a problem with the framed environment. I want to use a framed textbox for Definitions in my script. I also want to use floating figures. But this does not

Re: [NTG-context] \quotation, protrusion and linebreaking

2022-10-12 Thread Wolfgang Schuster via ntg-context
Alan Braslau schrieb am 13.10.2022 um 00:43: On 12/10/22 12/10/22, 14:25, Wolfgang Schuster via ntg-context wrote: Denis Maier via ntg-context schrieb am 12.10.2022 um 21:17: Instead of what? By default the symbols are placed with a box because you aren't limited to normal quotation marks

Re: [NTG-context] \quotation, protrusion and linebreaking

2022-10-12 Thread Wolfgang Schuster via ntg-context
Denis Maier via ntg-context schrieb am 12.10.2022 um 21:17: Instead of what? By default the symbols are placed with a box because you aren't limited to normal quotation marks. \setupexternalfigure [location=default] \setupdelimitedtext   [quotation]   [

Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-10 Thread Wolfgang Schuster via ntg-context
Max Chernoff via ntg-context schrieb am 11.10.2022 um 00:57: Hi Joel, On Mon, 2022-10-10 at 12:46 +, Joel wrote: Hello Max, It is preferred if the solution is just three lines per paragraph, rather than some content parallel to the text A Lua callback solution: [...] An \everypar

Re: [NTG-context] startTEXpage on A4

2022-10-09 Thread Wolfgang Schuster via ntg-context
Leah Neukirchen schrieb am 09.10.2022 um 15:52: Wolfgang Schuster via ntg-context writes: Leah Neukirchen via ntg-context schrieb am 09.10.2022 um 15:19: Hi, is there a way to have something like \setuppapersize[A5][A4] but have the "inner paper size" be a compute

Re: [NTG-context] startTEXpage on A4

2022-10-09 Thread Wolfgang Schuster via ntg-context
Leah Neukirchen via ntg-context schrieb am 09.10.2022 um 15:19: Hi, is there a way to have something like \setuppapersize[A5][A4] but have the "inner paper size" be a computed fit like in \startTEXpage? Or, alternatively, is there is a way to print crop marks around an environment like

Re: [NTG-context] Example from Practex Journal

2022-10-08 Thread Wolfgang Schuster via ntg-context
Jeroen via ntg-context schrieb am 08.10.2022 um 13:17: Hello, Could anybody help me out with the setup and a MWE to get a document exactly as the one from Steve Peter in the Practex Journal in 2005 as in https://tug.org/pracjourn/2005-1/peter/peter.pdf The articles used a now out of date

Re: [NTG-context] Suboptimal German hyphenation

2022-09-28 Thread Wolfgang Schuster via ntg-context
Max Chernoff via ntg-context schrieb am 29.09.2022 um 02:17: Hi Leah, I was typesetting some German text on a narrow page when I discovered the justification wasn't as good as expected. I think I tracked this down to differences in hyphenation points, namely, ConTeXt has fewer: \starttext

Re: [NTG-context] Lato typescripts (MKIV/LMTX)

2022-09-17 Thread Wolfgang Schuster via ntg-context
Adam Reviczky via ntg-context schrieb am 17.09.2022 um 18:14: Hi, With the latest upload (2022-09-16 14:41) I wanted to compare some older projects that I've used with MKIV to the LMTX 2.10.00. In one of which I am using the Lato 2.0 font (https://packages.debian.org/sid/fonts-lato). With

Re: [NTG-context] Typearea module fails with “Missing number”

2022-09-16 Thread Wolfgang Schuster via ntg-context
Peter Münster via ntg-context schrieb am 31.08.2022 um 23:16: On Mon, Aug 29 2022, Wolfgang Schuster via ntg-context wrote: remove one pair of curly braces Hi Wolfgang, Thanks. Here a new version: http://pmrb.free.fr/tmp/t-typearea.zip Even though the module works now with LMTX it needs

Re: [NTG-context] searching in the source browser

2022-09-05 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 05.09.2022 um 20:28: Hi, this is probably for Taco: Is there a possibility in the source browser to search for macros (\something) or anything containing dots (logs.errors)? Because neither “simple” nor with Lua patterns I get any results. E.g.

Re: [NTG-context] Typearea module fails with “Missing number”

2022-08-29 Thread Wolfgang Schuster via ntg-context
Marco Patzer via ntg-context schrieb am 29.08.2022 um 09:49: On Mon, 29 Aug 2022 09:30:34 +0200 Marco Patzer via ntg-context wrote: The typearea module fails on LMTX (runs ok with MkIV): tex error > tex error on line 89 in file

Re: [NTG-context] Parallel texts: verse with blanks between stanzas via tabulate

2022-08-27 Thread Wolfgang Schuster via ntg-context
Denis Maier via ntg-context schrieb am 27.08.2022 um 09:17: Thanks. I'll try that. But, iirc, these had some other drawbacks I'll check if it works for my use case. Is there a way to have blanks in the tabulate? \startlines[inbetween={\dontleavehmode\crlf}] ... Wolfgang

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread Wolfgang Schuster via ntg-context
黄复雄 via ntg-context schrieb am 21.08.2022 um 10:24: Currently, the ruby module does not seem to support cjk fonts? I have a preliminary implementation of furigana(pinyin in Chinese) as: ```lmtx % define the pinyin font \definefont[pinyinfont][name:ahpinying*default at 9pt] % define the pinyin

Re: [NTG-context] Color property of \setupurl

2022-08-20 Thread Wolfgang Schuster via ntg-context
Max Chernoff via ntg-context schrieb am 20.08.2022 um 08:41: Hi, Could someone clarify me in what kind of context the color of a hyperlink is controlled by the "color" property of \setupurl? This code: \show\setupurl \showthe\everysetupurl produces: > \setupurl=frozen

Re: [NTG-context] Bug (?) with \placefigure[right]

2022-08-16 Thread Wolfgang Schuster via ntg-context
Bruce Horrocks via ntg-context schrieb am 16.08.2022 um 18:11: Things start to go awry after about 5 or 6 iterations, 12 shows it up clearly with three or so nearly blank (except for the subject) pages produced. \setuppapersize [A5] [A5] \starttext \dorecurse{12}{ \subject{Some heading}

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-16 Thread Wolfgang Schuster via ntg-context
amano.kenji schrieb am 16.08.2022 um 13:33: At least, furigana seems covered. How do I know which document to consult? There are many PDF files that come with ConTeXt. You can start with the following thread from 2020: https://mailman.ntg.nl/pipermail/ntg-context/2020/098389.html Useful

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-15 Thread Wolfgang Schuster via ntg-context
amano.kenji via ntg-context schrieb am 15.08.2022 um 14:00: Is there any documentation about \ruby? You can see all available parameters in setup-en.pdf, the example below shows a few of them: begin example \setupinterlinespace[line=4ex] \setuptype[style=\ttx] \starttext \start

Re: [NTG-context] Changing the caption on a split table

2022-08-13 Thread Wolfgang Schuster via ntg-context
Bruce Horrocks via ntg-context schrieb am 13.08.2022 um 10:35: On 3 Aug 2022, at 00:26, Bruce Horrocks via ntg-context wrote: I have a 5-page table placed using \setupcaption [table] [way=bytext,prefixsegments=none] \placetable[split]{My long table}{...} The caption for the first table page

Re: [NTG-context] image with rounded corners

2022-08-12 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 12.08.2022 um 10:57: Hi, can ConTeXt make rounded image corners? Both of my approaches don’t work: \externalfigure[mill][   width=3cm,   frame=on,   corner=round,radius=1cm,   backgroundcorner=round,backgroundradius=1cm, ] \defineoverlay[Mill][{%

Re: [NTG-context] How to display these characters

2022-08-09 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 09.08.2022 um 16:51: Am 08.08.22 um 08:01 schrieb Alan Braslau: On 05/08/22 05/08/22, 12:13, Henning Hraban Ramm via ntg-context wrote: I recently had the same problem and was wondering if there isn’t a Metapost module for directory trees?

Re: [NTG-context] How to display these characters

2022-08-05 Thread Wolfgang Schuster via ntg-context
juh+ntg-context--- via ntg-context schrieb am 05.08.2022 um 19:04: Dear all, I have this: \starttext \starttyping foo └── bar     ├── baz     │   └── index.html     └── index.html \stoptyping \stoptext The source code is generated with the linux command "tree". The special characters

Re: [NTG-context] String substitution using regular expressions and backreferences

2022-08-01 Thread Wolfgang Schuster via ntg-context
Thangalin via ntg-context schrieb am 01.08.2022 um 21:58: Hi list, I'm looking to perform text replacements. Please don't omit important information, on TeX SE you mentioned you input is XML which means a lot more can be done than your simple TeX based example demonstrates. Wolfgang

Re: [NTG-context] Set up external figure for particular image type

2022-07-18 Thread Wolfgang Schuster via ntg-context
Thangalin via ntg-context schrieb am 18.07.2022 um 19:10: Thank you, Wolfgang. That looks promising. SVG files are converted using MetaPost. I thought the following would work: svg=>{\externalfigure[#1][svg][conversion=mp]} You can probably remove the second argument ([svg]) which was

Re: [NTG-context] Sudoku module

2022-07-18 Thread Wolfgang Schuster via ntg-context
Otared Kavian via ntg-context schrieb am 18.07.2022 um 18:53: Hi Wolfgang, Thank you for your attention and the explanation regarding the « hash option » and why the sudoku module written by Jairo does not work. However I was reporting the issue when I tried to typeset the example file with

Re: [NTG-context] How to setup a headertext in a doublesided document in a cld?

2022-07-18 Thread Wolfgang Schuster via ntg-context
Willi Egger via ntg-context schrieb am 16.07.2022 um 17:03: Hello! I tried to setup a headertext in a context-lua-document. — No problem for the singlesided version, however hoe to pass the info for a double sided version? Unfortunately the cld-mkiv manual contains an example for a singlesided

Re: [NTG-context] Sudoku module

2022-07-18 Thread Wolfgang Schuster via ntg-context
Otared Kavian via ntg-context schrieb am 18.07.2022 um 17:00: Hi Jairo, You sent a message last year about your Sudoku module, and today, out of curiosity, I wanted to test it. Unfortunately it stops with an error message at line 76 of the file t-sudoku.mkiv, where you have:

Re: [NTG-context] Set up external figure for particular image type

2022-07-12 Thread Wolfgang Schuster via ntg-context
Thangalin via ntg-context schrieb am 12.07.2022 um 20:11: Thank you for the suggestion Hraban. The source comes from Markdown, which is converted to XML, then typeset using ConTeXt. There's no Markdown-specific mechanism to relate images to a particular external figure definition,

Re: [NTG-context] Getting started with Japanese

2022-07-10 Thread Wolfgang Schuster via ntg-context
Gerben Wierda via ntg-context schrieb am 09.07.2022 um 13:58: I’d like to experiment a bit with typesetting Japanese in ConTeXt (LMTX), to see if it is doable. I tried looking for Japanese on ConTeXtgarden, but did not find anything. Can someone point me to instructions to get started with

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

2022-07-08 Thread Wolfgang Schuster via ntg-context
Gerben Wierda via ntg-context schrieb am 08.07.2022 um 12:21: On 8 Jul 2022, at 11:57, Taco Hoekwater wrote: On 8 Jul 2022, at 11:42, Gerben Wierda via ntg-context wrote: I have this minimal example: \startmode[EL] \setuplanguage[el][patterns={el}]\mainlanguage[el] That (‘el’) is a

Re: [NTG-context] dorecurse within combination

2022-07-07 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 07.07.2022 um 21:25: Am 07.07.22 um 20:52 schrieb Henning Hraban Ramm via ntg-context: How can I do this? Sorry for the noise, I solved it with Lua. The cld manual even contains a combinations example. The Lua method is also simpler than a TeX

Re: [NTG-context] Bug in counter

2022-07-04 Thread Wolfgang Schuster via ntg-context
Johann Birnick via ntg-context schrieb am 04.07.2022 um 18:29: Hey there, please consider: \starttext \defineenumeration[definition][text=Definition, alternative=serried] \setupnumber[definition][way=bysection, numbersection=yes]

Re: [NTG-context] return a labeltext with color...

2022-06-24 Thread Wolfgang Schuster via ntg-context
Willi Egger via ntg-context schrieb am 24.06.2022 um 16:34: Hi all, Sorry for bothering you again. I would like that lua is returning a colored string, which is a label-text. The following does not work, the labeltext remains black, there is no error though: return

Re: [NTG-context] Detailed citation of reference

2022-06-24 Thread Wolfgang Schuster via ntg-context
Johann Birnick via ntg-context schrieb am 24.06.2022 um 11:59: Thanks! However, if I type \cite[righttext={, section 2.1}] is doesn't work anymore. Any ideas? What happens with     \cite[righttext={{, section 2.1}}] or     \cite[righttext={\textcomma\ section 2.1}] Wolfgang

Re: [NTG-context] Failing \doifemptyelse

2022-06-23 Thread Wolfgang Schuster via ntg-context
Hans Hagen via ntg-context schrieb am 23.06.2022 um 23:00: On 6/23/2022 9:16 PM, Willi Egger via ntg-context wrote: Good evening gurus! Why is the minimal example failing? i.e. executing always the else-branch? \setuppapersize[A6][A6] \setvariables [Test] [Number=] \starttext

Re: [NTG-context] Failing \doifemptyelse

2022-06-23 Thread Wolfgang Schuster via ntg-context
Willi Egger via ntg-context schrieb am 23.06.2022 um 21:16: Good evening gurus! Why is the minimal example failing? i.e. executing always the else-branch? \doifempty(else) doesn't expand the argument and any argument counts as not empty. To satisfy the command you can expand the first

Re: [NTG-context] \setuplist only for bodypart

2022-06-17 Thread Wolfgang Schuster via ntg-context
Pablo Rodriguez via ntg-context schrieb am 17.06.2022 um 16:07: On 6/16/22 22:36, Henning Hraban Ramm via ntg-context wrote: Am 16.06.22 um 21:19 schrieb Pablo Rodriguez via ntg-context: \startsectionblockenvironment[bodypart] ... \stopsectionblockenvironment This should work

Re: [NTG-context] How to print a random whole number between x and y?

2022-06-17 Thread Wolfgang Schuster via ntg-context
Joel via ntg-context schrieb am 17.06.2022 um 16:10: I was using this code for a long time in my document. I have a PDF with 10 pages, and this would randomly display one of those pages:    \ctxlua{math.randomseed( os.time() )}         \getrandomnumber \n {1} {10}      

Re: [NTG-context] Problem loading font in LMTX

2022-06-11 Thread Wolfgang Schuster via ntg-context
Stefan Nedeljkovic via ntg-context schrieb am 11.06.2022 um 10:05: Dear list, I have the following file: \starttypescript [lidia] \definetypeface[lidia][rm][serif][lidiaweb][cpsp=yes] \stoptypescript \setupbodyfont[lidia,36pt] \starttext

Re: [NTG-context] Two minor questions

2022-06-07 Thread Wolfgang Schuster via ntg-context
Stefan Nedeljkovic schrieb am 07.06.2022 um 07:25: Thank you very much Wolfgang! But, there is still something weird going on with the font. I updated the files on Drive. Please see line 19, the last word "and". It is clearly out of alignment with the gid. I tested the alignment in MP and it

Re: [NTG-context] Two minor questions

2022-06-06 Thread Wolfgang Schuster via ntg-context
Stefan Nedeljkovic via ntg-context schrieb am 06.06.2022 um 22:07: Wolfgang, Aditya, thank you both very much! I have 2 more questions: Observe the files here: https://drive.google.com/drive/folders/18ve5_F-BKOa-TxCWmD02mhPqNXQvNyWK?usp=sharing 1. I'd like to shift the text area down so

Re: [NTG-context] Two minor questions

2022-06-06 Thread Wolfgang Schuster via ntg-context
Stefan Nedeljkovic via ntg-context schrieb am 06.06.2022 um 07:55: Dear list, I have 2 small questions: 1. In \setuplayout if I try to set topspace=5\measured{base} + \dimexpr2bp I get an error. How should I add these 2bp? \setuplayout   [topspace=\dimexpr 5\measured{base} + 2bp\relax] 2.

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
Gerben Wierda via ntg-context schrieb am 06.06.2022 um 13:34: I have this: \definemode[EN,FR,RU,PT][keep] \doifmodeelse{EN} {     \disablemode[FR]     \disablemode[RU]   \disablemode[PT]   }   { \doifmodeelse{FR}     {       \disablemode[EN]       \disablemode[RU]       \disablemode[PT]     }  

Re: [NTG-context] Improving pandoc's ConTeXt output

2022-06-05 Thread Wolfgang Schuster via ntg-context
Hans Hagen via ntg-context schrieb am 05.06.2022 um 12:01: On 6/5/2022 9:07 AM, Albert Krewinkel via ntg-context wrote: Hi all, I'm currently trying to improve the ConTeXt output generated by pandoc, the document convert. There are two questions that we haven't decided on, and I'd be grateful

Re: [NTG-context] How do I turn off indentation inside a \framed with align=?

2022-06-03 Thread Wolfgang Schuster via ntg-context
Gerben Wierda via ntg-context schrieb am 03.06.2022 um 00:57: On 19 May 2022, at 18:22, Wolfgang Schuster via ntg-context mailto:ntg-context@ntg.nl>> wrote: You have to provide a minimal example, in the following the example the text within the frame isn't indented. I cannot always p

Re: [NTG-context] ugly bug

2022-06-02 Thread Wolfgang Schuster via ntg-context
Steffen Wolfrum schrieb am 01.06.2022 um 14:03: Hi, several times I got problems with my publishing house when they noticed that the headerlines jump up and down on pages that end/begin with qoutes (i.e. smaller interlineskip), see example below: on page 1 the blackrule is about 1mm higher

Re: [NTG-context] Align headings on the left

2022-05-30 Thread Wolfgang Schuster via ntg-context
Jürgen Althaus via ntg-context schrieb am 30.05.2022 um 18:37: Hello all, my first post in this mailing list and I hope you can help me. I am looking for a setting that sets the headings completely left-aligned. Have unfortunately found nothing suitable in the online search. Maybe I

Re: [NTG-context] How to include a file with table data within a table?

2022-05-29 Thread Wolfgang Schuster via ntg-context
I sent a fix to the dev list. Wolfgang Joel via ntg-context schrieb am 29.05.2022 um 18:34: After a recent update to ConTeXt, the code no longer seems to allow me to \input a file within a table: \starttext \starttabulate[|p(.3\textwidth)|p(.7\textwidth)|]  \HL         \NC {\bf Term} \NC

Re: [NTG-context] Help needed with slide grid layout

2022-05-25 Thread Wolfgang Schuster via ntg-context
Stefan Nedeljkovic via ntg-context schrieb am 25.05.2022 um 13:35: Dear list, This is a follow-up question on my previous question about Jean-Luc Doumont and his grid layouts. This time I have concrete questions. I reverse engineered his slide (slide_grid_overlay.pdf). All his units are

Re: [NTG-context] item enumeration

2022-05-25 Thread Wolfgang Schuster via ntg-context
Jorge Manuel via ntg-context schrieb am 25.05.2022 um 12:22: Hi to All A have this piece of code that works in old ConText versions but with new versions (current version: 2022.04.19 19:53) don’t. \def\legalconversion#1{  \dorecurse{\numexpr\currentitemlevel-1}{%  

Re: [NTG-context] split TABLE cells

2022-05-19 Thread Wolfgang Schuster via ntg-context
Steffen Wolfrum via ntg-context schrieb am 19.05.2022 um 12:44: do you have a MWE? the example from https://wiki.contextgarden.net/Tabulate gives an empty page: [...] You need \starttext and \stoptext in your document. The examples in the wiki don't need both commands because they are added

Re: [NTG-context] How do I turn off indentation inside a \framed with align=?

2022-05-19 Thread Wolfgang Schuster via ntg-context
Gerben Wierda via ntg-context schrieb am 19.05.2022 um 17:27: I have these kinds of statements \framed[frame=off,align=flushleft,width=\textwidth]{\phrasetext{metamodelexplanation}} but the text inside the frame is typeset with indentation. I tried \setupindenting both before and after

Re: [NTG-context] Table breaks incorrectly between pages

2022-05-15 Thread Wolfgang Schuster via ntg-context
Stefan Nedeljkovic via ntg-context schrieb am 13.05.2022 um 09:00: Dear list I need your help with a table that seems to completely screw up the page when it spans across multiple pages. I'm attaching all the necessary files. Use the TABLEnested environment in your document header which was

[NTG-context] Reference prefix for sections is ignored

2022-05-12 Thread Wolfgang Schuster via ntg-context
Hi, the automatic reference prefix for section etc. with the setup     \setuphead[chapter][referenceprefix=+] doesn't work anymore (broken since a while). The following patch for strc-sec.mkxl fixes the missing prefix: begin fix \def\strc_sectioning_set_reference_prefix  

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

2022-05-11 Thread Wolfgang Schuster via ntg-context
Pablo Rodriguez via ntg-context schrieb am 11.05.2022 um 17:57: AfaIk, there is not "--language" option from the command line. (This also makes sense to me.) \doifdocumentargument {language}   {\mainlanguage[\getdocumentargument{language}]} \starttext \currentmainlanguage \stoptext Wolfgang

Re: [NTG-context] Simple question

2022-05-10 Thread Wolfgang Schuster via ntg-context
Gerben Wierda via ntg-context schrieb am 10.05.2022 um 00:15: What is the easiest way to have a ‘database’ of translations for strings and maybe links? I now have 4 languages and 2 versions so 8 documents, but I’d like to have all translatable strings together so I can maintain these in a

  1   2   3   >