[NTG-context] Re: How to improve appearance of bars in frac, sqrt, etc. on screens?

2024-06-13 Thread Otared Kavian
Hi Ralph,I don’t see any pixels in the PDF file when I typeset your code snipet (on MacOS 11.7.10). Here is what I get.Best regards: Otared fraction-bar-pixels.pdf Description: Adobe PDF document On 13 Jun 2024, at 13:10, Ralph <ralph.2...@email-postfach.info> wrote:

[NTG-context] How to improve appearance of bars in frac, sqrt, etc. on screens?

2024-06-13 Thread Ralph
(as used in \frac, \sqrt, \overbar, ...) was similar to the way LaTeX (PDFLaTeX and LuaLaTeX) and Plain TeX handled this, but it has changed since then. Instead of one bar there are now multiple characters attached to each other. This makes it look more consistent with the font, but unfortunately

[NTG-context] Re: ConTeXt source from XML

2024-06-05 Thread Pablo Rodriguez via ntg-context
t commands. Here is a sample (using a buffer instead of an external file): \startbuffer[demo] line 1 line 2 line 3 \stopbuffer \starttext \startxmlsetups abc:def \xmlsetsetup{#1}{foo|bar}{xyz:*} \stopxmlsetups \xmlregistersetup{abc:def} \startxml

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Bruce Horrocks
setups >> >> \definehead [MyChapter] [chapter] >> \setuphead [MyChapter] >>[ style={...}, % heading style >> after={\setup{PlaceSubTitleAndIntro}}, >>] >> >> \starttext >> \startMyChapter[title={Foo}] >>[ subtitle={Ba

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
after={\setup{PlaceSubTitleAndIntro}}, > ] > > \starttext > \startMyChapter[title={Foo}] > [ subtitle={Bar}, > intro={Some explanation}, > ] > The text of the chapter > \stopMyChapter > \stoptext Thanks for the input. A comparable example is

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Bruce Horrocks
definehead [MyChapter] [chapter] \setuphead [MyChapter] [ style={...}, % heading style after={\setup{PlaceSubTitleAndIntro}}, ] \starttext \startMyChapter[title={Foo}] [ subtitle={Bar}, intro={Some explanation}, ] The text of the chapter \stopMyChapter \stopt

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
#2: \structureuservariable{subtitle} (\structureuservariable{intro}) > > } > > > > \setuphead[title, chapter][command=\MyChapter] > > > > \setupbodyfont[11pt] > > > > \starttext > > \startchapter[title=foo][subtitle=bar, intro={some

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Tomáš Hála
: \structureuservariable{subtitle} (\structureuservariable{intro}) > } > > \setuphead[title, chapter][command=\MyChapter] > > \setupbodyfont[11pt] > > \starttext > \startchapter[title=foo][subtitle=bar, intro={some explanation}] > some text > \stopchapter > \stop

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
ot quite sure about it's internals. > > Let's begin with a minimal example: > ``` > \define[2]\MyChapter{% > #1 #2: \structureuservariable{subtitle} (\structureuservariable{intro}) > } > > \setuphead[title, chapter][command=\MyChapter] > > \setupbodyfont[11pt

[NTG-context] setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
\starttext \startchapter[title=foo][subtitle=bar, intro={some explanation}] some text \stopchapter \stoptext ``` This produces 1.pdf. ## Font size What is the reason that that the font of the chapter is bigger? How can I reset it to normal size? This does not work at all: ``` \define[2]

[NTG-context] Re: Wiki - test/proposal to further clarify documentation

2024-05-19 Thread garulfo
> So is the plan to go through each of the main headings in the left side-bar > and make the same type of change? Yes. Maybe new ones will have to be added ___ If your question is of interest to others a

[NTG-context] Re: Wiki - test/proposal to further clarify documentation

2024-05-18 Thread Bruce Horrocks
age is a lot better than before[1], IMHO. I would prefer the table were 90% width rather than 50 but that is minor. So is the plan to go through each of the main headings in the left side-bar and make the same type of change? > > I'm not sure I've selected the few documents that are consid

[NTG-context] Re: no effect of \definefontfeature for adobevariablefontprototype

2024-05-12 Thread Hans Hagen
][axis={weight:150}]% \definedfont[name:adobevariablefontprototype*whatever]foo@bar \definefontfeature[whatever][axis={weight:350}]% \definedfont[name:adobevariablefontprototype*whatever]foo@bar \definefontfeature[whatever][axis={weight:550}]% \definedfont[name:adobevariablefontprototype*whatever]foo

[NTG-context] no effect of \definefontfeature for adobevariablefontprototype

