[NTG-context] Question on style-italic vs style=italicface

2021-09-26 Thread Rik Kabel via ntg-context
Hello list mavens, What are the circumstances under which style=italicface should be used instead of style=italic. I note a difference when I define highlighting. I expected to see no difference in the line before and line after the hairline the example below, but see that italicface adapts

[NTG-context] tabulate with lp columns

2021-09-19 Thread Henning Hraban Ramm via ntg-context
NC Corel Draw \NC\NR Simple Editor \NC Nano \NC TextEdit \NC Notepad \NC\NR \stoptabulate \stoptext Additional question: How would I define those columns to use the whole \textwidth ? Hraban ___ If your questi

Re: [NTG-context] Exclude bibliographic entries from list even when cited with \cite

2021-09-16 Thread Hans Hagen via ntg-context
command, or is this built into the \cite command at a low level? If I had to, I could define an \autocite command that does all of these checks first, but if it's possible to keep the common \cite command instead of forcing users to use a different command, that would be preferable. a few

Re: [NTG-context] Exclude bibliographic entries from list even when cited with \cite

2021-09-16 Thread Denis Maier via ntg-context
dd the entry to the list after I invoke the \cite command, or is this built into the \cite command at a low level? If I had to, I could define an \autocite command that does all of these checks first, but if it's possible to keep the common \cite command instead of forcing users to use

[NTG-context] Exclude bibliographic entries from list even when cited with \cite

2021-09-16 Thread Joey McCollum via ntg-context
ubcitation using the \listcite or \cite command recursively. But is there a way to conditionally handle whether or not to add the entry to the list after I invoke the \cite command, or is this built into the \cite command at a low level? If I had to, I could define an \autocite command that does all o

Re: [NTG-context] Number conversion in btxlist and citations

2021-09-16 Thread kauśika cittūr via ntg-context
> [default=default,specification=mylist] > \definebtxrendering >[mylist] >[specification=mylist] > \setupbtxlist > [mylist] > [numberconversion=myconv] > ⋮ > > I have define the required setups for every category entry as well. I have > verified that

Re: [NTG-context] Number conversion in btxlist and citations

2021-09-16 Thread kauśika cittūr via ntg-context
> [default=default,specification=mylist] > \definebtxrendering >[mylist] >[specification=mylist] > \setupbtxlist > [mylist] > [numberconversion=myconv] > ⋮ > > I have define the required setups for every category entry as well. I have > verified that

