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

2021-04-24 Thread Hans van der Meer
t; > >> Am 24.04.2021 um 11:45 schrieb Jan U. Hasecke : >> >> Do you know of any prettifying tool? > > I don’t know one. > >> Is there a best practice for ConTeXt source files, at all? > > I guess many of us adhere to Hans’ style, as shown in the sourc

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

2021-04-24 Thread Henning Hraban Ramm
> Am 24.04.2021 um 11:45 schrieb Jan U. Hasecke : > > Do you know of any prettifying tool? I don’t know one. > Is there a best practice for ConTeXt source files, at all? I guess many of us adhere to Hans’ style, as shown in the sources. i.e. e.g. \setupsomething [name]

[NTG-context] Style options and setupinterlinespace

2021-04-22 Thread denis.maier
Hi, the wiki (https://wiki.contextgarden.net/Font_Switching) currently says: > These quick font switches are meant for changing the font style, alternative, > or size of a few words: they do not change the bodyfont, so they don't affect > interline spacing or math font sizes. S

Re: [NTG-context] Macro to write a letter with \ mathscript{}

2021-04-18 Thread Fabrice Couvreur
more information or a better example there is nothing which can be > done. > > It's possible you have multiple definitions for the command in your style > file, > you can also try if adding \usebodyfont[stixtwo] (or > \definebodyfont[...pt] when > yo

Re: [NTG-context] Macro to write a letter with \ mathscript{}

2021-04-17 Thread Wolfgang Schuster
code yes.Thank you for your possible help. Without more information or a better example there is nothing which can be done. It's possible you have multiple definitions for the command in your style file, you can also try if adding \usebodyfont[stixtwo] (or \definebodyfont[...pt] when you

[NTG-context] Macro to write a letter with \ mathscript{}

2021-04-17 Thread Fabrice Couvreur
] [text=Définition, number=no, headcommand=\groupedcommand{}{}, style=slanted] \setupmathematics[stylealternative=calligraphic] \unexpanded\def\CScript#1#2{\start\switchtobodyfont[stixtwo]\m{{\mathscript{#1}}_{#2}}\stop} \unexpanded\def\cscript#1{\start\switchtobodyfont[stixtwo]\m

[NTG-context] Alignment with an enumeration

2021-04-12 Thread Fabrice Couvreur
Hi, Is it possible that the first item is on the baseline of the definition environment title ? Thank you. Fabrice \define\ItemCommand {\hskip\zeropoint\relax\autoinsertnextspace} \setupitemgroup [itemize] [color=darkred, style=bold, distance=\spaceamount] \setupitemgroup

Re: [NTG-context] SVG comments, transparency, and extended font styles

2021-04-03 Thread Hans Hagen
r[svg][conversion=mp]} \stoptext % EOF Expected: Light cyan rectangle, no border (it's transparent). Actual: Light cyan rectangle with visible border. i'll check it .. if I forget, remind me. 3. Inkscape font specification We discussed this previously: Inkscape extends the SVG specifica

[NTG-context] SVG comments, transparency, and extended font styles

2021-04-03 Thread Thangalin
ght cyan rectangle with visible border. 3. Inkscape font specification We discussed this previously: Inkscape extends the SVG specification with a custom style class ("-inkscape-font-specification") that allows its users to refine font styles. % SOF \startbuffer[svg] http://www.w3.org/

Re: [NTG-context] issue field in bibliography

2021-03-29 Thread Thomas A. Schmitz
ent a better place? Are you asking about the ConTeXt implementation you want to implement or about the actual bibliographic representation you want on the page? If the former, we need more information: what style are you using for the list, what citation style? Show us some code, make a MWE. I

[NTG-context] Grid typesetting, blockquotes in smaller font across pagebreaks

2021-03-25 Thread denis.maier
quote] [ style=\tfx, %style=\tfx\setupinterlinespace, % this breaks grid snapping spacebefore=hal

[NTG-context] Multiple Layouts

2021-03-13 Thread Jeroen
=3mm, height=middle, footerdistance=5mm, footer=9mm, bottomspace=11mm] \setuphead [chapter] [style={\bfb}, before={\vskip 0mm}, after={\vskip-\parskip}] \setuphead [section] [style=bold, before={\vskip 6mm}, after={\vskip 2mm}] \setuppagenumbering [alternative

[NTG-context] (no subject)

2021-03-13 Thread Jeroen
=3mm, height=middle, footerdistance=5mm, footer=9mm, bottomspace=11mm] \setuphead [chapter] [style={\bfb}, before={\vskip 0mm}, after={\vskip-\parskip}] \setuphead [section] [style=bold, before={\vskip 6mm}, after={\vskip 2mm}] \setuppagenumbering [alternative

Re: [NTG-context] Write to tuc file

2021-03-07 Thread Pablo Rodriguez
On 3/6/21 2:35 PM, Hans Hagen wrote: > On 3/6/2021 1:56 PM, Pablo Rodriguez wrote: >> [...] >> The select style could generate from start-identifier and >> stop-identifier, the result "identifier.pdf". > \startchapter[reference=whatever,title=foo] > \stopchapt

Re: [NTG-context] Write to tuc file

2021-03-06 Thread Hans Hagen
proper refs for chapters you can use the reported values and feed them into whatever i could add something to the select style but i guess then there is no uniformity in how users do this Many thanks for the new stuff, Hans. This could be an approach: \starttext \completecontent \dorecurse

Re: [NTG-context] Write to tuc file

2021-03-06 Thread Pablo Rodriguez
> you can use the reported values and feed them into whatever > > i could add something to the select style but i guess then there is no > uniformity in how users do this Many thanks for the new stuff, Hans. This could be an approach: \starttext \completecontent \dorecurse{10}

Re: [NTG-context] Center a text (Metafun)

2021-03-06 Thread Wolfgang Schuster
ou Fabrice \definecolor[MyBlue][c=0.2 , m=0.03, y=0.00, k=0.00] \definecolor[maincolor] [b=.5] \defineframedtext    [MyFrame]    [frame=off,     background=MyFrame,     width=fit,     height=fit,     style=small] \startuseMPgraphic{MyFrame}      path b;      picture p;      p := textex

[NTG-context] Center a text (Metafun)

2021-03-06 Thread Fabrice Couvreur
00, k=0.00] \definecolor[maincolor] [b=.5] \defineframedtext [MyFrame] [frame=off, background=MyFrame, width=fit, height=fit, style=small] \startuseMPgraphic{MyFrame} path b; picture p; p := textext.rt("\tfx\bf\white\framedtextparameter{Title}");

