Re: [NTG-context] Macros which scan subscripts/superscripts in ConTeXt

2020-06-26 Thread Hans Hagen
is: \documentclass{article}\usepackage{amsmath}\usepackage{xparse} \NewDocumentCommand{\mymathsym}{e{^_}}{%  x^{\mathrm{foo}\IfValueT{#1}{,#1}}_{\mathrm{bar}\IfValueT{#2}{,#2}}%} \begin{document} \begin{gather}\mymathsym \\\mymathsym^{\mathrm{extrasup}} \\\mymathsym_{\mathrm{extrasub}} \\\mymathsym^{\mathrm

Re: [NTG-context] Macros which scan subscripts/superscripts in ConTeXt

2020-06-25 Thread Aditya Mahajan
{xparse} \NewDocumentCommand{\mymathsym}{e{^_}}{% x^{\mathrm{foo}\IfValueT{#1}{,#1}}_{\mathrm{bar}\IfValueT{#2}{,#2}}%} \begin{document} \begin{gather}\mymathsym \\\mymathsym^{\mathrm{extrasup}} \\\mymathsym_{\mathrm{extrasub}} \\\mymathsym^{\mathrm{extrasup}}_{\mathrm{extrasub}} \\\mymathsym_

[NTG-context] Macros which scan subscripts/superscripts in ConTeXt

2020-06-25 Thread Jairo A. del Rio
{^_}}{% x^{\mathrm{foo}\IfValueT{#1}{,#1}}_{\mathrm{bar}\IfValueT{#2}{,#2}}%} \begin{document} \begin{gather}\mymathsym \\\mymathsym^{\mathrm{extrasup}} \\\mymathsym_{\mathrm{extrasub}} \\\mymathsym^{\mathrm{extrasup}}_{\mathrm{extrasub}} \\\mymathsym_{\mathrm{extrasub}}^{\mathrm{extrasup}} \end{gather

Re: [NTG-context] French interface

2020-06-25 Thread Wolfgang Schuster
ts "start" (\e!start) and "place" (\e!place) and the variable "figure" (\v!figure.) 2/ I don't understand the following RUN OK: % interface=fr \debuttexte \debutsection[titre=test] This is a test \finsection \codelua{context("Foo Bar 1")} \fintexte \

[NTG-context] French interface

2020-06-25 Thread Garulfo
becomes \placerchemical \startplacerchemical becomes \debutplacerchemical 2/ I don't understand the following RUN OK: % interface=fr \debuttexte \debutsection[titre=test] This is a test \finsection \codelua{context("Foo Bar 1")} \fintexte DOESNT RUN % interface=fr \

[NTG-context] update

2020-06-25 Thread Hans Hagen
already reported in an earlier mail). I have no clue how useful it is, but as usual with tex, users find ways to (ab)use it. This one behaves a bit more like registers. A hashed one is defined as: \newhashedtable\somehashtable \somehashtable{ foo = 123, bar = "foo" } [123 = \the\som

Re: [NTG-context] Bar within math (amended)

2020-06-15 Thread Henning Hraban Ramm
> Am 11.06.2020 um 13:41 schrieb Axel Kielhorn : > >> Am 09.06.2020 um 20:41 schrieb Wolfgang Schuster >> : >> >> Use a textbackground to highlight parts of your text. >> >> \definetextbackground >> [Highlight] >> [frame=off, >> background=color, >> backgroundcolor=yellow] >> >> \starttext

Re: [NTG-context] Bar within math (amended)

2020-06-11 Thread Axel Kielhorn
> Am 09.06.2020 um 20:41 schrieb Wolfgang Schuster > : > > Use a textbackground to highlight parts of your text. > > \definetextbackground > [Highlight] > [frame=off, > background=color, > backgroundcolor=yellow] > > \starttext > > \m{1 + 2 = \unit{3 kilo newton}} > > \m{1 + 2 =

Re: [NTG-context] new version

2020-06-10 Thread Alan Bowen
kred \raggedright \dorecurse {100} { > #1=\scratchcounter\getdatavalue{#1}\the\scratchcounter > } \par \stop \blank > > \start \tttf \darkgreen \raggedright \dorecurse {100} { > #1=\thedatavalue{#1}% > } \par \stop \blank > > \bgroup \tttf > \newluatable\

[NTG-context] new version

2020-06-10 Thread Hans Hagen
\newluatable\testtable \setluatable\testtable{ foo = 123, bar = "456", oof = "rab" } % \inspectluatable\testtable \darkblue foo = \getfromluatable\testtable{foo}\par bar = \getfromluatable\testtable{bar}\par oof = \getfromluatable\testtable{oof}\blank \bgroup

Re: [NTG-context] Bar within math (amended)

2020-06-09 Thread Wolfgang Schuster
Lukas/ConTeXt schrieb am 09.06.2020 um 20:28: Hello, it seems that bar (even with option 'continue=yes') is not rendered in place of '~' within math. See the sample: \definebar[MyBar][color=green,rulethickness=2.8,order=background,offset=1.5,continue=yes] \starttext 1 + 2 = \startbar

[NTG-context] Bar within math (amended)

2020-06-09 Thread Lukas/ConTeXt
Hello, it seems that bar (even with option 'continue=yes') is not rendered in place of '~' within math. See the sample: \definebar[MyBar][color=green,rulethickness=2.8,order=background,offset=1.5,continue=yes] \starttext 1 + 2 = \startbar[MyBar]3~kN\stopbar % OK $1 + 2 = \startbar

Re: [NTG-context] wiki update - status

2020-06-08 Thread Aditya Mahajan
On Mon, 8 Jun 2020, Garulfo wrote: - Remove former "manually made links bar" at the top of the pages current structure should be enough now have an easier understanding of the wiki structure. Along that line, we should also considering fixing the getting started navbox o

Re: [NTG-context] wiki update - status

2020-06-08 Thread Marcus Vinicius Mesquita
Lua from TeX" and "Calling TeX from Lua" > (section +links) in a same page > - Tools: >- segregate "core tools" and "additional tools" >- highlight existence of mtxrun and context scripts pages > - Remove former "manually made li

Re: [NTG-context] wiki update - status

2020-06-08 Thread Hans Hagen
highlight existence of mtxrun and context scripts pages - Remove former "manually made links bar" at the top of the pages   current structure should be enough now have an easier understanding of   the wiki structure. Thanks for your help Taco, Hans, Aditya, Hraban, Tomáš. I hope th

[NTG-context] wiki update - status

2020-06-07 Thread Garulfo
quot;, add PDF links and so on - Programming & DB: - Gather "Calling Lua from TeX" and "Calling TeX from Lua" (section +links) in a same page - Tools: - segregate "core tools" and "additional tools" - highlight existence of mtxrun and context sc

[NTG-context] Bar within math

2020-05-30 Thread context
Hello, it seems that bar (even with option 'continue=yes') is not rendered in place of '~' within math. See the sample: \definebar[MyBar][color=green,rulethickness=2.8,order=background,offset=1.5,continue=yes] \starttext 1 + 2 = \startbar[MyBar]3~kN\stopbar $1 + 2 = \startbar[MyBar

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Wolfgang Schuster
}] \dorecurse{2}{\input tufte \par} \stopchapter \startchapter [title={foo2}] \dorecurse{6}{\input tufte \par} \stopchapter \startchapter [title={bar}] \input knuth \startTEXpage \externalfigure[cow.pdf][height=\paperheight,width=\paperwidth] \stopTEXpage \stopchapter \startchapter

[NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread juh
[title={foo2}] \dorecurse{6}{\input tufte \par} \stopchapter \startchapter [title={bar}] \input knuth \startTEXpage \externalfigure[cow.pdf][height=\paperheight,width=\paperwidth] \stopTEXpage \stopchapter \startchapter [title={baz}] \input knuth \stopchapter \stoptext

Re: [NTG-context] issue with environment and Lua

2020-05-27 Thread Pablo Rodriguez
I have just discovered that I get different HTML math output in pandoc. From these inputs in the same source file: 1 $I = V × D$ 2 $\top{v_e} \approx \top{v}_t$ I get these HTML outputs: 1 I = D × V 2 $\bar{v}_e \approx \bar{v}_t $ The first one is problematic to get with \xmlflushconte

Re: [NTG-context] Using command line values in a TeX document; writing a script?

2020-04-15 Thread r . ermers
Use it like this with saxon (xsl version 2). saxon -xsl:myxslfile.xsl -s:myxmlfile.xml -o:dummy.xml This program will generate an empty dummyfile.xml but also xml files, (e.g. BAR.xml) in which it will collect al contact that have @ad=‘BAR', and there will be as many files as you have different val

Re: [NTG-context] Using command line values in a TeX document; writing a script?

2020-04-15 Thread Gerben Wierda
p entries which are used > to map the XML tags to ConTeXt commands and environment, the resulting > PDF file has the same name as the XML file. That is different from the resulting PDF file has the name of an entry/field in the XML file. So, what I am looking for is:

[NTG-context] Background color of a framedtext that covers floats

2020-04-08 Thread Fabrice Couvreur
=white] \startxrow \startxcell \bf Profondeur \m{x} (en mètre) \stopxcell \startxcell \bf Pression \m{P} (en bar) \stopxcell \startxcell \bf Volume \m{V} (en \m{\text{dm}^{3

Re: [NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Gerben Wierda
n XML >>>>>> file. One of the issues I am running into that in METAPOST I have to >>>>>> handle strings with " characters in them and METAPOST doesn’t like >>>>>> those. The argument using the string >>>>>> Foo "

Re: [NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Wolfgang Schuster
t; wrote: Gerben Wierda schrieb am 29.03.2020 um 12:52: I am using MetaFun (Lua code) to create METAPOST commands from an XML file. One of the issues I am running into that in METAPOST I have to handle strings with " characters in them and METAPOST doesn’t like those. The argument using th

Re: [NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Gerben Wierda
am using MetaFun (Lua code) to create METAPOST commands from an XML >>>> file. One of the issues I am running into that in METAPOST I have to >>>> handle strings with " characters in them and METAPOST doesn’t like those. >>>> The argument using the string &

Re: [NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Gerben Wierda
> strings with " characters in them and METAPOST doesn’t like those. The >> argument using the string >> Foo "Bar” Foo > > ^^^ > > Use correct left quotation marks or \quotation{…}. I’m not hard coding the string, I’m reading it from an XML. So, whatever I do,

Re: [NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Wolfgang Schuster
strings with " characters in them and METAPOST doesn’t like those. The argument using the string Foo "Bar” Foo ^^^ Use correct left quotation marks or \quotation{…}. I’m not hard coding the string, I’m reading it from an XML. So, whatever I do, I need to do it by manipulating

[NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Gerben Wierda
I am using MetaFun (Lua code) to create METAPOST commands from an XML file. One of the issues I am running into that in METAPOST I have to handle strings with " characters in them and METAPOST doesn’t like those. The argument using the string Foo "Bar” Foo turns into someCall( &quo

Re: [NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Wolfgang Schuster
Foo "Bar” Foo ^^^ Use correct left quotation marks or \quotation{...}. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg

Re: [NTG-context] write a subtitle under the title of a chapter using outlined font

2020-03-21 Thread Jeong Dal
s the size of the >> title? > \tfd \setupinterlinespace Foo \par > \tfa \setupinterlinespace Bar \par ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

Re: [NTG-context] Quotation dash issues with semantic markup

2020-01-17 Thread Wolfgang Schuster
s do; try switching the commented lines and re-rendering. The quotation dash itself only \emph{looks} as I want it; when I highlight and copy the text or export it to the \cap{XML} backend, it's still two dashes next to each other.  Instead, I'd like it to be the Unicode bar U+2015.  I'm not sur

Re: [NTG-context] Quotation dash issues with semantic markup

2019-12-30 Thread Hans Hagen
switching the commented lines and re-rendering. The quotation dash itself only \emph{looks} as I want it; when I highlight and copy the text or export it to the \cap{XML} backend, it's still two dashes next to each other. Instead, I'd like it to be the Unicode bar U+2015. I'm not sure if \TEX/\LUATE

[NTG-context] Quotation dash issues with semantic markup

2019-12-29 Thread Sam May
ond being non-breaking) while the others do. The quotation dash itself only /looks/ as I want it; when I highlight and copy the text or export it to the XML backend, it's still two dashes next to each other. Instead, I'd like it to be the Unicode bar U+2015. I'm not sure if TEX/LUATEX all

Re: [NTG-context] Indenting number in TOC, particular numbering scheme, and other questions

2019-12-04 Thread Daniel Haid
}] \startsubsection[title={Subsection}] \startsubsubsection[title={First Subsubsection}] \startsubsubsubsection[title={Foo}, reference=foo] \stopsubsubsubsection \startsubsubsection[title={Second subsubsection}] \startsubsubsubsection[title={Bar}, reference

Re: [NTG-context] context command line interface documentation?

2019-11-19 Thread Hans Hagen
some flags and act on it - the context (and mtxrun) script also need them (as script) - some passed arguments are used to drive the process - and potentially common flags should not interfere --foo --foo=bar --foo="bar bar" filename "file name" should all work (also wit

Re: [NTG-context] Math symbol for inexact differential

2019-11-13 Thread w n
so most text fonts > will have it (these days). > > > > > > On 13 Nov 2019, at 01:59, w n wrote: > > > > True, I should not have used the term inexact differential. > > How can I get a math symbol with a "d" and a bar across ? > > > > On

Re: [NTG-context] Math symbol for inexact differential

2019-11-13 Thread Taco Hoekwater
How about đ ? (U+00111) That is a character in Latin Extended-A, so most text fonts will have it (these days). > On 13 Nov 2019, at 01:59, w n wrote: > > True, I should not have used the term inexact differential. > How can I get a math symbol with a "d" and a ba

Re: [NTG-context] Math symbol for inexact differential

2019-11-12 Thread w n
True, I should not have used the term inexact differential. How can I get a math symbol with a "d" and a bar across ? On Wed, Nov 13, 2019 at 1:11 AM Hans Åberg wrote: > > > On 13 Nov 2019, at 00:26, w n wrote: > > > > Working on some thermodynamics and I need a

Re: [NTG-context] Math symbol for inexact differential

2019-11-12 Thread Hans Åberg
> On 13 Nov 2019, at 00:26, w n wrote: > > Working on some thermodynamics and I need a math symbol for > an inexact differential, it is the letter d with a bar across. Normally one is using a lowercase delta according to: https://en.wikipedia.org/wiki/Inexact_

[NTG-context] Math symbol for inexact differential

2019-11-12 Thread w n
Working on some thermodynamics and I need a math symbol for an inexact differential, it is the letter d with a bar across. Tried the following but failed \starttext \def\dbar{{\mathchar'26\mkern-12mu d}} \startformula d u = \dbar q + \dbar w \stopformula \stoptext

Re: [NTG-context] How to sort list of sections?

2019-11-08 Thread Rik Kabel
]   \startsection[title={Beta}]  \input sapolsky \stopsection   \startsection[title={Alpha}] \input sapolsky \stopsection  \stopchapter  \startchapter[title=bar]   \placelist[section][criterium=local,order=title]   \startsection[title={Alpha}] \input sapolsky

Re: [NTG-context] Bug in latest LMTX?

2019-10-29 Thread Hans Hagen
On 10/29/2019 7:58 AM, Otared Kavian wrote: Hi Hans, Last night I updated to th elatest beta LMTX (version 2019.10.28 18:57), and noticed that several things don't work as usual. I have not yet been able to find all the examples, but here is one in math: \definemathfence[abs][bar][command

[NTG-context] Bug in latest LMTX?

2019-10-29 Thread Otared Kavian
Hi Hans, Last night I updated to th elatest beta LMTX (version 2019.10.28 18:57), and noticed that several things don't work as usual. I have not yet been able to find all the examples, but here is one in math: \definemathfence[abs][bar][command=yes,factor=auto] \starttext \startformula

Re: [NTG-context] \startitemize + "joinedup" ("nowhite") not working in footnotes?

2019-10-10 Thread Hans Hagen
On 10/7/2019 8:25 AM, cont...@vivaldi.net wrote: Hello, anyone to confirm/explain/fix the vertical gap? Lukas On 2019-10-02 14:40, cont...@vivaldi.net wrote: Hello, in the following sample there is unwanted vertical gap between text "Foo" and the first item "- bar&quo

Re: [NTG-context] \startitemize + "joinedup" ("nowhite") not working in footnotes?

2019-10-07 Thread context
Hello, anyone to confirm/explain/fix the vertical gap? Lukas On 2019-10-02 14:40, cont...@vivaldi.net wrote: Hello, in the following sample there is unwanted vertical gap between text "Foo" and the first item "- bar" in the footnote 1 (and also between "Bar"

[NTG-context] \startitemize + "joinedup" ("nowhite") not working in footnotes?

2019-10-02 Thread context
Hello, in the following sample there is unwanted vertical gap between text "Foo" and the first item "- bar" in the footnote 1 (and also between "Bar" and "- bar") - see red arrows. The same code used outside the footnote behaves as expected - there is

[NTG-context] mathring circle above a letter

2019-09-14 Thread Otared Kavian
like the small circle to be put above the bar which is itself above the A in $\interior{\overline{A}}$). Thanks for any help: OK %%% begin mathring-interior.tex \setuppapersize[A5][A5] \definemathstackers[MySymbol] [voffset=-1.2\mathexheight, hoffset=\zeropoint, mathclass

Re: [NTG-context] context (lmtx) segfaults on x86_64 linux

2019-09-10 Thread Vladimir Lomov
-- Got a wife and kids in Baltimore Jack, I went out for a ride and never came back. Like a river that don't know where it's flowing, I took a wrong turn and I just kept going. Everybody's got a hungry heart. Everybody's got a hungry heart. Lay down your money and you pla

Re: [NTG-context] Wrong MetaPost text output

2019-08-11 Thread Henri Menke
vel [["foo"]] > metapost> rewrapping btex ... etex at the outer level [[bar]] > > when this is seen > > def drawtest = > draw btex dummy etex shifted (0,0); > draw btex "foo" etex shifted (1.5cm,0); > draw btex bar etex shifted (3cm,

Re: [NTG-context] Wrong MetaPost text output

2019-08-11 Thread Hans Hagen
On 8/11/2019 6:09 PM, Henri Menke wrote: Dear devs, There seems to be a bug in the MetaPost integration of ConTeXt. The MWE below should produce three different labels “dummy foo bar” but instead produces “bar bar bar”. The same example works correctly in plain MetaPost. Originally reported

[NTG-context] Wrong MetaPost text output

2019-08-11 Thread Henri Menke
Dear devs, There seems to be a bug in the MetaPost integration of ConTeXt. The MWE below should produce three different labels “dummy foo bar” but instead produces “bar bar bar”. The same example works correctly in plain MetaPost. Originally reported on https://tex.stackexchange.com

Re: [NTG-context] \setupheadertexts \setupfootertexts

2019-08-02 Thread Hans Hagen
lists as page setups can be more complex than just 'letter') (But I'm willing to remove the command that I know you hate most, namely { {foo} \over {bar} }.) Do you find that keys in \setupheader make sense? If so, what choice? (as we like to limit the proliferation of key names). \setupheader

[NTG-context] Using \currentreferencenumber triggers “has a hidden number” in log file

2019-07-18 Thread Marco Patzer
\currentreferencenumber\emptyreference {Foo}{Bar}}%% } \setuphead [section] [number=no] \starttext \startsection [title=Foo, reference=sec:foo] \samplefile{knuth} \stopsection \foo[sec:foo] \stoptext Then check the log file for “has a hidden number”. 1) How to not trigger the log

Re: [NTG-context] Spacing after combination

2019-07-16 Thread Willi Egger
ion is > placed? > > \useMPlibrary [dum] > > \starttext > > \startcombination [2*2] > \startcontent \externalfigure \stopcontent > \startcaption Foo\stopcaption > \startcontent \externalfigure \stopcontent > \startcaption Bar\stopcaption > \startcontent \

[NTG-context] Spacing after combination

2019-07-16 Thread Marco Patzer
Hi! Is there a way to influence the spacing after a combination is placed? \useMPlibrary [dum] \starttext \startcombination [2*2] \startcontent \externalfigure \stopcontent \startcaption Foo\stopcaption \startcontent \externalfigure \stopcontent \startcaption Bar\stopcaption

Re: [NTG-context] Typesetting Markdown – Part 5: Interpolation

2019-07-09 Thread Thangalin
> course, you can always enable "otf.keepnames" if you need names like >> > this. >> > >> > But I actually want to talk about another class of names: Look at >> > "Udotbelow". This is IMHO a perfectly normal and useful name, but the &g

Re: [NTG-context] Typesetting Markdown – Part 5: Interpolation

2019-07-08 Thread Andres Conrado
- >Hans Hagen | PRAGMA ADE >Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl >

Re: [NTG-context] problems with images, layers and crop marks

2019-07-08 Thread Hans Hagen
for working with LaTeX, and my other projects get less time. Anyway, one of our authors finally submitted her final corrections, and "of course" my ConTeXt setup that still worked well in May doesn’t behave any more: * stacked layers won’t work on the first page (there should be a

[NTG-context] problems with images, layers and crop marks

2019-07-07 Thread Henning Hraban Ramm
get less time. Anyway, one of our authors finally submitted her final corrections, and "of course" my ConTeXt setup that still worked well in May doesn’t behave any more: * stacked layers won’t work on the first page (there should be a title bar above an image; it works on the

Re: [NTG-context] mkiv MathML bug?

2019-06-27 Thread Duncan Hothersall
On Thu, 27 Jun 2019, 20:46 Hans Hagen, wrote: > On 6/27/2019 6:35 PM, Duncan Hothersall wrote: > > I'm not sure this is something more general in the MathML module or if > > it's specific to the vertical bar in this particular context, but here > > is a minimal example

Re: [NTG-context] mkiv MathML bug?

2019-06-27 Thread Hans Hagen
On 6/27/2019 6:35 PM, Duncan Hothersall wrote: I'm not sure this is something more general in the MathML module or if it's specific to the vertical bar in this particular context, but here is a minimal example showing that the "=0" at the end of the equation is disappearing: there

[NTG-context] mkiv MathML bug?

2019-06-27 Thread Duncan Hothersall
I'm not sure this is something more general in the MathML module or if it's specific to the vertical bar in this particular context, but here is a minimal example showing that the "=0" at the end of the equation is disappearing: \usemodule[mathml] \starttext \xmlp

Re: [NTG-context] No menu bar option for Adobe Reader

2019-05-01 Thread Paul Schalck
I have just tested the latest beta (2019-04-29). The new option works as expected in both Acrobat Reader 11 and DC. Thanks again. Paul ___ If your question is of interest to others as well, please add an entry to the

Re: [NTG-context] No menu bar option for Adobe Reader

2019-05-01 Thread Henning Hraban Ramm
Am 2019-04-28 um 12:27 schrieb Hans Hagen : > On 4/27/2019 6:07 PM, Paul Schalck wrote: >> Hi, >> I use the "Hide menu bar" option extensively in Adobe Acrobat Reader to get >> a cleaner interface. To this end, I usually hack lpdf-mis.lua after

Re: [NTG-context] No menu bar option for Adobe Reader

2019-05-01 Thread luigi scarso
On Sun, Apr 28, 2019 at 10:38 PM Paul Schalck wrote: > @luigi: Version 11. I know, it isn't supported anymore since October 2017. > https://linuxconfig.org/how-to-install-latest-adobe-acrobat-reader-dc-on-ubuntu-18-04-bionic-beaver-linux-with-wine seems to work, I have installed

[NTG-context] registers: setting pageleft parameter by index term

2019-04-29 Thread mf
}. \page Bar\index{bar}. \page Baz\index{baz}. \page \placeindex \stoptext The pageleft parameter of \setupindex (\setupregister) is normally set to " p.~", but it gets redefined to " P.~" for the second term in the index ("baz"). Here i'm using a counter and i ch

Re: [NTG-context] No menu bar option for Adobe Reader

2019-04-28 Thread Paul Schalck
@luigi: Version 11. I know, it isn't supported anymore since October 2017. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] No menu bar option for Adobe Reader

2019-04-28 Thread luigi scarso
On Sun, Apr 28, 2019 at 9:42 PM Paul Schalck wrote: > > I use Acrord because I'm used to it and because I think it still has the > best subpixel rendering, at least in the Linux world (with Wine). Mozilla's > PDF.js comes close though. > which version of adobe reader are you using? -- luigi

Re: [NTG-context] No menu bar option for Adobe Reader

2019-04-28 Thread Paul Schalck
@Hans: Thanks a lot, I'm looking forward to testing it. @Alan: Like Hans said. It's a new option, and I have it activated in my local environment file. It's the only and clumsy way to control the interface setting since Adobe Reader cannot save the state of the menu bar permanently (which

Re: [NTG-context] No menu bar option for Adobe Reader

2019-04-28 Thread Hans Hagen
On 4/28/2019 5:25 PM, Alan Braslau wrote: On 28Apr19, at 04:27, Hans Hagen wrote: \setupinteractionscreen[option=nomenubar] switch. I wonder if it would be possible to add this little feature to the source code. Why don’t you simply put this setup in your local environment (texmf-local)

Re: [NTG-context] No menu bar option for Adobe Reader

2019-04-28 Thread Alan Braslau
> On 28Apr19, at 04:27, Hans Hagen wrote: > >> \setupinteractionscreen[option=nomenubar] switch. >> I wonder if it would be possible to add this little feature to the source >> code. Why don’t you simply put this setup in your local environment (texmf-local) as I do not believe that it

Re: [NTG-context] No menu bar option for Adobe Reader

2019-04-28 Thread Hans Hagen
On 4/27/2019 6:07 PM, Paul Schalck wrote: Hi, I use the "Hide menu bar" option extensively in Adobe Acrobat Reader to get a cleaner interface. To this end, I usually hack lpdf-mis.lua after a ConTeXt upgrade to create a \setupinteractionscreen[option=nomenubar] switch. I wonder i

[NTG-context] No menu bar option for Adobe Reader

2019-04-27 Thread Paul Schalck
Hi, I use the "Hide menu bar" option extensively in Adobe Acrobat Reader to get a cleaner interface. To this end, I usually hack lpdf-mis.lua after a ConTeXt upgrade to create a \setupinteractionscreen[option=nomenubar] switch. I wonder if it would be possible to add this litt

Re: [NTG-context] Left frame on a block of text

2019-04-21 Thread Otared Kavian
Hi Aditya and Gilles, It seems to me that adding a bar in the margin either with framedtext or with MetaPost, lacks the ability to continue through a page break. Using the ConTeXt built-in sidebar mechanism has the advantage of continuing through a page break, but it is still not perfetct

Re: [NTG-context] Left frame on a block of text

2019-04-20 Thread Aditya Mahajan
On Sat, 20 Apr 2019, Gilles Waeber wrote: Hi, I'm trying to create a style with a left border in the margin. I want the border to start and stop with the text. For the bottom I used framedepth but the bar still goes too far on the top? \showframe \showboxes \defineframedtext[leftbartext

[NTG-context] Left frame on a block of text

2019-04-20 Thread Gilles Waeber
Hi, I'm trying to create a style with a left border in the margin. I want the border to start and stop with the text. For the bottom I used framedepth but the bar still goes too far on the top? \showframe \showboxes \defineframedtext[leftbartext][ width=broad, frame=off

Re: [NTG-context] Filling the diamond in enumeration

2019-04-20 Thread Otared Kavian
Hi Fabrice, You can define your own symbol, as in the following: \starttext \definesymbol[mysymbol][{$\red\blacklozenge$}] \definesymbol[redtriangle][{$\red\blacktriangleright$}] \startitemize[mysymbol] \item foo \item bar \item baz \stopitemize \startitemize[redtriangle

Re: [NTG-context] luaotfload

2019-04-12 Thread Herbert Voss
Am 12.04.19 um 17:34 schrieb Hans Hagen: The font files are here: http://tug.org/~hvoss/Sparks-Bar-Medium.otf http://tug.org/~hvoss/Sparks-Dotline-Medium.otf i hacked a faster solution for such fonts (now I need some 25 sec for the initial caching so probably less on your machine and <

Re: [NTG-context] luaotfload

2019-04-12 Thread Hans Hagen
will only use one core - the 30 min on linux is probably due to swapping - the 8 gig in general is a side effect of the way this font is using pair positioning (half a billion pairs due to classes where most pairs are dummies) The font files are here: http://tug.org/~hvoss/Sparks-Bar-Medium.otf

[NTG-context] luaotfload

2019-04-12 Thread Herbert Voss
(upcoming TL2019) needs 9.5 Gbyte memory and nearly 100% CPU load to scan the Sparks-Dotline font. This one is, of course, 400 kB big, but why do we need more than 8 GByte Ram?? The font files are here: http://tug.org/~hvoss/Sparks-Bar-Medium.otf http://tug.org/~hvoss/Sparks-Dotline-Medium.otf -rw-r

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
> In this minimal example, the frame doesn't appear (or if i set > > [frame=on,leftframe=off] all the frame is rendered) and the left and > > right offsets are not took into account. > > textbackground uses metapost for ALL backgrounds and the default metapost > code to draw the

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
l the frame is rendered) and the left and > > > right offsets are not took into account. > > > > textbackground uses metapost for ALL backgrounds and the default metapost > > code to draw the background (draw_multi_pars, defined in mp-abck.mkiv) > > doesn't handl

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Alan Braslau
ost > code to draw the background (draw_multi_pars, defined in mp-abck.mkiv) > doesn't handle individual frames. So, you have to write your own metapost > code to draw the side bar. > > Another option for simple backgrounds is to use `\definebackground` > instead of `defin

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Aditya Mahajan
he default metapost code to draw the background (draw_multi_pars, defined in mp-abck.mkiv) doesn't handle individual frames. So, you have to write your own metapost code to draw the side bar. Another option for simple backgrounds is to use `\definebackground` instead of `definetextbackgrou

Re: [NTG-context] How to define a new language?

2019-02-28 Thread Paul Hoffman
en, after some detective work, I found that I can generate /bar/lang-foo.lua from /foo/hyph-foo.tex by running the following command: mtxrun --script patterns --convert --path=/foo --destination=/bar \ --specification=foo,hyph-foo,Foobar This prints a lot of errors ("no valid file

Re: [NTG-context] about the color of sidebar

2019-02-24 Thread Mohammad Hossein Bateni
gt; 2019. 2. 24. 오후 7:17, ntg-context-requ...@ntg.nl 작성: > > On 2/24/2019 12:25 AM, mf wrote: > > BTW \startsidebar ... \stopsidebar stopped working too. > > i'll upload a fix later today > > Hans > > > It is good to know the commnad "\startsidebar … \s

[NTG-context] about the color of sidebar

2019-02-24 Thread Jeong Dal
bar” because I used the same style bar by defining a frame and overlay. Here is a question: Is it possible to change the color of the bar or any other options? There is no commnad like “\setupsidebar” in the wi

Re: [NTG-context] Bug in math: version

2019-02-14 Thread Alan Braslau
On Thu, 14 Feb 2019 08:42:15 -0700 Alan Braslau wrote: > On Thu, 14 Feb 2019 13:02:21 +0100 > Hans Hagen wrote: > > > On 2/13/2019 7:12 PM, Alan Braslau wrote: > > > Not just the latest beta ... and indeed according to the TeXbook this > > > should be a ver

Re: [NTG-context] Bug in math: version

2019-02-14 Thread Alan Braslau
On Thu, 14 Feb 2019 13:02:21 +0100 Hans Hagen wrote: > On 2/13/2019 7:12 PM, Alan Braslau wrote: > > Not just the latest beta ... and indeed according to the TeXbook this > > should be a vertical double bar (\Vert), in math mode. > > > > I wish to point out tha

Re: [NTG-context] Bug in math: version

2019-02-14 Thread Hans Hagen
On 2/13/2019 6:52 PM, Otared Kavian wrote: Hi Hans, With the latest beta there seems a bug has been intoduced with « \| » which should give a vertical double bar and not a simple bar. hm, has always been so, \* being an escape This is a minimal example: \starttext With 2019.02.10 17:43

Re: [NTG-context] Bug in math: version

2019-02-14 Thread Hans Hagen
On 2/13/2019 7:12 PM, Alan Braslau wrote: Not just the latest beta ... and indeed according to the TeXbook this should be a vertical double bar (\Vert), in math mode. I wish to point out that | in text font (text mode) is different from | in math font (math mode). I noticed that Preview

Re: [NTG-context] Bug in math: version

2019-02-13 Thread Alan Braslau
Not just the latest beta ... and indeed according to the TeXbook this should be a vertical double bar (\Vert), in math mode. I wish to point out that | in text font (text mode) is different from | in math font (math mode). I noticed that Preview (on the mac) *fails* to render the math font

[NTG-context] Bug in math: version

2019-02-13 Thread Otared Kavian
Hi Hans, With the latest beta there seems a bug has been intoduced with « \| » which should give a vertical double bar and not a simple bar. This is a minimal example: \starttext With 2019.02.10 17:43, the command \type{\|x\|} gives an incorrect result: $\|x\| = 1$ $|x| = 1$ \stoptext Best

Re: [NTG-context] Title from setupinteraction used in header

2019-02-03 Thread Jan U. Hasecke
:title} – \documentvariable{metadata:author}] > > \setupdocument >   [metadata:title={foo}, >    metadata:subtitle={bar}, >    metadata:author={Peter}, >    metadata:keyword={context}] > > \starttext > \sampl

Re: [NTG-context] Title from setupinteraction used in header

2019-02-03 Thread Wolfgang Schuster
Jan U. Hasecke schrieb am 03.02.19 um 14:23: Hi all, it is quite easy to have chapters in headers and footers as shows this example. \setuppagenumbering[location=] \setupheadertexts [text] [chapter] [] [] [chapter] \setupinteraction [title={foo}, subtitle={bar}, author={Peter

[NTG-context] Title from setupinteraction used in header

2019-02-03 Thread Jan U. Hasecke
Hi all, it is quite easy to have chapters in headers and footers as shows this example. \setuppagenumbering[location=] \setupheadertexts [text] [chapter] [] [] [chapter] \setupinteraction [title={foo}, subtitle={bar}, author={Peter}, keyword={context}] \starttext

Re: [NTG-context] Itemize lists run into floats - how to add additional spacing

2018-12-19 Thread Hans Hagen
[packed, autointro] \starttext \startitemize \startitem Foo \startplacefigure [title=Lorem ipsum dolor sit amet consectetur] \externalfigure [hacker] \stopplacefigure Bar \stopitem \dorecurse{15}{%% \startitem Foobar \stopitem } \stopitemize \stoptext

[NTG-context] Itemize lists run into floats - how to add additional spacing

2018-12-19 Thread Marco Patzer
\startitem Foo \startplacefigure [title=Lorem ipsum dolor sit amet consectetur] \externalfigure [hacker] \stopplacefigure Bar \stopitem \dorecurse{15}{%% \startitem Foobar \stopitem } \stopitemize \stoptext Marco

Re: [NTG-context] Formulas in TABLE with character alignment

2018-10-09 Thread Hans Hagen
{NH_3} \eTD \bTD R407C \eTD \bTD R134a \eTD \eTR \bTR \bTD \math{t_s} \eTD \bTD \math{p_s} \eTD \bTD \math{p_s}\eTD \bTD \math{p_s} \eTD \eTR \bTR \bTD \unit{Celsius} \eTD \bTD \unit{bar} \eTD \bTD \unit{bar}\eTD \bTD \unit{bar} \eTD \eTR

<    1   2   3   4   5   6   7   8   9   10   >