Re: [NTG-context] Achieving the style of Jean-Luc Doumont

2022-05-20 Thread Susanne G. Loeber via ntg-context
>
> Dear list,
>
> Years ago I stumbled upon the work of Jean-Luc Doumont.

He typesets all his documents using TeX, although his modified Version
> called Quantum. The whole idea of his fascinating approach is that the page
> is quantized in 2 dimensions and that all positioning, even graphical
> elements stick to that grid. I'm attaching a link to a presentation by him
> in which he gives some fragments of code that I, unfortunately, have a hard
> time understanding.
>
Thank you for the pdf!

I'm interested in replicating this 2d grid in Context. How would one go
> about enforcing such strict 2d organization? As I get it he does a lot of
> manual tweaking, and his documents are less automated and more hand
> crafted than a typical Context document.I'm specifically interested in
> using this approach for report generation.

 It would be wonderful to have, especially for adaptation, personalisation
purposes.

To me data I/O is not an issue since I would use a Python script to
> generate the markup.
>
Even though I am not a programmer, I would like to be of help. For example:
brainstorming or testing ideas.
I hope there are more enthousiasts eager to help. (Thanks Aditya.)


> I know the question is pretty general, but any pointers would be welcome.
> Maybe the first thing useful would be the grid and how to position
> everything in accordance with it. I envisioned this thread more for
> discussion and suggestions than a complete recreation of his ideas. As I
> learn Context and Metapost, I hope I will figure out how to recreate his
> work. Sorry for the blog post :)
>
> Link to files:
>
> https://drive.google.com/drive/folders/1KpYbDlukvSCirKkFvJICOX3wABl_83bW?usp=sharing
>
> Sincerely,
> Stefan
>

Kind regards, Susanne G. Loeber

-- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220516/245a06fb/attachment-0001.htm
> >
>
> --
>
> Subject: Digest Footer
>
>
> ___
> 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://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>
>
> --
>
> End of ntg-context Digest, Vol 215, Issue 44
> 
>
___
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
___


[NTG-context] color problem

2020-10-01 Thread Susanne G. Loeber
Dear Reader,

I have a colored section, text in another color and a TikZ picture with a
differently colored node, following each other. However, either the node
gets the wrong color or the following paragraph, see example below.

Is there something wrong with the section settings? How do I get all the
colors right without using a paragraph in between?

\setuphead[chapter]

[

style={\tfd},

color={A2plus},

]

\setuphead[section]

[

style={\tfc},

color={A3plus},

]


\definecolor[A1plus][h=5CAF00]

\definecolor[A2plus][h=B6437E]

\definecolor[A3plus][h=606ABD]

\definecolor[A4plus][h=FFC700]

\definecolor[A5plus][h=D0202B]

\definecolor[A6plus][h=EF8600]

\definecolor[A7plus][h=0082AA]


\setupcolors[textcolor=A1plus]


\usemodule[tikz]



\starttext


\startchapter[title={Colour test}, ref=colourtest]


\startsection[title={Section}]

\starttikzpicture

\draw[text=A6plus] (0,0) rectangle (2,1) node[right] {node text should be
orange};

\stoptikzpicture


\par This a paragraph which gets the colour of the section for no reason.


\stopsection


\stopchapter


\startchapter[title={Colour test 2}, ref=colourtest]


\startsection[title={Another section }]


\par This a paragraph in the appropriate text color (green).



\starttikzpicture

\draw[text=A6plus] (0,0) rectangle (2,1) node[right] {node text is orange};

\stoptikzpicture


\stopsection


\stopchapter

\stoptext
___
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
___


[NTG-context] library 'uni' is unknown

2020-10-01 Thread Susanne G. Loeber
Dear Reader,

https://wiki.contextgarden.net/Symbols shows predefined symbol sets. The
uni and wasysym are unknown.

Hereby my example:

\usesymbols[mvs]

\usesymbols[uni]

\usesymbols[wasysym]

%% \usesymbols[ifsym]


\starttext


\par Show entire set martinvogel 1

\showsymbolset[martinvogel 1]


\par Show YinYang symbol from martinvogel 2. \crlf

\symbol[martinvogel 2][YinYang]