2024-05-09 Thread garulfo
[name:adobevariablefontprototype*whatever]foo@bar \definefontfeature[whatever][axis={weight:350}]% \definedfont[name:adobevariablefontprototype*whatever]foo@bar \definefontfeature[whatever][axis={weight:550}]% \definedfont[name:adobevariablefontprototype*whatever]foo@bar \definefontfeature[whatever][axis={weight

[NTG-context] Re: what are the interaction between \showframe and \realpageno in \startuseMPgraphic ?

2024-04-24 Thread Wolfgang Schuster
garu...@azules.eu schrieb am 20.04.2024 um 23:00: I can not figure out why this progress bar only works when \showframe is activated. When you comment on \showframe, it's as if \realpageno is at zero. (current version: 2024.04.01 08:59) \showframe \startuseMPgraphic{MonGraphisme_MP

[NTG-context] what are the interaction between \showframe and \realpageno in \startuseMPgraphic ?

2024-04-20 Thread garulfo
I can not figure out why this progress bar only works when \showframe is activated. When you comment on \showframe, it's as if \realpageno is at zero. (current version: 2024.04.01 08:59) \showframe \startuseMPgraphic{MonGraphisme_MP} numeric n ; n := \number\realpageno ; numeric m ; m

[NTG-context] Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread garulfo
it be done manually ? Thanks for your help. List : Command/ attachment Command/ background Command/ bar Command/ beginblock Command/ button Command/ characterkerning Command/ comment Command/ completecombinedlist Command/ completelistoffloats Command/ completelistofsorts Command/ completeli

[NTG-context] Re: Local alternative to \input

2024-03-04 Thread Denis Maier via ntg-context
t of the way, similar to this. I am loosing the > general documetn flow because of all this markup. Would there be a > construction similar to this: > > \starttext > > \environment foo > \environment bar > > \startenvironment foo > this is a lot of text >

[NTG-context] Re: Local alternative to \input

2024-03-03 Thread Jeroen
general documetn flow because of all this markup. Would there be a > > construction similar to this: > > > > \starttext > > > > \environment foo > > \environment bar > > > > \startenvironment foo > > this is a lot of text > > \st

[NTG-context] Re: Local alternative to \input

2024-01-04 Thread Henning Hraban Ramm
\environment foo \environment bar \startenvironment foo this is a lot of text \stopenvironment \startenvironment bar and this is another piece of text \stopenvironment \stoptext An environment is a separate file. \environment is like \input with a few more checks, e.g. it loads the file only once. e.g

[NTG-context] Re: Fractions

2023-12-10 Thread Gavin via ntg-context
st, though. > > Thank you! > > I usually only need simple inline fractions like 1/n, 1/2 or 3/8 in text. > With these and \frac, the spacing below the numerator (depth) is too big, > while the denominator sticks too tightly to the fraction bar. > (Of course I use regular numbers for f

[NTG-context] Re: Fractions

2023-12-10 Thread Henning Hraban Ramm
it through to the list, though. Thank you! I usually only need simple inline fractions like 1/n, 1/2 or 3/8 in text. With these and \frac, the spacing below the numerator (depth) is too big, while the denominator sticks too tightly to the fraction bar. (Of course I use regular numbers for fractions

[NTG-context] Re: xmlpos values doubled

2023-11-22 Thread Hans Hagen
, it seems that \xmlpos{#1} returns duplicate values. This might indeed be the intended meaning of \xmlpos{#1} as it seems related to the XML query foo/bar/index() which only looks up the position in the parent node. (I noticed that if I run this repeatedly, I get somehow different values from times

[NTG-context] Re: xmlpos values doubled

2023-11-21 Thread Benjamin Buchmuller
This might indeed be the intended meaning of \xmlpos{#1} as it seems related to the XML query foo/bar/index() which only looks up the position in the parent node. (I noticed that if I run this repeatedly, I get somehow different values from times to times. I can't say why.) Anyways, I was

[NTG-context] Vertically aligned alternating fillers

2023-11-16 Thread Marco Patzer
{1}{\n}} \starttext %% dots are vertically aligned \dorecurse{6}{%% Foo \PavelFiller Bar\par} \hairline %% dots are not aligned \dorecurse{6}{%% \oneword\PavelFiller\oneword\par} \stoptext Marco LMTX 2023.09.04 19:15

[NTG-context] Re: placing \externalfigure

2023-11-12 Thread Hans Hagen
] bar \blank [5*line] foo \externalfigure[][][location=middle] bar \blank [5*line] foo \externalfigure[][][location=low]bar \stoptext This variant: \useMPlibrary [dum] \starttext foo \figuresymbol[] bar foo \figuresymbol[][height=1cm,depth=\strutdepth] bar foo

[NTG-context] Re: placing \externalfigure

2023-11-12 Thread Marco Patzer
into the option list of setupexternalfigure but could not > find one whereby the location with respect to the baseline is either > top, bottom or center. Maybe this is what you're looking for: \useMPlibrary [dum] \setuplayout [grid=yes] \showgrid \starttext foo \externalfigure[][][location=high]

[NTG-context] Vebatim text: Preserve empty lines

2023-08-16 Thread Alex Leray
Hello, is there a way to preserve empty lines in typing env? By default it is removing them. Thanks * * * \definetyping[custom] \setuptyping[custom][ space=normal, lines=yes, tab=4, ] \starttext \startcustom Foo Bar Baz \stopcustom \stoptext

[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Mikael Sundqvist
Hi, On Sun, Aug 13, 2023 at 9:13 AM Xavier B. wrote: > > So, > > Finally is it a bug in MKIV? It seems you fix some kind of bug in your > messages. Is it true? > > > The output with Luametatex is correct but Luatex creates a raised bar > >

[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Hans Hagen via ntg-context
at tug meetings on YT. The output with Luametatex is correct but Luatex creates a raised bar (and different linebreaking). \showglyphs \startTEXpage[offset=1ex] \ruledhbox{$\overline{OA} = \overbar {OA} = 4.2$} \par \ruledhbox{$\underline {OA} = \underbar

[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Xavier B.
So, Finally is it a bug in MKIV? It seems you fix some kind of bug in your messages. Is it true? > The output with Luametatex is correct but Luatex creates a raised bar > (and different linebreaking). > > \showglyphs > > \startTEXpage[offset=1ex] > \ruledh

[NTG-context] Re: Why overbar is so big

2023-08-12 Thread Hans Hagen via ntg-context
a raised bar (and different linebreaking). \showglyphs \startTEXpage[offset=1ex] \ruledhbox{$\overline{OA} = \overbar {OA} = 4.2$} \par \ruledhbox{$\underline {OA} = \underbar {OA} = 4.2$} \par \ruledhbox{$\widetilde {OA} = \widebar {OA} = 4.2$} \par

[NTG-context] Re: Why overbar is so big

2023-08-12 Thread Wolfgang Schuster
:     AccentTopShiftUp = -60,     FlattenedAccentTopShiftUp    = -60, I assume it has the same lm math font as we use. Do you test with Luatex? The output with Luametatex is correct but Luatex creates a raised bar (and different linebreaking). Wolfgang

[NTG-context] Re: Why overbar is so big

2023-08-12 Thread Xavier B.
Excepteur sint occaecat cupidatat non > proident, sunt in culpa qui officia deserunt mollit anim id est laborum. > $\overbar{OA} = 4,2$ > \stoptext > > Then the overbar has the bar in a very long altitude. > Can you please, see the output attached. > > Thanks in advance, >

[NTG-context] Re: Why overbar is so big

2023-08-11 Thread Thangalin
on proident, sunt in culpa qui officia deserunt mollit anim id > est laborum. > $\overbar{OA} = 4,2$ > \stoptext > > Then the overbar has the bar in a very long altitude. > Can you please, see the output attached. > > Thanks in advance, > Xavier > > PS: I use context

[NTG-context] Why overbar is so big

2023-08-11 Thread Xavier B.
in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. $\overbar{OA} = 4,2$ \stoptext Then the overbar has the bar in a very long altitude. Can you please, see the output

[NTG-context] Re: Tracker for hyphens at the end of lines

2023-08-09 Thread denis.maier
d, always amazed with ConTeXt! > > This is just what I was looking for. > > Best Wishes > > Keith McKay > > On 01/08/2023 18:10, Hans Hagen via ntg-context wrote: > > On 8/1/2023 4:54 PM, Keith McKay wrote: > >> Hi colleagues, > >> > &

[NTG-context] Re: Tracker for hyphens at the end of lines

2023-08-01 Thread Keith McKay
at the end of lines similar the way underfull and overfull boxes can be displayed with a coloured bar at the end of the offending line? I have looked at the wiki page "Reviewing hyphenation" and it has a solution for mkii from 2009 which, I would think, won't be suitable  for present day

[NTG-context] Re: Tracker for hyphens at the end of lines

2023-08-01 Thread Hans Hagen via ntg-context
On 8/1/2023 4:54 PM, Keith McKay wrote: Hi colleagues, Is there a tracker for highlighting hyphens at the end of lines similar the way underfull and overfull boxes can be displayed with a coloured bar at the end of the offending line? I have looked at the wiki page "Reviewing hyphen

[NTG-context] Tracker for hyphens at the end of lines

2023-08-01 Thread Keith McKay
Hi colleagues, Is there a tracker for highlighting hyphens at the end of lines similar the way underfull and overfull boxes can be displayed with a coloured bar at the end of the offending line? I have looked at the wiki page "Reviewing hyphenation" and it has a solution for mkii

[NTG-context] Re: MP setup for a progress bar

2023-07-05 Thread Aditya Mahajan
On Tue, 4 Jul 2023, Henning Hraban Ramm wrote: > Thanks to Taco, Robbert and Jules for their work! > > > I used the downtime to setup a presentation style with a progress bar in the > footer. But I get the same (first page) graphics on all pages, and the footer > backgr

[NTG-context] Re: {\rm foo {\it bar}}

2023-07-05 Thread Henning Hraban Ramm
Am 05.07.23 um 07:57 schrieb Gerben Wierda: And the reason probably is that the font is defined as sans serif [ss]? Well, if you only define a sans font, \rm is somewhat undefined. You call the upright variant with \tf; \rm switches to the serif font. Hraban

[NTG-context] Re: MP setup for a progress bar

2023-07-05 Thread Henning Hraban Ramm
Am 04.07.23 um 22:53 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 04.07.2023 um 22:24: I used the downtime to setup a presentation style with a progress bar in the footer. But I get the same (first page) graphics on all pages, and the footer background appears under the text

[NTG-context] Re: {\rm foo {\it bar}}

2023-07-05 Thread Gerben Wierda
And the reason probably is that the font is defined as sans serif [ss]?Sent from my iPhoneOn 5 Jul 2023, at 00:12, Gerben Wierda wrote:Found it (I think)\definefontfamily defines tf= but the text says \rmIf I use \tf in the text it works.If I use \rm in the text it works for default Latin Modern

[NTG-context] Re: {\rm foo {\it bar}}

2023-07-04 Thread Gerben Wierda
Found it (I think) \definefontfamily defines tf= but the text says \rm If I use \tf in the text it works. If I use \rm in the text it works for default Latin Modern but not for any font defined. This is true regardless of using rm= or tf= in the definition. So, it seems to be the combination

[NTG-context] Re: {\rm foo {\it bar}}

2023-07-04 Thread Gerben Wierda
Also doesn't work with ConTeXt ver: 2023.06.22 14:13 LMTX fmt: 2023.7.4 int: english/english > On 4 Jul 2023, at 23:42, Gerben Wierda wrote: > > > >> On 4 Jul 2023, at 23:26, Wolfgang Schuster >> > > wrote: >> >> Gerben Wierda schrieb am

[NTG-context] Re: {\rm foo {\it bar}}

2023-07-04 Thread Gerben Wierda
> On 4 Jul 2023, at 23:26, Wolfgang Schuster > wrote: > > Gerben Wierda schrieb am 04.07.2023 um 23:17: >> After erasing the font cache and regenerating LM was doing it right again. >> >> Helvetica did not, but maybe I made a mistake in >> >> \definefontfamily >> [helvetica] >> [ss] >>

[NTG-context] Re: {\rm foo {\it bar}}

2023-07-04 Thread Bruce Horrocks
> On 30 Jun 2023, at 10:47, Gerben Wierda wrote: > > If I typeset > > {\rm foo{\it bar}} > > bar is not in italic It is in italic for me in ConTeXt ver: 2023.06.04 > if I typeset > > {\it bar} > > it is. > > What am I missing? > > Ge

[NTG-context] Re: {\rm foo {\it bar}}

2023-07-04 Thread Wolfgang Schuster
Gerben Wierda schrieb am 04.07.2023 um 23:17: After erasing the font cache and regenerating LM was doing it right again. Helvetica did not, but maybe I made a mistake in \definefontfamily [helvetica]   [ss] [Helvetica] [tf=style:Regular,    bf=style:Bold,    it=style:Oblique, bi=style:Bold

[NTG-context] Re: {\rm foo {\it bar}}

2023-07-04 Thread Gerben Wierda
.nl>> wrote: >> >> If I typeset >> >> {\rm foo{\it bar}} >> >> bar is not in italic > > It is in italic for me in ConTeXt ver: 2023.06.04 > >> if I typeset >> >> {\it bar} >> >> it is. >> >>

[NTG-context] Re: MP setup for a progress bar

2023-07-04 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 04.07.2023 um 22:24: Thanks to Taco, Robbert and Jules for their work! I used the downtime to setup a presentation style with a progress bar in the footer. But I get the same (first page) graphics on all pages, and the footer background appears under the text

[NTG-context] MP setup for a progress bar

2023-07-04 Thread Henning Hraban Ramm
Thanks to Taco, Robbert and Jules for their work! I used the downtime to setup a presentation style with a progress bar in the footer. But I get the same (first page) graphics on all pages, and the footer background appears under the text area as well as under the margins. * I thought

[NTG-context] {\rm foo {\it bar}}

2023-07-04 Thread Gerben Wierda
If I typeset {\rm foo{\it bar}} bar is not in italic if I typeset {\it bar} it is. What am I missing? Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon <https://newsie.social/@gctwnl>) R IT Strategy <https://ea.rna.nl/> (main site) Book:

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Carlos via ntg-context
tion measurement, > > It depends on what you expect. First of all, your assumption that the arrow > fill is the same as in plain tex is wrong. Why would it be wrong? When I type \hbox to 3cm{\rightarrowfill} without a vrule that's what I would normally expect > > (1) one

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Hans Hagen via ntg-context
bar. (3) You also assume that the math font matches the text font. (4) Normally an arrow fill is something math anyway. Where there can also be something on top or below, or where it can be a top or bottom accent. a \vbox to 5pt{x\vrule\rightarrowfill \ x \leftarrowfill\vrule\ x} or x

Re: [NTG-context] Fallbacks in text font interfere with math accents

2023-06-10 Thread Henning Hraban Ramm via ntg-context
ters, some math accents get replaced by small bold uppercase characters (I found hat by K and ring by T so far). I tried [fallbacks=] for math to no avail. My example uses Cambria, but it’s the same with other fonts. (BTW, in \bar{b} with Libertinus, the bar looks too high.) I leave the font fallb

Re: [NTG-context] Fallbacks in text font interfere with math accents

2023-06-10 Thread Mikael Sundqvist via ntg-context
mall bold uppercase characters (I > found hat by K and ring by T so far). > > I tried [fallbacks=] for math to no avail. > > My example uses Cambria, but it’s the same with other fonts. > > (BTW, in \bar{b} with Libertinus, the bar looks too high.) I leave the font fallbacks to Han

[NTG-context] Fallbacks in text font interfere with math accents

2023-06-10 Thread Henning Hraban Ramm via ntg-context
math to no avail. My example uses Cambria, but it’s the same with other fonts. (BTW, in \bar{b} with Libertinus, the bar looks too high.) Hraban \definefontfallback[symbolaFB] [file:symbola.otf] [0x0-0xF] [check=no,force=no] \definefontfallback[arialFB] [name:arialunicodems] [0x0

Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Aditya Mahajan via ntg-context
\. Solidus \/ %% Colon \: Semicolon \; Less than \< %% Equals \= Greater than \> Question mark \? %% Commercial at \@ Left bracket \[ Backslash \\ %% Right bracket \] Circumflex\^ Underscore\_ %% Grave ac

Re: [NTG-context] Text editors

2023-03-26 Thread Henning Hraban Ramm via ntg-context
at https://codeberg.org/fiee/language-context It’s a bit unkempt, since I stopped working on it when Atom was discontinued. I didn’t try the fork Pulsar yet (https://pulsar-edit.dev). Atom’s git client is better than VSC’s, and I like its search bar better. Also there’s COW: https://context

Re: [NTG-context] \definemathfence broken in latest

2023-03-26 Thread Mikael Sundqvist via ntg-context
Hi, I think command=yes was changed into define=yes. /Mikael Den sön 26 mars 2023 04:31Gavin via ntg-context skrev: > Hi List, > > The command \definemathfence seems to not be working as it did in other > recent LMTX. MWE: > > \definemathfence[abs][bar][command=y

[NTG-context] \definemathfence broken in latest

2023-03-25 Thread Gavin via ntg-context
Hi List, The command \definemathfence seems to not be working as it did in other recent LMTX. MWE: \definemathfence[abs][bar][command=yes] \starttext \startformula \abs{v} = \frac{1.32}{1.41} = 0.935 \stopformula \stoptext This causes an error, complaining that \abs is undefined

Re: [NTG-context] Typeset multiple pictures not in a strict matrix (\startfloatcombination)

2023-03-08 Thread Hans Hagen via ntg-context
: Foo Bar I tried to typeset it with this code (based on https://tex.stackexchange.com/a/502903): \useMPlibrary[dum] \setupcombinations[alternative=text] \definefloat[subfigure][local=yes] \setupcaption[subfigure][numberconversion=a] \setuplabeltext[subfigure=] \appendvalue{stopplacefigure

[NTG-context] Typeset multiple pictures not in a strict matrix (\startfloatcombination)

2023-03-07 Thread Gerion Entrup via ntg-context
: --- | | | | --- a) Some caption - | | | | | | | | | | | | - b) fooc) foo Figure 1.1: Foo Bar I tried to typeset it with this code (based on https

Re: [NTG-context] structureuservariable as list

2023-02-25 Thread Alex Leray via ntg-context
Dear both, thanks for your answers. `doloopovermatch` didn't work for me but this below is achieving what I wanted. Have a good day, Alex %%% \def\dosomething#1{(#1)} \def\dosomethingtwo#1{* #1\crlf} \starttext \startchapter[title={Foo Bar}][ authors={Alice,Bob,Charline

Re: [NTG-context] structureuservariable as list

2023-02-25 Thread Hans Hagen via ntg-context
On 2/24/2023 11:37 PM, Rik Kabel via ntg-context wrote: Hi, is it possible to pass a list in a variable? I'd like to pass a list of authors: \startchapter[title={Foo Bar}][authors={Alice, Bob}] % PSEUDOCODE % for author in \structureuservariable{authors} % do print(author + '\crlf

Re: [NTG-context] structureuservariable as list

2023-02-24 Thread Rik Kabel via ntg-context
Hi, is it possible to pass a list in a variable? I'd like to pass a list of authors: \startchapter[title={Foo Bar}][authors={Alice, Bob}] % PSEUDOCODE % for author in \structureuservariable{authors} % do print(author + '\crlf') % done \stopchapter Search the wiki. Look for "

[NTG-context] structureuservariable as list

2023-02-24 Thread Alex Leray via ntg-context
Hi, is it possible to pass a list in a variable? I'd like to pass a list of authors: \startchapter[title={Foo Bar}][authors={Alice, Bob}] % PSEUDOCODE % for author in \structureuservariable{authors} % do print(author + '\crlf') % done \stopchapter Thanks

Re: [NTG-context] update

2023-02-24 Thread Otared Kavian via ntg-context
fset=1dk] >\im{ >f' = f'' = f''' = f = >a + b + \ldots + c + >\overbar{x} + \overbar{S} + \bar{x} + \widebar{x} >} > >\im{ >\fenced[doublebar]{x} = >\fenced[doublebar][size=1]{x_1} = >\fenced[doubl

[NTG-context] update

2023-02-23 Thread Hans Hagen via ntg-context
Hi, I uploaded a new version. We further improved Antykwa support, \switchtobodyfont[antykwa] \startTEXpage[offset=1dk] \im{ f' = f'' = f''' = f = a + b + \ldots + c + \overbar{x} + \overbar{S} + \bar{x} + \widebar{x} } \im{ \fenced[doublebar]{x

Re: [NTG-context] \typefile not including file and returning success

2023-02-21 Thread Marco Patzer via ntg-context
taking so long. But I just now tested your fix and wanted to remove the absolute paths from my document and found that either your fix is not working or I'm doing something wrong (probably the latter). Example: # create file “bar” echo Bar > bar %% \adddefaultsuffix[foo,{},crap,bar] \adddefau

Re: [NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Hans Hagen via ntg-context
] \starttext \startsection[title={Section zero}]foo\stopsection \startsection[title={Section 1}]bar\stopsection \stoptext ### Sorry for the noise you can often find hints in the test suite (many small files) Le 16/02/23 à 17:32, Alex Leray via ntg-context a écrit : Hello, I'd like to have

Re: [NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Alex Leray via ntg-context
\stopsection \startsection[title={Section 1}]bar\stopsection \stoptext ### Sorry for the noise Le 16/02/23 à 17:32, Alex Leray via ntg-context a écrit : Hello, I'd like to have roman numerals prefixed sections, but starting from Zero and not One (even if I know that roman numerals don't have

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Kalouguine Andre via ntg-context
Hi Pablo, > \showframe > \setupinteraction[state=start] > \starttext > \startbuffer[abc] > def foo(x): > if x == 0: > bar() > else: > baz(x) > foo(x - 1) > \stopbuffer > \comment[location=leftmargin, > space=yes, > buffer=abc, > title={P

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Pablo Rodriguez via ntg-context
g your point with the following sample: \showframe \setupinteraction[state=start] \starttext \startbuffer[abc] def foo(x): if x == 0: bar() else: baz(x) foo(x - 1) \stopbuffer \comment[location=leftmargin, space=yes, buffer=abc, title={Python code}] {}\ty

Re: [NTG-context] Unconnected \mathboxanchored produces unexpected results

2022-12-22 Thread Hans Hagen via ntg-context
ded not to use this connector, producing unexpected results. \startformula \mathboxanchored[nucleus]{c1}{e}^{\dot\alpha} \mathboxanchored[nucleus]{c2}{e}_{\mu} \mathboxanchored[nucleus]{c3}{e}^{\beta} = \frac{1}{\sqrt{2}} \bar\sigma^{\dot\alpha\beta}_{\mu} \stopformula \stopboxanchor

[NTG-context] Unconnected \mathboxanchored produces unexpected results

2022-12-22 Thread Gavin via ntg-context
lts. \startformula \mathboxanchored[nucleus]{c1}{e}^{\dot\alpha} \mathboxanchored[nucleus]{c2}{e}_{\mu} \mathboxanchored[nucleus]{c3}{e}^{\beta} = \frac{1}{\sqrt{2}} \bar\sigma^{\dot\alpha\beta}_{\mu} \stopformula \stopboxanchoring \stoptext anchors-002-copy.pdf Description: Adobe

[NTG-context] Accent wrecking \mathboxanchored

2022-12-22 Thread Gavin via ntg-context
_{\mu}% <-- This works, without accent %\mathboxanchored[nucleus]{c2}{\bar{e}}_{\mu} % <-- This does not work, with accent \bar{\mathboxanchored[nucleus]{c2}{e}}_{\mu} % <-- This works, but connector punches through accent \mathboxanchored[nucleus]{c3}{e}^{\beta} = \f

Re: [NTG-context] \typefile not including file and returning success

2022-12-21 Thread Hans Hagen via ntg-context
/kavian/Context/essais/mkiv/bar-bis} Hard-coded absolute paths in TeX files are something I avoid, but I assume that's just for demonstration here. \typefile{./bar-bis} That works as well. It's a workaround at least. But context returning success when it clearly doesn't include the file

Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco Patzer via ntg-context
es sense for TeX (input) files, but not \type'ed files, which are usually not TeX files. \startnitpicking The message verbatims > file 'bar' does not exist is wrong, the file “bar” exists. Displaying verbatims > file 'bar.txt' does not exist \stopnitpicking would be

Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread skyhorse--- via ntg-context
ontext wrote: > Hi Marco, > > If I create a file named « bar.txt » then > > \starttext > Nothing to say\dots > > \typefile{bar.txt} > > \stoptext > > gives the correct result. However ConTeXt seems to dislike \typefile{bar} > when the filename has no suff

Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco via ntg-context
On Sat, 17 Dec 2022 17:43:48 +0100 Otared Kavian wrote: Thanks for your quick reply. > It seems that one can fool ConTeXt into typing a file without suffix > by giving the path to that file… That works, I can confirm. > \typefile{/Users/kavian/Context/essais/mkiv/bar-bis} Hard-coded

Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco Patzer via ntg-context
On Sat, 17 Dec 2022 16:25:01 +0100 Otared Kavian via ntg-context wrote: > If I create a file named « bar.txt » then > > \starttext > Nothing to say\dots > > \typefile{bar.txt} > > \stoptext > > gives the correct result. I can confirm that. > However ConTe

Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Otared Kavian via ntg-context
Hi Marco, If I create a file named « bar.txt » then \starttext Nothing to say\dots \typefile{bar.txt} \stoptext gives the correct result. However ConTeXt seems to dislike \typefile{bar} when the filename has no suffix. Best regards : Otared > On 17 Dec 2022, at 16:06, Marco Patzer via

[NTG-context] \typefile not including file and returning success

2022-12-17 Thread Marco Patzer via ntg-context
Hi! In the following example the file “bar” is not included: # create file “bar” echo Bar > bar # t.tex \starttext Foo \typefile{bar} \stoptext Then run context --errors='*' t.tex The text “bar” is not included in the PDF, only Foo is. The log file shows: verbatims > fil

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

2022-10-19 Thread Wolfgang Schuster via ntg-context
jujubes pie chocolate bar bear claw chupa chups shortbread. Candy candy canes jelly-o jelly beans sugar plum muffin danish donut. Bonbon lemon drops powder jujubes marshmallow biscuit halvah. Powder carrot cake caramels chocolate cake carrot cake jelly-o. Topping danish tootsie roll gummi bears oat

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

2022-10-19 Thread Oliver Sieber via ntg-context
t; offset=1em,background=color,framecolor=black] > {{\bf Definition: Hello World} \blank[medium] > > \placefigure[right, none]{This is an example of a > logo.}{\externalfigure[dummy]} > > Carrot cake tiramisu lollipop dragée lollipop marshmallow carrot cake sweet > past

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

2022-10-19 Thread Ursula Hermann via ntg-context
lollipop marshmallow carrot cake sweet pastry. Tiramisu danish jelly tootsie roll tart gummi bears. Carrot cake chupa chups cake wafer lemon drops lemon drops tiramisu. Chocolate lemon drops sugar plum cheesecake jelly beans sugar plum. Tootsie roll cupcake jujubes pie chocolate bar bear claw chupa

[NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Oliver Sieber via ntg-context
chups cake wafer lemon drops lemon drops tiramisu. Chocolate lemon drops sugar plum cheesecake jelly beans sugar plum. Tootsie roll cupcake jujubes pie chocolate bar bear claw chupa chups shortbread. Candy candy canes jelly-o jelly beans sugar plum muffin danish donut. Bonbon lemon drops powder

Re: [NTG-context] Help test a LMTX bug fix: tweaks in PDF generation

2022-10-09 Thread Leah Neukirchen via ntg-context
rated PDFs). > > Hi Leah, thank you! > > I viewed and printed the PDF with pdf.js in Thunderbird, Apple Preview > and Adobe Acrobat Pro 9 to my Kyocera FS-C5100DN color laserprinter > via KPDL (PS-compatible) driver. > I don’t see any font problems, but neither text nor the bar are

Re: [NTG-context] Help test a LMTX bug fix: tweaks in PDF generation

2022-10-09 Thread Henning Hraban Ramm via ntg-context
laserprinter via KPDL (PS-compatible) driver. I don’t see any font problems, but neither text nor the bar are 100% black – is this intentional? Doesn’t look like RGB black, there are no other colors involved except in the printout from pdf.js. pdf.js seems to print as image and blurs the outlines. (I

Re: [NTG-context] PDF viewer

2022-09-23 Thread Henning Hraban Ramm via ntg-context
- show fonts metadata (inclusion etc.) No. Pity. Should also not be too difficult, since the viewer needs the data anyway. - show PDF Boxes (MediaBox, CropBox, TrimBox, BleedBox, ArtBox) as colored frames, switchable via preferences and menu (bar) item No. Of course. There’s no

Re: [NTG-context] PDF viewer

2022-09-22 Thread Max Chernoff via ntg-context
t; metadata, but XMP doesn't work. > - show fonts metadata (inclusion etc.) No. > - show PDF Boxes (MediaBox, CropBox, TrimBox, BleedBox, ArtBox) as >colored frames, switchable via preferences and menu (bar) item No. > - check for PDF/A and PDF/X compliance would be nice (

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

2022-08-05 Thread Henning Hraban Ramm via ntg-context
Am 05.08.22 um 20:07 schrieb Wolfgang Schuster via ntg-context: juh+ntg-context--- via ntg-context schrieb am 05.08.2022 um 19:04: \starttyping foo └── bar     ├── baz     │   └── index.html     └── index.html \stoptyping The source code is generated with the linux command "tree".

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

[NTG-context] How to display these characters

2022-08-05 Thread juh+ntg-context--- via ntg-context
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 which indicate the folder depth are not displayed. I gu

[NTG-context] mframed and alignment width

2022-07-14 Thread Hans-Joerg Schurr via ntg-context
Hello everyone, I'm using \startaligned with pairs and a distance to represent inference steps, one per row. Now I would like to sometimes add a vertical bar to the left of the rows and one below the last row. I was able to achieve this using \mframed, but now the contented inside the framed box

Re: [NTG-context] Overbar bug

2022-07-05 Thread Aditya Mahajan via ntg-context
> > Any ideas? I don't understand why you are using $\overbar$ in math mode. Do you want $\bar{\alpha}$ and $\bar{\beta}$? Aditya ___ If your question is of interest to others as well, please add an entry to the

Re: [NTG-context] Mark IV or LuaMetaTeX?

2022-05-26 Thread Keith McKay via ntg-context
ing. >> >> Open TexWorks and then click on TexWorks in the menu bar then >> Preferences. The TexWorks Preference window will open up. >> >> Click on the Typesetting tab and you will see two panes. One marked >> "Paths for TeX and related Programs" a

Re: [NTG-context] Mark IV or LuaMetaTeX?

2022-05-26 Thread Tommaso Gordini via ntg-context
text > do the following. > > Open TexWorks and then click on TexWorks in the menu bar then Preferences. > The TexWorks Preference window will open up. > > Click on the Typesetting tab and you will see two panes. One marked "Paths > for TeX and related Programs" and ano

  1   2   3   4   5   6   7   8   9   10   >