Re: [NTG-context] Chapter number retrieval

2022-03-22 Thread Willi Egger via ntg-context
Hello Sreeram! What a nice and simple solution. After fiddling a bit I got it working also in my environment for the book! — Thank you so much for the support. Kind regrards Willi > On 22 Mar 2022, at 03:29, śrīrāma via ntg-context wrote: > > On Tuesday, March 22, 2022 2:17 AM Wi

Re: [NTG-context] redefining xmlsetups inside a XML document

2022-03-22 Thread mf via ntg-context
-- I prefer this one: -- \startxmlsetups myHtml:i {\it\blue\xmlflush{#1}}\relax \stopxmlsetups -- You need to end the line with a macro eating up all the trailing spaces (newlines included). Massi Il 22/03/22 15:23, mf via ntg-

Re: [NTG-context] redefining xmlsetups inside a XML document

2022-03-22 Thread mf via ntg-context
I found the solution I was looking for. The command to run is still context --environment=nested-xmlsetup.tex --forcexml nested-xmlsetup.xhtml In the element there's some tex code, which redefines the </tt><tt>xmlsetups for <p> and <i> elements, coloring the first o

Re: [NTG-context] redefining xmlsetups inside a XML document

2022-03-10 Thread Hans Hagen via ntg-context
above) If it worked, the resulting PDF should show the body element, followed by a "Hello world!" paragraph written in red. But it does not work, because there's something I'm missing in the redefinition and application of xmlsetups. To try the MWE, type: context --environment=nested-

[NTG-context] redefining xmlsetups inside a XML document

2022-03-10 Thread mf via ntg-context
show the body element, followed by a "Hello world!" paragraph written in red. But it does not work, because there's something I'm missing in the redefinition and application of xmlsetups. To try the MWE, type: context --environment=nested-xmlsetup.tex --forcexml nested-xmlsetup.xhtml Mass

[NTG-context] Makeup on same page as main content

2022-03-05 Thread mastermind_ x via ntg-context
Hi all, I would like to create a makeup environment that will contain author, university logo and date and other information that doesn’t occupy its own page that I can define in an environment file and reuse. The logo and date should occupy the margins at the top at the left and right

[NTG-context] Bibliography

2022-02-22 Thread Willi Egger via ntg-context
Hi all,I have a rather old project which involves a bibbliography of about 60 entries. — Now I tried to use the publications environment after reading the manual. — I must say environment this is impressive!However I struggle with getting it working.1. When using my dataset, which is encoded

Re: [NTG-context] Disable reuse of figures

2022-02-21 Thread Aditya Mahajan via ntg-context
draw fullcircle scaled 1cm; > > \stopMPpage > >\stopgraphviz > > > >Square: > >\startgraphviz > > \startMPpage > >draw fullsquare scaled 1cm; > > \stopMPpage > >\stopgraphviz > > > > \stopte

[NTG-context] footnote width in specific paragraph instance

2022-02-19 Thread jbf via ntg-context
is the current setup (the 'poem' environment is previously defined and not relevant here for my problem): \startmypar \startpoem red desert dust invades every crevice – vast deserts that we inhabit inhabit us\footnote{The ‘reddesert dust...’ is adapted from Matthew diNevop. 103.} \stoppoem

Re: [NTG-context] Disable reuse of figures

2022-02-19 Thread Hans Hagen via ntg-context
\stopgraphviz Square: \startgraphviz \startMPpage draw fullsquare scaled 1cm; \stopMPpage \stopgraphviz \stoptext Behind the scenes, the first \startgraphviz ... \stopgraphviz environment writes the content to an external file (\jobname-temp-graphviz.tmp), runs

[NTG-context] Disable reuse of figures

2022-02-18 Thread Aditya Mahajan via ntg-context
fullsquare scaled 1cm; \stopMPpage \stopgraphviz \stoptext Behind the scenes, the first \startgraphviz ... \stopgraphviz environment writes the content to an external file (\jobname-temp-graphviz.tmp), runs `context --purge \jobname-temp-graphviz.tmp`, which creates `\jobname-temp

Re: [NTG-context] Odd Font Behavior in startstop Group

2022-02-06 Thread śrīrāma via ntg-context
lready provides a blockquote-environment which can be > configured to have the same style as your custom environment. Hi Wolfgang, I have a related question: I noticed that the font settings were wrong in the original MWE of Michael. I am also aware that ConTeXt has a blockquote env (having used it be

Re: [NTG-context] Odd Font Behavior in startstop Group

2022-02-06 Thread Wolfgang Schuster via ntg-context
]% ConTeXt already provides a blockquote-environment which can be configured to have the same style as your custom environment. \startsetups [blockquote:style]     \switchtobodyfont[termes]     \setupwhitespace[2pt] \stopsetups \setupdelimitedtext   [blockquote]   [spacebefore=big,    

Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-21 Thread Vincent Hennebert via ntg-context
On Thu, 2022-01-20 at 15:47 +0100, Hans Hagen via ntg-context wrote: > On 1/20/2022 3:26 PM, Aditya Mahajan via ntg-context wrote: > > > AFAIK, there is no in-built support for this. > > FYEO: > > \starttext > > \startMPcode > u = 123; > \stopMPcode > >

Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Hans Hagen via ntg-context
On 1/20/2022 3:42 PM, Hans Hagen via ntg-context wrote: next upload: \resetMPinstance[metafun:1] but try to avoid this because reloading takes time Hans - Hans Hagen | PRAGMA ADE

Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Hans Hagen via ntg-context
On 1/20/2022 3:26 PM, Aditya Mahajan via ntg-context wrote: AFAIK, there is no in-built support for this. FYEO: \starttext \startMPcode u = 123; \stopMPcode \ctxlua{metapost.reset("metafun:1")} \startMPcode u = 123; \stopMPcode \stoptext (the instance is reported on the console)

Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Hans Hagen via ntg-context
On 1/20/2022 2:59 PM, Vincent Hennebert via ntg-context wrote: Hi, Say I’m writing a document containing many independent MetaPost figures. I don’t want to bother with enclosing each and every graphics in a ‘begingroup...endgroup’ with the appropriate ‘save’ statement. But I don’t want

Re: [NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Aditya Mahajan via ntg-context
On Thu, 20 Jan 2022, Vincent Hennebert via ntg-context wrote: > Hi, > > Say I’m writing a document containing many independent MetaPost > figures. I don’t want to bother with enclosing each and every graphics > in a ‘begingroup...endgroup’ with the appropriate ‘save’ statement. But > I don’t

[NTG-context] Reset environment between MetaPost graphics?

2022-01-20 Thread Vincent Hennebert via ntg-context
Hi, Say I’m writing a document containing many independent MetaPost figures. I don’t want to bother with enclosing each and every graphics in a ‘begingroup...endgroup’ with the appropriate ‘save’ statement. But I don’t want variables from previous graphics to leak into following ones either.

Re: [NTG-context] Bug in alignment with LMTX version 2022.01.15 17:32

2022-01-17 Thread Aditya Mahajan via ntg-context
On Mon, 17 Jan 2022, Otared Kavian via ntg-context wrote: > Hi Hans and Mikael, > > While investigating the latest version regarding the math environment, I > found that the alignments are not correct. > Here is an example: > > % begin bug-alignment.tex > \defin

[NTG-context] Bug in alignment with LMTX version 2022.01.15 17:32

2022-01-17 Thread Otared Kavian via ntg-context
Hi Hans and Mikael, While investigating the latest version regarding the math environment, I found that the alignments are not correct. Here is an example: % begin bug-alignment.tex \definemathmatrix[alignedcases] [align={right,left,left}, distance=3pt

Re: [NTG-context] How to create cell data that spans four rows in a table?

2022-01-09 Thread Wolfgang Schuster via ntg-context
Willi Egger via ntg-context schrieb am 08.01.2022 um 23:57: I would suggest not to use \starttable at all. To me the most suitable table environment for such a table is \bTABLE \eTABLE. It gives you all kind of control over layout, dimensions, frames on and off etc. I agree natural tables

Re: [NTG-context] How to create cell data that spans four rows in a table?

2022-01-08 Thread Joel via ntg-context
Thank you! The code is much easier to understand than the other way I was trying to use. --Joel On Saturday, January 8, 2022, 04:00:12 PM MST, Willi Egger via ntg-context wrote: I would suggest not to use \starttable at all. To me the most suitable table environment for such a table

Re: [NTG-context] How to create cell data that spans four rows in a table?

2022-01-08 Thread Willi Egger via ntg-context
I would suggest not to use \starttable at all. To me the most suitable table environment for such a table is \bTABLE \eTABLE. It gives you all kind of control over layout, dimensions, frames on and off etc. \setupTABLE[c][1][leftframe=off,width=40mm] \setupTABLE[c][2][rightframe=off, width=60mm

Re: [NTG-context] \its disappeared

2022-01-08 Thread Henning Hraban Ramm via ntg-context
absent in the interface files, i.e. autosyntax doesn’t work in the wiki. There is no easy way to document them because many of these short commands exists in different environment (e.g. \startitemize and \startinteractionmenu) with different arguments. I understand. But at least I can keep

Re: [NTG-context] \its disappeared

2022-01-08 Thread Wolfgang Schuster via ntg-context
many of these short commands exists in different environment (e.g. \startitemize and \startinteractionmenu) with different arguments. Wolfgang ___ If your question is of interest to others as well, please add

Re: [NTG-context] Fallback fails for Linux Libertine O to Junicode over private area, debugging?

2022-01-08 Thread Hans Hagen via ntg-context
etc This is very useful. I'm thinking of writing an environment that switches: I like keeping the ease of typing normal characters, rather than getting glyphs directly, because it's easier to proof on screen in the editor. writing about reproduced in my work and thus now can in the historical

Re: [NTG-context] Fallback fails for Linux Libertine O to Junicode over private area, debugging?

2022-01-07 Thread J .  P . Ascher via ntg-context
; \noleftkerning > etc This is very useful. I'm thinking of writing an environment that switches: I like keeping the ease of typing normal characters, rather than getting glyphs directly, because it's easier to proof on screen in the editor. >> writing about reproduced in my work and

Re: [NTG-context] Align table (framed) top

2022-01-04 Thread Mikael Sundqvist via ntg-context
Oh, I should have thought of that. Thanks (again) Wolfgang! /Mikael On Tue, Jan 4, 2022 at 5:22 PM Wolfgang Schuster wrote: > > Mikael Sundqvist via ntg-context schrieb am 04.01.2022 um 13:21: > > Oh, thanks! > > > > I can simply wrap my table in a framed environment,

Re: [NTG-context] Align table (framed) top

2022-01-04 Thread Wolfgang Schuster via ntg-context
Mikael Sundqvist via ntg-context schrieb am 04.01.2022 um 13:21: Oh, thanks! I can simply wrap my table in a framed environment, then. If it is still possible to solve without the surrounding framed I'm interested to hear how. You have to put the table in a box to change the vertical position

Re: [NTG-context] Resetcounter in custom enumeration environment

2022-01-04 Thread Jan-Erik Hägglöf via ntg-context
Many thanks, that was very structured and helpful. /Jan-Erik > 3 jan. 2022 kl. 12:07 skrev kauśika : > > On Monday, January 3, 2022 4:34:50 PM IST kauśika wrote: >> If 'Exercises' and 'Answers to exercises' are some head structure (assuming >> unnumbered since they are so in your example): >>

Re: [NTG-context] Align table (framed) top

2022-01-04 Thread Mikael Sundqvist via ntg-context
Oh, thanks! I can simply wrap my table in a framed environment, then. If it is still possible to solve without the surrounding framed I'm interested to hear how. /Mikael On Tue, Jan 4, 2022 at 12:12 PM kauśika wrote: > > On Tuesday, January 4, 2022 4:24:22 PM IST Mikael Sundqvist v

Re: [NTG-context] Resetcounter in custom enumeration environment

2022-01-03 Thread kauśika via ntg-context
On Monday, January 3, 2022 4:34:50 PM IST kauśika wrote: > If 'Exercises' and 'Answers to exercises' are some head structure (assuming > unnumbered since they are so in your example): > \definehead[exercises][subject] > \definehead[answers][subject] > then you can simply do >

Re: [NTG-context] Resetcounter in custom enumeration environment

2022-01-03 Thread kauśika via ntg-context
On Monday, January 3, 2022 4:21:27 PM IST Jan-Erik Hägglöf via ntg-context wrote: > I want a simple solution to reset the counter so it achieves the following > result: > > Exercises > > 1 First exercise > > 2 Second exercise > > Answers to exercises > > 1 Answers to first exercise > > 2

[NTG-context] Resetcounter in custom enumeration environment

2022-01-03 Thread Jan-Erik Hägglöf via ntg-context
Hi! I’ve been doing this in my exams to define exercises in a structural way. \defineenumeration[uppgift] \setupenumerations[uppgift][alternative=left,width=1cm,text= ,after={\blank[2*big]}] \starttext \startuppgift Here comes the exercise \stopuppgift \stoptext I want a simple solution

Re: [NTG-context] footnotes not aligned if tabulate cell is centered.

2021-12-31 Thread Ajith R via ntg-context
ample. My actual table contains two columns. > 2. Drop the \JustLeft command which works only with the \starttable > environment. > > 3. To change the alignment for the footnote entries add \raggedright > before you flush them, e.g. > >     \NC \raggedright \placeloca

Re: [NTG-context] footnotes not aligned if tabulate cell is centered.

2021-12-31 Thread Wolfgang Schuster via ntg-context
preamble you specify two columns but each row in your table contains only a single row. 2. Drop the \JustLeft command which works only with the \starttable environment. 3. To change the alignment for the footnote entries add \raggedright before you flush them, e.g.     \NC \r

Re: [NTG-context] Why are endnotes not working with ConTeXt-SBL?

2021-12-26 Thread Joey McCollum via ntg-context
opunctuation}}{\btxparameter{punct}} > \stopsetups > ``` > > This should allow your script to compile, but unfortunately, it doesn't > seem to make endnotes work, at least not when I try it. For some reason, > the macro \Word{\fastsetup{btx:sbl:cite:inline}} is expanding to nothing > ins

Re: [NTG-context] Why are endnotes not working with ConTeXt-SBL?

2021-12-25 Thread Joey McCollum via ntg-context
ely, it doesn't seem to make endnotes work, at least not when I try it. For some reason, the macro \Word{\fastsetup{btx:sbl:cite:inline}} is expanding to nothing inside the \startfootnote ... \stopfootnote environment. I have no idea why this is happening, so any ideas are appreciated. Joey On Sat, Dec

Re: [NTG-context] Why are endnotes not working with ConTeXt-SBL?

2021-12-25 Thread Joey McCollum via ntg-context
is not recognized within the footnote environment... \startfootnote \Word{\fastsetup{btx:sbl:cite:inline}}% capitalize the first word in the footnote (needed to render "Ibid." and "Idem" correctly) % Add a closing period, unless the righttext ends with punctuation \doifendswithpun

Re: [NTG-context] upload

2021-12-25 Thread Marco Patzer via ntg-context
st run and if there are still unresolved issues, it could then report the correct return value to the environment. The runner is responsible for the final return value, not the individual context run AFAIK. > you need to be explicit: > > \enabledirectives [logs.errors={missing references,missing >

Re: [NTG-context] upload

2021-12-25 Thread Jeong Dal via ntg-context
. As you see in the log file, "return code: 11" is changed to “return code: 1”. It might be the problem of system environment as you said. Thank you. Merry Christmas and Happy new year! Best regards, Dalyoung _

Re: [NTG-context] how to setup path of ConTeXtLMTX for MacVim?

2021-12-14 Thread Jan-Erik Hägglöf via ntg-context
te=>\ctikzset{ inductor=cute}] >> >> \processaction >> [\currentmoduleparameter{diode}] >> [full=>\ctikzset{ diode=full}, >> empty=>\ctikzset{ diode=empty}] >> >> \processaction >> [\currentmoduleparameter{logic}] >> [european=>\ctikzset{ l

Re: [NTG-context] how to setup path of ConTeXtLMTX for MacVim?

2021-12-14 Thread Jeong Dal via ntg-context
@circuit@mos@arrowstrue, > false=>\pgf@circuit@mos@arrowsfalse] > > \protect > > \ctikzset{tripoles/op amp/font/.initial=\switchtobodyfont[small]} > > \aliased\let\stopcircuitikz\relax > > \permanent\protected\def\startcircuitikz#1\stopcircuitikz > {\starttikz

Re: [NTG-context] TeXWorks and synctex SOLVED

2021-12-13 Thread Bruce Horrocks via ntg-context
] somewhere in your source (which can be in the current file or in an environment file). 6) Most times you will need to quit and restart TeXShop when you change any of the above. You *do not* need: 1) You do not need the "ConTeXt2021.engine" file: you can use your own engine file as