Re: [NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-15 Thread Joey McCollum via ntg-context
> > else >> > ctx_btxsetup(combiner) >> > end >> > ctx_btxstopauthor() >> > end >> > ``` >> > >> > I'll admit that the addition of entire if-else blocks aro

[NTG-context] Number conversion in btxlist and citations

2021-09-15 Thread kauśika cittūr via ntg-context
tupbtxlist [mylist] [numberconversion=myconv] ⋮ I have define the required setups for every category entry as well. I have verified that this btxrendering works. I have also verified that my conversion set 'myconv' is functional (I am using it for page numbers and section headings).

Re: [NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-15 Thread Joey McCollum via ntg-context
not be the best practice in > > terms of future maintenance (especially if similar index-dependent > > authorconversions are needed in the future). Alternatively, the > > "btxauthor" function could populate a "combiners" array of length "max" > >

Re: [NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-15 Thread Hans Hagen via ntg-context
quot; function could just reference combiners[i] instead of combiner. Joey On Fri, Sep 3, 2021 at 10:48 PM Joey McCollum mailto:jmccollum20140...@gmail.com>> wrote: Hi, I mentioned this in an earlier e-mail but thought that now might be a good time to describe this issue in

Re: [NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-14 Thread Joey McCollum via ntg-context
authorconversions, all entries in this array would be the same, but for authorconversions like "invertedfirst", the first entry would be different from the rest. Then, the "oneauthor" function could just reference combiners[i] instead of combiner. Joey On Fri, Sep 3, 2021 at 10:

Re: [NTG-context] Weird error when using \startformula inside lua

2021-09-12 Thread Sylvain Hubert via ntg-context
mkxl/buff-ini.lmt:668> (...tail calls...) Sylvain On Sat, 11 Sept 2021 at 05:12, Aditya Mahajan via ntg-context < ntg-context@ntg.nl> wrote: > I sometimes define lua functions for showing out worked out calculations. > The following minimal example shows that > > c

Re: [NTG-context] Weird error when using \startformula inside lua

2021-09-11 Thread Aditya Mahajan via ntg-context
On Sat, 11 Sep 2021, Hans Hagen wrote: > On 9/11/2021 5:11 AM, Aditya Mahajan via ntg-context wrote: > > I sometimes define lua functions for showing out worked out calculations. > > The following minimal example shows that > > > >context([[\startformula ... \stopf

Re: [NTG-context] Weird error when using \startformula inside lua

2021-09-10 Thread Hans Hagen via ntg-context
On 9/11/2021 5:11 AM, Aditya Mahajan via ntg-context wrote: I sometimes define lua functions for showing out worked out calculations. The following minimal example shows that context([[\startformula ... \stopformula]]) fails in LMTX with an error message: tex error > tex error

[NTG-context] Weird error when using \startformula inside lua

2021-09-10 Thread Aditya Mahajan via ntg-context
I sometimes define lua functions for showing out worked out calculations. The following minimal example shows that context([[\startformula ... \stopformula]]) fails in LMTX with an error message: tex error > tex error on line 3 in file ./test.tex: Undefined control seque

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

2021-09-10 Thread Christian Dekant via ntg-context
empty page preceding a part title? % \setuppagenumbering [alternative=doublesided] \setupexternalfigures[location=default] % cow % startTEXpage does not increase page number => incrementpagenumber % trimming in the print shop => printpaperwidth/height \define[1]\FullScreen{\startT

Re: [NTG-context] LuaMetaTEX as LaTeX to XHTML/ePub transpiler?

2021-09-10 Thread Hans Hagen via ntg-context
I've tried tex4ebook and tex4ht and neither works for me. Firstly, some of the LaTeX commands are not recognised or causing errors. i suppose that you can define commands that somehow make your own commands export something; i have no experience with latex or tex4ht And secondly, when I m

Re: [NTG-context] features of fallback font

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

[NTG-context] features of fallback font

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

[NTG-context] Implementing a custom authorconversion for bibliographies

2021-09-03 Thread Joey McCollum via ntg-context
Hi, I mentioned this in an earlier e-mail but thought that now might be a good time to describe this issue in detail. I'd like to define a new authorconversion that renders the first author in a list differently than the remaining authors in the list. Specifically, I'd like to use the

Re: [NTG-context] Indexing redux

2021-08-26 Thread Rik Kabel via ntg-context
ble to turn checking on or off, so that generic directives (in the example, see also specific breeds) will not generate an error, while the Ford Prefect example will generate an error.    \defineprocessor[also][color=blue]    \defineprocessor[under][color=green]    \defineprocessor[a

Re: [NTG-context] numbered exercises

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

Re: [NTG-context] numbered exercises

2021-08-24 Thread Aditya Mahajan via ntg-context
at contains numbered and indented > >> exercises. They must not float. > >> > >> Which structure should I use for them? There must be an easy answer, but I > >> draw a blank. > > > > Use an enumeration. > > Thank you, but how can I define a ti

Re: [NTG-context] numbered exercises

2021-08-24 Thread Henning Hraban Ramm via ntg-context
Here’s what I have now (result attached): \define[1]\ÜbungNrCmd{\inmargin{\offset[y=3em]{\rotate[rotation=90]{\SectionFont #1 \defineenumeration[Übung][ text=Übung, title=yes, titleleft=, titleright=, titledistance=-1em, titlestyle=\SectionFont, %numberstyle=\SectionFont

Re: [NTG-context] numbered exercises

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

Re: [NTG-context] numbered exercises

2021-08-24 Thread Gavin via ntg-context
at contains numbered and indented >>> exercises. They must not float. >>> >>> Which structure should I use for them? There must be an easy answer, but I >>> draw a blank. >> >> Use an enumeration. > > Thank you, but how can I define a title/capt

Re: [NTG-context] numbered exercises

2021-08-24 Thread Wolfgang Schuster via ntg-context
not float. Which structure should I use for them? There must be an easy answer, but I draw a blank. Use an enumeration. Thank you, but how can I define a title/caption for the enumeration and its reference? \defineenumeration [Exercise] [text=Exercise, title=yes, titleleft

Re: [NTG-context] numbered exercises

2021-08-24 Thread Henning Hraban Ramm via ntg-context
hich structure should I use for them? There must be an easy answer, but I >> draw a blank. > > Use an enumeration. Thank you, but how can I define a title/caption for the enumeration and its reference? Hraban __

Re: [NTG-context] Size of root symbol

2021-08-18 Thread Hans Hagen via ntg-context
can define our own phantom sizes. You can play around with the numbers. \define\filler{\vrule width 0pt height 2ex depth 0.3ex \relax} \startformula \sqrt[3]{\filler 4n} \ne \sqrt[3] {\filler n} \stopformula \stoptext This is for Aditya to think about \starttext \unprotect \defcsname

Re: [NTG-context] Size of root symbol

2021-08-18 Thread Aditya Mahajan via ntg-context
ken to be of the same size. \starttext % The simplest solution: \startformula \sqrt[3]{4n} \ne \sqrt[3] {\vphantom{4} n} \stopformula % More general % \strut = \vphantom{(}, which is too big \startformula \sqrt[3]{\strut 4n} \ne \sqrt[3] {\strut n} \stopformula % We can define our own phanto

Re: [NTG-context] Different footers for frontmatter and bodymatter

2021-08-18 Thread Rik Kabel via ntg-context
group and reverts after the group is closed. If not, it applies to the remainder of the document unless otherwise overridden. This can be useful for a special page. * You can set it in the preamble within \startsectionblockenvironment[partname]..\stopsectionblockenvironment (where you can a

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

2021-08-17 Thread Wolfgang Schuster via ntg-context
l. Why do you need Lua to format the list entries and section titles? \definehead [lecture] [section] \define[1]\LectureTextCommand {\doiftext{#1}{: #1}} \setuphead [lecture] [bodypartlabel=lecture, distance=0pt, textcommand=\LectureTextCommand, style=\bfc] \setuplabelte

[NTG-context] Using Lua to format lecture titles

2021-08-17 Thread noib3 via ntg-context
e I have so far: ``` \definehead [lecture] [section] \setuphead [lecture] [ command=\Lecture, style=\bfc, ] \setuplabeltext [lecture={Lecture}] \define[2]\Lecture{\ctxlua{ userdata.format_lecture_title({ label = context.labeltext('lecture'), number = [==[#

Re: [NTG-context] Progressively encouraging page/column breaks at \blank with penalties

2021-08-15 Thread Joey McCollum via ntg-context
d of the page or column. Based on these constraints, I thought > > that using the "samepage" and "preference" options for the first and > second > > line breaks would work nicely: > > > > ``` > > \define\SectionBreak{% > > \blank[halfline

Re: [NTG-context] Progressively encouraging page/column breaks at \blank with penalties

2021-08-14 Thread Aditya Mahajan via ntg-context
ingle orphaned line follow the symbol > at the end of the page or column. Based on these constraints, I thought > that using the "samepage" and "preference" options for the first and second > line breaks would work nicely: > > ``` > \define\SectionBreak{% >

[NTG-context] Progressively encouraging page/column breaks at \blank with penalties

2021-08-14 Thread Joey McCollum via ntg-context
ught that using the "samepage" and "preference" options for the first and second line breaks would work nicely: ``` \define\SectionBreak{% \blank[halfline, samepage]% non-breaking to ensure that no column begins with the section break symbol \startalignment[middle]

Re: [NTG-context] Create an enumeration style

2021-08-11 Thread Otared Kavian via ntg-context
ve something like “1ère image”… Ah, languages are so messy > (no pun with recent events in Paris intended). > > Thomas Sure… But then maybe it is possible to define one’s own « ordinals.french » for messy cases :-) _

Re: [NTG-context] Harvard bibliography style

2021-08-10 Thread Thomas A. Schmitz via ntg-context
have undesirable side effects, and it will take time to accomplish what you need. I have found it easier to start with very simple definitions and then add bells and whistles; the files in the distribution are complex because they follow complex standards and try to define all possible cases. Thi

Re: [NTG-context] nil from TeX to Lua

2021-08-09 Thread Aditya Mahajan via ntg-context
context("Argument is nil") elseif str == "" then context("Argument is empty") else context("Argument is %s", str) end end \stopluacode \define[1]\Macro{\ctxlua{userdat

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

2021-08-07 Thread Joey McCollum via ntg-context
il.com> wrote: > Joey McCollum via ntg-context schrieb am 06.08.2021 um 19:12: > > Hi, > > > > I'd like to define my own class of heading derived from the "part" > > heading; in the MWE below, it's called "MyPart". I'd like this heading > &g

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

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

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

2021-08-06 Thread Joey McCollum via ntg-context
xtcommand" argument. Joey On Fri, Aug 6, 2021, 1:54 PM Pablo Rodriguez via ntg-context < ntg-context@ntg.nl> wrote: > On 8/6/21 7:12 PM, Joey McCollum via ntg-context wrote: > > Hi, > > > > I'd like to define my own class of heading derived from the &quo

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

2021-08-06 Thread Pablo Rodriguez via ntg-context
On 8/6/21 7:12 PM, Joey McCollum via ntg-context wrote: > Hi, > > I'd like to define my own class of heading derived from the "part" > heading; in the MWE below, it's called "MyPart". Hi Joey, these are options for \setuphead[part] (MyPart in your c

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

2021-08-06 Thread Joey McCollum via ntg-context
Hi, I'd like to define my own class of heading derived from the "part" heading; in the MWE below, it's called "MyPart". I'd like this heading to have the following features: - Its title should appear in the ToC, but its number should never be printed

Re: [NTG-context] Additional font variants

2021-08-01 Thread Henning Hraban Ramm via ntg-context
fixed. > indeed the only reason is that lucida had handwritten and calligraphy as part > of the whole package > > nowadays i'd just define a separate typeset set for it (same for narrow or > light or ...) Thank you for explaining! So I know what to do. Hraban

Re: [NTG-context] Additional font variants

2021-08-01 Thread Hans Hagen via ntg-context
y one file for handwriting and calligraphy). Adding additional alternatives to both styles is possible but the included typescripts (e.g. for lucida bright ot) have to be checked and fixed. indeed the only reason is that lucida had handwritten and calligraphy as part of the whole package nowad

Re: [NTG-context] Fontsizes in Adobe Acrobat vs ConTeXt

2021-07-29 Thread Denis Maier via ntg-context
2:19 PM, Denis Maier via ntg-context wrote: > > This question is still not resolved. Maybe someone has another hint? > order matters ... first define the bodyfontenviromnent Than

Re: [NTG-context] Fontsizes in Adobe Acrobat vs ConTeXt

2021-07-29 Thread Hans Hagen via ntg-context
On 7/29/2021 2:19 PM, Denis Maier via ntg-context wrote: This question is still not resolved. Maybe someone has another hint? order matters ... first define the bodyfontenviromnent Hans

Re: [NTG-context] A not so short introduction to ConTeXt Mark IV

2021-07-28 Thread Kevin Vigouroux via ntg-context
able to use the tools at their disposal. Garulfo writes: > Does anybody has a guide about "how to set up a documentation > translation project with git ?". > One requirement will probably to define how propositions are > officially validated. Does it requires Joaquín to learn how

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

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

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-26 Thread Gavin via ntg-context
files, I need to define colors in French. rouge=(1,0,0);% For this MWE, I only define rouge. color mycolor;% Defining mycolor in MetaPost works great, as shown in the first shape. mycolor = rouge; \stopMPinclusions \startluacode myluapath = {{0,0}, {1,0,0,0,1,0.25

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

2021-07-23 Thread T. Kurt Bond
Thanks, this has been very helpful. On Fri, Jul 23, 2021 at 1:02 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > T. Kurt Bond schrieb am 23.07.2021 um 17:55: > > With natural tables I can define a color, tell the table to have to > > use color backgroun

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

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

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

2021-07-23 Thread Henning Hraban Ramm
> Am 23.07.2021 um 17:55 schrieb T. Kurt Bond : > > With natural tables I can define a color, tell the table to have to > use color backgrounds and turn the frame off and get every odd row in > all my tables will have that color for the background. > > Can I get this sam

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

2021-07-23 Thread T . Kurt Bond
With natural tables I can define a color, tell the table to have to use color backgrounds and turn the frame off and get every odd row in all my tables will have that color for the background. == Example \definecolor[grayback][r

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-17 Thread Henning Hraban Ramm
Indeed, that is what I was referring too. Mojca found this: > https://osm-boundaries.com/ Ah, our mails crossed... > At a bachotex meeting (years ago, when the ctx group donated a nice roadmap > display to the conference) we made an openstreetmap -> metapost style but > afaik that

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-17 Thread Hans Hagen
but with some limitations on size.) I have to play a bit more with the style before I define it useable but the interface is liek this: % where i live \startMPpage draw lmt_openstreetmap [ filename = "hasselt.osm" grid = "dots", ] ; \stopMPpage % isla

Re: [NTG-context] Missing symb-imp-was.mkiv ?

2021-07-10 Thread Hans Hagen
\wasy@over{/}{-}] % % \definesymbol [notbackslash][\wasy@over{\backslash}{-}] % % % % % %definesymbol [APLvert] [\WaldiSymbol{}] % % %definesymbol [APLnot] [\WaldiSymbol{}] % % %definesymbol [APLcirc] [\WaldiSymbol{}] % % % % % % HH: mess

Re: [NTG-context] TikZ in buffers: My struggle with \definestartstop

2021-07-08 Thread Gavin
]% Lots of setup can go here! \startTEXpage \starttikzpicture \stopbuffer \startbuffer[stoptikz] \stoptikzpicture \stopTEXpage \stopbuffer \define[2]\marginTikZ{ \startplacefigure[location=margin, reference=fig:#1, title={#2}] \typesetbuffer[starttikz,#1,stoptikz

Re: [NTG-context] TikZ in buffers: My struggle with \definestartstop

2021-07-08 Thread Hans Hagen
constructions like this, which I would like to simplify: \startbuffer[BlueCircle] \usemodule[tikz]% Actually this is many lines to load environments, define fonts, etc. \startTEXpage \starttikzpicture \draw[thick,blue] (0,0) circle (1.5cm)node{Ti{\it k}Z!}; \stoptikzpicture

[NTG-context] TikZ in buffers: My struggle with \definestartstop

2021-07-08 Thread Gavin
like to simplify: \startbuffer[BlueCircle] \usemodule[tikz]% Actually this is many lines to load environments, define fonts, etc. \startTEXpage \starttikzpicture \draw[thick,blue] (0,0) circle (1.5cm)node{Ti{\it k}Z!}; \stoptikzpicture

Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-07-02 Thread denis.maier
or what its worth, I offer my endnote apparatus with updates for parts. > It uses the standard note/notation mechanism, not a list, for endnotes. > Perhaps it can be further adapted to the needs of this thread. > > There is at least one small issue with it: I have to use \stopendnote e

Re: [NTG-context] hyphenate nothyphenated

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

Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-06-30 Thread Hans Hagen
s not really needed when you do this at the end of the document Hmm, but don't you usually style thing before \starttext? (Ok, you can use setups to keep the definitions in one place.) indeed. one can use setups or define a combined list that has the settings 2. Does this treat endnotes j

Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-06-30 Thread Rik Kabel
define \startEndnote. This causes issues with the linter (mtxrun --script check ) but seems otherwise harmless. I am sure that others more versed in ConTeXt can find some ways to fix this and improve the overall approach. I welcome suggestions

Re: [NTG-context] hyphenate nothyphenated

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

Re: [NTG-context] hyphenate nothyphenated

2021-06-30 Thread Alan Braslau
On 30/06/21 12:25, Hans Hagen wrote: On 6/30/2021 7:35 PM, Alan Braslau wrote: On 29/06/21 05:52, Hans Hagen wrote: well, you ask for nothyphenated; we could define \permanent\protected\def\-%    {\begingroup     \hyphenationmode\explicithyphenationmodecode\explicitdiscretionary     \endgroup

Re: [NTG-context] hyphenate nothyphenated

2021-06-30 Thread Hans Hagen
On 6/30/2021 7:35 PM, Alan Braslau wrote: On 29/06/21 05:52, Hans Hagen wrote: well, you ask for nothyphenated; we could define \permanent\protected\def\-%    {\begingroup     \hyphenationmode\explicithyphenationmodecode\explicitdiscretionary     \endgroup} i will ponder this I believe that

Re: [NTG-context] hyphenate nothyphenated

2021-06-30 Thread Alan Braslau
On 29/06/21 05:52, Hans Hagen wrote: well, you ask for nothyphenated; we could define \permanent\protected\def\-%   {\begingroup    \hyphenationmode\explicithyphenationmodecode\explicitdiscretionary    \endgroup} i will ponder this I believe that \- defines an *optional* hyphenation point

[NTG-context] makeups with local setups

2021-06-29 Thread Jan U. Hasecke
Dear all, how can I use setups in makeups locally? Or do I miss something. In this sample the interlinespace of the coverpage makeup is also used after stopmakeup. Is there a way to define the setups values only locally inside the makeup? Or is it better to use something else

Re: [NTG-context] makeups with local setups

2021-06-29 Thread Hans Hagen
On 6/29/2021 2:47 PM, Jan U. Hasecke wrote: Dear all, how can I use setups in makeups locally? Or do I miss something. In this sample the interlinespace of the coverpage makeup is also used after stopmakeup. Is there a way to define the setups values only locally inside the makeup? Or is

Re: [NTG-context] hyphenate nothyphenated

2021-06-29 Thread Hans Hagen
={nothyphenated}] \starttext \chapter{abc\-def} \stoptext Is this intended? well, you ask for nothyphenated; we could define \permanent\protected\def\-% {\begingroup \hyphenationmode\explicithyphenationmodecode\explicitdiscretionary \endgroup} i will ponder this Hans

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

2021-06-25 Thread Jan U. Hasecke
Dear all, the mwe shows my try to define a paragraph that stand out like this: On right pages xxx xxx xx xx xxx xxx On left pages xxx xxx xx xx xxx xxx My try with setups does not work. The textcolor is restored but not the

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

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

Re: [NTG-context] typescripts and variants

2021-06-24 Thread BPJ
> > And, what about adding more styles so that you could have Light, Medium, > SemiBold, Bold, ExtraBold, Black etc. all defined in a single fontfamily? > If that was available each font family would then define all the styles for > one variant (SemiCondensed, ExtraCondensed, Conde

Re: [NTG-context] Delivering the value of a variable in MetaFun to ConTeXt

2021-06-23 Thread Jeong Dal
maxNum := k; exitif xpart(z[k]) > TextWidth; endfor; maxNum := maxNum-1; setglobalmacro("udMacro",decimal maxNum); %%% define udMacro and udCount setglobalcount("udCount",maxNum); \stopMPinitializations \startuseMPgraphic{foldUD}{num} numeric n; n

Re: [NTG-context] Delivering the value of a variable in MetaFun to ConTeXt

2021-06-23 Thread Aditya Mahajan
M: removed. Set in in the main code > % setbounds currentpicture to boundingbox q; >enddef; > >ang := 40; >z[1] = whatever[z[0], z[0]+dir(ang)*u] = whatever[A,B]; > >% AM: Changed next line from G to z[-1] >z[-1] = whatever[z[0], z[0]+dir(2*a

Re: [NTG-context] LMTX, BIdi, full paragraph, and spurious empty line

2021-06-23 Thread Hans Hagen
th=fit,    backspace=1.4in,    cutspace=1in,    leftmargin=0.65in,    rightmargin=0.65in] \setupwhitespace  [small] \setupbodyfont    [libertinus,11pt] \define\SetupBib{   \spaceskip 0.7\interwordspace p

Re: [NTG-context] typescripts and variants

2021-06-23 Thread Hans Hagen
, bold slanted). You can just “abuse” the italic or slanted styles for your other weights. If we're restricted to six styles why does this Wiki page show seven? in principle one can define as many new ones as one wants ... it doesn't happen in practice <https://wiki.cont

[NTG-context] splitting tables from csv with first row as header

2021-06-23 Thread Jan U. Hasecke
][test.csv] \stoptext A test.csv is attached. The table splits but no header is repeated. I guess I have to define that the first row in the file is the header. How to achieve this? TIA juh A;B;C;D;E;F 1;2;3;4;5;6 2;3;4;5;6;7 3;4;5;6;7;8 4;5;6;7;8;9 5;6;7;8;9;10 6;7;8;9;10;11 7;8;9;10;11;12

Re: [NTG-context] typescripts and variants

2021-06-23 Thread Wolfgang Schuster
old, Black etc. all defined in a single fontfamily? If that was available each font family would then define all the styles for one variant (SemiCondensed, ExtraCondensed, Condensed, each with 18 styles!) You can add more alternatives (\it, \bf ...) to the font mechanism but this requires

Re: [NTG-context] typescripts and variants

2021-06-23 Thread denis.maier
switch to different variants of a font, say, to use the SemiCondensed variant or the ExtraCondensed or so? (Or does that already exist?) And, what about adding more styles so that you could have Light, Medium, SemiBold, Bold, ExtraBold, Black etc. all defined in a single fontfamily? If that was

[NTG-context] LMTX, BIdi, full paragraph, and spurious empty line

2021-06-21 Thread Rik Kabel
=1.4in,    cutspace=1in,    leftmargin=0.65in,    rightmargin=0.65in] \setupwhitespace  [small] \setupbodyfont    [libertinus,11pt] \define\SetupBib{   \spaceskip 0.7\interwordspace plus .5\interwordstretch minus \interword

ntg-context@ntg.nl

2021-06-15 Thread Wolfgang Schuster
the setups: % Support for Japanese \setscript[hanzi] \starttypescript[serif][sourcehanserifregular] \definefontsynonym[Serif][name:sourcehanserifregular][features={aalt,hist,kern,liga}] \stoptypescript \definetypeface[sourcehanserifregular][rm][serif][sourcehanserifregular] \define[1]\JA{\l

ntg-context@ntg.nl

2021-06-13 Thread Richard Mahoney
ript[hanzi] \starttypescript[serif][sourcehanserifregular] \definefontsynonym[Serif][name:sourcehanserifregular][features={aalt,h ist,kern,liga}] \stoptypescript \definetypeface[sourcehanserifregular][rm][serif][sourcehanserifregula r] \define[1]\JA{\language[ja]{{\setscript[hanzi]\sourcehanserifregular #

[NTG-context] How to define where \typesetbuffer store its pdf output ?

2021-06-12 Thread Garulfo
Hi all, is there a mean to define where \typesetbuffer store its pdf output ? (to avoid messing up the main directory). Garuflo ___ If your question is of interest to others as well, please add an entry to the

Re: [NTG-context] upload / some new math stuff

2021-06-11 Thread Hans Hagen
fonts           > defining > unable to define 'newcm10-regular.otf' as 'newcomputermodern-12pt-rm-tf-0--0' fonts           > defining > font with asked name 'newcmmath-regular' is not found using l

Re: [NTG-context] upload / some new math stuff

2021-06-11 Thread Fabrice Couvreur
putermodern.mkiv' close source> level 2, order 3, name '/home/viserion/LMTX/tex/texmf-context/tex/context/fonts/mkiv/type-imp-newcomputermodern.mkiv' fonts > defining > forced type 'otf' of 'newcm10-regular' not found fonts > d

Re: [NTG-context] upload / some new math stuff

2021-06-11 Thread Mikael Sundqvist
#x27;t look into the > provided math alternates (context supports that but I didn't define them > for this font ... input from math lovers is welcome). > > Now, this font also implements, as cambria does, upright integrals and > as that has comes on my radar every year when I ponder

[NTG-context] upload / some new math stuff

2021-06-10 Thread Hans Hagen
, assuming that one installs these fonts: \setupbodyfont[newcomputermodern-book] \setupbodyfont[newcomputermodern] should work ok. The book variant is quite nice. I didn't look into the provided math alternates (context supports that but I didn't define them for this font ... input from m

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

2021-06-05 Thread Michael Guravage
is not to \setupquotation[method=font] but to define a delimited text environment whose method=font, and use it when a paragraph begins with a quotation. I have attached my own mwe. You can toggle the \setquotation command with --mode=font. Does anyone have a more elegant, or better yet, a correct solution?

Re: [NTG-context] How to write readable source files?

2021-05-30 Thread Nicola
On 2021-05-29, Hans Hagen wrote: > so what does vim expect? isn't there some kind of common format for lexers? The output I need is very simple: syn keyword Group1 ... syn keyword Group2 ... ... where Group1, Group2, ... define arbitrary groups of keywords. For insta

Re: [NTG-context] BibTeX inproceedings entries not rendered correctly in APA style

2021-05-28 Thread Rik Kabel
an be fixed. In the case of a missing publisher, it is not simply left blank because the APA style explicitly tells us to put "Author" when there is no defined publisher, so this is a feature, not a bug. Alan The APA does not attempt to define bibliographies. It defines reference lists (a

Re: [NTG-context] BibTeX inproceedings entries not rendered correctly in APA style

2021-05-27 Thread Nicola
gt; do if you have no editor. >> > It looks like a missing editor field should be caught. What should >> > the rule be? >> > >> > Actually, @inproceedings should not be used without an editor - >> > makes no sense. If the author of the paper happe

Re: [NTG-context] new upload

2021-05-26 Thread Hans Hagen
enable this feature in a permanent way? I mean, how can we avoid that an update disables it? Not ... because we define some inserts (e.g for footnotes) we need to decide what storage model to choose ... technically we can use the runtime 'experiment' feature but i expect to switch r

Re: [NTG-context] BibTeX inproceedings entries not rendered correctly in APA style

2021-05-25 Thread Alan Braslau
eces contained in other works. It calls for the use of the author > >> as publisher if no publisher is present. It is silent about what to > >> do if you have no editor. > > It looks like a missing editor field should be caught. What should > > the rule be? > > >

Re: [NTG-context] BibTeX inproceedings entries not rendered correctly in APA style

2021-05-24 Thread Rik Kabel
sense. If the author of the paper happens to be the editor, then the .bib data file should define this with an editor= field. We can change the behavior if a clear case can be made as to what fallback would make sense. Keep in mind the dictum: "garbage in/garbage out"... Alan For

Re: [NTG-context] BibTeX inproceedings entries not rendered correctly in APA style

2021-05-24 Thread Alan Braslau
s should not be used without an editor - makes no sense. If the author of the paper happens to be the editor, then the .bib data file should define this with an editor= field. We can change the behavior if a clear case can be made as to what fallback

Re: [NTG-context] BibTeX inproceedings entries not rendered correctly in APA style

2021-05-24 Thread Rik Kabel
ibed as required in mkiv-publications.pdf (page 85), however, you should be able to define your own customized btx handling (see chapter 6) to override this, removing both the editor and the publisher as requirements. Just a little coding. (I have previously suggested that repeating the title

<    3   4   5   6   7   8   9   10   11   12   >