Re: [NTG-context] Write to tuc file

2021-03-05 Thread Hans Hagen
could add something to the select style but i guess then there is no uniformity in how users do this Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The

[NTG-context] Incorrect css reference in exported html file

2021-02-27 Thread Aditya Mahajan
ests in t-vim as follows. The t-vim module includes a pre-generated css file which provides the color and style values for the default color schemes. The module provides a macro \vimcssfile, which is the complete path of the file (basically the value of `resolvers.resolve("full:vimtyping-defau

Re: [NTG-context] Questions for eTABLE

2021-02-23 Thread Alain Delmotte
s in Swahilli are in bold? Use \bTD ... \eTD for the cells. The \bTH ... \eTH pair is for header lines and changes the style to bold. If for the table I use \setupTABLE[c]1,2,3][width= 5cm, align=left] the texts are aligned to the right, if I sa

Re: [NTG-context] Questions for eTABLE

2021-02-22 Thread Wolfgang Schuster
} \input zapf \stoptext I do not understand why the lines in Swahilli are in bold? Use \bTD ... \eTD for the cells. The \bTH ... \eTH pair is for header lines and changes the style to bold. If for the table I use \setupTABLE[c]1,2,3][width= 5cm, align=left] the texts are

Re: [NTG-context] Lua code and table

2021-02-17 Thread Bruce Horrocks
> On 17 Feb 2021, at 17:40, Fabrice Couvreur > wrote: > > Hi, The code works, but is it possible to make it shorter ? > Thank you > Fabrice > You can reduce the size of the test by storing the pattern in a table: \startluacode local background_one = { align

Re: [NTG-context] Lua code and table

2021-02-17 Thread Tomas Hala
   \NC\NR #  \stoptabulate #} #\starttext #\startluacode #  local background_one = { #   align = "middle", #    style = "type", #   background = "DiagonalRule", #  } # #  local letters_1 = { "A", "B", "C

[NTG-context] Lua code and table

2021-02-17 Thread Fabrice Couvreur
\NC \bf #1 \NC\NC\NR \stoptabulate } \starttext \startluacode local background_one = { align = "middle", style = "type", background = "DiagonalRule", } local letters_1 = { "A", "B", "C", "D", "E

Re: [NTG-context] How to improve visually a table

2021-02-16 Thread Wolfgang Schuster
BLE[first][last][corner=07] \setupTABLE[last][last][corner=06] \setupTABLE[column][last][style={\setcharacterspacing[frenchpunctuation]}] \stopsetups \bTABLE[setups=tablesettings] %\bTABLEhead \bTR \bTH espéranto \eTH \bTH exemple \eTH \bTH équivalent en français \eTH \eTR %\eTABLEhe

Re: [NTG-context] set fallback in \definefont

2021-02-16 Thread Wolfgang Schuster
Mohammad Hossein Bateni schrieb am 15.02.2021 um 22:31: Thanks for the quick response, Pablo.  I already use typescripts (\definetypeface, \definefontsynonym and \definefontfallback): https://github.com/bateni/dabeer/tree/master/texmf-local/tex/context/fonts/mkiv By arbitrary style, I meant

Re: [NTG-context] set fallback in \definefont

2021-02-15 Thread Mohammad Hossein Bateni
Thanks for the quick response, Pablo. I already use typescripts (\definetypeface, \definefontsynonym and \definefontfallback): https://github.com/bateni/dabeer/tree/master/texmf-local/tex/context/fonts/mkiv By arbitrary style, I meant something like: \definefontfamily[myface][CUSTOM][TeX Gyre

[NTG-context] RE : Font issue with page header with latest LMTX beta 2021-02-12 18:48

2021-02-13 Thread Joseph
2021-02-12 18:48 Joseph schrieb am 13.02.2021 um 12:35:Dear list It seems that  \setupheader[style=\BigFont] Where \BigFont is defined with \definefont Does not have effect with latest LMTX. Page headers have same font as page body text (in my case it’s same font but larger in headers).Hi Joseph

Re: [NTG-context] Font issue with page header with latest LMTX beta 2021-02-12 18:48

2021-02-13 Thread Wolfgang Schuster
Joseph schrieb am 13.02.2021 um 12:35: Dear list It seems that \setupheader[style=\BigFont] Where \BigFont is defined with \definefont Does not have effect with latest LMTX. Page headers have same font as page body text (in my case it’s same font but larger in headers). Hi Joseph

[NTG-context] Font issue with page header with latest LMTX beta 2021-02-12 18:48

2021-02-13 Thread Joseph
Dear list It seems that  \setupheader[style=\BigFont] Where \BigFont is defined with \definefont Does not have effect with latest LMTX. Page headers have same font as page body text (in my case it’s same font but larger in headers). Will try to work out a MWE if needed.Thanks Best regards Joseph

Re: [NTG-context] style option not working for headings

2021-02-12 Thread Pablo Rodriguez
On 2/13/21 12:33 AM, Hans Hagen wrote: > On 2/13/2021 12:13 AM, Pablo Rodriguez wrote: >> Dear Hans, >> >> I’m afraid that style doesn’t work for headings in current latest >> (2021.02.12 18:49): >> [...] > can you check again? Many thanks for your fast fix

Re: [NTG-context] style option not working for headings

2021-02-12 Thread Hans Hagen
On 2/13/2021 12:13 AM, Pablo Rodriguez wrote: Dear Hans, I’m afraid that style doesn’t work for headings in current latest (2021.02.12 18:49): \setuphead[chapter][style=\it] \setuphead[section][style=\it] \starttext \chapter{Chapter} \section{Section} \input zapf \stoptext

Re: [NTG-context] style option not working for headings

2021-02-12 Thread Pablo Rodriguez
On 2/13/21 12:13 AM, Pablo Rodriguez wrote: > Dear Hans, > > I’m afraid that style doesn’t work for headings in current latest > (2021.02.12 18:49): Hans, it might be that the style option doesn’t work in other commands (or at all): \setuphead[section][style=\it] \setuplist[se

[NTG-context] style option not working for headings

2021-02-12 Thread Pablo Rodriguez
Dear Hans, I’m afraid that style doesn’t work for headings in current latest (2021.02.12 18:49): \setuphead[chapter][style=\it] \setuphead[section][style=\it] \starttext \chapter{Chapter} \section{Section} \input zapf \stoptext Many thanks for your help, Pablo -- http

Re: [NTG-context] Twenty One versus Twenty-one

2021-02-11 Thread jbf
iples when writing and wanting things published. That's the background to my question! MWE \setuphead[chapter][ header=empty, alternative=middle, style={\ssd}, number=yes, conversion=Word, command=\MyChapterCommand, after={\blank[1cm]}, ] Problem is

Re: [NTG-context] Twenty One versus Twenty-one

2021-02-10 Thread Hans Hagen
apter][     header=empty,     alternative=middle,     style={\ssd},     number=yes,     conversion=Word,     command=\MyChapterCommand,     after={\blank[1cm]},     ] Problem is, when we get to chapter Twenty-one (which is the correct way to write it in English) it gives me 'Twenty One&

[NTG-context] Twenty One versus Twenty-one

2021-02-10 Thread jbf
ative=middle,     style={\ssd},     number=yes,     conversion=Word,     command=\MyChapterCommand,     after={\blank[1cm]},     ] Problem is, when we get to chapter Twenty-one (which is the correct way to write it in English) it gives me 'Twenty One'. Is there a way, in my setup, that

Re: [NTG-context] composing commands

2021-02-09 Thread Otared Kavian
bletrackers[fonts.missing=remove] > \replacemissingcharacters \enabletrackers[fonts.missing=replace] > \handlemissingcharacters \enabletrackers[fonts.missing={decompose,replace}] > > the last one will inject decomposed characters into the list when font lacks > the real thing. The r

Re: [NTG-context] composing commands

2021-02-08 Thread Richard Mahoney
c ters \enabletrackers[fonts.missing=replace]\handlemissingcharacters \enabl etrackers[fonts.missing={decompose,replace}] the last one will inject decomposed characters into the list when font lacks the real thing.

Re: [NTG-context] composing commands

2021-02-08 Thread Hans Hagen
ts.missing=remove] \replacemissingcharacters \enabletrackers[fonts.missing=replace] \handlemissingcharacters \enabletrackers[fonts.missing={decompose,replace}] the last one will inject decomposed characters into the list when font lacks the real thing. The replacements visualize sim

Re: [NTG-context] externalizing TikZ graphics

2021-01-25 Thread Hans Hagen
buffer[foo] % maybe include a style / enviroment \usemodule[tikz] \usetikzlibrary[patterns] \startTEXpage \starttikzpicture \draw[pattern color=red,pattern=bricks] (0,0) circle (1cm); \stoptikzpicture \stopTEXpage \stopbuffer \framed[offset=overlay]{\typ

Re: [NTG-context] lmtx-20210118 | Corruption with rotated floats

2021-01-23 Thread Pablo Rodriguez
\overloadmode=4 (which can be interesting as it > might reveal issues in a style) the run will quit with an error ... this > is a fix: > > \def\strc_floats_set_page_variant >{\bgroup > \strc_floats_set_local_hsize > \ifcase\c_strc_floats_rotation\else

Re: [NTG-context] lmtx-20210118 | Corruption with rotated floats

2021-01-23 Thread Hans Hagen
afraid I don’t have any experience rotating tables. The code is not different from mkiv but instead we swap dimens using a primitive. When you set \overloadmode=4 (which can be interesting as it might reveal issues in a style) the run will quit with an error ... this is a fix: \def

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

2021-01-11 Thread Ivan Pešić
Stoffel > To: mailing list for ConTeXt users > Cc: > Bcc: > Date: Wed, 06 Jan 2021 08:17:41 +0100 > Subject: Re: [NTG-context] A not so short introduction to ConTeXt Mark IV > Hi Joaquín, > > Here is a small suggestion, which would have a few different uses. Th

[NTG-context] squeezed

2021-01-08 Thread Hans Hagen
Hi, Another example: \definetweakedfont[squeezed] [xscale=0.90] \bTABLE \bTR \bTD foo \eTD \bTD[style=\squeezed] $x = 1$ \eTD \eTR \bTR \bTD oof \eTD \bTD[style=\squeezed] $x = 2$ \eTD \eTR \eTABLE \bTABLE[style=squeezed] \bTR \bTD $x = 1$ \eTD \bTD $x

Re: [NTG-context] styling part of an index entry

2021-01-07 Thread jbf
the list has a cleaner alternative? Cordially, Jairo El jue, 7 de ene. de 2021 a la(s) 18:01, jbf (roma83...@gmail.com <mailto:roma83...@gmail.com>) escribió: Thanks Jairo, with some tweaking I now have it working ( I had \placeindex instead of \placemyindex! And altered the 's

Re: [NTG-context] styling part of an index entry

2021-01-07 Thread Jairo A. del Rio
83...@gmail.com) escribió: > Thanks Jairo, with some tweaking I now have it working ( I had \placeindex > instead of \placemyindex! And altered the 'style' name to something else as > you hinted I should). > > Now, this might be asking too much of ConTeXt, but some Newspaper

Re: [NTG-context] styling part of an index entry

2021-01-07 Thread jbf
Thanks Jairo, with some tweaking I now have it working ( I had \placeindex instead of \placemyindex! And altered the 'style' name to something else as you hinted I should). Now, this might be asking too much of ConTeXt, but some Newspaper names don't italicise the 'The&

Re: [NTG-context] styling part of an index entry

2021-01-07 Thread jbf
Thanks Jairo, with some tweaking I now have it working ( I had \placeindex instead of \placemyindex! And altered the 'style' name to something else as you hinted I should). Now, this might be asking too much of ConTeXt, but some Newspaper names don't italicise the 'The&

Re: [NTG-context] styling part of an index entry

2021-01-07 Thread Jairo A. del Rio
Hi. In latest LMTX (2021.01.07 16:59), your example works as expected: \defineregister[myindex] \defineprocessor[style][style=italic]%Isn't another name available? \starttext In \myindex{style->Observer, The}{\em The Observer} of 31 July 2018 \placemyindex% \stoptext Jairo El jue,

[NTG-context] styling part of an index entry

2021-01-07 Thread jbf
. The Observer MWE \defineregister[myindex] \defineprocessor[style][style=italic] \starttext In \myindex{style->Observer, The} {\em The Observer} of 31 July 2018 \stoptext The only result I am getting is: ->Observer, The   223 But what I want is /Observer, The/ (in other words,

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

2021-01-05 Thread Augusto Stoffel
rstand that and it is all well and good. I am wondering if there already is *another* text which presupposes basic knowledge of TeX and general knowledge of LaTeX, perhaps in a by-topic style. > I think this relates to the question how someone comes to tex and then to context. Are tex m

[NTG-context] Migrating from LaTeX (was: A not so short introduction to ConTeXt Mark IV)

2021-01-04 Thread BPJ
is *another* text which presupposes basic knowledge of TeX and > general knowledge of LaTeX, perhaps in a by-topic style. > > I think this relates to the question how someone comes to tex and then > to context. Are tex macro packages used alongside and such? Are there 'from > word

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

2021-01-03 Thread Henning Hraban Ramm
> Am 03.01.2021 um 22:24 schrieb Hans Hagen : > > On 1/3/2021 10:02 PM, BPJ wrote: >> I understand that and it is all well and good. I am wondering if there >> already is *another* text which presupposes basic knowledge of TeX and >> general knowledge of LaTeX, perha

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

2021-01-03 Thread Hans Hagen
On 1/3/2021 10:02 PM, BPJ wrote: I understand that and it is all well and good. I am wondering if there already is *another* text which presupposes basic knowledge of TeX and general knowledge of LaTeX, perhaps in a by-topic style. I think this relates to the question how someone comes to tex

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

2021-01-03 Thread denis.maier
rs Betreff: Re: [NTG-context] A not so short introduction to ConTeXt Mark IV I understand that and it is all well and good. I am wondering if there already is *another* text which presupposes basic knowledge of TeX and general knowledge of LaTeX, perhaps in a by-topic style. -- Better --help|les

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

2021-01-03 Thread BPJ
I understand that and it is all well and good. I am wondering if there already is *another* text which presupposes basic knowledge of TeX and general knowledge of LaTeX, perhaps in a by-topic style. -- Better --help|less than helpless Den sön 3 jan. 2021 20:04Joaquín Ataz López skrev: > I

[NTG-context] Protruding quotation marks obviate narrowed quotations

2020-12-30 Thread Michael Guravage
Setup hanging punctuation, less severe style \definefontfeature [default] [default] [protrusion=punctuation,expansion=quality] \setupalign[hz,hanging] % Provide protrusion for quotations. \setupquotation[method=font] % Toggle this line to see the effect. \setupquote[method=font] \star

Re: [NTG-context] Problem with \dfrac{}{} with lmtx updated

2020-12-24 Thread Hans Hagen
n line 2 in file ./hans_21.tex: Math error: parameter 'fractionnumup' in style 2 is not set \math_m_nop #1->\relax \ifmmode #1\else \normalstartimath #1\normalstopimath     \fi \m{f(x)=\dfrac{a + b\ln(x)}{x}} 1     \starttext 2 >>  \m{f(x)=\dfrac{a + b\ln(x)}{x}} 3  

[NTG-context] Problem with \dfrac{}{} with lmtx updated

2020-12-24 Thread Fabrice Couvreur
arameter 'fractionnumup' in style 2 is not set \math_m_nop #1->\relax \ifmmode #1\else \normalstartimath #1\normalstopimath \fi \m{f(x)=\dfrac{a + b\ln(x)}{x}} 1 \starttext 2 >> \m{f(x)=\dfrac{a + b\ln(x)}{x}} 3 \stoptext Sorry, but I can't typeset math unless

Re: [NTG-context] efficiently scaling fonts

2020-12-24 Thread Pablo Rodriguez
opbuffer and \getbuffer, such as in: \setuplayout[topspace=1cm,header=1cm] \setuplayout[middle] \setupbodyfont[pagella,10pt] \setupalign[verytolerant,stretch] \setupwhitespace[big] \starttext \startbuffer \definescaledfont[bfe][xscale=2000,yscale=6000,style=bf] \setuphead[chapter

[NTG-context] efficiently scaling fonts

2020-12-24 Thread Hans Hagen
\definescaledfont[bfe][xscale=2000,yscale=6000,style=bf] \setuphead[chapter][style=\bfe] \dostepwiserecurse {10} {2020} {10} { \title{Here we go #1!} \start \glyphxscale#1\relax \glyphyscale#1\relax \setupinterlinespace \samplefile{ward}% \start \bf \samplefile

Re: [NTG-context] new font trickery

2020-12-23 Thread Hans Hagen
se we can still keep the abstraction because we can define sizes, think of: \definescaledfont[bfe][xscale=2000,yscale=6000,style=bf] (just made this feature work in two directions, not yet uploaded). But you're right, we have to educate users in this. Actually, I was wondering iif thi

[NTG-context] new font trickery

2020-12-22 Thread Hans Hagen
%% EXAMPLE \setuplayout[middle] \setupbodyfont[pagella,10pt] \setupalign[verytolerant,stretch] \setupwhitespace[big] \starttext \startbuffer \definescaledfont[bfe][scale=2000,style=bf] \setuphead[chapter][style=\bfe] \dostepwiserecurse {10} {2020} {10} { \title{Here we go #1!}

Re: [NTG-context] Placing extra bookmarks?

2020-12-02 Thread Bruce Horrocks
bookmarks[chapter] in my doc and all is fine except that I'd >>>> like to force an extra bookmark at the top of the list that jumps to the >>>> cover page. However there is no chapter title, or other built in style on >>>> the cover. >>>> >&g

Re: [NTG-context] Placing extra bookmarks?

2020-12-02 Thread Hans Hagen
ps to the cover page. However there is no chapter title, or other built in style on the cover. I tried inserting \bookmark[chapter]{The Cover} but nothing happened - no error, no bookmark. Any suggestions please? There's no need to bookmark to a specific point - just going to page 1 would

Re: [NTG-context] Placing extra bookmarks?

2020-12-01 Thread Bruce Horrocks
>> cover page. However there is no chapter title, or other built in style on >> the cover. >> >> I tried inserting \bookmark[chapter]{The Cover} but nothing happened - no >> error, no bookmark. >> >> Any suggestions please? There's no need to bookma

Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Otared Kavian
;> >>>> Thanks Tomás! Indeed \jobname does the job :-) >>> In case you need the current component file in a project environment: >>> \currentcomponent > > In some case \inputfilename is the better choice, e.g. when you process xml > files with a

Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Wolfgang Schuster
16:20 schrieb Otared Kavian : Thanks Tomás! Indeed \jobname does the job :-) In case you need the current component file in a project environment: \currentcomponent In some case \inputfilename is the better choice, e.g. when you process xml files with a environment file for the style and proce

Re: [NTG-context] Placing extra bookmarks?

2020-12-01 Thread Henning Hraban Ramm
> Am 01.12.2020 um 15:36 schrieb Bruce Horrocks : > > I have \placebookmarks[chapter] in my doc and all is fine except that I'd > like to force an extra bookmark at the top of the list that jumps to the > cover page. However there is no chapter title, or other built in s

[NTG-context] Placing extra bookmarks?

2020-12-01 Thread Bruce Horrocks
I have \placebookmarks[chapter] in my doc and all is fine except that I'd like to force an extra bookmark at the top of the list that jumps to the cover page. However there is no chapter title, or other built in style on the cover. I tried inserting \bookmark[chapter]{The Cover} but no

[NTG-context] Bug in lmtx bibliography (numerals in entry?)

2020-12-01 Thread Damien Thiriet
Hello, My bibliography files compiles fine in mkiv, but hangs in lmtx Here is the error message: tex error > tex error on line 30 in file ./Nation_rev_empire.mkiv: Use of \btxshowentryinline doesn't match its definition \btxflushlisttext ...tyleandcolor \c!style

Re: [NTG-context] Unexpected underbar behaviour in sections

2020-11-24 Thread Bruce Horrocks
> On 24 Nov 2020, at 22:26, Aditya Mahajan wrote: > > On Tue, 24 Nov 2020, Bruce Horrocks wrote: > >> The following is giving me a section title with triple underbars instead of >> single. >> >> \definehead [Heading] [section] >> \setuphead [Headin

Re: [NTG-context] Unexpected underbar behaviour in sections

2020-11-24 Thread Aditya Mahajan
On Tue, 24 Nov 2020, Bruce Horrocks wrote: > The following is giving me a section title with triple underbars instead of > single. > > \definehead [Heading] [section] > \setuphead [Heading] [style={\underbar}] Change this to: \setuphead [Heading] [textcommand={\underbar}

[NTG-context] Unexpected underbar behaviour in sections

2020-11-24 Thread Bruce Horrocks
The following is giving me a section title with triple underbars instead of single. \definehead [Heading] [section] \setuphead [Heading] [style={\underbar}] \starttext \Heading{First level section heading} \underbar{This is single underlined as expected} \stoptext (Same with \startHeading

[NTG-context] startCSV Wiki, Natural Table

2020-11-24 Thread Fabrice L
} \def\TBLline#1{\bTR\processcommalist[#1]\TBLentry} \def\dostartCSV#1\stopCSV{% \bTABLE \ProcessLines\TBLline{#1}% \eTABLE \egroup } % some additional settings for the table may be made as well \setupTABLE[c][2][style=\tt] \setupTABLE[c][3][align=middle] \setupTABLE[r][1][style=bold

Re: [NTG-context] Piecewise margin line

2020-11-20 Thread Johann Birnick
On Fri, 2020-11-20 at 08:17 +0100, mf wrote: > Il 20/11/20 02:06, Johann Birnick ha scritto: > > On Thu, 2020-11-19 at 11:25 +0100, mf wrote: > > > Il 19/11/20 10:39, Johann Birnick ha scritto: > > > > Hello, > > > > > > > > I want to setup

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread mf
Il 20/11/20 02:06, Johann Birnick ha scritto: On Thu, 2020-11-19 at 11:25 +0100, mf wrote: Il 19/11/20 10:39, Johann Birnick ha scritto: Hello, I want to setup some fancy theorem style for my math notes. For this I want to have a colored margin line next to my theorems. It should look like

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread Otared Kavian
, background=color, backgroundcolor=white, ] %%% \defineenumeration[proclaim] [text=, before={\starttextbackground[leftbartext]}, after={\stoptextbackground}, style=slanted, title=yes, titleleft=, titleright

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread Johann Birnick
On Thu, 2020-11-19 at 11:25 +0100, mf wrote: > Il 19/11/20 10:39, Johann Birnick ha scritto: > > Hello, > > > > I want to setup some fancy theorem style for my math notes. For this I want > > to > > have a colored margin line next to my theorems. It shou

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread mf
Il 19/11/20 10:39, Johann Birnick ha scritto: Hello, I want to setup some fancy theorem style for my math notes. For this I want to have a colored margin line next to my theorems. It should look like this: https://i.ibb.co/F6L59pD/idea.png The line should stretch over the whole theorem, not

[NTG-context] Piecewise margin line

2020-11-19 Thread Johann Birnick
Hello, I want to setup some fancy theorem style for my math notes. For this I want to have a colored margin line next to my theorems. It should look like this: https://i.ibb.co/F6L59pD/idea.png The line should stretch over the whole theorem, not just the first line. (But the latter would be a

Re: [NTG-context] How to reproduce a particular head/title style (reformat)

2020-11-15 Thread Willi Egger
Hi Garulfo! Now! — You managed do do a nice job! :-) Willi > On 15 Nov 2020, at 19:53, Garulfo wrote: > > Hi, > > finally I made some progress and uploaded files to the wiki in "Reports and > articles" Samples section (https://wiki.contextgarden.net/Sample_documents) > > Initial PDF docume

Re: [NTG-context] How to reproduce a particular head/title style (reformat)

2020-11-15 Thread Pablo Rodriguez
On 11/15/20 7:53 PM, Garulfo wrote: > [...] > Initial PDF document: > https://www.hautconseilclimat.fr/wp-content/uploads/2020/10/hcc_rapport_maitriser-lempreinte-carbone-de-la-france-1.pdf > [...] > ConTeXt output : > https://wiki.contextgarden.net/images/4/45/2020_hcc_rapport_maitriser-l-empreint

Re: [NTG-context] How to reproduce a particular head/title style (reformat)

2020-11-15 Thread Garulfo
Hi, finally I made some progress and uploaded files to the wiki in "Reports and articles" Samples section (https://wiki.contextgarden.net/Sample_documents) Initial PDF document: > https://www.hautconseilclimat.fr/wp-content/uploads/2020/10/hcc_rapport_maitriser-lempreinte-carbone-de-la-franc

Re: [NTG-context] How can I make the notes under this table inherit the width of the table, and not the \textwidth?

2020-11-10 Thread Sylvain Hubert
Hi Andrés, You could probably put the notes inside a \start...\stopxtablefoot Sylvain On Tue, 10 Nov 2020 at 21:49, Andres Conrado Montoya < andresconr...@gmail.com> wrote: > MWE (sorry for the long table, I hadn't anything else at hand): > > > \defi

[NTG-context] How can I make the notes under this table inherit the width of the table, and not the \textwidth?

2020-11-10 Thread Andres Conrado Montoya
MWE (sorry for the long table, I hadn't anything else at hand): \definehighlight[emph][style={\em}] \definehighlight[strong][style={\bf}] \setupfloat[table][default={here}] \definereferenceformat[figura][text={Figura~}] \definereferenceformat[tabla][text={

Re: [NTG-context] Scheherazade New loading issue

2020-11-07 Thread Wolfgang Schuster
herazade New' for typeface 'mainface' style 'rm' was ignored because no files where found. And yet Scheherazade New sits beside Scheherazade (which 2020.09.20 finds) in ~/Fonts. Does ConTeXt list the font in its database? mtxrun --script fonts --list

Re: [NTG-context] Scheherazade New loading issue

2020-11-07 Thread Alan Bowen
Thanks, Pablo. I ran the script but it made no difference. Scheherazade New was loaded with ver: 2020.11.07 12:47 but not with ver: 2020.09.20 23:02 The console file for the latter shows: selectfont > the requested fallback font 'Scheherazade New' for typeface 'mainfa

[NTG-context] specify column-width, with option=stretch

2020-11-04 Thread Peter Münster
Hi, I would like to specify the column-width of the first column to 5mm: --8<---cut here---start->8--- \starttext \setupTABLE[textwidth=99mm, option=stretch] \setupTABLE[c][each][align={lohi, middle}] \setupTABLE[c][1][height=5mm, style=\tfxx] \framed

[NTG-context] How to reproduce a particular head/title style (reformat)

2020-11-03 Thread Garulfo
Hi, I would like to learn "how to ConTeXt" complex titles styles like the one seen in the following document: - https://wiki.contextgarden.net/images/f/f1/Screenshot_20201103_220818.png - source document: https://www.hautconseilclimat.fr/wp-content/uploads/2020/10/hcc_rapport_maitriser-l

[NTG-context] How to reproduce a particular head/title style

2020-11-03 Thread Garulfo
Hi, I would like to learn "how to ConTeXt" complex titles styles like the one seen in the following document: https://wiki.contextgarden.net/images/f/f1/Screenshot_20201103_220818.png original document: https://www.hautconseilclimat.fr/wp-content/uplo

[NTG-context] troubles with \enablemode

2020-10-30 Thread Damien Thiriet
Hi @list, I don't fully understand the \enablemode mechanism. Given this MWE: \startmode[test] \setupframedtext [foregroundcolor=white,style={\tfa}] \stopmode \starttext \startframedtext ceci est un texte \stopframedtext \enablemode [test] \startframedtext ceci est un texte \stopframe

Re: [NTG-context] troubles with \enablemode

2020-10-30 Thread Aditya Mahajan
On Fri, 30 Oct 2020, Damien Thiriet wrote: > Hi @list, > > > I don't fully understand the \enablemode mechanism. Given this MWE: > > > \startmode[test] > \setupframedtext [foregroundcolor=white,style={\tfa}] > \stopmode > > > \startte

Re: [NTG-context] troubles with \enablemode

2020-10-30 Thread Henning Hraban Ramm
> Am 30.10.2020 um 19:26 schrieb Damien Thiriet : > I don't fully understand the \enablemode mechanism. Given this MWE: > > \startmode[test] > \setupframedtext [foregroundcolor=white,style={\tfa}] > \stopmode > > > \starttext > \startframedtext &g

Re: [NTG-context] font rendering in bibliography

2020-10-28 Thread Xenos Athenaios
\setuplanguage[fr][patterns={fr,agr}] \mainlanguage[fr] \setcharacterspacing[frenchpunctuation] \setuplayout [backspace=40mm] \setuppagenumbering[alternative=doublesided, location={header, inmargin}] \setupmargindata[inmargin][location=inner, style={\ssx\setupinterlinespace[line=2.8ex

Re: [NTG-context] xtable row number trouble

2020-10-27 Thread Oleg
t; > With \convertedcounter you have always the option to change the style of > the value, > e.g. number conversion, prefixes etc. > > > What's about \newcount&\advance variant? Why it not work? > > Short answer: expansion > > You're using advance in a

Re: [NTG-context] xtable row number trouble

2020-10-26 Thread Wolfgang Schuster
edcounter you have always the option to change the style of the value, e.g. number conversion, prefixes etc. What's about \newcount&\advance variant? Why it not work? Short answer: expansion You're using advance in a place where it is just ignored, there are ways to get ri

Re: [NTG-context] Concerning text backgrounds (and further tuning) in references

2020-10-24 Thread Jairo A. del Rio
RL[aurl] [https://wiki.contextgarden.net] [] [\MyUrl{ConTeXt > > Garden}] \starttext Testing links to same page\footnote{This should > > create links to same page} and an external link: \from[aurl]. \stoptext > > > > | > > > > |When one tries to use `\setupinteracti

<    5   6   7   8   9   10   11   12   13   14   >