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

2021-09-16 Thread Joey McCollum via ntg-context
Hi, It's taken a couple weeks, but I nearly have a working bibliographic rendering for SBL style ready. I'm hosting the .lua and .mkvi files I have so far, as well as a test .bib and .tex file, on GitHub at https://github.com/jjmccollum/context-sbl. The look of the rendering seems to be correct

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

2021-09-16 Thread Denis Maier via ntg-context
. This works brilliant. I can even overwrite styles > for one > document only. I'd like to name this a cascading approach. > > While doing this I learned a lot and changed the way the style files are > organised from time to time. > > Currently I start with colors and fonts.

Re: [NTG-context] Changing the style of author’s surname in a custom bibliographical style

2021-09-15 Thread Tomáš V via ntg-context
I’ve found an answer to my first problem. The functions, that print out the names in the list, are defined in publ-imp-author.mkvi. I copied the responsible function to publ-imp-iso690.mkiv, edited one line (see code below) and everything works as intended. Tomáš % publ-imp-iso690.mkiv

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

2021-09-15 Thread Hans Hagen via ntg-context
this I learned a lot and changed the way the style files are organised from time to time. Currently I start with colors and fonts. Then comes the page dimension definitions, makeups, headers and footers, headlines, the toc styles, lists and tables. the order sounds ok to me Does anyone has

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

2021-09-15 Thread juh via ntg-context
everywhere but also styles for heads that are only used in legal context and other heads-styles used in other contexts. This works brilliant. I can even overwrite styles for one document only. I'd like to name this a cascading approach. While doing this I learned a lot and changed the way the style

[NTG-context] Changing the style of author’s surname in a custom bibliographical style

2021-09-11 Thread Tomáš V via ntg-context
Greetings, I am trying to make a bibliographical style that would comply to the ISO 690 standard and I have a few questions: 1) The name of the author need to be written in the inverted format (e.g. Knuth, Donald). It is also customary to write the surname either in uppercase or in small

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

2021-08-27 Thread Joey McCollum via ntg-context
ni.mkiv, the \currentbtxciteauthorbyfield > command shows how to print the author field mapped according to the cite > style: > > > > ``` > > \unexpanded\def\currentbtxciteauthorbyfield > > {\begingroup > >%\setbtxparameterset\s!cite\s!author > >

Re: [NTG-context] Create an enumeration style

2021-08-27 Thread Rudolf Bahr via ntg-context
On Fri, Aug 27, 2021 at 11:26:47AM +0200, Vincent Hennebert via ntg-context wrote: > On Wed, 2021-08-11 at 10:23 +0200, Hans Hagen via ntg-context wrote: > > On 8/11/2021 10:09 AM, Otared Kavian via ntg-context wrote: > > > > > > > > > > On 9 Aug 2021, at 18:10, Wolfgang Schuster via

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

2021-08-27 Thread Ágoston Volcz via ntg-context
ed according to the cite style: > > ``` > \unexpanded\def\currentbtxciteauthorbyfield > {\begingroup >%\setbtxparameterset\s!cite\s!author >% the alternatives inherit from cite:author >% and APA distinguishes authoryears from authoryear ("and&quo

Re: [NTG-context] Create an enumeration style

2021-08-27 Thread Vincent Hennebert via ntg-context
On Wed, 2021-08-11 at 10:23 +0200, Hans Hagen via ntg-context wrote: > On 8/11/2021 10:09 AM, Otared Kavian via ntg-context wrote: > > > > > > > On 9 Aug 2021, at 18:10, Wolfgang Schuster via ntg-context > > cont...@ntg.nl> wrote: > > > (…) > > > core-con.lua (line 1155): > > > > > > local

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

2021-08-26 Thread Joey McCollum via ntg-context
Nevermind, it looks like there's an even more deliberate and succinct way to handle this! In publ-ini.mkiv, the \currentbtxciteauthorbyfield command shows how to print the author field mapped according to the cite style: ``` \unexpanded\def\currentbtxciteauthorbyfield {\begingroup

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

2021-08-26 Thread Joey McCollum via ntg-context
its authorconversion should be normalshort. The publ-imp-chicago.lua file addresses this by specifying an "ineditor" set containing only the "editor" field (essentially making it an alias to be used later), and then publ-imp-chicago.mkvi defines a style specifically for this f

Re: [NTG-context] Why does HerosBold give bold italic?

2021-08-25 Thread Wolfgang Schuster via ntg-context
*default at 14pt] \definefont [TestC] [name:texgyreherositalic*default at 14pt] \starttext {\TestA The quick brown} {\TestB fox jumps over} {\TestC the lazy dog} \stoptext In my cases it is easier to use \switchtobodyfont rather than using a fixed font style, below is a modified version of your

[NTG-context] Indexing redux

2021-08-25 Thread Rik Kabel via ntg-context
"see" entries, see https://docs.oasis-open.org/dita/v1.1/OS/langspec/langref/index-see.html. For "see also" entries, see https://docs.oasis-open.org/dita/v1.1/OS/langspec/langref/index-see-also.html. For a deeper dive, see the publicly available University of Chicago Manual

Re: [NTG-context] Why does HerosBold give bold italic?

2021-08-25 Thread Bruce Horrocks via ntg-context
nt [TestA] [name:texgyreheros*default at 14pt] > \definefont [TestB] [name:texgyreherosbold*default at 14pt] > \definefont [TestC] [name:texgyreherositalic*default at 14pt] > > \starttext > {\TestA The quick brown} > {\TestB fox jumps over} > {\TestC the lazy dog} > \stoptext >

Re: [NTG-context] Why does HerosBold give bold italic?

2021-08-25 Thread Wolfgang Schuster via ntg-context
} {\TestB fox jumps over} {\TestC the lazy dog} \stoptext In my cases it is easier to use \switchtobodyfont rather than using a fixed font style, below is a modified version of your example above. While the example itself isn't very useful the method can be used to change the font for a header

