Re: [NTG-context] Placing pagenumer with coordinates (layers)

2021-09-21 Thread Wolfgang Schuster via ntg-context
Huseyin Özoguz via ntg-context schrieb am 21.09.2021 um 12:24: Hello dear context-enthusiasts, I want to place the pagenumber on a double-sided project with coordinates. I tried the layer-mechanism: \setuppagenumbering[location=] \definelayer   [pagenumber]   [width=\paperwidth,   

Re: [NTG-context] tabulate with lp columns

2021-09-19 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 13:14: Am 19.09.2021 um 13:01 schrieb Wolfgang Schuster via ntg-context : Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 12:44: There are some problems in the following MWEs. First example looks the same with MkIV

Re: [NTG-context] tabulate with lp columns

2021-09-19 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 12:44: There are some problems in the following MWEs. First example looks the same with MkIV and LMTX, second uses \NS that is only in LMTX. The first column is justified even if it’s defined as left aligned; this happens also with

Re: [NTG-context] Roman PDF labels

2021-09-14 Thread Wolfgang Schuster via ntg-context
Pablo Rodriguez via ntg-context schrieb am 14.09.2021 um 14:38: On 9/14/21 1:58 PM, Sylvain Hubert via ntg-context wrote: Dear List, Do we have something like "\pagenumbering{roman}" in latex, which sets the pdf labels (page numbers for pdf viewers, not the ones rendered in the footer) to

Re: [NTG-context] Setting up the double pages of part beginnings

2021-09-13 Thread Wolfgang Schuster via ntg-context
Bruce Horrocks via ntg-context schrieb am 13.09.2021 um 22:18: In the absence of any other replies I think... (a) your example is a good one. The only improvement would be to turn it into a 2 across, 3 or 4 down set of mini pages imposed onto a larger one so that it can be rendered on the

Re: [NTG-context] Headline with numbers in margin doubleside layout

2021-09-13 Thread Wolfgang Schuster via ntg-context
juh via ntg-context schrieb am 13.09.2021 um 13:07: Hi all, I have a doubleside layout with a big outer margin. When I set alternative=margin in setuphead the chapter numbers appear in the left margin which is the outer margin on left pages, but the inner margin on right pages. While this

Re: [NTG-context] Image cropped

2021-09-12 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 12.09.2021 um 12:10: Hi Wolfgang, That's what I understood but the problem is that if I reduce the margin, the logo is too small in my opinion : what would you do ? Place the logo with a layer or shift is inwards. \setuplayout   [width=middle,   

Re: [NTG-context] ConTeXt inserts additional dots for Iosevka font

2021-09-12 Thread Wolfgang Schuster via ntg-context
Marcel Fabian Krüger via ntg-context schrieb am 12.09.2021 um 01:12: Hi, On Sun, Sep 12, 2021 at 12:01:08AM +0200, Hans Hagen wrote: \definefontfeature [default:test] [default] [cv36=2,cv26=6] What is the number supposed to indicate ? It is not an alternate,

Re: [NTG-context] Image cropped

2021-09-11 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 11.09.2021 um 17:52: Hi Wolfgang, The red frame is the print area ? The *green* frame are the margins of the A4 paper which is positioned in the middle of the A3 paper. The larger paper allows you to the see the part of the margins which are

Re: [NTG-context] Image cropped

2021-09-11 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 11.09.2021 um 16:32: Hello, I like to put a logo on my statements but I noticed that the image is cropped on the edge. I tried to change the printer's print settings but was unsuccessful. Add these settings to your example and you see the problem.

Re: [NTG-context] Setting up the double pages of part beginnings

2021-09-11 Thread Wolfgang Schuster via ntg-context
Christian Dekant via ntg-context schrieb am 10.09.2021 um 19:25: Dear List, I am trying to set up double pages at the beginning of a new part in such a way that: - on an odd/right-hand page there will be number and the title typeset in some fashion, and - on the even/left-hand page there

Re: [NTG-context] Equation alignment

2021-09-07 Thread Wolfgang Schuster via ntg-context
Sylvain Hubert via ntg-context schrieb am 07.09.2021 um 14:29: Dear List, The following example of equation alignment copied from An Excursion is not reproducible under my context 2021.03.05 shipped with texlive 2021: \starttext \startformula \eqalign{ ax^2+bx+c &= 0 \cr x &= \frac{-b \pm

Re: [NTG-context] features of fallback font

2021-09-07 Thread Wolfgang Schuster via ntg-context
Sylvain Hubert via ntg-context schrieb am 07.09.2021 um 13:32: Dear List, I'm using the chinese simsun font that has no builtin SerifBold. I'm trying to define a fakebold feature for it, but the following code does not work: \definefontfeature[fakebold][effect={width=0.3, delta=0}]

Re: [NTG-context] Remove vertical space around typing

2021-09-07 Thread Wolfgang Schuster via ntg-context
Sylvain Hubert schrieb am 07.09.2021 um 13:38: Thanks Wolfgang, this solves my problem. But now I'm wondering why \starttyping[before=,after=] cannot do the same job? Works here. \starttext Remove space below \starttyping[before=,after=] some code \stoptyping \stoptext Wolfgang

Re: [NTG-context] Remove vertical space around typing

2021-09-07 Thread Wolfgang Schuster via ntg-context
Sylvain Hubert via ntg-context schrieb am 07.09.2021 um 11:49: Dear List, How should we remove the vertical space above and below the following typing? \starttext Remove space below \starttyping some code \stoptyping \stoptext \setuptyping [before=,after=] Wolfgang

Re: [NTG-context] no looseness in LMTX?

2021-09-07 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 07.09.2021 um 11:49: In my magazine and book projects, I sometimes fix pagebreaking by stretching paragraphs with \looseness=1 Unfortunately this works _in my project_ only with MkIV, i.e. \looseness has no effect with LMTX. I tried different

Re: [NTG-context] line numbering restarts every page

2021-09-01 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 01.09.2021 um 18:01: Hi again, if a "typing" environment with line numbering goes over a page break, the line numbers start at 1 again on the new page. It doesn’t happen with \start/stoplinenumbering. MWE: \setuptyping[ numbering=file, ]

Re: [NTG-context] Test for displaying a header

2021-08-28 Thread Wolfgang Schuster via ntg-context
Fabrice, there is difference between putting something on the first page regardless of the number of pages in your document or do something when your document contains only a single or more pages. When you have a header or title which is always placed on the first page (but not on the

Re: [NTG-context] Test for displaying a header

2021-08-27 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur schrieb am 27.08.2021 um 10:04: Hi Wolfgang, This may not be nicest but seems to work Fabrice %% \definelayout [1]   [header=10mm] \setuplayout   [header=0pt,  height=middle] \setuppagenumbering [alternative=doublesided,location=] \setupbackgrounds

Re: [NTG-context] Test for displaying a header

2021-08-26 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 26.08.2021 um 19:06: Hi, Using this (almost what I'm trying to do) without success [...] \startsetups[header] \doifelse{\totalnumberofpages}{1} {\setupheadertexts[\setups{header}]}     {} \stopsetups This stores the page check in the setups

Re: [NTG-context] Test for displaying a header

2021-08-26 Thread Wolfgang Schuster via ntg-context
Taco Hoekwater via ntg-context schrieb am 26.08.2021 um 16:34: Hi, On 26 Aug 2021, at 16:07, Fabrice Couvreur via ntg-context wrote: Hi, I know I asked the question a few years ago, but I don't remember ! The idea is to test whether the document contains only one page or not. Perhaps not

Re: [NTG-context] layer disappears when showframe is set

2021-08-26 Thread Wolfgang Schuster via ntg-context
juh via ntg-context schrieb am 26.08.2021 um 14:46: Hi, this sample shows that the image in a layer in header disappears if showframe is set. \setupexternalfigures[location=default] \definelayer[Cow] [x=0, y=0] \setlayer[Cow] [x=10em, y=0mm] {\externalfigure[cow][height=\lineheight]}

Re: [NTG-context] Why does HerosBold give bold italic?

2021-08-25 Thread Wolfgang Schuster via ntg-context
Bruce Horrocks via ntg-context schrieb am 25.08.2021 um 23:15: On 25 Aug 2021, at 13:56, Wolfgang Schuster wrote: Bruce Horrocks via ntg-context schrieb am 25.08.2021 um 14:28: Why does HerosBold give bold italic instead of just bold? \definefont[TestA][name:Heros at 14pt] \definefont[TestB

Re: [NTG-context] Why does HerosBold give bold italic?

2021-08-25 Thread Wolfgang Schuster via ntg-context
Bruce Horrocks via ntg-context schrieb am 25.08.2021 um 14:28: Why does HerosBold give bold italic instead of just bold? \definefont[TestA][name:Heros at 14pt] \definefont[TestB][name:HerosBold at 14pt] \definefont[TestC][name:HerosItalic at 14pt] \starttext \TestA {The quick brown} \TestB {fox

Re: [NTG-context] TOC labeltext and no partlabel

2021-08-25 Thread Wolfgang Schuster via ntg-context
Adam Reviczky via ntg-context schrieb am 25.08.2021 um 02:02: Hi, I have asked this question before, but now I cannot get it working again. https://ntg-context.ntg.narkive.com/lvvdNOQz/the-appendices-envrionment-and-title-in-toc I want to set partlabels in my TOC but not in the document

Re: [NTG-context] numbered exercises

2021-08-24 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 24.08.2021 um 21:26: Am 24.08.2021 um 21:17 schrieb Wolfgang Schuster via ntg-context : Henning Hraban Ramm via ntg-context schrieb am 24.08.2021 um 20:31: Hi, I’m typesetting a textbook that contains numbered and indented exercises. They must

Re: [NTG-context] numbered exercises

2021-08-24 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 24.08.2021 um 20:31: Hi, I’m typesetting a textbook that contains numbered and indented exercises. They must not float. Which structure should I use for them? There must be an easy answer, but I draw a blank. Use an enumeration. Wolfgang

Re: [NTG-context] Place a logo at the bottom of the page with a layer

2021-08-24 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 24.08.2021 um 19:32: Hi, I want to insert a logo at the bottom of the page on the right on the first page, on the left on the second, on the right on the third ... With the key repeat=yes, the logo is always at the bottom right \useMPlibrary[dum]

Re: [NTG-context] lmtx update/t-vim (again)

2021-08-22 Thread Wolfgang Schuster via ntg-context
Benjamin Buchmuller via ntg-context schrieb am 23.08.2021 um 00:10: Hi, Thanks for having had a look into the t-vim. At least the document compiles fine (I get a PDF), although multiple complaints from the lua end when I use "$" or "#" in my source, for example #!/usr/bin/bash etc.

Re: [NTG-context] Adjustment for header and footer

2021-08-22 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 22.08.2021 um 13:13: Hi, In the file below (not minimal, sorry!) I am using commands from Wolfgang in different threads. We can see that the top frame overflows into the text: how to correct this ? I would also like the top and bottom stroke to be

Re: [NTG-context] file to buffer

2021-08-17 Thread Wolfgang Schuster via ntg-context
Hans van der Meer via ntg-context schrieb am 17.08.2021 um 15:15: Is it possible to retrieve the contents of a file directly into a buffer? On the Wiki I could not find such a command. That is, equivalent to something like: \startbuffer[from file] contents of the file \stopbuffer Yes and no.

Re: [NTG-context] Using Lua to format lecture titles

2021-08-17 Thread Wolfgang Schuster via ntg-context
noib3 via ntg-context schrieb am 17.08.2021 um 16:43: I'm trying to create a new lecture environment starting from the base section. I'd like its title to be `Lecture : ` if a title is provided, and `Lecture ` if it isn't. This title should also be reported in the left footer and in the

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-16 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 16.08.2021 um 12:18: Hi Wolfgang, Pablo's solution works, but I tried yours without success. Here are the main lines of my project begin project \startproject[terminale-environment] \environment[terminale-style]  ... \stopproject end

Re: [NTG-context] Adjustment in the table of contents

2021-08-16 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 16.08.2021 um 11:24: Hi, I wish to have the table of contents as the attached image. The result is almost as expected except for the margin of the subsection.  \setuplist    [chapter,section,subsection]  [width=fit,distance=\spaceamount]  

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Wolfgang Schuster via ntg-context
Pablo Rodriguez via ntg-context schrieb am 15.08.2021 um 18:33: On 8/15/21 6:02 PM, Fabrice Couvreur via ntg-context wrote: A small note : this method works if I compile the project but if I compile only one chapter, the header no longer appears. Hi Fabrice, I have never used projects and

Re: [NTG-context] Create an enumeration style

2021-08-13 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 11.08.2021 um 12:57: I forgot this : how to reduce the font size for the exponents "er", "e" ? The exponents are placed with \high and you can change the style with     \setuphigh[style=...] but this affects all texts which use \high. Wolfgang

Re: [NTG-context] Create an enumeration style

2021-08-09 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur schrieb am 09.08.2021 um 14:16: Hi Wolfgang, Thank you for your suggestion. I tested the code and the result is not what I expected from the second item : "2 exemple" instead of "2^{e} exemple", "3 exemple" instead of "3^{e} exemple" ... core-con.lua (line 1155): local

Re: [NTG-context] Create an enumeration style

2021-08-08 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 08.08.2021 um 17:47: Hello, Is it possible to create an enumeration style to get this : 1 ^ {er} exemple 2 ^ {e} exemple 3 ^ {e} exemple The conversion needs a fix but this is how you can do it. \defineenumeration   [test]   [text=,   

Re: [NTG-context] Referencing fonts by path within ConTeXt

2021-08-07 Thread Wolfgang Schuster via ntg-context
Joey McCollum via ntg-context schrieb am 07.08.2021 um 22:29: Hi, I'm interested in packaging a ConTeXt project in a self-contained way, so that the environment/component/project .tex files, the bibliography .bib file(s), and fonts used for typesetting are all provided in one place. (The

Re: [NTG-context] Rotating pages

2021-08-07 Thread Wolfgang Schuster via ntg-context
Jeroen via ntg-context schrieb am 07.08.2021 um 13:56: For the following document, the last 3 pages are landscape, but I would like to have the pdf-ed rotated so they are in the pdf document portrait, ie rotated 90 degree to the left but leave the page as how they are now. Is there an easy way

Re: [NTG-context] Setting a heading text on its own page with \setuphead

2021-08-07 Thread Wolfgang Schuster via ntg-context
Joey McCollum via ntg-context schrieb am 06.08.2021 um 19:12: Hi, I'd like to define my own class of heading derived from the "part" heading; in the MWE below, it's called "MyPart". I'd like this heading to have the following features: * Its title should appear in the ToC, but its number

Re: [NTG-context] copies from \setupinteractionscreen not working?

2021-08-04 Thread Wolfgang Schuster via ntg-context
Pablo Rodriguez via ntg-context schrieb am 04.08.2021 um 15:53: Dear list, I have the following sample: \setupinteractionscreen[copies=5] \starttext \dorecurse{5}{\input zapf\par} \stoptext The resulting file from current latest (2021.07.30 00:57) contains the following

Re: [NTG-context] Alignment of bullets withn \tabulate within \itemize

2021-08-04 Thread Wolfgang Schuster via ntg-context
Lukas/ConTeXt via ntg-context schrieb am 04.08.2021 um 17:03: Hello, let's have the following sample: \starttext \startitemize[packed_,][headstyle_=,] \item CC \starttabulate[|l|||] \NI aa \NC bb \NC\NR \stoptabulate \item AA \stopitemize \stoptext

Re: [NTG-context] How to check if buffer or block has content

2021-08-02 Thread Wolfgang Schuster via ntg-context
Hans Hagen via ntg-context schrieb am 02.08.2021 um 17:17: On 8/2/2021 4:43 PM, Aditya Mahajan via ntg-context wrote: On Mon, 2 Aug 2021, Benjamin Buchmuller via ntg-context wrote: Hi, How can I check if a buffer or block has content (or is empty) before a \useblocks or \getbuffer

Re: [NTG-context] How to check if buffer or block has content

2021-08-02 Thread Wolfgang Schuster via ntg-context
Hans van der Meer via ntg-context schrieb am 02.08.2021 um 18:21: And in pathological cases where even this does not work (as I encountered a few days ago): \setbox\scratchbox=\vboxx{content}\ifdim\wd\scratchbox>\zeropoint .. \else .. \fi This is how \doiftext works but it uses a \hbox.

Re: [NTG-context] Additional font variants

2021-08-01 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 01.08.2021 um 19:33: Hi, I’m trying to set up a “handwriting” font. In the example below I’m using Comic Sans, because probably everyone has it available, IRL I’m using the commercial “Supernett Cn” that has more styles. (Also, I’m using Alegreya

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-08-01 Thread Wolfgang Schuster via ntg-context
Hans Hagen via ntg-context schrieb am 01.08.2021 um 13:56: On 7/31/2021 10:23 PM, Jeroen via ntg-context wrote: I worked around it, instead of simpleslides just use larger fonts to with regular pages Tne next version will have this (easy cheap extension): [...] after that you have a file

Re: [NTG-context] Verbatim text in a frame

2021-07-31 Thread Wolfgang Schuster via ntg-context
Hans Hagen via ntg-context schrieb am 31.07.2021 um 00:18: On 7/30/2021 9:12 PM, Jeroen via ntg-context wrote: I am using the following preamble to put a frame around verbatim text. How can I have all the text start some 5pt from the frame and how can I get rounded corners, corner=0 does not

Re: [NTG-context] Question about \groupedcommand{}{}

2021-07-27 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 27.07.2021 um 18:57: Hi, The name of the environment must always end with a dot both with a title and without title. How to do ? Thanks Fabrice [...] You can create simple dummy environments to test the parameters. \defineenumeration

Re: [NTG-context] Macro that does not work in an environment

2021-07-27 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur schrieb am 27.07.2021 um 18:24: Hi, The macro \card must allow the word Card to be written in the normal style. Hans' solution works well. To use \text with a certain style use a \mathtext.. command, e.g. \define[1]\card {\m{\mathtexttf{Card}\thinspace#1}} Wolfgang

Re: [NTG-context] Macro that does not work in an environment

2021-07-27 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 27.07.2021 um 16:32: Hello, How to make the macro work in the environment definition ? Can you explain your problem with the \card. Wolfgang ___ If your question is of

Re: [NTG-context] Texte source 30 / 5000 Résultats de traduction Adjust the length of a frame

2021-07-26 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 26.07.2021 um 13:13: Hello, Following on from my previous questions for writing my book (thanks again Wolfgang), I have to create a solution environment like the attached image. My problem is adjusting the length of the frame. Thank you. Fabrice

Re: [NTG-context] Testing for LMTX: \ifmode

2021-07-25 Thread Wolfgang Schuster
Axel Kielhorn schrieb am 25.07.2021 um 09:06: Hi, I have a document that doesn’t work with LMTX right now. While testing LMTX I would like to exclude certain passages and work on them later. When I run the following: \doifmode{*mkiv}{mkiv} \doifmode{*contextlmtxmode}{contextlmtx}

Re: [NTG-context] Percentage stacked bars chart

2021-07-24 Thread Wolfgang Schuster
Jorge Manuel schrieb am 24.07.2021 um 10:13: Good Morning, The code sent by Hans doesn't work for me. Maybe it's my context tree. I tried the first example from the manual and also Hans example and both worked for me. Did you download all 3 files which are needed? - t-readdata.lua -

Re: [NTG-context] Every odd row with a background color with extreme tables?

2021-07-23 Thread Wolfgang Schuster
T. Kurt Bond schrieb am 23.07.2021 um 17:55: With natural tables I can define a color, tell the table to have to use color backgrounds and turn the frame off and get every odd row in all my tables will have that color for the background. == Example

Re: [NTG-context] TrueType font styles suddenly not found anymore

2021-07-23 Thread Wolfgang Schuster
Gerben Wierda schrieb am 23.07.2021 um 12:35: My font setup is like this: [...] Now, both worked earlier today. But I’ve lost the old Optima font somehow. If I now try —mode=OPTIMA I get: selectfont      > the requested font 'Optima' has no files for the 'tf' alternative, Latin Modern is

Re: [NTG-context] Use of lettrine module in LMTX

2021-07-23 Thread Wolfgang Schuster
Gerben Wierda schrieb am 22.07.2021 um 08:43: So, basically, the page on ConTeXt garden about using older modules in LMTX is incomplete: not all modules actually work. Many of the modules on the garden are 10 years and older and predate MkIV/LuaTeX. A lot has changed since then and LMTX

Re: [NTG-context] Use of lettrine module in LMTX

2021-07-21 Thread Wolfgang Schuster
Gerben Wierda schrieb am 21.07.2021 um 12:00: On 19 Jul 2021, at 09:56, Nicola > wrote: On 2021-07-18, Gerben Wierda > wrote: PS. switching \kap and \bf has an interesting result, the first character of the words is not in bold. This

Re: [NTG-context] LMTX and lettrine

2021-07-19 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 18.07.2021 um 18:16: On 7/18/21 3:35 PM, Gerben Wierda wrote: I am trying to find out how to move this setup in mkii 23     \usemodule[lettrine] 24 >>  \setuplettrine[Lines=3, 25                    Hang=.5, 26                    Oversize=0, 27                   

Re: [NTG-context] languages

2021-07-18 Thread Wolfgang Schuster
Hans van der Meer schrieb am 18.07.2021 um 16:39: Here is something I think that should be added to the documentation. /In the ConTeXt garden (page Command/mainlanguage) the description is:/ mainlanguage Set the language of auto-generated language elements, like the title of the table of

Re: [NTG-context] (no subject)

2021-07-18 Thread Wolfgang Schuster
T. Kurt Bond schrieb am 17.07.2021 um 08:38: I have the following file: \setupfloat[table][default=nonumber] \starttext \section[title={Tables without force}] Here is a table without a caption, unforced. \startplacetable[location=none]   \bTABLE   \bTR\bTD r1c1

Re: [NTG-context] Moving the old book-structure to a recent ConTeXt

2021-07-18 Thread Wolfgang Schuster
Gerben Wierda schrieb am 16.07.2021 um 15:51: Is there a new template I can download somewhere to start from scratch? There is no template but show below a example for a document which uses the project structure. The examples are just my own preference and there are many ways to change them

Re: [NTG-context] number in \doloopoverlist?

2021-07-14 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 14.07.2021 um 20:41: Dear list, I have the following sample: \starttext \doloopoverlist{a,b,c,d} {\recursestring, number: \recurselevel\\} \stoptext Which is the way to get the number when looping over a list? There is no number, you're just

Re: [NTG-context] Header for a book

2021-07-13 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 12.07.2021 um 16:32: Hi, For my book, the header for each chapter should be like the attached image. I don't know if I am using the best method, but the result looks like what I want. Nevertheless, I am having some problems : 1. the header appears on each page ; 2.

Re: [NTG-context] weekend upload - stacking and animation

2021-07-13 Thread Wolfgang Schuster
Jeong Dal schrieb am 13.07.2021 um 12:25: Dear Hans, Aditya, Now, I understand the stacking method. I made a simple animation using it. \startuseMPgraphic{demo} for i=1 upto 10: draw fullcircle scaled (.3*i*cm) withcolor (.1*i*red) withpen pencircle scaled (.5*bp) withstacking i; endfor;

Re: [NTG-context] reusableMPgraphic

2021-07-12 Thread Wolfgang Schuster
Thomas A. Schmitz schrieb am 12.07.2021 um 18:02: Hi all, I don’t know if I’m overlooking something really basic or if this is a bug. The following MWE compiles with mkiv, but not with lmtx: \startreusableMPgraphic{fold} fill unitsquare xyscaled (1mm,1mm) withcolor blue ;

Re: [NTG-context] Ampersand in \unprotect fails in LMTX

2021-07-09 Thread Wolfgang Schuster
Marco Patzer schrieb am 09.07.2021 um 14:46: On Fri, 9 Jul 2021 14:29:20 +0200 Hans Hagen wrote: As \& works for MkIV as well as LMTX, there's an easy workaround. But maybe this isn't intended behaviour and needs checking. intended ... author passes different through the system in lmtx

Re: [NTG-context] Footer

2021-07-05 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 05.07.2021 um 19:49: Hi, I have to write a book : on the even pages at the bottom and on the left : the page number, a vertical line and the number of the chapter preceded by the text "Chapter" ; on the odd pages at the bottom and on the right : the title of the

Re: [NTG-context] log: use \thinspace instead of \,

2021-06-30 Thread Wolfgang Schuster
Alan Braslau schrieb am 29.06.2021 um 17:40: On Tue, 29 Jun 2021 14:06:02 +0200 Henning Hraban Ramm wrote: Maybe, but in running text I use \, all the time e.\,g. in abbreviations or for numbers (10\,000). At least in German typography these “spatiums” are necessary. In French typography as

Re: [NTG-context] hyphenate nothyphenated

2021-06-30 Thread Wolfgang Schuster
Alan Braslau schrieb am 30.06.2021 um 20:40: On 30/06/21 12:25, Hans Hagen wrote: On 6/30/2021 7:35 PM, Alan Braslau wrote: On 29/06/21 05:52, Hans Hagen wrote: well, you ask for nothyphenated; we could define \permanent\protected\def\-%    {\begingroup

Re: [NTG-context] color conversion eats note

2021-06-27 Thread Wolfgang Schuster
Steffen Wolfrum schrieb am 27.06.2021 um 15:55: uncommenting the following \setupcolors changes magenta to black when running luatex. but when running luametatex the footnote is crippled to «error»: \starttext \definestartstop[UL][color=magenta] %\setupcolors[state=stop,conversion=never]%

Re: [NTG-context] Invalid keyword \spaceskip

2021-06-26 Thread Wolfgang Schuster
Steffen Wolfrum schrieb am 26.06.2021 um 23:38: Am 26.06.2021 um 22:43 schrieb Wolfgang Schuster : Steffen Wolfrum schrieb am 26.06.2021 um 22:26: PS: with % engine=luatex it works fine. Add \relax after the last skip value, i.e. \spaceskip = 1pt plus 1pt minus 1.5pt\relax LMTX allows

Re: [NTG-context] Invalid keyword \spaceskip

2021-06-26 Thread Wolfgang Schuster
Steffen Wolfrum schrieb am 26.06.2021 um 22:26: PS: with % engine=luatex it works fine. Add \relax after the last skip value, i.e.     \spaceskip = 1pt plus 1pt minus 1.5pt\relax LMTX allows multiple plus and minus values for a skip value and the M in Matilda starts the scan for an

Re: [NTG-context] paragraph standing out of the normal layout comsuming the margin

2021-06-25 Thread Wolfgang Schuster
Jan U. Hasecke schrieb am 25.06.2021 um 13:19: Dear all, the mwe shows my try to define a paragraph that stand out like this: On right pages xxx xxx    xx    xx xxx xxx On left pages   xxx   xxx xx xx   xxx   xxx My try with setups

Re: [NTG-context] Align in setup header/footer

2021-06-25 Thread Wolfgang Schuster
denis.ma...@unibe.ch schrieb am 25.06.2021 um 12:36: but you'll perhaps have to put the stuff inside a hbox first \definehbox[pagenumber][12.5mm] \setupfootertexts [] [{\getmarking[chapter]}\hboxpagenumber{\hfill\pagenumber}]

Re: [NTG-context] setupquotation[method=font] problem

2021-06-24 Thread Wolfgang Schuster
Hans Hagen schrieb am 24.06.2021 um 23:47: On 6/24/2021 10:00 PM, Rik Kabel wrote: I get no quotation marks at all (and no protrusion) with \quotation{text} using \setupquotation[method=font]. This seems to have started earlier this month, but for the record, I am using ConTeXt  ver:

Re: [NTG-context] typescripts and variants

2021-06-23 Thread Wolfgang Schuster
denis.ma...@unibe.ch schrieb am 23.06.2021 um 11:05: Hi, Am 23.06.2021 um 08:43 schrieb Henning Hraban Ramm : Am 23.06.2021 um 00:17 schrieb denis.ma...@unibe.ch: Hi In my current project I need to use different variants if the Noto Serif font (Regular, Medium, Semi Condensed Bold, Regular

Re: [NTG-context] Setup output name from within ConTeXt document

2021-06-22 Thread Wolfgang Schuster
Pascal Pascali schrieb am 22.06.2021 um 13:55: Dear ConTeXt community, Is it possible to set the file name of the output from within the document? I can do it on the command line by adding --result="CustomName.pdf", but I'd need to do it according to certain variables in the content of the

Re: [NTG-context] Concatenate buffers without newline

2021-06-22 Thread Wolfgang Schuster
Pascal Pascali schrieb am 22.06.2021 um 20:21: Hello! Is there a way to concatenate predefined blocks or buffers without ConTeXt printing newlines between them? I'd like to have something like: \startBitOfData [name1] Some part of paragraph here. \stopBitOfData \startBitOfData [name2] Some

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-22 Thread Wolfgang Schuster
Otared Kavian schrieb am 22.06.2021 um 15:49: Dear Dalyoung, dear Mikael Thank you both for your explanations: indeed this « whatever » command in MetaPost is magic and very useful (I am not sure whether it is a command only in MetaFun, or it exists also in the original MetaPost). You have

Re: [NTG-context] xtable as list item (again)

2021-06-16 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 15.06.2021 um 19:57: Dear list, I already posted a similar question some time ago (https://mailman.ntg.nl/pipermail/ntg-context/2021/101021.html), but I got no reply. I have the following sample: \showframe\showstruts \starttext \startitemize[n][margin=yes]

Re: [NTG-context] Natural tables | 2 tables in a page seem to interfere with each other?

2021-06-16 Thread Wolfgang Schuster
Ramkumar KB schrieb am 16.06.2021 um 17:33: Hi, I have 2 "natural tables" in one page and it appears that I have to (manually) reset the columns in the second table, for those columns that I had set specific width. See the example below - Maybe I am missing a trick or two - or this indeed

Re: [NTG-context] [#1] CJK regression? | lmtx-20210613 .

2021-06-15 Thread Wolfgang Schuster
Richard Mahoney schrieb am 13.06.2021 um 21:42: I'm wondering if there has been a regression in the rendering of CJK recently? I'm attaching two screenshots from the same code: one with lmtx-20210509 (correct); and the other lmtx-20210613 (incomplete). This is what I have in the setups: %

Re: [NTG-context] \startplacetable[location=none] doesn't have a "Table X" label, but \startplacetable[location=force] does

2021-06-14 Thread Wolfgang Schuster
T. Kurt Bond schrieb am Mo., 14. Juni 2021, 09:23: > I've got three questions: > >1. > >I've got a document with some xtables. If I use >\startplacetable[location=none] the tables *don't* have a "Table X" >label, but they float and end up in locations where I don't want them. If

Re: [NTG-context] dictionary example

2021-06-12 Thread Wolfgang Schuster
jbf schrieb am 12.06.2021 um 12:39: I am wondering if someone has tried a two-column dictionary layout with ConTeXt. What is confounding me at the moment is the gap between entries in the columns. My MWE is below. Try as I may, I seem unable to get rid of those gaps! I obviously want each

Re: [NTG-context] LMTX problem with doifmode in \setuplayout

2021-06-08 Thread Wolfgang Schuster
Hans Hagen schrieb am 09.06.2021 um 00:08: On 6/8/2021 11:44 PM, Wolfgang Schuster wrote: Rik Kabel schrieb am 08.06.2021 um 23:01: Yes, that works. Of course, to say that you can never be sure if such combinations will work is not a welcome statement about the state of ConTeXt. More

Re: [NTG-context] LMTX problem with doifmode in \setuplayout

2021-06-08 Thread Wolfgang Schuster
Rik Kabel schrieb am 08.06.2021 um 23:01: Yes, that works. Of course, to say that you can never be sure if such combinations will work is not a welcome statement about the state of ConTeXt. More recent LMTX releases also now break older documents that worked (with LMTX and MkIV) before. If

Re: [NTG-context] keep text strictly inside box

2021-06-08 Thread Wolfgang Schuster
Taco Hoekwater schrieb am 08.06.2021 um 08:42: On 7 Jun 2021, at 23:07, Wolfgang Schuster wrote: Use the align key. \starttext \startframedtext[width=10cm,align={flushleft,nothyphenated}] Also, ‘verytolerant’ helps: align={flushleft,nothyphenated,verytolerant}] Another option

Re: [NTG-context] frameoffset in textbackground?

2021-06-08 Thread Wolfgang Schuster
Hans van der Meer schrieb am 07.06.2021 um 21:46: In the following MWE for a textbackground the parameter backgroundoffset has the expected effect. But for positive values only. A backgroundoffset=-10pt has no visible effect. But the real problem is the parameter frameoffset. No effect at all,

Re: [NTG-context] LMTX problem with doifmode in \setuplayout

2021-06-08 Thread Wolfgang Schuster
Rik Kabel schrieb am 08.06.2021 um 18:14: Hello all, Odd issue with LMTX (works fine with --luatex). \doifelsemode causes a failure if it is used to set a simple value such as on, off, yes, no, ..., but works with a dimension. Perhaps better illustrated by an example: \definemode   

Re: [NTG-context] keep text strictly inside box

2021-06-07 Thread Wolfgang Schuster
Hans van der Meer schrieb am 07.06.2021 um 22:57: As can be seen in this screenshot, the text overshoots on the right side the boundary of the fairly narrow \framedtext. My intent is to not hyphenate the names, even if that means a ragged edge on the right side. But at the same time the text

Re: [NTG-context] yscale not working

2021-06-05 Thread Wolfgang Schuster
Hans van der Meer schrieb am 05.06.2021 um 17:59: Why is there no effect of the yscale parameter in \externalfigure when the width-parameter is given? In the MWE it is the intention to stretch the height of the figure by a factor of two. But nothing happens. Leaving out the width does stretch

Re: [NTG-context] where to break a long header

2021-06-05 Thread Wolfgang Schuster
denis.ma...@ub.unibe.ch schrieb am 05.06.2021 um 08:16: \startsection[title={A very \\ long title},list={A very long title}] Be careful with spaces before and after \\. In the table of contents \\ is converted to a space and in the worst case you get three spaces instead of one. \starttext

Re: [NTG-context] quotes potruding out in the left margin

2021-06-04 Thread Wolfgang Schuster
Sandra Snan schrieb am 04.06.2021 um 09:52: Oh, the example you just posted doesn't work on live.contextgarden, let alone on my installation. The quotation marks still don't potrude. I tested my example on the garden and got the expected output with the quotation marks in the margin (only

Re: [NTG-context] quotes potruding out in the left margin

2021-06-04 Thread Wolfgang Schuster
Sandra Snan schrieb am 04.06.2021 um 08:44: Hi♥ How do I get the quotes to potrude out in the left margin? For example in the following text, I want the "y" in "you are so" to be aligned with the "oh" in "oh hi there" and the "here" in "here here". \definefontfeature [default] [default]

Re: [NTG-context] Converting footnotes to endnotes

2021-06-03 Thread Wolfgang Schuster
Idris Samawi Hamid ادريس سماوي حامد schrieb am 03.06.2021 um 22:09: Dear gang, Generally, I do not use endnotes - see Robert Bringhurst's criticisms of endnotes in typography - but a publisher is demanding them. Converting footnotes to endnotes must be quite simple yet I'm missing it:

Re: [NTG-context] oldstyle math

2021-06-02 Thread Wolfgang Schuster
Alan Bowen schrieb am 02.06.2021 um 22:07: I no longer get oldstyle numerals in the math environment (ConTeXt  ver: 2021.04.29 ) with \definefontfamily[mainface][rm][STIX Two Text] [protrusion=quality, expansion=quality, mode=node, force=yes, features={default, f:oldstyle}, ]

Re: [NTG-context] itemize margins,

2021-06-01 Thread Wolfgang Schuster
denis.ma...@ub.unibe.ch schrieb am 01.06.2021 um 10:46: Hi, in the following example the second line of the quote is not lined up with the first line. = \starttext \startitemize[n] [ %right=), %stopper=, %width=2em, %alternative=fit, %alternative=left,

Re: [NTG-context] LMTX and my custom typescripts

2021-05-28 Thread Wolfgang Schuster
Michael Guravage schrieb am 28.05.2021 um 19:33: A pox upon me for a clumsy lout! You can also remove     \usetypescriptfile[...] from your document because \setupbodyfont loads the file itself when the typeface and the file have matching names. Wolfgang

Re: [NTG-context] specify a directory for tex files

2021-05-25 Thread Wolfgang Schuster
denis.ma...@ub.unibe.ch schrieb am 25.05.2021 um 11:44: -Ursprüngliche Nachricht- Von: ntg-context Im Auftrag von Wolfgang Schuster Gesendet: Montag, 24. Mai 2021 21:04 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] specify a directory for tex files Jeroen schrieb am

  1   2   3   4   5   6   7   8   9   10   >