Re: [NTG-context] Initial release of SBL bibliographic rendering and biblio wishlist

2021-12-10 Thread J Huisman via ntg-context
mmand from biblatex, which manually > resets these trackers when it is invoked. > General support for CSL locator macros, whose basic usage is described in > https://pandoc.org/MANUAL.html#citation-syntax. The citation style locales > defined at https://github.com/citation-style-language

Re: [NTG-context] using the newcolumnsets module

2021-12-09 Thread Jeong Dal via ntg-context
Dear Hans, Bruce Horrocks, I test the file using MacVim and confirm that it works fine. Thus, something happened in my system or environment of vscode. I may reinstall vscode. Thank you. Best regards, Dalyoung

[NTG-context] Initial release of SBL bibliographic rendering and biblio wishlist

2021-12-08 Thread Joey McCollum via ntg-context
r this can be found in the SBL rendering at https://github.com/jjmccollum/context-sbl. - ConTeXt might benefit from a predefined parenthetical delimitedtext environment similar to "quotation" and "quote". Currently, I define such an environment in publ-imp-sbl.mkvi a

Re: [NTG-context] Status of Asymptote

2021-12-07 Thread Hans Hagen via ntg-context
, which would have to be cleaned up a bit). Depends on the kind of support you want. It is relatively easy to define an environment \startasymptote \stopasymptote such that the content of the environment is processed by asympotote and read back as an image (using the filter module

Re: [NTG-context] Status of Asymptote

2021-12-06 Thread Aditya Mahajan via ntg-context
bit). Depends on the kind of support you want. It is relatively easy to define an environment \startasymptote \stopasymptote such that the content of the environment is processed by asympotote and read back as an image (using the filter module). With some effort, it is also possible to pass

