Re: [NTG-context] improve bad habits deduplicate redundant defined values
Am Thu, Sep 16, 2021 at 08:09:50AM + schrieb denis.ma...@unibe.ch: > Hi Jan Ulrich, > > I have not much to contribute, but I'd be very happy to learn more about your > setup. You asked for it. ;-) I started more than two years ago, with some documents for my cooperative. I blogged about it: https://www.hasecke.eu/post/werbemittel-mit-context-gestalten/ Step by step I modularized my setup to reuse as many definitions as possible in other documents. I started with our corporate colors and fonts and then added page sizes, headlines etc. This is an ongoing process as I have no overall plan to structure my setup. It is work in progress. And the tendency is to split up environment files into smaller ones. When I see that I need another numbering system for legal texts like bylaws I create an environment for legal numbering and for normal numbering. I think that all this will end up in 20-30 environment files going from general things like colors, fonts, page sizes to more specific things like doubleside-headers-footers, singleside-headers-footers to product specific things like env-factsheet for things that are special to factsheets only. Here are some of my environment files: hs.env-2-seiter-din-lang-hoch.tex hs.env-2-seiter-din-lang-quer.tex hs.env-6-seiter-din-lang.tex hs.env-bleed.tex hs.env-chapter-section-subsection-toc.tex hs.env-chapter-section-toc.tex hs.env-chapter-toc.tex hs.env-colors.tex hs.env-coverpages.tex hs.env-din-a4.tex hs.env-din-brief-footer.tex hs.env-din-lang-hoch.tex hs.env-din-lang-quer.tex hs.env-doubleside-formal-header-footer.tex hs.env-doubleside-header-footer.bak hs.env-elemente.tex hs.env-factsheet.tex hs.env-flyer.tex hs.env-fonts.tex hs.env-handout.tex hs.env-headlines.tex hs.env-kapitelnummerierung-gemeinwohl.tex hs.env-kapitelnummerierung-satzung.tex hs.env-lists-legal.tex hs.env-lists.tex hs.env-makeups.tex hs.env-paragraphs.tex hs.env-singleside-formal-header-footer.tex hs.env-singleside-header-footer.tex hs.env-tabellen.tex It took a long time until I realized that these files are best stored in texmf-project. I use namespaces like hs. and juh. to separate the environment files of my cooperative and my own files. Our editors are using Markdown so we are currently creating a process to go from Markdown via Pandoc to ConTeXT. We heavily use custom pandoc templates, where the used environment files are listed. For each project we have such a directory structure: build.sh # the build script source/ # here are markdown files in their project directory # (source/foo/foo.md) control/ # here we story YAML-files for the pandoc options # and the ConTeXt templates. The pdf is built with: ./build foo A project can have multiple documents. A project eg. are business reports or factsheets. As we use Pandoc we could create HTML and EPUB files as well, but currently we use Hugo to create HTML files. As I am not a programmer the biggest task are lua scripts which alters the output of Pandoc when we need something special. Eg. we managed to insert \startstopparagraph[foo] command into the ConTeXt source by this simple markdown code: normal paragraph :::foo special foo paragraph yet special paragraph ::: normal paragraph Often I simply insert raw context code into the markdown source if I want something special, but all this finally should go into ::: directives. Mit freundlichen Grüßen Jan Ulrich Hasecke -- Autoren-Homepage: . http://literatur.hasecke.com Satiren & Essays: . http://www.sudelbuch.de Privater Blog: http://www.hasecke.eu Netzliteratur-Projekt: http://www.generationenprojekt.de signature.asc Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] improve bad habits deduplicate redundant defined values
Am Sat, Sep 18, 2021 at 12:57:36PM + schrieb denis.ma...@unibe.ch: > Ok. So in general you deal with diverging demands by creating new > environments that you can load selectively? > I currently struggle with a similar question: In one project I typeset > articles for a journal from XML sources with ConTeXt. Obviously, these > articles should rely on the same environment files. But how would you deal > with those cases where you'd need a slightly different table layout in one > article? We had this slightly change with headline numbering. Default in our reports is arabic numbers but in one report we need a mix of capital letters and numbers (A, A.1, A.2, B, B.1 etc.) I simply made two small style files for numbering. > > It took a long time until I realized that these files are best stored in > > texmf- > > project. I use namespaces like hs. and juh. to separate the environment > > files of > > my cooperative and my own files. > > Interesting. I think I'll need to adopt something similar... My main concern now is to deploy ConTeXt to multiple users. If some would go with Texlive distributions from debian stable and some with lmtx distribution there would be a mess sooner or later. So I decided that we all go with the lmtx distribution and clone our git repos for images and styles into texmf-project. I also have something in texmf-local, namely icc files and the module statistical-charts. I don't know how to decide what goes to project and what to local. > > Eg. we managed to insert \startstopparagraph[foo] command into the ConTeXt > > source by this simple markdown code: > > Why do you use \startstopparagraph[foo] instead of \startstopfoo for theses > cases? Good question. \startstopparagraph was more explicit I think. But now that you ask I think, that with startstopfoo we might succeed with one lua filter for a lot more context constructs such as makeups etc. juh -- Autoren-Homepage: . http://literatur.hasecke.com Satiren & Essays: . http://www.sudelbuch.de Privater Blog: http://www.hasecke.eu Netzliteratur-Projekt: http://www.generationenprojekt.de signature.asc Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] underbar aligns badly
Hi all, can nobody confirm this bug? juh Am Thu, Aug 25, 2022 at 09:19:40AM +0200 schrieb juh+ntg-context--- via ntg-context: > > Dear all, > > I fear I hit a bug or missed a change. > > \starttext > \underbar{First line}\\ > Second line. > \stoptext > > With lmtx from 2022.07.24 the lines align fine. > > With current lmtx the first line has a small indent. > > > Ciao! > juh > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ -- Autoren-Homepage: . http://literatur.hasecke.com Satiren & Essays: . http://www.sudelbuch.de Privater Blog: http://www.hasecke.eu Netzliteratur-Projekt: http://www.generationenprojekt.de signature.asc Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] underbar aligns badly
Am Wed, Aug 31, 2022 at 09:30:33AM +0200 schrieb juh+ntg-context--- via ntg-context: > Now in node-rul.mkxl I have this: > > \protected\def\node_rules_direct#1% > {\groupedcommand > {\dontleavehmode % this should not be needed but it is in \bTD > {\node_rules_set{#1}% > {\relax\barparameter\c!right}} > > And it seems to work. Argh, I applied the patch to the wrong lmtx version. With current version: 2022.08.25 19:21 I still get an indent, when I only insert the % after \node_rules_set{#1}. I fear I missed the point. juh -- Autoren-Homepage: . http://literatur.hasecke.com Satiren & Essays: . http://www.sudelbuch.de Privater Blog: http://www.hasecke.eu Netzliteratur-Projekt: http://www.generationenprojekt.de signature.asc Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: An announcement of my new book.
Hi, Am 14.02.24 um 19:45 schrieb Sir Coleman via ntg-context: I wanted to create more of a reference, a complete reference, and one that's of course not meant to be read from cover to cover. I think that setup-en.pdf is a good starting point for a complete reference as it contains the commands and their options. With added explanations and examples it would be a great reference to beginners. juh ___ 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] Unknown units es and dk
I saw this in (the btw great) bachotex-stepbystep presentation \definepapersize [example] [width=8.5es, height=11es] \setuptextbackground [location=paragraph, backgroundcolor=MyColors:4, backgroundoffset=1dk, frame=off] The units "es" and "dk" are unknown to me. What does they mean? TIA juh ___ 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: Unknown units es and dk
Am 23.03.24 um 19:05 schrieb Hans Hagen: The es, ts and eu are discussed here: https://tug.org/TUGboat/tb44-2/tb137egger-edith.pdf it also discusses how the team callibrated these units by sampling texies. Ah, I see. :-) Thanks juh ___ 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 ___