[NTG-context] Re: Problem with the paragraph
Ursula Hermann schrieb am 13.12.2023 um 15:22: Dear list, I have this example. I need the whole paragraph in color. But there is something wrong. \definepapersize[MyBook][width=19cm,height=24cm] \setuppapersize[MyBook][MyBook] % Prints on paper the size of MyBook %\setuppapersize[MyBook][A4] %Would print MyBook-size pages on A4 paper This doesn't work to use Times New Roman as main font, you can use \setupbodyfont[termes] to get a times lookalike. \setupbodyfont[Times New Roman, 12.2pt] \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.2em, alternative=serried, ] \definetextbackground[paragraph][ location=paragraph, background=color, backgroundcolor=lightgray, leftoffset=.5\bodyfontsize, rightoffset=.5\bodyfontsize, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize, before={\switchtobodyfont[global]}, after={}, frame=off,] \margintext{\blackrule[color=black, height=0.10ex, width=1cm]\\}\blackrule[color=black, height=0.10ex, width=13.50cm] \starttext \margintext {1.1.1} What is the purpose of all these starttext/stoptext blocks? \starttext \bf{Beispiel 3.2.17 (Vertauschung von All- und Existenzquantor)}. \stoptext \starttext {\it \par Sei M die Menge aller Männer und F die Menge aller Frauen. Die Aus-\par sage h(m, f) sei ”m ist verliebt in f“. Unter diesen Voraussetzungen machen Sie sich die Bedeutung der beiden Aussagen klar. \stoptext \par \starttext 1. Use the itemize environment to create numbered blocks. 2. Learn the correct usage of inline math mode, i.e. \m{...} 1. \m\forall m ∈M : ∃f ∈F : h(m, f).\par 2. ∃f ∈F : ∀m ∈M : h(m, f).\par \stoptext \blank \starttext \startparagraph \blank \tf Mitunter ist es aus der Formulierung nur schwer zu erkennen, dass ein \m ∃\forall∀oder ein \m \forall∀\m∃versteckt ist. Dann ist es besonders wichtig, die Formulierung sehr lange zu prüfen und eventuell auch formalisiert noch einmal aufzuschreiben.”\blank Der Wert von y = f(x) ist unabhängig von der Wahl\par von x“ ist gleichbedeutend mit ∃y : ∀x : f(x) = y \par (Beutelspacher [10, S.54]). \blank \stopparagraph \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] APA 7 and https
Hi I am quite new with ConTeXt, coming from LaTeX. I really like it and it is sooo fast;-). I am currently preparing the framework for the typeset of a research paper with a bibtex bibliography and current apa7 citations. How to achieve a change the url in bibliographies DOI from doi: to https://doi.org/ in the list of publications and change the url path in PDF from http: to https:// as recommended in APA7? Any hints? Many thanks, Oliver___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: LMTX: Command handling, Interface between TeX and Lua
Am Mittwoch, 13. Dezember 2023, 21:57:35 CET schrieb Bruce Horrocks: > > > On 13 Dec 2023, at 17:13, Gerion Entrup wrote: > > > > Is there a simple way to define a new command/environment and handle > > the keyword arguments in Lua? For example defining a frontend command > > like this: > > I don't have the answer to your other questions but I do have an example for > this one. > It's not mine - I'm fairly sure it came from this list but I can't find who > that was any more. > > \startluacode > userdata = userdata or { } > > function userdata.mycommand(keywords, keyvals, str) > keyword_options = utilities.parsers.settings_to_array(keywords) > named_values = utilities.parsers.settings_to_hash(keyvals) > > context('First option = ' .. keyword_options[1]) > context('\\par') > context('Color chosen = ' .. named_values['color']) > context('\\par') > context('Curly braces = ' .. str) > context('\\par') > end > \stopluacode > > \def\mycommand[#1][#2]#3{\ctxlua{ > userdata.mycommand('#1', '#2', [==[#3]==])}} > > \starttext > \mycommand[top, inmargin, now][color=green, roof=gabled]{Anne of Green > Gables?} > \stoptext Thank you. That helps a lot already! Gerion signature.asc Description: This is a digitally signed message part. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Problem with the paragraph
Dear Henning, If I change the name of the textbackground with my example, I sent yesterday, there is no color in the paragraph. Many thanks Uschi Von: Henning Hraban Ramm Gesendet: Mittwoch, 13. Dezember 2023 15:52:08 An: mailing list for ConTeXt users Betreff: [NTG-context] Re: Problem with the paragraph Am 13.12.23 um 15:22 schrieb Ursula Hermann: > Dear list, > > I have this example. I need the whole paragraph in color. But there is > something wrong. > \definetextbackground[paragraph][ > \startparagraph \startparagraph starts a paragraph environment. If you overwrite it by defining another, the behaviour is undefined. First try to give your textbackground a different name. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___