Re: [NTG-context] Parameter order in float location matters

2021-11-30 Thread Henning Hraban Ramm via ntg-context
Am 30.11.21 um 13:38 schrieb Marco Patzer via ntg-context: As far as I know there's no way to only turn off captions, so one has to know the default placement value (which might be buried in an environment file) and specify it again together with the “none” option. If you (or someone else

Re: [NTG-context] Parameter order in float location matters

2021-11-30 Thread Marco Patzer via ntg-context
ify the other, AFAIK. Which is a bit unfortunate since the placement belongs in an environment and not the running text (it's a style decision after all). Take the following example: \setupfloats [figure] [default=top] \setupfloats [table] [default=bottom] %% \setupfloats [table] [default=

[NTG-context] Title for tabulate

2021-11-28 Thread Denis Maier via ntg-context
Hi, when trying out different options for my last question regarding column spans I've tried out the the option regarding titles for the tabulate environment. Consider this example (adapted from the wiki): %% \setuppapersize[A6] \starttext \setuptabulate

Re: [NTG-context] Space before/after combinations + centring

2021-11-17 Thread Hans Hagen via ntg-context
On 11/17/2021 11:50 PM, Marco Patzer via ntg-context wrote: On Wed, 17 Nov 2021 20:17:52 +0100 Wolfgang Schuster wrote: 2. There are no changes to adjust the vertical before and after a combination environment. That's unfortunate. Local patches can also be tricky because ConTeXt tries

Re: [NTG-context] Space before/after combinations + centring

2021-11-17 Thread Marco Patzer via ntg-context
On Wed, 17 Nov 2021 20:17:52 +0100 Wolfgang Schuster wrote: > 2. There are no changes to adjust the vertical before and after a > combination environment. That's unfortunate. > Local patches can also be tricky because ConTeXt tries to freeze > the definitions of many user level co

Re: [NTG-context] Space before/after combinations + centring

2021-11-17 Thread Wolfgang Schuster via ntg-context
. 2. There are no changes to adjust the vertical before and after a combination environment. Local patches can also be tricky because ConTeXt tries to freeze the definitions of many user level commands which means they can't be redefined when you use a strict overload mode (look

Re: [NTG-context] directsetup vs setups

2021-11-15 Thread Wolfgang Schuster via ntg-context
additional stuff in the setup environment and the difference between \setup and \directsetup doesn't matter anymore. 3. There is additional expansion performed for \setup compared to \directsetup. Although this isn't completely true (but very close) the definition for \setup in LMTX is like

Re: [NTG-context] directsetup vs setups

2021-11-15 Thread Wolfgang Schuster via ntg-context
em to mean that. With \directsetup, \fastsetup and \setup (I'm correcting Hans here) you can pass only the name of a single setups-environment as argument, e.g.     \directsetup{my_fancy_setup} while \setups allows you to pass a list of names, e.g.     \setups[custom_setup_a,custom_setup_b,...] 2. What is meant

Re: [NTG-context] \startbodymatter forcing new page in document

2021-11-15 Thread Wolfgang Schuster via ntg-context
{test} \fakewords{1000}{1200} \stoptext The following code does the same, but wraps the fakewords in a bodymatter environment: \setuppagenumbering[location=right] \usemodule[visual] \usebtxdataset[bibliography.bib] \starttext \title{test} \startbodymatter \fakewords{1000}{1200} \stopbodymatter

Re: [NTG-context] \startbodymatter forcing new page in document

2021-11-15 Thread Taco Hoekwater via ntg-context
t; \title{test} > \fakewords{1000}{1200} > > \stoptext > > The following code does the same, but wraps the fakewords in a bodymatter > environment: > > \setuppagenumbering[location=right] > > \usemodule[visual] > > \usebtxdataset[bibliography.bib] > \starttex

[NTG-context] \startbodymatter forcing new page in document

2021-11-15 Thread A A via ntg-context
* environment: *\setuppagenumbering[location=right]\usemodule[visual]\usebtxdataset[bibliography.bib]\starttext\title{test}* *\startbodymatter\fakewords{1000}{1200}\stopbodymatter* *\stoptext* In the first case, the title remains on the same page as the fake text. In the second case, a new

Re: [NTG-context] check installed program using Lua

2021-11-02 Thread Pablo Rodriguez via ntg-context
reliable in various cases (like it > will fail for shell/command interpreter builtins, in cron jobs, in > special scripted environments, and may incorrectly succeed for > disabled/forbidden commands), as it just runs through the PATH > environment variable to check for executable file existence.

Re: [NTG-context] check installed program using Lua

2021-11-01 Thread Taco Hoekwater via ntg-context
rious cases (like it will fail for shell/command interpreter builtins, in cron jobs, in special scripted environments, and may incorrectly succeed for disabled/forbidden commands), as it just runs through the PATH environment variable to check for executable file existence. Often times, it is better

[NTG-context] Solved: Book setup with LHS-side quotes before chapters/parts, header/footer issues, TOC, etc.

2021-10-26 Thread Gerben Wierda via ntg-context
. But that is not really a problem. And getting the part title somewhere more centred on its page is also left as an issue for later. Example file. In a project/component setup: everything before the \starttext goes into the environment file, the rest in the product file. %%% %%% Sections that have a LHS

Re: [NTG-context] Move the page number from header to footer on the current page only?

2021-10-25 Thread Wolfgang Schuster via ntg-context
Gerben Wierda schrieb am 25.10.2021 um 08:41: I have a problem with getting the page number on the ‘first’ page of a chapter (in my setup, it is actually the second page as there is a LHS page before it with a quote. The bare minimum example: When you switch to the chapter-environment get

Re: [NTG-context] setting date in \setupinteraction

2021-10-19 Thread Michal Vlasák via ntg-context
t;:" .. > main_doc.Info.ModDate:sub(15,22):gsub("'", ":") } > context(main_doc.Info.Title .. "\\par") > lpdf.epdf.unload(name) > end > \stopluacode > \unexpanded\def\TransferMetadata#1% > {\ctxlua{document.transfer_metadata("#1")}}

Re: [NTG-context] setting date in \setupinteraction

2021-10-19 Thread Pablo Rodriguez via ntg-context
nsferMetadata#1% {\ctxlua{document.transfer_metadata("#1")}} \startTEXpage[offset=1em, align=center] \TransferMetadata{metadata.pdf} \stopTEXpage \stoptext > Seems that "CreationDate" could be set by the SOURCE_DATE_EPOCH > environment variable, but I am not suc

Re: [NTG-context] setting date in \setupinteraction

2021-10-19 Thread Michal Vlasák via ntg-context
ou are after? Seems that "CreationDate" could be set by the SOURCE_DATE_EPOCH environment variable, but I am not succesfull with it right now. Michal ___ If your question is of interest to others as well, please a

Re: [NTG-context] Converting LaTeX math to ConTeXt

2021-10-10 Thread Jason Ross via ntg-context
On 10/10/21 3:23 AM, Hans Hagen wrote: what do you mean with 'quite different' Hans Hi Hans, My current stumbling block is dealing with the `align` environment. I replace `\begin{align}/\end{align}` with `\startmathalignment/\stopmathalignment`, and replace all `&` characters with

Re: [NTG-context] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions

2021-10-10 Thread Hans Hagen via ntg-context
tion macros for a custom > bibliographic style specification with support for intelligent placement > of trailing punctuation, and I've encountered an unusual error. If I try > to define the macros within the btxrenderingdefinitions environment, > then th

Re: [NTG-context] Converting LaTeX math to ConTeXt

2021-10-10 Thread Hans Hagen via ntg-context
equations with LaTeX as standalone pages and then include    them as images. This will typeset everything with LaTeX defaults.    Also, either equation alignment or equation numbering will break. 3. Hack every math environment I can think of to accept LaTeX syntax    (see https://wiki.contextgarden.net

Re: [NTG-context] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions

2021-10-09 Thread Joey McCollum via ntg-context
o define concise biblatex-style citation macros for a custom > > bibliographic style specification with support for intelligent placement > > of trailing punctuation, and I've encountered an unusual error. If I try > > to define the macros within the btxrenderingdefinitions environment, &g

[NTG-context] Converting LaTeX math to ConTeXt

2021-10-09 Thread Jason Ross via ntg-context
as images. This will typeset everything with LaTeX defaults. Also, either equation alignment or equation numbering will break. 3. Hack every math environment I can think of to accept LaTeX syntax (see https://wiki.contextgarden.net/LaTeX_Math_in_ConTeXt). Lots of work, lots of problems

Re: [NTG-context] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions

2021-10-09 Thread Hans Hagen via ntg-context
the macros within the btxrenderingdefinitions environment, then the code for handling trailing punctuation with the \doifinstring and \doifnotinstring macros fails in some cases. Specifically, it correctly detects when the trailing punctuation is a period, comma, or semicolon, but not when

[NTG-context] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions

2021-10-09 Thread Joey McCollum via ntg-context
Hi, I'm trying to define concise biblatex-style citation macros for a custom bibliographic style specification with support for intelligent placement of trailing punctuation, and I've encountered an unusual error. If I try to define the macros within the btxrenderingdefinitions environment

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
rd setup, \s!btx:\s!cite:footnote, simply renders the "entry"-style >>>>> citation in a footnote. >>>>> >>>>> But as far as I can tell, the "listelement" setup is never used >>>>> outside of publ-imp-cite.mkvi. Only the "en

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
;> {\ifconditional\c_btx_cite_reference_injected >>>>\else >>>> \dontleavehmode >>>> \iftrialtypesetting \else >>>>\ifx\currentbtxbacklink\empty >>>> % can be made empty when combining author / year >>&g

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
zerocount >>> \btx_cite_reference_inject_indeed >>> \settrue\c_btx_cite_reference_injected >>>\fi\fi >>> \fi >>> \fi} >>> >>> ... >>> >>> \let\btxcitereference\btx_cite_refe

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
citeentry >> {\dontleavehmode >>\begingroup >>\def\currentbtxcitealternative{entry}% >> \setbtxparameterset\s!cite\currentbtxcitealternative % needs checking >>\btxcitereference >>\btx_entry_inject >>\endgroup} >> >> My

Re: [NTG-context] Short forms and abbreviations in bibliography

2021-10-06 Thread Joey McCollum via ntg-context
out what these are doing, but I'm still not > sure if the module accommodates rendering in-text "entry" citations > differently than citations in the list. > > Joey > > On Mon, Aug 9, 2021 at 8:55 AM Joey McCollum > wrote: > >> Henning's suggestion for a

Re: [NTG-context] ConTeXt's equivalent of standalone class

2021-10-02 Thread Gavin via ntg-context
s that have the starting and ending stuff needed for my figures: \startbuffer[starttikz] % This buffer will start every TikZ picture. \environment env_physics % My physics macros \environment env_TikZ % My TikZ macros \setupbodyfont [libertinus,11pt] % Other setups for figures \startTEXp

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

2021-09-18 Thread Henning Hraban Ramm via ntg-context
> Am 18.09.2021 um 14:57 schrieb Denis Maier via ntg-context > : > I currently struggle with a similar question: In one project I typeset > articles for a journal from XML sources with ConTeXt. Obviously, these > articles should rely on the same environment files. But how

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

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

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

2021-09-18 Thread Jan Ulrich Hasecke via ntg-context
nal from XML sources with ConTeXt. Obviously, these > articles should rely on the same environment files. But how would you deal > with those cases where you'd need a slightly different table layout in one > article? We had this slightly change with headline numbering. Default in our repo

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

2021-09-18 Thread Denis Maier via ntg-context
have no overall plan to structure my setup. > It is > work in progress. And the tendency is to split up environment files into > smaller > ones. Looks like I need to refactor some things :-) > > When I see that I need another numbering system for legal texts like bylaws I > create

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

2021-09-17 Thread Jan Ulrich Hasecke via ntg-context
ss as I have no overall plan to structure my setup. It is work in progress. And the tendency is to split up environment files into smaller ones. When I see that I need another numbering system for legal texts like bylaws I create an environment for legal numbering and for normal numbering. I th

[NTG-context] cld, postponing and images

2021-09-06 Thread Henning Hraban Ramm via ntg-context
I think I tangled myself... - I’ve a macro defined in Lua that uses fullpagemakeup and \setlayer to place an image on an empty page. - This macro is called from within a postponing environment. - I check figures.current().status.fullname if the image is found ... - and then read xsize and ysize

Re: [NTG-context] cld questions

2021-09-06 Thread Hans Hagen via ntg-context
: context.Something() yes (assuming you're in scope) Then I’m out of scope. \def is in my environment, directly before I load the Lua functions with \loadluafile. How can I access the macros from the environment there? 2) The original interface of \MyFun had two optional parameters. I couldn’t

Re: [NTG-context] cld questions

2021-09-06 Thread Henning Hraban Ramm via ntg-context
}, Image(Width, Height, filename) ) end Am 05.09.2021 um 16:27 schrieb Henning Hraban Ramm via ntg-context : >> TeX: >> \def\Something{1cm} >> Lua: >> context.Something() > > yes (assuming you're in scope) Then I’m

Re: [NTG-context] cld questions

2021-09-05 Thread Henning Hraban Ramm via ntg-context
end > > we're talking lua: 9 % 2 == 0 Oops. Too many languages... >> TeX: >> \def\Something{1cm} >> Lua: >> context.Something() > > yes (assuming you're in scope) Then I’m out of scope. \def is in my environment, directly before I load the Lua functions with \l

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

2021-09-01 Thread Henning Hraban Ramm via ntg-context
> Am 01.09.2021 um 18:52 schrieb Hans Hagen via ntg-context > : > > On 9/1/2021 6:01 PM, Henning Hraban Ramm via ntg-context wrote: >> Hi again, >> if a "typing" environment with line numbering goes over a page break, the >> line numbers start at 1 aga

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[ numb

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

2021-09-01 Thread Hans Hagen via ntg-context
On 9/1/2021 6:01 PM, Henning Hraban Ramm via ntg-context wrote: 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[ numb

[NTG-context] line numbering restarts every page

2021-09-01 Thread Henning Hraban Ramm via ntg-context
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, ] \setuppaper[A5] \setupbodyfont[18pt] \starttext \startbuffer

Re: [NTG-context] problem with MkIV/TeXlive/TEXMFCACHE

2021-08-30 Thread Rainer J.H. Brandt via ntg-context
ou have write permission on that directory? Yes and no. I'm trying to set up a multi-user environment, and /var/opt/texlive is owned by the software owner. Nobody else may write there. I ran "mtxrun --generate" while being that software owner. (I'm used to doing it this way for other engines.)

Re: [NTG-context] problem with MkIV/TeXlive/TEXMFCACHE

2021-08-30 Thread Rainer J.H. Brandt via ntg-context
Users/rjhb/lib/texmf,!!/opt/local/share/texlive/texmf-local,!!/opt/local/share/texlive/texmf-config,!!/var/opt/texlive,!!/opt/local/share/texlive/texmf-dist}/web2c kpathsea variables from environment only (ok if no output here) TEXMFCNF=/opt/local/share/texlive/texmf-dist/web2c ___

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

2021-08-27 Thread Joey McCollum via ntg-context
hould be printed in full. > >>> > >>> I thought that the following settings would work: > >>> > >>> \definebtx > >>> [sbl:\s!list] > >>> [sbl] > >>> [\c!otherstext=, > >>> \c!etallimit=, > >>&

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

2021-08-27 Thread Wolfgang Schuster via ntg-context
to achieve but the check for the number of pages in your document is never used. The layout on the first page is different from the following pages but this is just how \definelayout work when you use a number as first argument. What you have to understand is that a setups-environment is just

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

2021-08-27 Thread Ágoston Volcz via ntg-context
. >>> >>> I thought that the following settings would work: >>> >>> \definebtx >>> [sbl:\s!list] >>> [sbl] >>> [\c!otherstext=, >>> \c!etallimit=, >>> \c!etaldisplay=, >>> \c!etaloption=, >

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

2021-08-26 Thread Joey McCollum via ntg-context
the first name >> inverted, with all subsequent names in normal order >> >> \definebtx >> [sbl:\s!cite] >> [sbl] >> [\c!otherstext={\btxspace\btxlabeltext{others}}, % use et al. for >> truncated author / editor list >>\c!etallimit=3, % don't u

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