From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112878 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jan Ulrich Hasecke via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: improve bad habits deduplicate redundant defined values Date: Fri, 17 Sep 2021 10:36:55 +0200 Message-ID: References: <57a931de9cdd48e2b76056f110e7a0e1@unibe.ch> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5108902042445072598==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1095"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jan Ulrich Hasecke To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 17 10:37:35 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mR9NH-000054-NO for gctc-ntg-context-518@m.gmane-mx.org; Fri, 17 Sep 2021 10:37:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AFC45287658; Fri, 17 Sep 2021 10:37:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RBHQMaihkDZW; Fri, 17 Sep 2021 10:37:05 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 87DAE287643; Fri, 17 Sep 2021 10:37:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 540E428760D for ; Fri, 17 Sep 2021 10:37:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5bEjdnMOqjvC for ; Fri, 17 Sep 2021 10:37:01 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=80.241.56.152; helo=mout-p-102.mailbox.org; envelope-from=juh+ntg-context@mailbox.org; receiver= Original-Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id C77A6287464 for ; Fri, 17 Sep 2021 10:37:01 +0200 (CEST) Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4H9nPT1SNwzQkBc for ; Fri, 17 Sep 2021 10:37:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= in-reply-to:content-disposition:content-type:content-type :mime-version:references:message-id:subject:subject:from:from :date:date:received; s=mail20150812; t=1631867817; bh=JWEzB2IZNS XFe2zrC43GO9Ohgw5NmShLFF9m1DxzdmQ=; b=cT8+qs3OEfHonjmmf+fFDGh/8v 9RM6Y0+R3d8tBeSo+L7dlHQj91dI2j8f7S6iazy89OU+Sv8/2amBdv0W08sgkQ56 fHUX4mFQSf4O5v7uRza1pS3yGQR9T5R/SxikqxGxfY2H5HMs8JanBbpmLupkmSjQ Q/Hd7VweWXEVZBKDA5k8rmV57cnRqQj60Ag8jiWs+C88UFYEZ5K1MwrtcFx1hxCq 6wncDa0OoCCbpH0U9BK65n8gpS2MTdZAhl7SiZ7IFP5JRenqRlfi5yhBWHtu7pib +ozjiyXo00UesKtsPMSHZtTkUUPa8XK2zvOX5ZRmjE5oBMr5DvkxcPH3SL1A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1631867818; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xPL3E/P54E9R2J+3UBYe2zb73XqpDFkIwZ/Z2OmeTwg=; b=d+N+PKsT6ILX/eD6EW+TXnjFWE1EFUi5xlCTvzZncYagRxqVjTALrwSFGGzfp3dMqpo4X7 ZbdvEVlIZXgtmY+VLqCkUxw20eIAffNmN4BgH7S0kfIaeKgoRc/HRxXfSOluBS5EDmwxR3 cbiIngnrQZNXqa4gbVqLGssjVfkJNdavSzMJoZ65pZ3Tv+BNgzlWBHv+Qq/O0pEIgAZs0c ju4sCUOzJt7YW9c6e/bL+rvP4nxXRW35TPHPoq7TotTxm9FWwr7vxQIGJpJvSeik2hkiTI U5kIpVttc3W/bB4P/FqMBm3I7BEznM94W7iSbA3GNJ7pntteiSEN0RpJ2dFbVg== X-Virus-Scanned: amavisd-new at heinlein-support.de Mail-Followup-To: Jan Ulrich Hasecke , ntg-context@ntg.nl In-Reply-To: <57a931de9cdd48e2b76056f110e7a0e1@unibe.ch> X-Rspamd-Queue-Id: B11B8182F X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:112878 Archived-At: --===============5108902042445072598== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="aiLCTSqc+T9J2MzU" Content-Disposition: inline --aiLCTSqc+T9J2MzU Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Am Thu, Sep 16, 2021 at 08:09:50AM +0000 schrieb denis.maier@unibe.ch: > Hi Jan Ulrich, >=20 > I have not much to contribute, but I'd be very happy to learn more about = your setup.=20 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-mi= t-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.=20 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.=20 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 templa= tes, 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: =2E/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.=20 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=FC=DFen Jan Ulrich Hasecke --=20 Autoren-Homepage: ......... http://literatur.hasecke.com Satiren & Essays: ......... http://www.sudelbuch.de Privater Blog: ............ http://www.hasecke.eu Netzliteratur-Projekt: .... http://www.generationenprojekt.de --aiLCTSqc+T9J2MzU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE9pEda910q7j+RYbgOz1ziuYU0i0FAmFEU6MACgkQOz1ziuYU 0i220xAAl1ZOXL01E+ERRgQ2t4WQYq4bMFQEP4UACKqO2XGvLk7g6z40cR6zIron ZUfReP6Tm+aePO5Uokx7I1LNQuSmr5G85qP9L5yoFN1qayvaXdTpRjtKER19SM8K 7EGEoxFJvY/ncYI8NzRZ0phdwr1ZwPcs47YqXrfAVMzqQRBNP6jySPo3edzhdM6N L3d8C8CVq7nNj7dGJ5rrPZOZ5WxEZGZ7GYE7UZ1/q3pm4zM3T95EHd9J+xFW36bo BxlUQdNdm4MrwbvtAO8Kshq4YwMMMFtYreJGdBridG/VuYnmBMrL0/KJvg8wP+Pc 8KC5TVBnG7zX4YW18p90DKuPqzMJ/RSZiUEwLOgj+jrFYCue2Z46ka87kldUiloZ jMtjzLMu+WLIObbj+CDnzNYej8P/cG+HK/EZQlI3NxscmESji9r6kxFbUiHHDFbR FYrU32Mld2olhsqS0UW7ZTPc8iYq5pKYBCwkgV05WxsQGfRUnBKCNxGBl1Oe/1Kn A+HcL+UBINnh1LyTwG2VweeJeFceM1yNUCl95HdMtKUZhfgYnU7gsoOcR1Cvsujk vNUBF50esla/LOdNhBhDGPRBmj/JysoDWNLbQ7Au4z3AC2jiIbKYMDiP4KIioW1d Qk99Csct9/PFFNBUz5qm9i921JSevttb8BTmmuP0Y5R8wIMg/V8= =oHpT -----END PGP SIGNATURE----- --aiLCTSqc+T9J2MzU-- --===============5108902042445072598== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5108902042445072598==--