Re: [NTG-context] numbered exercises

2021-08-24 Thread Gavin via ntg-context
In the environment file: % Example Problems \defineenumeration[example] \setupenumeration[example][ margin=no, headstyle=\ss\sc, text=Example, % This text is part of the number, e.g. "Example 2.3" style=\ss, alternative=serried, title=no, %

Re: [NTG-context] lmtx update/t-vim (again)

2021-08-23 Thread Benjamin Buchmuller via ntg-context
=on, framecolor=black, background=, location=paragraph, ] \definevimtyping[vimR] [ syntax=r, space=off, lines=split, numbering=yes, numberstep=5, alternative=pscolor, margin=.5em, style={\switchtobodyfont[type

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

2021-08-22 Thread Joey McCollum via ntg-context
ly 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 "entry" setup appears to be used. Meanwhile, the \btxcitereference and \btxhandleciteentry macros (invoked in th

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

2021-08-17 Thread Wolfgang Schuster via ntg-context
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] \setuplabeltext [en] [lecture

[NTG-context] Using Lua to format lecture titles

2021-08-17 Thread noib3 via ntg-context
: ``` \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 = [==[#1]==], title = [==[#2

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-16 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 16.08.2021 um 12:18: Hi Wolfgang, Pablo's solution works, but I tried yours without success. Here are the main lines of my project begin project \startproject[terminale-environment] \environment[terminale-style]  ... \stopproject end

Re: [NTG-context] Adjustment in the table of contents

2021-08-16 Thread Wolfgang Schuster via ntg-context
]  \setuplist    [chapter]  [alternative=b]  \setuplist [chapter][style=bold]  \setuplist [section]    [margin=1em]  \setuplist [subsection] [margin=2.75em] Use fixed values for the width. \setuplist   [chapter]   [width=1em] \setuplist   [section]   [margin=1em,% chapter width    width=1.75em

Re: [NTG-context] Strange behavior of a macro

2021-08-16 Thread Hans Hagen via ntg-context
{\math{\mathbb{N}}\autoinsertnextspace} \defineenumeration    [test]    [title=yes,     text={Test},     style=italic] \starttext \N \starttest \m{\forall n \in \N} \stoptest \stoptext tex error       > tex error on line 64 in file ./terminale_suites_2.tex: Use of \N doesn't match

[NTG-context] Strange behavior of a macro

2021-08-16 Thread Fabrice Couvreur via ntg-context
] [title=yes, text={Test}, style=italic] \starttext \N \starttest \m{\forall n \in \N} \stoptest \stoptext tex error > tex error on line 64 in file ./terminale_suites_2.tex: Use of \N doesn't match its definition Soient \u, \v deux suites définies sur

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-16 Thread Fabrice Couvreur via ntg-context
[terminale_recurrence] ... \stopbodymatter \stopdocument \stopproduct end product begin project \startproject[terminale-environment] \environment[terminale-style] ... \stopproject end project begin component \project[terminale-environment] \startcomponent[terminale_recurrence

[NTG-context] Adjustment in the table of contents

2021-08-16 Thread Fabrice Couvreur via ntg-context
Hi, I wish to have the table of contents as the attached image. The result is almost as expected except for the margin of the subsection. \setuplist [chapter,section,subsection] [width=fit,distance=\spaceamount] \setuplist [chapter] [alternative=b] \setuplist [chapter][style=bold

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Fabrice Couvreur via ntg-context
textcommand=\groupedcommand{\blank[medium]}{}, > numbercolor=darkgray, > textstyle=ChapterTextStyle, > numberstyle=ChapterNumberStyle, > before=\startChapterFrame, > after=\stopChapterFrame, > header=high] > > \setuphead > [title] > [header=empty,

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Pablo Rodriguez via ntg-context
ommand=, textstyle=, style=\tfc, before={\blank[2*big]}, after={\blank[2*big]}] I hope it helps, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the

Re: [NTG-context] Create an enumeration style

2021-08-13 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 11.08.2021 um 12:57: I forgot this : how to reduce the font size for the exponents "er", "e" ? The exponents are placed with \high and you can change the style with     \setuphigh[style=...] but this affects all texts which

Re: [NTG-context] Create an enumeration style

2021-08-11 Thread Otared Kavian via ntg-context
> On 11 Aug 2021, at 10:19, Thomas A. Schmitz via ntg-context > wrote: > > >> On 11. Aug 2021, at 10:09, Otared Kavian via ntg-context >> wrote: >> >> Thanks for the example and the fix, but I would rather think that the « >> french » part of ordinals should be >> >> french =

Re: [NTG-context] Create an enumeration style

2021-08-11 Thread Fabrice Couvreur via ntg-context
I forgot this : how to reduce the font size for the exponents "er", "e" ? Thanks Fabrice Le mer. 11 août 2021 à 12:41, Fabrice Couvreur a écrit : > Hi Wolfgang, > Many thanks > Fabrice > > Le mer. 11 août 2021 à 10:23, Hans Hagen via ntg-context < > ntg-context@ntg.nl> a écrit : > >> On

Re: [NTG-context] Create an enumeration style

2021-08-11 Thread Fabrice Couvreur via ntg-context
Hi Wolfgang, Many thanks Fabrice Le mer. 11 août 2021 à 10:23, Hans Hagen via ntg-context a écrit : > On 8/11/2021 10:09 AM, Otared Kavian via ntg-context wrote: > > > > > >> On 9 Aug 2021, at 18:10, Wolfgang Schuster via ntg-context < > ntg-context@ntg.nl> wrote: > >> (…) > >> core-con.lua

Re: [NTG-context] Create an enumeration style

2021-08-11 Thread Hans Hagen via ntg-context
On 8/11/2021 10:09 AM, Otared Kavian via ntg-context wrote: On 9 Aug 2021, at 18:10, Wolfgang Schuster via ntg-context wrote: (…) core-con.lua (line 1155): local ordinals = { [...] french = function(n) if n == 1 then return "er" + else +

Re: [NTG-context] Create an enumeration style

2021-08-11 Thread Thomas A. Schmitz via ntg-context
> On 11. Aug 2021, at 10:09, Otared Kavian via ntg-context > wrote: > > Thanks for the example and the fix, but I would rather think that the « > french » part of ordinals should be > > french = function(n) > if n == 1 then > return « er" >

Re: [NTG-context] Create an enumeration style

2021-08-11 Thread Otared Kavian via ntg-context
> On 9 Aug 2021, at 18:10, Wolfgang Schuster via ntg-context > wrote: > (…) > core-con.lua (line 1155): > > local ordinals = { > [...] > french = function(n) > if n == 1 then > return "er" > + else > + return "e" > end > end, > } Hi

Re: [NTG-context] Different in-text and list citation renderings

2021-08-10 Thread Joey McCollum via ntg-context
It may also be relevant to mention a related feature of SBL style: (3) The "et al." string is used for more than three authors for in-text citations, but all authors are listed in full in the list of publications. In publ-imp-chicago.mkvi (probably the most similar style to SBL), the

[NTG-context] Different in-text and list citation renderings

2021-08-10 Thread Joey McCollum via ntg-context
Hi, I'm currently working on implementing a new citation rendering for SBL style. One of the challenges of this style is that it specifies slightly different rules for citations in the text (which are generally expected to look like citations made with the "entry" alternative) a

Re: [NTG-context] Harvard bibliography style

2021-08-10 Thread Thomas A. Schmitz via ntg-context
To get you started: the APA standards are defined in publ-imp-apa.mkvi and publ-imp-apa.lua. You could try and copy these files to different names (beginning with publ-imp-) and then make changes. You’ll have to replace the “apa:” prefix with the name you give your own style. From my experience

Re: [NTG-context] Harvard bibliography style

2021-08-10 Thread Jorge Manuel via ntg-context
Alan, Sorry for the insistence, but I need some help in setting up my bibliography. I want to continue to use context, but there is no out-of-the-box solution for bibliographic references that are based on the harvard agsm style (this is the standard in my country). 1. Parenthetical citations

[NTG-context] footnote interaction in titles

2021-08-09 Thread Adam Reviczky via ntg-context
Hi, I probably shouldn't use footnotes within titles, but I am misusing the title elements for a quick interview style document (I use them in the ToC). One thing I have noticed is that interaction style (color and styles) are not applied in the footnote and footnote numbering. Is that a side

Re: [NTG-context] Create an enumeration style

2021-08-09 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur schrieb am 09.08.2021 um 14:16: Hi Wolfgang, Thank you for your suggestion. I tested the code and the result is not what I expected from the second item : "2 exemple" instead of "2^{e} exemple", "3 exemple" instead of "3^{e} exemple" ... core-con.lua (line 1155): local

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

2021-08-09 Thread Joey McCollum via ntg-context
working on publ-imp-sbl.lua and publ-imp-sbl.mkvi files. I knew I would need this for my own project soon, and I felt it would be useful to myself and the ConTeXt community if I could at least get a rudimentary version working. I'm presently using the reference for examples from the *SBL Handbook of

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

2021-08-09 Thread Denis Maier via ntg-context
> Can’t help with bibliographies, sorry. SBL is a tricky beast anyway. There were some discussions regarding implementing Chicago Manual of Style a couple of weeks ago. Develelopments on that front could also be useful for SBL. Don't know what came out of this though. Denis > > Hraban

Re: [NTG-context] Create an enumeration style

2021-08-08 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 08.08.2021 um 17:47: Hello, Is it possible to create an enumeration style to get this : 1 ^ {er} exemple 2 ^ {e} exemple 3 ^ {e} exemple The conversion needs a fix but this is how you can do it. \defineenumeration   [test]   [text

[NTG-context] JavaScript in multimedia PDF

2021-08-08 Thread Pablo Rodriguez via ntg-context
[mainface, 25pt] \setupalign[middle] \setupfooter [style={\ss}] \def\SlideNavigationButtons{% \goto{A}[JS(GoToFirstSlide{mainsound})]% \goto{K}[JS(GoToPreviousSlide{mainsound})]% \goto{L}[JS(GoToNextSlide{mainsound})]% \goto{B}[JS(GoToLastSlide{mainsound

[NTG-context] Create an enumeration style

2021-08-08 Thread Fabrice Couvreur via ntg-context
Hello, Is it possible to create an enumeration style to get this : 1 ^ {er} exemple 2 ^ {e} exemple 3 ^ {e} exemple Thanks Fabrice ___ If your question is of interest to others as well, please add an entry

[NTG-context] Short forms and abbreviations in bibliography

2021-08-07 Thread Joey McCollum via ntg-context
in ConTeXt? To illustrate what I mean, the biblatex-sbl package ( https://github.com/dcpurton/biblatex-sbl), which implements the SBL citation style for (Xe)LaTeX, handles this using additional fields like "shorttitle," "shortjournal," and "shortseries," so for the

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

2021-08-07 Thread Joey McCollum via ntg-context
t;[MyPart] >[part] > > \definecharacterkerning >[mypartkerning] >[factor=0., > features=letterspacing] > > \setuphead >[MyPart] >[placehead=yes, > number=no, > page=blankpagebreak, > header=empty, > f

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

2021-08-07 Thread Wolfgang Schuster via ntg-context
ng] [factor=0., features=letterspacing] \setuphead [MyPart] [placehead=yes, number=no, page=blankpagebreak, header=empty, footer=empty, align={flushleft,nothyphenated}, style=MyPartFont, textstyle={\setcharacterkerning[mypartkerning]\setcharactercasing[WOR

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

2021-08-06 Thread Joey McCollum via ntg-context
Thank you so much! The piece I was missing was the "placehead=yes". Now everything works as expected! I couldn't figure out how to increase letter spacing for the "style" argument using just a \definefont macro, but I was able to do it with a macro supplied as the "tex

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

2021-08-06 Thread Pablo Rodriguez via ntg-context
doublesided documents). > * Its text should be in a larger size than the text of the body, set > in all caps, and set with extra letterspacing. style is the right option there. > * Most importantly, the title of the heading should appear on its own > page wi

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

2021-08-06 Thread Joey McCollum via ntg-context
ebreak,%always start this on an odd page header=empty,%disable headers for this page footer=empty,%disable footers for this page align={flushleft, nothyphenated},%titling alignment settings textstyle=\MyPartFont,%set text style textcommand=\MyPartTextCommand,%set text formatting command commandafter

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-08-06 Thread Jeroen via ntg-context
tion] [page={yes}] \usetypescript[pagella] \setupbodyfont[pagella,18pt] \setupbodyfontenvironment[ 28pt][ % For body d=36pt, % For title a=12pt, % For author & date ] \setuptype[style=medium] \setuptyping[typing][bodyfont=16pt] \setupwhitespace[medium] \setbreakpoints[compound] \se

Re: [NTG-context] Additional font variants

2021-08-01 Thread Henning Hraban Ramm via ntg-context
> Am 01.08.2021 um 22:14 schrieb Hans Hagen via ntg-context > : >>> Is this a limitation in ConTeXt, or what did I wrong? >> The handwritten and calligraphic style are limited to upright alternatives. >> I can only speculate why this is the case but I guess Hans owns

Re: [NTG-context] Additional font variants

2021-08-01 Thread Hans Hagen via ntg-context
the configured files are found. Is this a limitation in ConTeXt, or what did I wrong? The handwritten and calligraphic style are limited to upright alternatives. I can only speculate why this is the case but I guess Hans owns no font families where this is necessary (e.g. Lucida Bright has

Re: [NTG-context] Additional font variants

2021-08-01 Thread Wolfgang Schuster via ntg-context
n ConTeXt, or what did I wrong? The handwritten and calligraphic style are limited to upright alternatives. I can only speculate why this is the case but I guess Hans owns no font families where this is necessary (e.g. Lucida Bright has only one file for handwriting and calligraphy). Adding addition

[NTG-context] Additional font variants

2021-08-01 Thread Henning Hraban Ramm via ntg-context
ss] [sans] [modern] [default] \definetypeface [ka] [tt] [mono] [modern] [default] \definetypeface [ka] [mm] [math] [modern] [default] \definetypeface [ka] [hw] [handwriting] [comicsans] [default] \stoptypescript \setupbodyfont[ka,rm,18pt] \setupbodyfontenvironment[default][em=italicface] \de

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-07-31 Thread Jeroen via ntg-context
, bottomspace=20mm] \setuppagenumbering[ location={footer,center}] \setuphead [section] [page={yes}] \usetypescript[pagella] \setupbodyfont[pagella,18pt] \setupbodyfontenvironment[ 28pt][ % For body d=36pt, % For title a=12pt, % For author & date ] \setuptype[style=me

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-07-31 Thread Pablo Rodriguez via ntg-context
\dorecurse{25} {\startmakeup[standard][pagestate=start, style={\ss\bf}, align=center] Slide \pagenumber \stopmakeup} \stoptext \stopbuffer \savebuffer[list=slides, file=\jobname_slides.tex, prefix=no] \starttext \startbodymatter \dorecurse{25}{\input zapf\par} \typesetfile[\job

Re: [NTG-context] Different Typing Styles

2021-07-28 Thread Bruce Horrocks via ntg-context
> On 28 Jul 2021, at 13:13, Jeroen via ntg-context wrote: > > Is there a way to have two different styles of typing. I tried the following, > but it does not seem to work. > > \setuptyping[abc][style=\ttx] > \setuptyping[def][style=\ttxx] > > \starttext >

Re: [NTG-context] Different Styles of Typing

2021-07-28 Thread Henning Hraban Ramm via ntg-context
> Am 28.07.2021 um 14:14 schrieb Jeroen via ntg-context : > > Is there a way to have two different types of typing. I tried the following, > but it does not seem to work. > > \setuptyping[abc][style=\ttx] > \setuptyping[def][style=\ttxx] > > \starttext > >

Re: [NTG-context] Different Styles of Typing

2021-07-28 Thread Hans Hagen via ntg-context
On 7/28/2021 2:14 PM, Jeroen via ntg-context wrote: Is there a way to have two different types of typing. I tried the following, but it does not seem to work. \setuptyping[abc][style=\ttx] \setuptyping[def][style=\ttxx] \starttext \starttyping[abc] text text \stoptyping \starttyping[def

[NTG-context] Different Styles of Typing

2021-07-28 Thread Jeroen via ntg-context
Is there a way to have two different types of typing. I tried the following, but it does not seem to work. \setuptyping[abc][style=\ttx] \setuptyping[def][style=\ttxx] \starttext \starttyping[abc] text text \stoptyping \starttyping[def] text text \stoptyping \stoptext

[NTG-context] Different Typing Styles

2021-07-28 Thread Jeroen via ntg-context
Is there a way to have two different styles of typing. I tried the following, but it does not seem to work. \setuptyping[abc][style=\ttx] \setuptyping[def][style=\ttxx] \starttext \starttyping[abc] example example \stoptyping \starttyping[def] example example \stoptyping \stoptext Thanks

[NTG-context] Question about \groupedcommand{}{}

2021-07-27 Thread Fabrice Couvreur via ntg-context
=\groupedcommand{}{\bf.}, width=broad] \defineenumeration [definition] [text=Définition, number=no, headcommand=\groupedcommand{}{}, style=italic] \starttext \startdefinition{With a title} \samplefile{lorem} \stopdefinition Without title but no dot after the name

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}} Wolfgang

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

2021-07-27 Thread Hans Hagen via ntg-context
, number=no, headcommand=\groupedcommand{}{.}, style=italic] \starttext \startdéfinition Soit E un ensemble fini. Le cardinal de E, noté \card{E}, est le nombre d'éléments de E. En particulier, nous avons \m{\card{\emptyset}=0}. \stopdéfinition \stoptext Thank

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

2021-07-27 Thread Fabrice Couvreur via ntg-context
Hello, How to make the macro work in the environment definition ? Thank you Fabrice \unexpanded\def\card#1{\math{\text{Card}\thinspace#1}} \defineenumeration [definition] [text=Définition, number=no, headcommand=\groupedcommand{}{.}, style=italic] \starttext

[NTG-context] Adjust the length of a frame

2021-07-27 Thread Fabrice Couvreur via ntg-context
, number=yes, numbercommand=\groupedcommand{}{.}, style=italic] \defineenumeration [solution] [text=Solution, headcommand=\ACFRAME, number=no, numbercommand=\groupedcommand{}{}, style=normal] \starttext \startexercice{Le nombre d'or est irrationnel} Le nombre

Re: [NTG-context] Adjust the length of a frame

2021-07-27 Thread Fabrice Couvreur via ntg-context
foregroundstyle=] > > > \setupenumerations > [before={\blank}, >after={\blank}, >alternative=top, >title=yes, >titleleft={}, >titleright={}, >titlestyle=bold, >width=broad] > > \defineenumeration > [exercice]

[NTG-context] Texte source 30 / 5000 Résultats de traduction Adjust the length of a frame

2021-07-26 Thread Fabrice Couvreur via ntg-context
={}, titlestyle=bold, width=broad] \defineenumeration [exercice] [text=Exercice, number=yes, numbercommand=\groupedcommand{}{.}, style=italic] \defineenumeration [solution] [text=Solution, headcommand=\ACFRAME, number=no, numbercommand=\groupedcommand{}{}, style

[NTG-context] \setupinitial: style Parameter resets size

2021-07-25 Thread Axel Kielhorn
Hi, since the lettrine module does not work with LMTX, I’ve looked into \setupinitial. (There is a different thread about this.) There is a „style“ parameter to change the style, but whenever I change the style, the font size is reset. This is not what I expected. This was the case in context

[NTG-context] How to place text before a table inside a column environment

2021-07-22 Thread Michael Guravage
attached a mwe where you can use --mode=title to invoke the broken columns. Any advice on how to place text above the columns environment would be gratefully received. With kind regards, Michael \startsetups[tablesettings] \setupTABLE[c][1][style=\tfc, color=darkred, align=left] \setupTABLE[c

[NTG-context] Solution: LMTX initial (drop cap) in combination with indenting

2021-07-22 Thread Gerben Wierda
gt; hoffset=5pt, % Move drop cap a bit to the left > method=none > ] > > % Some initials may need special adjustments, depending on the font > \defineinitial[Q][ > voffset=2\lineheight, > n=3, > m=1, > distance=18pt, > state=start > ] > > % Full first line in sm

Re: [NTG-context] Use of lettrine module in LMTX

2021-07-21 Thread Nicola
initials may need special adjustments, depending on the font \defineinitial[Q][ voffset=2\lineheight, n=3, m=1, distance=18pt, state=start ] % Full first line in small caps \definefirstline[smallcapsfirstline][ alternative=line, style=smallcaps, ] % First n words in small caps

Re: [NTG-context] Moving the old book-structure to a recent ConTeXt

2021-07-18 Thread Wolfgang Schuster
to fit your own style. 1. File names In the example all sub files (style + chapters) start with the name of the main file and append a sub name. Another popular naming scheme is to prefix the files with c_ (component), p_ (product) or s_ (style/environment). To avoid problems should also try

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

2021-07-17 Thread Henning Hraban Ramm
rk with OpenStreetMap data? >> https://planet.openstreetmap.org >> http://download.geofabrik.de >> https://download.bbbike.org/osm/ >> I didn’t find excerpts that only have e.g. country borders or rivers. But >> with usual XML tools you could extract those. &g

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

2021-07-17 Thread Hans Hagen
a nice roadmap display to the conference) we made an openstreetmap -> metapost style but afaik that never made it into a module. So, when I remembered that I updated it. I can now render my hometown (need to figure out colors) quite okay. (One can export an osm file in openstreetmap but

Re: [NTG-context] Harvard bibliography style

2021-07-16 Thread Jorge Manuel
Alan, Thanks for your reply and support. I have found some diferences (I’m still search for more) APA.   -> Harvard Citation: (Author, year) -> (Author year) (No comma) Bibliography: APA: Preston, N. (2014). Understanding ethics (4th ed.). The Federation Press. HARVARD: Preston, N 2014, 

Re: [NTG-context] Harvard bibliography style

2021-07-16 Thread Alan Braslau
On 16/07/21 20:05, Jorge Manuel wrote: Dear Sirs Is there a way to set my bibliography style to Harvard specifications? Tanks four your support Have a nice day Jorge Magalhães There is no Harvard bibliography specification, but the system is designed to be totally configurable. What

[NTG-context] Harvard bibliography style

2021-07-16 Thread Jorge Manuel
Dear Sirs Is there a way to set my bibliography style to Harvard specifications? Tanks four your support Have a nice day Jorge Magalhães ___ If your question is of interest to others as well, please add an entry

[NTG-context] Problem with chapter numbering

2021-07-13 Thread Fabrice Couvreur
. Thanks. Fabrice ### \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] \defineframedtext [FramedText] [ offset=0.6em, style=, toffset=\lineheight, background=color, backgroundcolor

Re: [NTG-context] Header for a book

2021-07-13 Thread Fabrice Couvreur
\def\processheadnumber#1% {\getmarking[chapternumber]} \setuphead [chapter] [style=\bfd, align={flushleft,broad}, numbercommand=\processheadnumber, command=\HeadTitle] \starttext \startchapter [title={La récurrence}] \startsection[title={Le principe de récurrence

[NTG-context] Header for a book

2021-07-12 Thread Fabrice Couvreur
in the body of the text. Thanks for your help. Fabrice \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] \defineframedtext [FramedText] [ offset=0.6em, style=, toffset=\lineheight, background=color, backgroundcolor=MyColorA

Re: [NTG-context] Initial caps with short paragraph

2021-07-09 Thread Hans Hagen
On 7/9/2021 1:58 AM, Thangalin wrote: This has come up before on the mailing list, but I was wondering if LMTX has a more elegant solution than using a transparent/invisible capture of the drop-cap. Consider: |\setupinitial[n=2, style=\tfd, location=text] \setuphead[chapter][after

[NTG-context] Initial caps with short paragraph

2021-07-08 Thread Thangalin
This has come up before on the mailing list, but I was wondering if LMTX has a more elegant solution than using a transparent/invisible capture of the drop-cap. Consider: \setupinitial[n=2, style=\tfd, location=text]\setuphead[chapter][after={\placeinitial}] \starttext \chapter Hello world

Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-07-02 Thread denis.maier
ntext] Different authorconversion for citation > > alternatives and bibliographic entries > > > [...] > > > > > > So what would be needed to make add real support for it? > > > > First of all, come to a consensus on a clear style guide to base this > > on,

Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-07-02 Thread denis.maier
> [...] > > > > So what would be needed to make add real support for it? > > First of all, come to a consensus on a clear style guide to base this on, so > as not > to run after ambiguous and perhaps contradictory specifications. This would be > distinct from the APA

Re: [NTG-context] Rolling out a pandoc-context publication workflow in an organization

2021-07-02 Thread denis.maier
how much I have to > refactor our styles to meet the older versions of ConTeXt. > > Apart from this I have to organize our style files and ressources, anyway. > > In another thread Hans said how to use these folders. Thanks a lot. > > texmf-local : maybe configurations >

Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-07-01 Thread Gavin
Hi Alan, Hans, and Chicago style bibliography users, > 3) I believe that Gavin (on CC:) is a user of the Chicago author-year > model. I’d like to use the Notes and Bibliography style in my physics book, with endnotes after each chapter. I would gladly participate by testing and pro

Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-07-01 Thread J Huisman
Chicago-style footnote user here, I would be interested in helping with testing. Jelle On Wed, Jun 30, 2021 at 11:50 PM Alan Braslau wrote: > > On Wed, 30 Jun 2021 19:40:06 + > wrote: > > > > -Ursprüngliche Nachricht- > > > Von: Alan Braslau >

[NTG-context] Rolling out a pandoc-context publication workflow in an organization

2021-07-01 Thread Jan U. Hasecke
to meet the older versions of ConTeXt. Apart from this I have to organize our style files and ressources, anyway. In another thread Hans said how to use these folders. Thanks a lot. texmf-local : maybe configurations texmf-project : stuff you're working on (styles) texmf-fonts : fonts you

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

2021-06-30 Thread Hans Hagen
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 just like

Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-06-30 Thread Alan Braslau
> >> > > >> My university has special requirements for the theses I submit. > > >> Layout, fonts etc. are pretty straightforward to set up in > > >> ConTeXt. The one part I'm struggling with is citations / > > >> bibliograph

Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-06-30 Thread denis.maier
straightforward to set up in ConTeXt. > >> The one part I'm struggling with is citations / bibliography. > >> I have to use the german citation style with footnotes. Essentially > >> the first time I cite something, I have to put the full entry in a > >> footnot

Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-06-30 Thread Alan Braslau
entries Hi there, My university has special requirements for the theses I submit. Layout, fonts etc. are pretty straightforward to set up in ConTeXt. The one part I'm struggling with is citations / bibliography. I have to use the german citation style with footnotes. Essentially the first time I cite

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

2021-06-30 Thread denis.maier
t > \stop > > although it'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.) > > > 2. Does this treat endnotes just like a list entry, with pa

Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-06-30 Thread denis.maier
gt; > Hi there, > > My university has special requirements for the theses I submit. > Layout, fonts etc. are pretty straightforward to set up in ConTeXt. > The one part I'm struggling with is citations / bibliography. > I have to use the german citation style with footnotes. Essentially th

Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-06-30 Thread Aditya Mahajan
he german citation style with footnotes. Essentially > the first time I cite something, I have to put the full entry in a > footnote. From the second time on, I only have to put a shorter entry > in the footnotes. > I have two problems: > > 1. I created the publ-imp-deu.lua and publ

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