%% \symbol[Alpine Symbol][Flag]


\stoptext

Console output

fonts > symbols > library 'mvs' loaded

fonts > symbols > library 'uni' is unknown

fonts > symbols > library 'wasysym' is unknown


The ultimate goal is to show a flag from the alpine symbol set from ifsym.
However, I will settle with a flag from uni if it means I don't have to
install files.


Kind regards,

Susanne
___
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
___


[NTG-context] how to do adaptation

2019-10-14 Thread Susanne G. Loeber
Hi,
I am looking for ways to adapt the layout and content of texts while
using ConTeXt. Put simple: show part of a text and sort these parts
based on data from the user and the author (.dat file). The biggest
problem is not knowing which part of the text will be first and how
many parts will be shown.

So far, I am trying to get a hang of \setupdocument
(https://wiki.contextgarden.net/Project_structure), \startmode
(https://wiki.contextgarden.net/Modes), \definecolor
(https://wiki.contextgarden.net/Color) and \defineparagraphs
(https://wiki.contextgarden.net/Command/defineparagraphs)

I hope there are more ways to create adaptation.

I would also like to know whether certain combination don't work
together. For example, I cannot seem to get \doifmodeelse to work
inside a \defineparagraphs environment.

\defineparagraphs[BLpar][n=2, frame=on]
\setupparagraphs [BLpar][1][width=\dimexpr.3\textwidth]

\starttext

% Working
\enablemode[asg]

\doifmodeelse{asg} {\par First sentence} {\par Second sentence}
\disablemode[asg]
\doifmodeelse{asg} {\par First sentence} {\par Second sentence}
\doifnotmode{asg} {\par Third sentence}

% Not working
\enablemode[one]

\startBLpar
\doifmodeelse{one} {First sentence} {Second sentence} \disablemode[one]
\BLpar
% \disablemode[one] %% not helping
TOP1 paragraphs
\stopBLpar
% \disablemode[one] %% needed to make the example work

\startBLpar
\doifmodeelse{one} {First sentence} {Second sentence}
\BLpar
TOP2 paragraphs
\stopBLpar

\startBLpar
\doifnotmode{one} {Third sentence}
\BLpar
TOP3 paragraphs
\stopBLpar

\stoptext


Kind regards,
Susanne G. Loeber
___
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
___


[NTG-context] tikz pgfplots library problem

2019-01-15 Thread Susanne G. Loeber
 Dear Reader,

I am creating an image using TikZ PGFplots. When I add
\usetikzlibrary[datavisualization] I get an error.

A simple example to illustrate my problem:

\usemodule[pgfplots]
\usemodule[tikz]

\usetikzlibrary[datavisualization]

\starttext

\starttikzpicture
\draw (0,0) rectangle (1,2);
\stoptikzpicture

\stoptext

What can be done? I am using TEXshop (4.22) on a Mac.

Console output with error:

resolvers | trees | analyzing 'home:.texlive2018/texmf-config'

mtx-context | run 1: luatex
--fmt="C:/texlive/2018/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en"
--jobname="testUseLibrary"
--lua="C:/texlive/2018/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui"
--no-parse-first-line --c:currentrun=1
--c:fulljobname="./testUseLibrary.tex" --c:input="./testUseLibrary.tex"
--c:kindofrun=1 --c:maxnofruns=9 --c:synctex "cont-yes.mkiv"


This is LuaTeX, Version 1.07.0 (TeX Live 2018/W32TeX)

system commands enabled.


resolvers > trees > analyzing 'home:.texlive2018/texmf-config'

open source > level 1, order 1, name
'C:/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv'

system >

system > ConTeXt ver: 2018.04.04 00:51 MKIV beta fmt: 2018.6.29 int:
english/english

system >

system > 'cont-new.mkiv' loaded

open source > level 2, order 2, name
'C:/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'

close source > level 2, order 2, name
'C:/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'

system > files > jobname 'testUseLibrary', input './testUseLibrary', result
'testUseLibrary'

fonts > latin modern fonts are not preloaded

languages > language 'en' is active

system > synctex functionality is enabled, expect 5-10 pct runtime overhead!

open source > level 2, order 3, name
'C:/Users/Acer/Downloads/testUseLibrary.tex'

modules > 'tikz' is loaded

open source > level 3, order 4, name
'C:/texlive/2018/texmf-dist/tex/context/third/pgf/frontendlayer/t-tikz.tex'

loading > ConTeXt User Module / tikz

open source > level 4, order 5, name
'C:/texlive/2018/texmf-dist/tex/context/third/pgf/basiclayer/t-pgf.tex'

loading > ConTeXt User Module / pgf

open source > level 5, order 6, name
'C:/texlive/2018/texmf-dist/tex/context/third/pgf/basiclayer/t-pgfcor.tex'

loading > ConTeXt User Module / pgfcor

open source > level 6, order 7, name
'C:/texlive/2018/texmf-dist/tex/context/third/pgf/systemlayer/t-pgfsys.tex'

loading > ConTeXt User Module / pgfsys

open source > level 7, order 8, name
'C:/texlive/2018/texmf-dist/tex/context/third/pgf/utilities/t-pgfrcs.tex'

loading > ConTeXt User Module / pgfrcs

open source > level 8, order 9, name
'C:/texlive/2018/texmf-dist/tex/context/third/pgf/utilities/t-pgfmod.tex'

loading > ConTeXt User Module / pgfmodules

system > module wrapping error in 'tikz'

close source > level 8, order 9, name
'C:/texlive/2018/texmf-dist/tex/context/third/pgf/utilities/t-pgfmod.tex'

open source > level 8, order 10, name
'C:/texlive/2018/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex'

open source > level 9, order 11, name
'C:/texlive/2018/texmf-dist/tex/generic/pgf/utilities/pgfutil-common-lists.tex'

close source > level 9, order 11, name
'C:/texlive/2018/texmf-dist/tex/generic/pgf/utilities/pgfutil-common-lists.tex'

close source > level 8, order 11, name
'C:/texlive/2018/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex'

open source > level 8, order 12, name
'C:/texlive/2018/texmf-dist/tex/generic/pgf/utilities/pgfutil-context.def'

close source > level 8, order 12, name
'C:/texlive/2018/texmf-dist/tex/generic/pgf/utilities/pgfutil-context.def'

open source > level 8, order 13, name
'C:/texlive/2018/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex'

close source > level 8, order 13, name
'C:/texlive/2018/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex'

system > module wrapping error in 'tikz'

close source > level 7, order 13, name
'C:/texlive/2018/texmf-dist/tex/context/third/pgf/utilities/t-pgfrcs.tex'

open source > level 7, order 14, name
'C:/texlive/2018/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex'

open source > level 8, order 15, name
'C:/texlive/2018/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex'

open source > level 9, order 16, name
'C:/texlive/2018/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex'

close source > level 9, order 16, name
'C:/texlive/2018/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex'

close source > level 8, order 16, name
'C:/texlive/2018/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex'

open source > level 8, order 17, name
'C:/texlive/2018/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg'

close source > level 8, order 17, name
'C:/texlive/2018/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg'

open source > level 8, order 18, name
'C:/texlive/2018/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-pdftex.def'

open source > level 9, order 19, name

[NTG-context] question regarding \placefloats

2018-08-08 Thread Susanne G. Loeber
Dear Reader,

I have a document with figures and tables. I have tried to use the command
  \placefloats to create a list of all my floats as recommended on the page
Floating Objects, section Flushing floats. There it states: The command
\placefloats outputs all pending floats. I hoped to get a list with all
tables, all figures and all other possible floats.That list would either be
sorted per chapter or sorted per float. However, I was not able to make it
work at all.

In the appendix, you can find my struggles.
First:
\placefloats does not work.

\placelistoffloats does not exist as a command

My solution is two seperate commands, one for the tables \placelistoftables
and one for the figures \completelistoffigures.

Question: how to use \placefloats correctly to get a list of all floats?


Second:

\startcombination[1*2] looks nice, but does not add information to the
\placelistoffigures .

My solution is to place the \startcombination inside a \placefigure.

Question: Is there a better way?


Kind regards, thanks,

Susanne


placefloat.tex
Description: Binary data
___
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
___