Re: [NTG-context] lmtx

2021-01-19 Thread Jan U. Hasecke
Hi,

I am afraid that clip stops working in

current version: 2021.01.18 18:19


\setupexternalfigure[location=default]
\showframe
\starttext
\clip[height=50mm,voffset=10mm]
 {\externalfigure[cow.pdf][width=\textwidth]}
\stoptext

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

___
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] Org-Mode for ConTeXt

2021-01-10 Thread Jan U. Hasecke

Dear all,

Emacs and Org-Mode is central to my writing workflow as I use org-mode
for organizing my Zettelkasten.[1]

Now I am looking for a way to extend the workflow an include ConTeXt.

Is anybody aware of a ConTeXt export tool for Org-Mode?

Ciao!
juh

[1] https://www.hasecke.eu/post/luhmanns-zettelkasten-mit-org-brain/
-- 
Soziale Plastik. Die Kunst der Allmende
Essay zum 30. Todestag von Joseph Beuys
http://www.amazon.de/dp/1523458763/
Taschenbuch, 130 Seiten, EUR 9,90

-- 
http://hasecke.com * Business Communication * Werbung für den Mittelstand
Schubertstr. 4 * 42719 Solingen * Telefon ++49-212-2331483
https://keys.openpgp.org/vks/v1/by-fingerprint/F6911D6BDD74ABB8FE4586E03B3D738AE614D22D
Umsatzsteuer-Identifikationsnummer: DE196439205
Datenschutzerklärung: https://www.hasecke.com/datenschutz/
___
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] Text editor support via Digestif

2020-12-31 Thread Jan U. Hasecke
Dear Augusto,



Am 31.12.20 um 10:25 schrieb Augusto Stoffel:
> Hi all,
> 
> I have worked a bit on ConTeXt support in the Digestif language server
> [1], and I think it's pretty usable by this point, so I would like to
> invite everyone to check it out. Feedback is welcome.

this looks great. Thanks a lot for this.

Unfortunately I get

Company mode enabled in current buffer
Yas minor mode enabled in current buffer
eglot--connect: Symbol’s function definition is void: project-root

when I activate eglot in emacs.

Using

(require 'company-lsp)
(add-to-list 'company-lsp-filter-candidates '(digestif . nil))

Using lsp-mode I get

progn: Symbol’s value as variable is void: company-lsp-filter-candidates

for

(add-to-list 'company-lsp-filter-candidates '(digestif . nil))

I have no experience with using either eglot or lsp-mode. So I am afraid
that I have to adjust something more than written on your Github page.

juh
___
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] checkbox in fields show the word yes

2020-12-11 Thread Jan U. Hasecke
Dear all,

as nobody answered I would like too repeat my question.

If you open the MWE in Firefox, you see the word "yes" written in the
checkbox. Is there a way to avoid this?


Thanks a lot for your help.
juh

Am 17.11.20 um 13:50 schrieb Jan U. Hasecke:
> Hi all,
> 
> with this example I get a checkbox that does not work; in my real world
> document it works, I can't say why. But this minimal example shows the
> problem I have in my real document.
> 
> 
> \usemodule[fields]
> \setupinteraction [state=start]
> 
> \setupfield[cbox][width=1em,height=1em,option=printable,frame=on,offset=0.5mm,frameoffset=1mm,type=radio,color=black]
> \definefield[test][check][cbox][yes][no]
> 
> \starttext
> \field[test] \space Do you see the word »yes«?
> \stoptext
> 
> Unfortunately in Firefox and some other PDF Viewer there is the word
> "yes" written in the checkbox.
> 
> This makes the form useless as people think the given option is set to
> yes by default.
> 
> Can I avoid this somehow?
> 

___
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] image align in \clip

2020-12-09 Thread Jan U. Hasecke
Am 09.12.20 um 11:26 schrieb Hans Hagen:
> what if you put \removeunwantedspaces in front of the clip

The space vanishes when I put it right before \externalfigure.

Thanks a lot, Hans!

(Still, I would like to know how the space came up in the first place.)


juh
___
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] image align in \clip

2020-12-09 Thread Jan U. Hasecke
Dear all,

I use \clip to simplify working with images.

I have a problem that I am unable to reproduce in a MWE.


\setupexternalfigure[location=default]
\showframe
\starttext
\externalfigure[cow.pdf][width=\textwidth]

\clip[height=50mm]
 {\externalfigure[cow.pdf][width=\textwidth]}
\stoptext

In my real document the clipped image is shifted to the right as if
indented by 1em or so.

Any hints where to look for the reason?

TIA
juh

___
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] checkbox in fields show the word yes

2020-11-17 Thread Jan U. Hasecke
Hi all,

with this example I get a checkbox that does not work; in my real world
document it works, I can't say why. But this minimal example shows the
problem I have in my real document.


\usemodule[fields]
\setupinteraction [state=start]

\setupfield[cbox][width=1em,height=1em,option=printable,frame=on,offset=0.5mm,frameoffset=1mm,type=radio,color=black]
\definefield[test][check][cbox][yes][no]

\starttext
\field[test] \space Do you see the word »yes«?
\stoptext

Unfortunately in Firefox and some other PDF Viewer there is the word
"yes" written in the checkbox.

This makes the form useless as people think the given option is set to
yes by default.

Can I avoid this somehow?

TIA juh
___
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] statistical charts (was: Changing the colors of Charts in luametafun)

2020-10-19 Thread Jan U. Hasecke

Hi all,

I play around with the charts module by Tamara Kocurová & Adriana
Kašparová. Great work! I really like it.

https://akela.mendelu.cz/~thala/statcharts/

There is one very nitpicking thing. The dots of the grid are not always
in a regularly fixed distance as the attached screenshot shows.

I am not sure if this can be solved with a customized configuration.

Ciao!
juh
___
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] Changing the colors of Charts in luametafun

2020-10-19 Thread Jan U. Hasecke

On 18.10.20 22:59, Henning Hraban Ramm wrote:
> Hi juh,
> 
>> Am 16.10.2020 um 15:34 schrieb Jan U. Hasecke :
>>
>> as I'll need to make some business charts in the near future I had a
>> look into metafun xl.
> 
> you might like the new charts module by Tamara Kocurová & Adriana Kašparová.

Yes! I like it!

> Download: https://akela.mendelu.cz/~thala/statcharts/
> Manual/presentation also at 
> https://meeting.contextgarden.net/2020/talks/2020-09-11-tamara-and-adriana-statistical-charts/AK-TK_charts.pdf
> 

Thanks a lot for this hint. What a wonderful module and excellently
documented!

Chapeau!

juh
___
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] Changing the colors of Charts in luametafun

2020-10-18 Thread Jan U. Hasecke
On 18.10.20 19:04, Hans Hagen wrote:
>> How can I change the colors used for the sample?
> 
>     fillcolors = {
>     "red", "green", "blue",
>     "yellow", "magenta", "cyan",
>     "gray"
>     },

Thanks a lot. Argh, it was before my eyes. :-/

juh
___
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] Changing the colors of Charts in luametafun

2020-10-16 Thread Jan U. Hasecke

Hi,

as I'll need to make some business charts in the near future I had a
look into metafun xl.

Here is the first example:

\startMPcode
draw lmt_chart_circle [
samples
= { { 1, 4, 3, 2, 5, 7, 6 } },
percentage = true,
trace
= true,
] ;
\stopMPcode

How can I change the colors used for the sample?

juh
___
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] text surrounding graphic in columns

2020-10-15 Thread Jan U. Hasecke
Thanks a lot for this hint, Hans!

On 15.10.20 09:15, Hans Hagen wrote:
> \starttext
> 
> \setupbodyfont[plex,10pt]
> \setupalign[tolerant,stretch]
> \useMPlibrary[dum]
> 
> \startpagecolumns[n=2]
>     \dorecurse {10} {
>     \startplacefigure[location={left,none}]
>     \externalfigure[dummy][width=3em]
>     \stopplacefigure
> 
>     \dorecurse {4} {
>     \samplefile{ward}\par
>     }
>     }
> \stoppagecolumns
> 
> \stoptext
> 
> don't tell Hraban

I promise. ;-)

I can't test it thoroughly, but I've got these issues.

I have problems with the grid on such a page. The last column of three
does not align the lines at the grid. With columnsets the grid is ok.

These columnsets as described in the manual looked very promising to me
as I could change the column layout on the page. The columnsetspan
feature is nice to make elements spread over multiple columns. Areas
also looks promising but I did not try them.

I had some problems while using columnsets with respect to switch this
span feature on and off. But I managed it kind of. The last thing I
couldn't get to work were images with location left of the text.

I'll have a deeper look at the examples in
./tex/texmf-context/doc/context/sources/general/manuals/columnsets

Thanks a lot for these features.
juh

juh
___
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] text surrounding graphic in columns

2020-10-15 Thread Jan U. Hasecke
Thanks Hraban!

On 14.10.20 19:36, Henning Hraban Ramm wrote:
>> how can I get a graphic that floats left or right from the text in
>> columns or columnsets?
> 
> You can’t, sorry.

I feared that. I changed my layout a bit and use tables now.

juh
___
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] text surrounding graphic in columns

2020-10-14 Thread Jan U. Hasecke

Hi,

how can I get a graphic that floats left or right from the text in
columns or columnsets?

\starttext
\startcolumns[2]

\placefigure[left, high, none]{}
{\externalfigure[dummy][width=3em]}
\input ward

\input ward
\stopcolumns

\blank

\placefigure[left, high, none]{}
{\externalfigure[dummy][width=3em]}
Without columns it works.
\input ward

\input ward

\stoptext

TIA
juh
___
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] A Spanish introduction to ConTeXt Mark IV

2020-10-14 Thread Jan U. Hasecke
Hola Joaquín,

On 14.10.20 06:27, Joaquín Ataz López wrote:
> Its title is "An Introduction (not too short) to ConTeXt Mark IV".

what a great introduction! And just another hint for me to improve my
Spanish. ;-)

Jan Ulrich Hasecke


___
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] footnotes missing in heads

2020-09-03 Thread Jan U. Hasecke
Am 03.09.20 um 07:50 schrieb Pablo Rodriguez:
> Dear list,
> 
> the following minimal sample:
> 
> \starttext
> \chapter{Chapter\footnote{Note}}
> \section{Section\footnote{Note}}
> \stoptext
> 
> Using current latest (from 2020.09.02 20:37) doesn’t display the footnotes.
> 
> I’m afraid this may be a bug. Could anyone confirm this?
> 

No notes with current version: 2020.08.31 22:16

juh

___
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] Bug in lmtx or wrong setup?

2020-06-09 Thread Jan U. Hasecke
Hi all,

I encountered a very strange problem.

I want to have section headlines expanding the whole textarea, but the
following copy text of the section shall be typeset in columns.

I have this setup and it works fine.

\setuphead
  [section]
  [
   insidesection=\startcolumns,
   aftersection=\stopcolumns,
  ]


Except for one big problem. ConTeXt (current lmtx from 2020.05.18 16:50)
sometimes has problems to make a page break. And I get the weird result
shown on the attached screenshot.

After the page break the text of the section does not continue. Instead
a number is shown. In the log file I can't find something suspicious.

When I compile the source with current context (2020.01.30 14:13) I get
something like an infinite loop. ConTeXt hangs and has to be killed with
kill pid, Ctrl-C in terminal does not work

So, in my opinion my layout or setup causes a bad situation, where
ConTeXt does not know where to make a page break. While context hangs
and warns me, lmtx runs smoothly but places a number in the text, which
is bad as I might overlook it.

I tried to make mwe but I cannot reproduce the error.

Any ideas to improve my setup? Is this a bug or the intended behaviour?

juh
___
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] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Jan U. Hasecke
Am 29.05.20 um 18:03 schrieb Aditya Mahajan:
> The magic of loading and reusing them happens behind the scenes, so the
> user doesn't have to worry about it. See
> https://wiki.contextgarden.net/System_Macros/Key_Value_Assignments#Multi-pass_data
> for more details.
> 
> Now, suppose you wanted to use the image defined as part of
> `\startchapter` as the background image of the _current_ page, then you
> could access the value of the \structureuservariable. For example,
> 
> \startchapter[title=whatever][image=filename]
> 
> \structureuservariable{image}
> 
> \stopchapter
> 
> But you want to use the value of the image _before_ the start of the
> chapter. So, Wolfgang is using the two-pass mechanism to store the value
> of the image in the database named 'chapter` in the hash-location
> `\ChapterCounter` and then retrieving it before it is defined!

Thanks a lot for the clarification!
juh
___
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] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Jan U. Hasecke
Hi Wolfgang,

thank you very much. Amazing!

Am 29.05.20 um 15:35 schrieb Wolfgang Schuster:

> \definedataset [chapter]
>
> \startsetups [chapter:before]
> 
>   \page[yes]
> 
>   \doglobal\increment\ChapterCounter
> 
>   \doifoddpageelse
>     {}
>     {\doifsomething
>    {\datasetvariable{chapter}{\ChapterCounter}{image}}
>    {\startlayout[page]
>     \centerbox{\externalfigure
> [\datasetvariable{chapter}{\ChapterCounter}{image}][factor=min]}
>     \stoplayout}}
> 
> \stopsetups
> 
> \setuphead
>   [chapter]
>   [page=,
>    beforesection=\directsetup{chapter:before},
> insidesection={\setdataset[chapter][\ChapterCounter][image=\structureuservariable{image}]}]
> 

One and a half question.
Why did you set \ChapterCounter explizitly and why is \ChapterCounter
part of the datasetvariable?

juh
___
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] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Jan U. Hasecke
Am 29.05.20 um 12:45 schrieb Wolfgang Schuster:
> juh schrieb am 29.05.2020 um 10:29:
>> Dear all,
>>
>> with your help I can colorize the empty even page right before a
>> chapter starts
>> on the odd page. The mwe below shows it.
>>
>> Now I would like to redefine the contents of the left page on the fly
>> in the text
>> so that I could place images on this page.
>>
>> I thought that I could get a simple solution by inserting a TEXpage as
>> even
>> page, but this does not work for several reasons. First a TEXpage is
>> not counted
>> correctly like a normal page.  And secondly I found now way to put it
>> on the
>> even page.
>>
>> So what I really want to achieve is a way to redefine this setups at
>> some point
>> in the text to insert eg. a picture on the even page before a chapter.
>>
>> \startsetups [chapter:before]
>>    \doifoddpageelse
>>  {}
>>  {\pushbackground[page]
>>   \setupbackgrounds[page][background=color,backgroundcolor=blue,]
>>   \page[empty,right]
>>   \popbackground}
>> \stopsetups
>>
>> As you see the image is not in the right place and of course the
>> pagenumbering
>> is wrong.
> Use \startTEXpage[pagestate=start] to increase the page number with TEX
> pages.

Thanks for this hint.

>> I want that one of these blue pages shows an image. Is this possible?
> Yes but there are different ways for different requirements.
> 
> - Do you you have a picture before *every* chapter?

No, the additional image page shall appear only if the last chapter ends
on an odd page. Then I need the image page to push the new chapter to
the next odd page.

> - Do you use full page images?
> - Are the images cropped to fit the page dimension, stretched or
> centered with margins?

For this usecase images are blown up and cropped to fit the page
dimension including the bleed.


juh
___
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] two superscript versions with Garamond Libre

2020-05-19 Thread Jan U. Hasecke
Am 18.05.20 um 22:23 schrieb Henning Hraban Ramm:
> 
> 
>> Am 18.05.2020 um 17:18 schrieb Pablo Rodriguez :
>>
>> Typeface is available at
>> https://github.com/dbenjaminmiller/garamond-libre/releases/latest.
> 
> Thank you for the hint, I’m always looking for interesting fonts.
> This is a nicely designed classical Garamond with a big glyph repertoire 
> (Latin, poly Greek, Cyrillic, Byzantine/Greek music symbols, math and other 
> symbols), but after first tests I found flaws:
> – Numbers are a bit too dark; table numbers look a bit too big, oldstyle 
> numbers a bit too small.
> – Small caps are lacking accented vowels including umlauts.
> – Cyrillic is missing Kyrgyz/Kazakh letters (i.e. Cyrillic extended).
> – Kerning is not yet perfect.
> – Accents sit a bit too close on the letters.
> – Swash capitals don’t fit the style at all, they look like some modern hand 
> font like Lucida Handwriting.

Thanks a lot for your insights.

From the repo I guess that this is a quite new project; you could post
bug reports.

juh

___
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] Styling of included buffers or files

2020-05-18 Thread Jan U. Hasecke
Am 17.05.20 um 19:04 schrieb Marco Patzer:

>>
>> Is it somehow possible to apply styles to all buffers that gets
>> included via \getbuffer by defining a special getbuffer-style?
> 
> \setupbuffer has before and after keys which can be used. Example:
> 
> \setupbuffer
>  [before=\blank\blackrule\startnarrower\BufferStyle,
>   after=\stopnarrower\blackrule\blank]
> 
> %% alternatively define custom buffers
> \definebuffer
>  [foobar]
> 
> \setupblackrules
>   [width=1cm,
>height=1pt,
>color=gray]
> 
> \definehighlight
>   [BufferStyle]
>   [style=smallitalic,
>color=blue]
> 
> \startbuffer
>   \samplefile{knuth}
> \stopbuffer
> 
> \starttext
>   \samplefile{knuth}
>   \getbuffer
>   \samplefile{knuth}
> 
> \stoptext
> 

So easy! I am humbled. For some reason I wasn't able to find this in
setup-en.pdf.

Thanks a lot.

juh

___
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] Styling of included buffers or files

2020-05-17 Thread Jan U. Hasecke
Hi all,

I am currently writing a text where I want to include text snippets
either by including files or including buffers.

What is the best way to style all these included buffers?

I know that I can do something like this:

\startcolumns
\getbuffer[Muenchen]
\stopcolumns

Or do something with \defineparagraph

Is it somehow possible to apply styles to all buffers that gets included
via \getbuffer by defining a special getbuffer-style?



TIA
juh




___
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] Typesetting Markdown - Part 8

2020-04-28 Thread Jan U. Hasecke
Am 28.04.20 um 10:35 schrieb Saša Janiška:
> On Tue, 28 Apr 2020 08:32:57 +0200
> "Jan U. Hasecke"  wrote:
> 
>> 3. Being a writer I think that Markdown --> ConTeXt is the best way to
>> achieve what I want: easy writing and professional looking books. 
> 
> I've the same opinion!
> 
>> Up to now I used Pablos way via pandoc and XHTML described here:
>> http://www.from-pandoc-to-context.tk/
> 
> What do you use now?

Oh I still use it. But Daves posts might offer an alternative for me.

>> The problem with pandoc is that it does not generate a perfect ConTeXt
>> source to build the file as some things are missing.
> 
> You mean Pablos pandoc --> from-pandoc-to-context or

Yes.

juh


___
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] Typesetting Markdown - Part 8

2020-04-28 Thread Jan U. Hasecke
Hi Dave,

Am 28.04.20 um 04:00 schrieb Thangalin:
> Hi folks!
> 
> Second last part in the series. The project, product, component, and
> environment relations were a bit finicky. Those willing to point out
> improvements that can be made---Hans, Taco, Wolfgang, Aditya, and
> others---would be very much appreciated.
> 
> Specifically, it seems that some project environment settings can be
> overruled inside products, but other project settings cannot. It's not
> really clear to me whether this is due to dependency order or that
> definitions cannot be redefined across environments. Thoughts?
> 
> https://dave.autonoma.ca/blog/2020/04/28/typesetting-markdown-part-8/

thank you very much. I really appreciate your series. There is so much
in it that suits to my needs that I have to read it carefully later. But
I have some short remarks anyway.

Some topics are especially of interest to me:

1. Nameing and organizing the project, product and environments files. I
am currently reorganising the files for my cooperative. I think that
besides some nameing conventions it is more or less up to me how I
organise our print work. Any recommendations welcome.

2. The "Deutsches Text Archiv" has prepared a text corpus of German
texts up to 1900 in TEI PS XML, so we could use them directly to typeset
books. What I am looking for is a script to extract all XML tags/tokens
from their files to have a complete list of things that should be
handled in a ConTeXt style file. Five years ago I tried to create such a
style file by hand, but I gave up.

https://github.com/juh2/tei-style-dta-context

The tokens/tags differ from text to text and I think the structure too
so that it was beyond my knowledge to generate a general style file for
all texts.

3. Being a writer I think that Markdown --> ConTeXt is the best way to
achieve what I want: easy writing and professional looking books. Up to
now I used Pablos way via pandoc and XHTML described here:
http://www.from-pandoc-to-context.tk/

The problem with pandoc is that it does not generate a perfect ConTeXt
source to build the file as some things are missing.

Annotations and eg. your classify.lua might be a second approach to
achieve what I want.

So thanks a lot for your work.

@all: Feel free to comment on my three topics any hints are welcome.

Ciao!
juh
___
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] useexternaldocument with custom file type

2020-04-23 Thread Jan U. Hasecke
Am 23.04.20 um 19:25 schrieb Henning Hraban Ramm:
> 
>> Am 23.04.2020 um 16:36 schrieb Jan U. Hasecke :
>>
>> Am 23.04.20 um 16:10 schrieb Vladimir Lomov:
>>> Please see the page about '\goto' command, it was written for a reason!
>>
>> Ok, with \goto{linkname}[program(target.doc)] it works.
>>
>> "works" means some PDF Viewers opens the right program.
> 
> 
> In the beginning, you could even start programs with program(...), but Adobe 
> recognized soon this might be a security problem.
> 
> Nowadays, the “best” behaviour is when the viewer asks you if you really want 
> to open such a link but then hands control to the OS.
> 
> Last time I checked, Adobe Reader even let you open hidden files from 
> arbitrary paths.
> 
> Several other viewers just do nothing.

Yes this is not bullet proofed but I need it for internal usage. I think
we'll have many okular users.

juh

___
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] useexternaldocument with custom file type

2020-04-23 Thread Jan U. Hasecke
Am 23.04.20 um 16:10 schrieb Vladimir Lomov:
> Please see the page about '\goto' command, it was written for a reason!

Ok, with \goto{linkname}[program(target.doc)] it works.

"works" means some PDF Viewers opens the right program.


juh
___
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] useexternaldocument with custom file type

2020-04-23 Thread Jan U. Hasecke
Am 23.04.20 um 14:22 schrieb Vladimir Lomov:
> Otherwise could you describe what exactly you want to achive?

This works:

\setupinteraction[state=start]
\setupcolors[state=start]
\starttext
\goto{linkname}[file(target.pdf)]
\stoptext

This does not work:

\setupinteraction[state=start]
\setupcolors[state=start]
\starttext
\goto{linkname}[file(target.doc)]
\stoptext

The PDF Viewer does not support the file type.

TIA
juh
___
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] useexternaldocument with custom file type

2020-04-23 Thread Jan U. Hasecke
Hi Wolfgang,

thanks for the fast reply.

Am 23.04.20 um 12:06 schrieb Wolfgang Schuster:
> Jan U. Hasecke schrieb am 23.04.2020 um 11:54:
>> Hi,
>>
>> can I link to a file with custom file type eg. OpenDocument with
>> \useexternaldocument?
>>
>> This does not work.
>>
>> \useexternaldocument[test][test.ods][A test document]
>>
>> As the PDF viewer is opened first, it does not recognize the file type.
> 
> The \useexternaldocument is used to access referecens from other ConTeXt
> documents.

Ok. No way to link to other file types from the pdf?

> https://mailman.ntg.nl/pipermail/ntg-context/2019/095564.html

I must confess that I don't understand this utilitydata-Thread.


juh
___
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] useexternaldocument with custom file type

2020-04-23 Thread Jan U. Hasecke
Hi,

can I link to a file with custom file type eg. OpenDocument with
\useexternaldocument?

This does not work.

\useexternaldocument[test][test.ods][A test document]

As the PDF viewer is opened first, it does not recognize the file type.

juh
___
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] Project Gutenberg Projects

2020-04-13 Thread Jan U. Hasecke
Am 12.04.20 um 20:23 schrieb Thangalin:
> Hi list!
> 
> Another blog post for you all, tangentially related to ConTeXt:
> 
> https://dave.autonoma.ca/blog/2020/04/11/project-gutenberg-projects
> 
> In particular, the conversion from XHTML to Markdown so that pandoc
> can convert Markdown to ConTeXt may be of interest:
> 
> https://dave.autonoma.ca/blog/2020/04/11/project-gutenberg-projects/#xhtml-to-markdown
> 
> This is in preparation for part 8 of the typesetting Markdown series,
> which discusses how ConTeXt can be used to typeset annotations in
> pandoc's extended Markdown. If there's anything else you'd like to
> see, let me know.

Thanks a lot for this blog post. I tried to typeset texts from the
German text archive and played a little bit with the ability of ConTeXt
to directly typeset XML.

Because of my very limited insights the results were poor, but I think
someone with more skills could do it much better.

At least the markup of the German Text Archive seems to be quite consistent.

https://github.com/juh2/tei-style-dta-context

http://www.deutsches-textarchiv.de/

In fact I also used the archive to make epubs with Pandoc.

Happy Easter!
juh
___
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] Quick question about dual output pdf and epub

2020-03-03 Thread Jan U. Hasecke
Am 03.03.20 um 22:04 schrieb Rik Kabel:
> Instructions for creating the .epub from the export are contained in the
> log file.

Has anyone ever got an epub that validates?

juh
___
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] metapost: remapping colors of an SVG picture

2020-02-20 Thread Jan U. Hasecke
Am 18.02.20 um 19:24 schrieb Jan U. Hasecke:
> Am 18.02.20 um 19:17 schrieb mf:
>> Il 18/02/20 19:07, Jan U. Hasecke ha scritto:
>>> Am 18.02.20 um 14:53 schrieb Hans Hagen:
>>>
>>>> \setupcolors[rgb=no]
>>>> \startMPcode
>>>>  draw lmt_svg [ filename = "sample.svg" ] ;
>>>> \stopMPcode
>>> I get this error.
>>>
>>> ! Not implemented: (unknown numeric)=(string).
>>> 
>>> ]
>>> <*> ... ; p := lmt_svg [ filename = "sample.svg" ]
>>>
>> That's because it's LMTX only (the "lmt" prefix of "lmt_svg" should
>> stand for "luametatex").
> 
> Yes, with lmtx it works but there is no image in the resulting file.

Sorry for digging deeper.

I am very thrilled by the idea that I could simply adjust a RGB SVG to
well defined CMYK colors with this trick.

Can anybody confirm if this works?

juh
___
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] Fonts not in preview of online print shop

2020-02-19 Thread Jan U. Hasecke
Dear all,

strange problem with my online print shop. I want to print 3 products.

1. Business Cards
2. Flyer
3. Poster

All definitions for fonts, colors, color profiles and pdf version come
from one an the same file (env-cd.tex).

All PDFs passed the data check without problems, but

Business Cards and Poster appear without any fonts in the final preview.

Only the Flyer looks ok.

The service staff is nice but has no idea where to look, never heard of
ConTeXt.

For the business cards the print shop will do paid manual enhancement.
The poster is not as time critical.

Any idea where to look?

juh
___
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] metapost: remapping colors of an SVG picture

2020-02-18 Thread Jan U. Hasecke
Am 18.02.20 um 19:17 schrieb mf:
> Il 18/02/20 19:07, Jan U. Hasecke ha scritto:
>> Am 18.02.20 um 14:53 schrieb Hans Hagen:
>>
>>> \setupcolors[rgb=no]
>>> \startMPcode
>>>  draw lmt_svg [ filename = "sample.svg" ] ;
>>> \stopMPcode
>> I get this error.
>>
>> ! Not implemented: (unknown numeric)=(string).
>> 
>> ]
>> <*> ... ; p := lmt_svg [ filename = "sample.svg" ]
>>
> That's because it's LMTX only (the "lmt" prefix of "lmt_svg" should
> stand for "luametatex").

Yes, with lmtx it works but there is no image in the resulting file.

juh
___
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] metapost: remapping colors of an SVG picture

2020-02-18 Thread Jan U. Hasecke
Am 18.02.20 um 14:53 schrieb Hans Hagen:

> 
> \setupcolors[rgb=no]
> \startMPcode
>     draw lmt_svg [ filename = "sample.svg" ] ;
> \stopMPcode

I get this error.

! Not implemented: (unknown numeric)=(string).

]
<*> ... ; p := lmt_svg [ filename = "sample.svg" ]


juh
___
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] Any plans for an active color management?

2020-02-17 Thread Jan U. Hasecke
Hi Henning Hraban,

I contacted three print shops and they demand three different color
profiles, one of them prints on "100 % recycling paper" with an uncoated
profile. The other two use ISO Coated v2 300% and Coated Fogra 39.

Being online shops I think they will complain if not the right profile
is provided. But anyway.

I will summarize:

Am 17.02.20 um 16:35 schrieb Henning Hraban Ramm:

> That means you should keep your photos in (profiled) RGB. Probably
> best use sRGB to stay device independend, because that’s default for
> monitors, even if printshops like Adobe RGB or one of the profiles
> that shrink the RGB color space to printable colors.

1. All my images should be profiled. I think I can do this in Gimp.

> For type and logos I still rely on (device dependend) CMYK colors and
> my experience how they’ll come out in Euroscale printing. 

Device depended means what?

I did this to convert our RGB corporate colors to device depended CMYK:

transicc -i sRGB.icc -o Fogra/Iso-whatever.icc

But what shall I do with the logo? It is a RGB SVG.

Do I understand you correctly that the best would be to ask someone with
Indesign to convert it to CMYK with the above cited profile chain?

Or shall I tell the designer: These are the values I need as CMYK, just
do it.

> Colors that you define in TeX or Metapost are a different problem. I
> *think* they should use the output intent as their profile. But I
> don’t know if the intent option of \setupcolors and/or \setupbackend
> really works this way. (My only means to check was Acrobat Pro 9, and
> that won’t run on a current macOS any more.)

I do it like this:

\startmode[fogra39]
\definecolor  [hs-logoblau]   [c=1.000, m=0.735, y=0.279, k=0.160]
\definecolor  [hs-dunkelblau] [c=0.844, m=0.544, y=0.070, k=0.000]
\definecolor  [hs-hellblau]   [c=0.468, m=0.220, y=0.086, k=0.002]
\definecolor  [hs-orange] [c=0.127, m=0.832, y=1.000, k=0.042]

\setupcolors[cmyk=yes,rgb=no,]

\setupbackend[
   format=PDF/X-3:2003,
   intent={Coated FOGRA39 (ISO 12647-2:2004)},
   ]
\stopmode


I like your thought that all profiles are more or less the same. That
would mean that my designer could convert our SVG logo and our SVG icons
to Device-profiled CMYK-PDF and I am good.
 Thanks for your help.
juh
___
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] Any plans for an active color management?

2020-02-17 Thread Jan U. Hasecke
Hi all,

I would like to come back to a discussion from 2018 on this list.

After printing some flyers for my cooperative I come to the conclusion
that color management *is* very difficult.

In my eyes, the only way of getting good results seems to be the
following process.

My starting point are RGB colors as we are doing online first.

So if I create a poster or a flyer I have to do this:

1. Decide which print shop will print the material.

2. Download and install the color profile for this print shop in ConTeXt.

3. Specify CMYK values by using transicc with the given profile

4. Define named corporate colors with these CMYK values for typography,
colored background in ConTeXt.

5. Convert all RGB images to CMYK using the given color profile
especially if they contain corporate colors.

Now if we decide to use another print shop, the whole process has to
start again. The result is that I end up with color settings for x
different print shops and cmyk images for x different print shops.

Are there any plans to automate these steps into ConTeXt? That would
enable us to work in RGB the whole time. Only when creating a print pdf
we would specify a color profile and ConTeXt would do the rest by
converting all rgb values to cmyk values due to the given color profile.

As this seems very complex I fear that there are no plans to do this.

What alternatives I have?
=

What if deliberately define my own cmyk values once and for all?

Can I work with the same cymk values no matter what profile is used by
the print shop?

TIA
juh
___
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] Repeat backgrounds on slides

2020-02-15 Thread Jan U. Hasecke
\structureuservariable – this is really cool.

Thanks a lot Wolfgang.
juh

Am 14.02.20 um 19:53 schrieb Wolfgang Schuster:
> \setupexternalfigures[location=default]
> 
> \defineoverlay
>   [SlideBackground]
>   [\doifsomething
>  {\structureuservariable{background}}
>  {\externalfigure[\structureuservariable{background}][factor=max]}]
> 
> \setuppapersize[S6]
> \setupbackgrounds[page][background=SlideBackground]
> 
> %\setuppapersize[S6][S6,oversized]
> %\setupbackgrounds[paper][background=SlideBackground]
> %\setuplayout[location=middle]
> 
> \definehead[Slide][chapter]
> 
> \starttext
> 
> \startSlide[title=Cow][background=cow]
> \dorecurse{3}{\dontleavehmode\page}
> \stopSlide
> 
> \startSlide[title=Hacker][background=hacker]
> \dorecurse{3}{\dontleavehmode\page}
> \stopSlide
> 
> \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
___


Re: [NTG-context] Repeat backgrounds on slides

2020-02-14 Thread Jan U. Hasecke
Am 13.02.20 um 20:39 schrieb Wolfgang Schuster:

> 
> This is normal behaviour for layers but you can repeat it on every page with
> 
> \definelayer [bg:...] [state=repeat]

Thanks. There was a dark idea of this in the back of my brain.

> 
> In your case a simple overlay is the simpler solution to get repeated images 
> on every page, i.e.
> 
>   \defineoverlay [bg:hs2020-mond] 
> [{\externalfigure[background.jpg][height=\paperheight]}]
> 
> or
> 
>   \defineoverlay [bg:hs2020-mond] [\overlayfigure{background.jpg}]

Is this defining and setting in one command? Can I set the offset in
this way, too?

juh

___
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] Color Profiles in lmtx

2020-02-13 Thread Jan U. Hasecke
Am 12.02.20 um 19:48 schrieb Pablo Rodriguez:
> On 2/12/20 5:15 PM, Jan U. Hasecke wrote:
>> [...]
>> I just realized that the above output is the right output.
> 
> Hi Jan Ulrich,
> 
> you might check profiles that with VeraPDF (or simply \nopdfcompression
> as first command in the source and search for the profile ),
> 
>> Ok. But now I have another question
>>
>> I want to install a new profile I downloaded from eci.org
>> [...]
>> But the file in texmf-local is not found
>>
>> backend > profiles > profile specification 'PSO Uncoated
>> ISO12647 ECI' not found in 'colorprofiles.xml, colorprofiles.lua'
>>
>> How can I make context aware of the files?
> 
> How about deleting the cache (simply remove
> tex/context-cache/luatex-cache) and generate it again (by running
> "mtxrun --generate", before compiling your source again?

I get the error that was reported in another thread. :-(

resolvers   | resolving | warning: no lua configuration files found
resolvers   | resolving | no texmf paths are defined (using TEXMF)

.sh ./install.sh was the solution.

I cannot use mtxrun in a way like "mtxrun --locate" in lmtx:

$ mtxrun --locate
mtxrun  | forcing cache reload
resolvers   | resolving | looking for regular 'texmfcnf.lua' on
given path '/home/juh/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on
given path '/home/juh/texmf-local/web2c' from specification
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on
given path '/home/juh/texmf-context/web2c' from specification
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on
given path '/home/juh/texmf-dist/web2c' from specification
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on
given path '/home/juh/texmf/web2c' from specification
'selfautoparent:/texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
given path '/home/juh/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
given path '/home/juh/texmf-local/web2c' from specification
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
given path '/home/juh/texmf-context/web2c' from specification
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
given path '/home/juh/texmf-dist/web2c' from specification
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
given path '/home/juh/texmf/web2c' from specification
'selfautoparent:/texmf/web2c'
resolvers   | resolving |
resolvers   | resolving | warning: no lua configuration files found
resolvers   | resolving | no texmf paths are defined (using TEXMF)
resolvers   | resolving |
mtxrun  | the resolver databases are not present or outdated



___
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] Color Profiles in lmtx

2020-02-12 Thread Jan U. Hasecke
Am 12.02.20 um 11:09 schrieb Peter Rolf:

>> I get this in my logs
>>
>> backend > profiles > profile specification 'ISO Coated v2 300% 
>> (ECI)' loaded from 
>> '/home/juh/context-linux-64/tex/texmf-context/colors/icc/context/colorprofiles.xml'

I just realized that the above output is the right output.

Ok. But now I have another question

I want to install a new profile I downloaded from eci.org

I extended colorprofiles.xml putting it in
texmf-local/colors/icc/context/ with this additional xml:


PSO_Uncoated_ISO12647_eci.icc
CMYK
prtr
Custom
PSO Uncoated ISO12647 ECI
ae81087e1c54c6fdda2f93bd2d47cfaf
200
http://www.eci.org
Commercial and specialty offset, paper type 4,
uncoated white paper, positive plates, tone value increase curves C
(CMY) and D (K), white backing.



I generated the md5 checksum from the file PSO_Uncoated_ISO12647_eci.icc.

But the file in texmf-local is not found

backend > profiles > profile specification 'PSO Uncoated
ISO12647 ECI' not found in 'colorprofiles.xml, colorprofiles.lua'

How can I make context aware of the files?

TIA
juh
___
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] xml differences between old context and lmtx

2019-12-27 Thread Jan U. Hasecke
Am 27.12.19 um 14:03 schrieb Hans Hagen:
> On 12/26/2019 1:19 PM, Jan U. Hasecke wrote:
>> Hi all,
>>
>> are there any documented differences between the xml features of normal
>> context and lmtx?
>>
>> In a fun project I compile xml sources from www.deutschestextarchiv.de
>> to pdf via context using xmlsetups which kinda works with normal context
>> current version: 2019.08.09 18:29
>>
>> With lmtx current version: 2019.12.12 01:08 I don't get a usable result.
>>
>> And there is a change in file naming I discovered.
>>
>> Files from the deutschestextarchiv have names like
>> marx_kapital01_1867.TEI-P5.xml
>>
>> lmtx skips the TEI-P5 part
>>
>> Any hints how I can adjust my xmlsetups?
> how do you load the file

With the --environment switch:

context --environment=tei-style.tex marx_kapital01_1867.TEI-P5.xml

juh
___
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] xml differences between old context and lmtx

2019-12-26 Thread Jan U. Hasecke
Hi all,

are there any documented differences between the xml features of normal
context and lmtx?

In a fun project I compile xml sources from www.deutschestextarchiv.de
to pdf via context using xmlsetups which kinda works with normal context
current version: 2019.08.09 18:29

With lmtx current version: 2019.12.12 01:08 I don't get a usable result.

And there is a change in file naming I discovered.

Files from the deutschestextarchiv have names like
marx_kapital01_1867.TEI-P5.xml

lmtx skips the TEI-P5 part

Any hints how I can adjust my xmlsetups?

juh
___
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] Ebooks with ConTeXt?

2019-12-10 Thread Jan U. Hasecke
Am 10.12.19 um 20:38 schrieb Nicola:
> As for ConTeXt, I have tried the latest beta with:
> 
> context mybook.tex
> mtxrun --script epub --make mybook
> 
> This, among the rest, creates an .epub file, which unfortunately the
> above mentioned tools do not like (maybe, that output is still
> experimental?). 

From time to time I publish an ebook either created with Pandoc or with
the pythonic Sphinx documentation tool. In most cases Pandoc epubs
validate fine. Sphinx only lately produces epub that validates without
errors. But I had issues with Apple when I tried to publish a valid epub
on their platform.

You can validate epubs with epubcheck:
https://github.com/w3c/epubcheck

I don't know if ConTeXt produces epub2 or epub3.
http://idpf.org/epub/30/

HTH
juh

-- 
Das ZEN von Pandoc
Bücher und E-Books einfach und professionell produzieren
http://www.amazon.de/Das-ZEN-von-Pandoc-professionell/dp/1505218799/
Paperback (232 Seiten) und E-Book
___
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] Ebooks with ConTeXt?

2019-12-10 Thread Jan U. Hasecke
Am 10.12.19 um 08:50 schrieb Nicola:
> On 2019-12-10, Jan U. Hasecke  wrote:

> Thanks, I didn't think of Pandoc, I'll give it a try. In the past,
> I have tried to create some simple content (slides) with Markdown, but
> my conclusion was that if you know TeX, it doesn't make sense to use
> Markdown :)
> 
> Perhaps this is a silly question (excuse my ignorance about the topic):
> what if you want to add some stylistic touches to your ebooks, such as
> initials? Or Non-breaking spaces? How about adding, say, a text box with
> a different background and a smaller font?

Ebooks are xhtml so styles are limited to the capabilities of css. I
fear that initials has to be left flowing images.

>***
> 
> Or fine control page numbering, headers, footnotes, ligatures, or the
> spacing between paragraphs, or center a separator as above? Do you need
> to modify the generated CSS for that, or would ConTeXt (or Pandoc)
> allow you to take care of (some of) those things?

No page numbers in E-Books and I would avoid headers. Footnotes are
endnotes. Ligatures might be possible if directly inserted, sorry never
tried this in an ebook.

You can modify the css to achieve what is possible in xhtml, though.

I have to confess that I never managed to create an ebook with context
right aways. AFAIK, please correct me Hans, you end up with an epub
folder not the compressed epub itself. I would guess that it is a good
thing if you want to postprocess the book manually by editing content
files or css.

What I can say about epub generally is: It's better to avoid fancy
styling at all and use the default fonts and styles of the ebook devices.

HTH
juh
___
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] Ebooks with ConTeXt?

2019-12-09 Thread Jan U. Hasecke
Am 09.12.19 um 22:13 schrieb Nicola:
> What is the current status of epub support in ConTeXt?
> 
> I have never followed ConTeXt's development on the XML front too
> closely, but recently I have been asked to help format a text-only
> manuscript for publishing on platforms such as Kindle or Apple Books
> Store. Can ConTeXt be used (or perhaps even recommended) for that? Or
> would I have better luck with the proprietary tools (Kindle Create,
> iBooks Author)?

Sorry, no info concerning ConTeXT.

You don't have to use proprietary tools. An easy way to create ebooks
from Markdown files (or other sources) is Pandoc. https://pandoc.org/

I produce all of my ebooks in this way. In most cases they validate
without errors. If there are some errors though I use Calibre to fix
them manually.

HTH
juh
___
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] ConTeXt as a service

2019-11-22 Thread Jan U. Hasecke
Am 22.11.19 um 10:05 schrieb Henning Hraban Ramm:
> Am 2019-11-22 um 09:46 schrieb Mojca Miklavec 
> :
>>
>> On Fri, 22 Nov 2019 at 08:51, Jan U. Hasecke wrote:
>>>
>>> I am very interested in running ConTeXt as a service, too. I am still
>>> nurturing the idea of a publishing cooperative for self publishers with
>>> a Markdown --> Pandoc --> ConTeXt workflow with a nice web frontend. I
>>> hope to make it to the next ConTeXt meeting to discuss it.
>>
>> If you want to start from a simple markup language, at least go for
>> asciidoc or restructured text.
>> Markdown is a mess for anything but very very very trivial structure,
>> and very very soon you basically end up with "basically ugly html with
>> some embeded plain text every now and then".
>>
>> There is some proof-of-concept test document which goes via the
>>asciidoc --[asciidoctor]--> docbook (xml) --[context]--> pdf
>> path (but it needs more work to be fully useful).
> 
> Wouldn’t it make sense to go (X)HTML->ConTeXt?

This is what I am currently doing locally with Pablos
from-pandoc-to-context workflow.

juh
___
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] ConTeXt as a service

2019-11-21 Thread Jan U. Hasecke
Am 20.11.19 um 18:10 schrieb Henning Hraban Ramm:
> Hi!
> 
> I’m running ConTeXt on my web server e.g. to generate shipping forms for a 
> customer.
> 
> As Hans said, it makes sense to use an asynchronous setup; in my case it’s 
> celery/RabbitMQ behind Django.
> 
> You probably need to set a few environment variables: I find HOME, PATH, 
> TEXROOT and TEXMFOS in my setup. I don’t know if you really need all of them, 
> it’s already running for several years…
> Also your web server process might only run binaries that belong to some 
> user/group like wwwrun.
> 
> It won’t work in shared hosting, because you can’t install your own programs.

Generally this is correct. But there are providers such as the
Hostsharing cooperative where it is possible to install programs in a
shared hosting environment. We do it for years. ;-)

> Otherwise: What kind of documentation do you need? Installing ConTeXt on a 
> (web) server is not different from any other Linux system. Calling ConTeXt 
> from a web application is not different from calling any other external 
> program. The rest depends on your setup and web frameworks.

I am very interested in running ConTeXt as a service, too. I am still
nurturing the idea of a publishing cooperative for self publishers with
a Markdown --> Pandoc --> ConTeXt workflow with a nice web frontend. I
hope to make it to the next ConTeXt meeting to discuss it.

Many greetings
juh

-- 
Hostsharing eG – die Hosting-Genossenschaft
Souveränität – Nachhaltigkeit – Exzellenz
https://www.hostsharing.net
___
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] issue with footnote in LMTX

2019-10-08 Thread Jan U. Hasecke
Am 08.10.19 um 16:44 schrieb Jan U. Hasecke:

>> Could anyone confirm this issue with links in footnotes for LMTX?
> 
> Yes, no link with LMTX 2019.10.02 22:33

Sorry. I mixed up my versions somehow. Please forget my mail.

juh
___
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] issue with footnote in LMTX

2019-10-08 Thread Jan U. Hasecke
Am 08.10.19 um 15:11 schrieb Pablo Rodriguez:
> Dear list,
> 
> I have the following sample:
> 
> \setupinteraction[state=start, focus=standard]
> \starttext
> a\footnote{b}
> \stoptext
> 
> Using latest beta from MkXL (2019.10.05 14:56), link form footnote to
> main text body doesn’t work.
> 
> Latest beta from MkIV (2019.10.05 14:45) has no issue and the footnote
> link works perfectly fine.
> 
> Could anyone confirm this issue with links in footnotes for LMTX?

Yes, no link with LMTX 2019.10.02 22:33

juh
___
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] beta

2019-10-02 Thread Jan U. Hasecke
Am 02.10.19 um 16:06 schrieb Hans van der Meer:
> You can add to the end of the install script:
> 
> echo "Removing luatex-cache/context"
> rm -r tex/texmf-cache/luatex-cache/context
> 

I reinstalled 64 bit Linux from http://www.pragma-ade.nl/install.htm and
now it works again. Thanks a lot for supporting debian stable again.

One thing, with:

mtxrun --autogenerate --script context

as suggested by the install script I get

unknown script 'context.lua' or 'mtx-context.lua'

The command "/home/juh/context-linux-64/tex/texmf-linux-64/bin/context"
works.

Any hints?
TIA
juh
___
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] ConTeXt on current Debian

2019-09-30 Thread Jan U. Hasecke
Dear all,

todays upgrade broke my context installation (context and lmtx) as
context now uses GLIBC_2.29 which is not available in Debian 10 buster.

After using my backup I now wonder if from now on ConTeXt won't support
Debian stable anymore?

juh
___
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] Error during installation of LMTX

2019-09-30 Thread Jan U. Hasecke
I tried to update or install LMTX today and get this error:

/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found
(required by /home/juh/context-linux-64/bin/mtxrun)

I am running debian 10 buster.

juh
___
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] CMYK Color profile

2019-05-30 Thread Jan U. Hasecke
Am 30.05.19 um 23:34 schrieb Benjamin Koppe:
> Hello everyone,
> 
> I'm about creating a DIN Lang Folder brochure with ConTEXt. I got
> everything set up the way I'd like it to. Now that I'm done with the
> work, I've been told the output pdf should have a CMYK Color profile
> embedded for the on demand printing service to be able to deal with the
> file...
> 
> I am unsure what steps I have to take to make my output pdf compliant
> with CMYK. I don't even know how I could verify it does indeed have
> CMYK. Evince doesn't seem to show that info...
> 
> So if anybdy of you could give me some hints, that's be wonderful.
> 
> Cheers
> De Benny

Hi Benny,

if you can read German you might find some hints in my articles about
creating din lang folders
https://www.hasecke.eu/post/werbemittel-mit-context-gestalten/

On colors read the second part:
https://www.hasecke.eu/post/wie-wir-bei-hostsharing-mit-context-arbeiten/

Search the mailing list for color profile questions because I had to ask
often to make my things work. ;-)

The wiki contains some hints, too.


What you can do is to create a mode like this:

\startmode[fogra39]

\doiffileelse{CoatedFOGRA39.icc}{}{\farbprofilnichtgefunden}
% This will be printed in log if context does not find the profile for
% some reason

\definecolor  [hs-logoblau]   [c=1.000, m=0.735, y=0.279, k=0.160]

\definecolor  [hs-dunkelblau] [c=0.844, m=0.544, y=0.070, k=0.000]

\definecolor  [hs-hellblau]   [c=0.468, m=0.220, y=0.086, k=0.002]

\definecolor  [hs-orange] [c=0.127, m=0.832, y=1.000, k=0.042]

\setupcolors[cmyk=yes,rgb=no,]

\setupbackend[
   format=PDF/X-3:2003,
   intent={Coated FOGRA39 (ISO 12647-2:2004)},
   ]

\stopmode

If you call context with --mode=fogra39 you will get these color
definitions and the defined pdf format with the right profile (intent).

If you download additional icc profiles (eg. the fogra one is missing in
the context distribution) put them here:
context/tex/texmf-local/colors/icc

In this folder they won't be overwritten by an update.

There are some limitations in ConTeXt concerning colors as embedded
images are not converted, so RGB images are converted only by the print
shop during printing, which can lead to strange results. I think the
only way to control the output is to convert all images to CMYK by hand.
By doing this you can modify them to get the best results.

I hope that helps
juh

___
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] Wiki update

2019-05-30 Thread Jan U. Hasecke
Am 30.05.19 um 12:07 schrieb Taco Hoekwater:
> url:
>   https://wiki.contextgarden.net/Command/setupdescription
> 
> content:
>   == Syntax ==
> 
>   setupdescription

Brilliant!

Thanks a lot!

juh
___
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] Typesetting Markdown

2019-05-22 Thread Jan U. Hasecke
Am 23.05.19 um 07:18 schrieb Thangalin:
> Hi folks!
> 
> I'm thinking about writing a series of blog posts about how to typeset
> Markdown using ConTeXt. I've written the first part and am wondering if
> anyone would be interested in reading more:
> 
> https://dave.autonoma.ca/blog/2019/05/22/typesetting-markdown-part-1/
> 

That is interesting. Do you provide a RSS feed for your blog?

juh
___
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] Bibliography APS Style without unpublished

2019-05-16 Thread Jan U. Hasecke
Am 16.05.19 um 16:12 schrieb nyssus:
> Honestly, some way to use CSL files to style bibliography would be ideal
> here, but that doesn't seem to currently exist

Have a look at Pablos way to go from pandoc via xhtml to context:

https://github.com/ousia/from-pandoc-to-context

Or a slightly improved fork:
https://github.com/aksdb/pandoc-xhtml

I use this to write books with Markdown and produce the outputs with
pandoc to epub and pdf.

With Pandoc you can use CSL files and include the bibliography via XML
into ConTeXt.

HTH
juh
___
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] Bibliography APS Style without unpublished

2019-05-16 Thread Jan U. Hasecke
Hi Alan,
thanks a lot for these hints.

Am 16.05.19 um 02:05 schrieb Alan Braslau:
> On Wed, 15 May 2019 14:27:21 +0200
> "Jan U. Hasecke"  wrote:
> 
>> is there an option to eliminate the "unpublished" in aps bibliography?
> 
> I suppose you mean the APS setup when NO date field is given
> ("to be published" for an article, "in press" for a book, and
> "unpublished" otherwise)?
> 
> You can redefine the setup btx:aps:nd (no date) to give something else,
> but you might have to go further not to get empty parenthesis.
> 
> A better solution, using the APS specification is to have a correct
> database. Maybe a different publication type category might be more
> appropriate.

I browsed through the mailing list to see that bibliographies are not
that easy. ;-)

I think I found a solution by providing a "year" in my database. That's
good enough for me.

But as I collect my internet citations with zotero I always get a
urldate for all internet entries. I think that giving the urldate is
better than insert a publication year as nobody knows how long a website
was present and when it was published for the first time.

Is it possible to insert something like "last accessed on the internet
on -MM-DD" in that field automatically if no publication year is
provided but a urldate?

Greetings
juh
___
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] Bibliography APS Style without unpublished

2019-05-15 Thread Jan U. Hasecke
Hi all,

is there an option to eliminate the "unpublished" in aps bibliography?

I understand that apa and aps are the only implemented styles. Is there
any other style I can use?

TIA
juh
___
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] serial letters

2019-05-06 Thread Jan U. Hasecke
Am 10.04.19 um 09:08 schrieb Henning Hraban Ramm:
> Thank you very much! I’ll try to come up with a solution (and document it).

Did you find a solution? I am very interested as LibreOffice's serial
letter function is annoying.

Grüße
juh

-- 
Software-Dokumentation mit Sphinx
Zweite überarbeitete Auflage (Sphinx 2.0)
https://www.amazon.de/dp/1793008779
Paperback: 282 Seiten
___
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] Blogging about ConTeXt at Hostsharing

2019-03-15 Thread Jan U. Hasecke
Dear all,

with your kind help I was able to establish an inhouse workflow to
produce print material for my hosting cooperative Hostsharing.

We are going to use ConTeXt for flyers, writing pads, business cards,
posters and published documents such as sustainability reports.

Many thanks to all who supported me in this mailing list.

Being still a novice in ConTeXt I am going to blog about our experiences
starting today with this post.

https://www.hasecke.eu/post/werbemittel-mit-context-gestalten/

The text is in German only. I hope to find the time to write an English
version in the near future.

If anyone of you is visiting the Chemnitzer Linux-Tage this weekend join
us at our Hostsharing booth to see the printed results. Our booth is not
far away from the DANTE booth.

https://chemnitzer.linux-tage.de/2019/de/programm/live

Thanks a lot and a happy weekend
juh

-- 
Hostsharing eG – die Hosting-Genossenschaft
Souveränität – Nachhaltigkeit – Exzellenz
https://www.hostsharing.net
___
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] Printing 3 din lang pages on one dina4 page

2019-03-12 Thread Jan U. Hasecke
Am 12.03.19 um 17:25 schrieb Wolfgang Schuster:
> \definepapersize [A4/3] [width=99mm,height=210mm]
> 
> \setuppapersize [A4/3] [A4,landscape]
> 
> \setuppaper [nx=3,ny=1]
> 
> \setuparranging [XY]
> 
> \setupbodyfont [10pt]
> 
> \showframe[page]
> 
> \starttext
> \dorecurse{10}{\samplefile{tufte}}
> \stoptext

Thanks a lot, Wolfgang.

juh

-- 
Soziale Plastik. Die Kunst der Allmende
Essay zum 30. Todestag von Joseph Beuys
http://www.amazon.de/dp/1523458763/
Taschenbuch, 130 Seiten, EUR 9,90
___
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] Printing 3 din lang pages on one dina4 page

2019-03-12 Thread Jan U. Hasecke
Hi,

I managed to print din long flyers (100mmx210mm with 97mmx210mm fold
page) with 6 pages using a lot of pageshifts etc.

But how can I print one simple din long page (99mmx210mm) three times on
a din a4 page so that I can cut it myself?

The following does not work.

\definepapersize
[flyer]
[width=99mm,height=210mm]

\setuppapersize [flyer] [a4]

\setuparranging[1*3]

The option [1*3] does not exist for \setuparranging.
But I thought this could be what I want one sheet three pages.

TIA
juh

___
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] Macro for a header does not work as well

2019-02-19 Thread Jan U. Hasecke
Am 19.02.19 um 12:55 schrieb Otared Kavian:
> Hi Fabrice,
> 
> After adding 
>   
>\mainlanguage[fr]
> 
> to your file I obtain the attached output (Context version  2019.02.14 16:57).
> 

I have a similar problem with a lua snippet, where mainlanguage does not
solve the problem.

In a context version from last year this showed the right date format,
now it shows: d=1m=3y=2019



\def\duedate{\ctxlua{
  local t = os.date('*t', os.time()+ 10 * 24 * 3600)
  context.date{d=t.day, m=t.month, y=t.year }
}}

\mainlanguage[de]

\starttext

\duedate

\stoptext


TIA
juh
___
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] Creating business cards with CSV

2019-02-10 Thread Jan U. Hasecke
Thanks Pablo,

great documentation and just the tool I was looking for.

juh
___
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] Metapost graphic in setupbackground

2019-02-08 Thread Jan U. Hasecke
Thanks a lot Wolfgang and Marco. :-)

juh

Am 08.02.19 um 12:57 schrieb Wolfgang Schuster:
> 
> 
> Jan U. Hasecke schrieb am 08.02.19 um 12:36:
>> Hi all,
>>
>> I make my first steps with Metapost.
>>
>> I would like to set the background of all pages to a Metapost graphic.
>>
>> But only the first page has the defined background.
>>
>> I also tried with
>>
>> \startuseMPgraphic
>>
>> with no success
>>
>> --- mwe ---
>>
>> \startreusableMPgraphic{kreis}
>> draw fullcircle scaled 70mm withcolor red withpen pencircle scaled 6mm;
>> \stopreusableMPgraphic
>>
>> \definelayer[kreisbackground][width=70mm,height=70mm]
> 
> \definelayer[kreisbackground][state=repeat]
> 
> Wolfgang
> 

___
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] Metapost graphic in setupbackground

2019-02-08 Thread Jan U. Hasecke
Hi all,

I make my first steps with Metapost.

I would like to set the background of all pages to a Metapost graphic.

But only the first page has the defined background.

I also tried with

\startuseMPgraphic

with no success

--- mwe ---

\startreusableMPgraphic{kreis}
draw fullcircle scaled 70mm withcolor red withpen pencircle scaled 6mm;
\stopreusableMPgraphic

\definelayer[kreisbackground][width=70mm,height=70mm]

\setlayer[kreisbackground]
  [x=-3mm,y=-3mm]
  {\reuseMPgraphic{kreis}}

\setupbackgrounds[paper][background=kreisbackground, state=start]

\starttext

\input lorem

\page

\input lorem

\stoptext


TIA
juh
___
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] Making ConTeXt stop on all or some errors

2019-02-07 Thread Jan U. Hasecke
Am 07.02.19 um 17:46 schrieb Alan Braslau:
> On Thu, 7 Feb 2019 07:27:57 +0100 (UTC)
> "Jan U. Hasecke"  wrote:
> 
>> At least a missing file should make ConTeXt stop immediately.
> 
> Why?
> 
> (I often process with missing figures, etc. Of course, not for a final
> run, but adding showstoppers leads to overhead and longer processing
> times. People first coming to ConTeXt look for such bells and whistles
> as many other programs hold your hand in this way. This also explains
> why these programs often lack in performance as well.)
> 
> Alan
> 

You see placeholders in the pdf, if a figure is missing. The only info
that the color profile is missing is in the log file. You don't see it.

juh
___
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] Creating business cards with CSV

2019-02-07 Thread Jan U. Hasecke
Hi all,

I found some hints to CSV in the wiki, but they all refer to tables.

What are the building block to create business cards from a csv file?


My business-card.tex looks like this:

\starttext

{\bf Vorname Name}\\
Function

\blank

Company\\
Street\\
PLZ City\\
Germany\\
Telefon: 12345678\\
n...@example.com\\
www.example.com\\

\stoptext

In pseudo code I think something like this could work:

for i in csv:
{\bf $Vorname $Name}\\
$Function

\blank

$Company\\
$Street\\
etc.
\page

The variables ($Vorname, $Name etc) could be named according to the
columns in the first row in the csv-file.

Each row starting from the second is creating a page (business card).

TIA
juh


___
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] Making ConTeXt stop on all or some errors

2019-02-06 Thread Jan U. Hasecke
Am 06.02.19 um 19:31 schrieb Pablo Rodriguez:
> On 2/5/19 8:07 AM, Jan U. Hasecke wrote:
>> Hola Pablo,
> 
> Hallo Jan-Ulrich,
> 
>> I inserted this in the setupbackend command so that ConTeXt stops with
>> the unknown command \colorprofilenotfound I inserted in the else clause.
>>
>> But more and more I think that ConTeXt should fail if it does not find
>> the color profile, because if you forget to study the log file before
>> sending the pdf to the print shop you can loose a lot of money.
> 
> But the scenarios in which you could loose a lot of money are many more
> than you might think.
> 
> Imagine the following:
> 
> \startbuffer
> A Greek sentence:
> χαλεπὰ τὰ καλά
> \stopbuffer
> \definefallbackfamily[mainface][rm][GFS Didoto]
> [preset=range:greek]
> \definefontfamily[mainface][rm][Latin Modern Roman]
> \definefallbackfamily[amainface][rm][GFS Didot]
> [preset=range:greek]
> \definefontfamily[amainface][rm][TeX Gyre Pagella]
> \definefallbackfamily[smainface][rm][GFS Didot]
> [preset=range:greek, force=yes]
> \definefontfamily[smainface][rm][TeX Gyre Pagella]
> \setupbodyfont[mainface]
> \starttext
> \startTEXpage[offset=2em]
> \getbuffer\\
> \amainface\getbuffer\\
> \smainface\getbuffer
> \stopTEXpage
> \stoptext
> 
> Not embedding all glyphs for the fallback font (failing to type
> "force=yes") could lead to weird results. Not to mention when a font
> isn’t embedded at all.
> 
>> And as we use ConTeXt in a group where people have different ConTeXt
>> knowledge the generation should be bullet proofed.
> 
> I totally agree with that. But it mainly relies on how source documents
> are written. ConTeXt cannot type the source for us.
> 
>> The behaviour of ConTeXt is AFAICS the following.
>> If you install icc-profiles in texmf-context they get lost during the
>> next update of ConTeXt. But ConTeXt will not stop the complilation only
>> warning that there is no profile file.
>>
>> ConTeXt only stops to compile if you delete a profile which was present
>> during installation/update or which was present during a "mtxrun
>> --generate" (Thanks to Mojca for this hint). Then the file is registered
>> and ConTeXt wants to access it, failing if it is not there.
>>
>> If you install profiles in texmf-local and then do a "mtxrun --generate"
>> you are quite safe as long as you do not install ConTeXt from scratch.
> 
> No computer can read your mind. Or a brand-new installation cannot guess
> whether you are up to some auxiliary files (name them color profiles,
> fonts, or whatever you want).
> 
>> If you want to compile a ConTeXt project on an other computer you have
>> to study the log file to see that it does not find a color profile. And
>> this is dangerous, because none expects this to be a problem. I think
>> ConTeXt should fail and stop if the profile is not there.
> 
> But checking if the file exists is a safe way to know whehter it can be
> embedded in the output PDF document.
> 
> Another scenario would be attaching files to a PDF document using the
> \attachment command. I have done it myself.
> 
> With some of my documents, I had to attach a variable number of extra
> documents to the final PDF. The only way to secure the attachment was
> \doiffileelse{file.pdf}{\attach[file.pdf]}{\ssbf\color[red]{missing
> attachment}}.
> 
> Just in case it helps,

Yes, your solution helps and I use it for now.

But I am still looking for a switch to have a nitpickier runlevel of
ConTeXt. From the documentation suite Sphinx I know such a switch which
turns warnings into errors (causing Sphinx to stop) and vice versa.

At least a missing file should make ConTeXt stop immediately.

juh
___
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] Making ConTeXt stop on all or some errors

2019-02-04 Thread Jan U. Hasecke
Hola Pablo,

Am 04.02.19 um 18:42 schrieb Pablo Rodriguez:
> On 2/4/19 7:30 AM, Jan U. Hasecke wrote:
>> Hi all,
>>
>> yesterday I asked about where to put color profiles.
>>
>> My problem was that ConTeXt for some unknown reason didn't find the
>> color profiles I downloaded. But most annoying was the fact that I
>> didn't saw the error in the log because ConTeXt only complains about not
>> finding the profile.
>>
>> Is there a way to make ConTeXt stop if it does not find the profile like
>> it stops if I use a unknown command?
>>
>> I want to avoid that we send a pdf without a profile to the print shop,
>> because we overlook a message in the logs.
> 
> Hi Jan Ulrich,
> 
> maybe testing if the file is there may work for you.
> 
> Here is a sample:
> 
> \starttext
> \doiffileelse{srgb.icc}{fine now}{\red\ss\bfd HUGE MISTAKE}
> 
> \doiffileelse{srgb.icca}{fine now}{\red\ss\bfd HUGE MISTAKE}
> \stoptext
> 
> The first profile is provided within the ConTeXt Suite, the second one
> is a wrong file name.
> 
> Just in case it might help,

I inserted this in the setupbackend command so that ConTeXt stops with
the unknown command \colorprofilenotfound I inserted in the else clause.

But more and more I think that ConTeXt should fail if it does not find
the color profile, because if you forget to study the log file before
sending the pdf to the print shop you can loose a lot of money.

And as we use ConTeXt in a group where people have different ConTeXt
knowledge the generation should be bullet proofed.

The behaviour of ConTeXt is AFAICS the following.
If you install icc-profiles in texmf-context they get lost during the
next update of ConTeXt. But ConTeXt will not stop the complilation only
warning that there is no profile file.

ConTeXt only stops to compile if you delete a profile which was present
during installation/update or which was present during a "mtxrun
--generate" (Thanks to Mojca for this hint). Then the file is registered
and ConTeXt wants to access it, failing if it is not there.

If you install profiles in texmf-local and then do a "mtxrun --generate"
you are quite safe as long as you do not install ConTeXt from scratch.

If you want to compile a ConTeXt project on an other computer you have
to study the log file to see that it does not find a color profile. And
this is dangerous, because noone expects this to be a problem. I think
ConTeXt should fail and stop if the profile is not there.

There is the switch --errors=list which might be of some use here, but I
could not find documentation, so I don't know how to call ConTeXt and
make it fail if the error occurs.

Thanks for the hint, which I use as a workaround.
juh
___
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] Making ConTeXt stop on all or some errors

2019-02-03 Thread Jan U. Hasecke
Hi all,

yesterday I asked about where to put color profiles.

My problem was that ConTeXt for some unknown reason didn't find the
color profiles I downloaded. But most annoying was the fact that I
didn't saw the error in the log because ConTeXt only complains about not
finding the profile.

Is there a way to make ConTeXt stop if it does not find the profile like
it stops if I use a unknown command?

I want to avoid that we send a pdf without a profile to the print shop,
because we overlook a message in the logs.

juh

___
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] Where to put icc color profiles

2019-02-03 Thread Jan U. Hasecke
Am 03.02.19 um 18:19 schrieb Mojca Miklavec:
> Dear Jan,
> 
> On Sun, 3 Feb 2019 at 14:49, Jan U. Hasecke wrote:
>>
>> I downloaded some color profiles and stored them in:
>>
>> /context/tex/texmf-context/colors/icc/profiles
>>
>> But they get overwritten, when I update context.
> 
> Please try to put them to
> /context/tex/texmf-local/colors/icc/profiles
> instead (and maybe run "mtxrun --generate" afterwards just in case).

Thanks. Seems to work. :-)

juh
___
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] Title from setupinteraction used in header

2019-02-03 Thread Jan U. Hasecke
Am 03.02.19 um 17:34 schrieb Wolfgang Schuster:

> 
> Use \setupdocument to set the metadata for the PDF. You can access the
> values with the \documentvariable command.
> 
> \setuppagenumbering
>   [location=]
> 
> \setupheadertexts
>   [\documentvariable{metadata:title} – \documentvariable{metadata:author}]
> 
> \setupdocument
>   [metadata:title={foo},
>    metadata:subtitle={bar},
>    metadata:author={Peter},
>    metadata:keyword={context}]
> 
> \starttext
> \samplefile{lorem}
> \stoptext
> 

Thank you, Wolfgang.

juh

___
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] Color profile not found

2019-02-03 Thread Jan U. Hasecke

Am 03.02.19 um 15:26 schrieb Jan U. Hasecke:
> I get an error when I use.
> 
> \setupbackend[
>format=PDF/X-3:2003,
>intent={Coated FOGRA39 (ISO 12647-2:2004)},
>]
> 
> backend > profiles > profile specification 'Coated FOGRA39 (ISO
> 12647-2:2004)' loaded from
> '/home/juh/context/tex/texmf-context/colors/icc/context/colorprofiles.xml'
> backend > profiles > error, couldn't locate profile
> 'CoatedFOGRA39.icc'
> backend > profiles > invalid output intent 'Coated FOGRA39 (ISO
> 12647-2:2004)'
> 
> I copied the file CoatedFOGRA39.icc to
> 
> context/tex/texmf-context/colors/icc/profiles
> 
> My setup worked before.
> 
> Using the intent "ISO Coated v2 300\letterpercent\space (ECI)" I get no
> error.
> 

I solved the problem by installing the color profiles on my debian
machine so that they are in ~/.colors/icc

Then I exported in .bashrc

export OSCOLORDIR="$HOME/.color/icc"

This solved the issue here.

But as I am working in a group I would like to have a solution that
works without installing the color profiles locally.

juh

___
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 profile not found

2019-02-03 Thread Jan U. Hasecke
I get an error when I use.

\setupbackend[
   format=PDF/X-3:2003,
   intent={Coated FOGRA39 (ISO 12647-2:2004)},
   ]

backend > profiles > profile specification 'Coated FOGRA39 (ISO
12647-2:2004)' loaded from
'/home/juh/context/tex/texmf-context/colors/icc/context/colorprofiles.xml'
backend > profiles > error, couldn't locate profile
'CoatedFOGRA39.icc'
backend > profiles > invalid output intent 'Coated FOGRA39 (ISO
12647-2:2004)'

I copied the file CoatedFOGRA39.icc to

context/tex/texmf-context/colors/icc/profiles

My setup worked before.

Using the intent "ISO Coated v2 300\letterpercent\space (ECI)" I get no
error.

TIA
juh
___
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] Where to put icc color profiles

2019-02-03 Thread Jan U. Hasecke
Hi all,

I downloaded some color profiles and stored them in:

/context/tex/texmf-context/colors/icc/profiles

But they get overwritten, when I update context.

Can I put color profiles in the working folder of my project. And how do
I access them with setupbackend?

TIA
juh

-- 
Software-Dokumentation mit Sphinx
http://www.amazon.de/dp/1497448689/
Paperback: 224 Seiten
___
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] Title from setupinteraction used in header

2019-02-03 Thread Jan U. Hasecke
Hi all,

it is quite easy to have chapters in headers and footers as shows this
example.

\setuppagenumbering[location=]

\setupheadertexts
[text]
[chapter]
[]
[]
[chapter]

\setupinteraction
[title={foo},
subtitle={bar},
author={Peter},
keyword={context}]

\starttext
\startchapter[title={chapter title},]
\input lorem
\stopchapter

\startchapter[title={another chapter title},]
\input lorem
\stopchapter
\stoptext


How can I insert title, subtitle and author from setupinteraction into
headertexts?


Background: authors shall define title, subtitle etc in the product file
with setupinteraction (or a better method if available).

In the environment file I want to insert theses informations into
headers and footers.


TIA
juh
___
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] Manipulating the left blank page when chapter starts on the right page

2019-01-17 Thread Jan U. Hasecke
Am 14.01.19 um 19:25 schrieb Wolfgang Schuster:

> 
>> I'll try to wikify this later this week.

I wikified it here:
https://wiki.contextgarden.net/Command/setuphead

Is there a way to suppress the context output?
The output does not show the effect.

juh
___
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] Manipulating the left blank page when chapter starts on the right page

2019-01-13 Thread Jan U. Hasecke

Am 13.01.19 um 16:56 schrieb Wolfgang Schuster:

> Here is a example which shows how you can change the background color
> of a empty page before the chapter title.
> 
> \setuppagenumbering
>   [alternative=doublesided]
> 
> \startsetups [chapter:before]
>   \doifoddpageelse
>     {}
>     {\pushbackground[page]
>  \setupbackgrounds[page][background=color,backgroundcolor=black]
>  \page[empty,right]
>  \popbackground}
> \stopsetups
> 
> \setuphead
>   [chapter]
>   [page=yes,
>    before=\directsetup{chapter:before}]
> 
> \starttext
> 
> \startchapter[title={Knuth}]
> \dorecurse{10}{\samplefile{knuth}}
> \stopchapter
> 
> \startchapter[title={Zapf}]
> \dorecurse{10}{\samplefile{zapf}}
> \stopchapter
> 
> \startchapter[title={Ward}]
> \dorecurse{10}{\samplefile{ward}}
> \stopchapter
> 
> \stoptext

Thanks a lot Wolfgang!

This was just the thing I was looking for. These setups seems to be the
golden bullet in ConTeXt but I often have difficulties to understand the
mechanism.

I'll try to wikify this later this week.

The push-pop-background pair is mentionend in x-setups-overview together
with some other push-pop-pairs or push single commands. Are they
documented somewhere?

juh

___
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] Manipulating the left blank page when chapter starts on the right page

2019-01-12 Thread Jan U. Hasecke
Hi Aditya,

Am 12.01.19 um 20:11 schrieb Aditya Mahajan:
> On Sat, 12 Jan 2019, Jan U. Hasecke wrote:
> 
>> Hi all,
>>
>> in my document \startchapter and \starttitle starts a new chapter on the
>> right (odd) page. So sometimes, there is a blank even page just before a
>> new chapter.
>>
>> I would like to manipulate this blank even page.
>>
>> There are several things I would like to do, eg. having no headers and
>> footers, setting the background color to a named color, placing an image
>> or some graphics on the page.
>>
>> Is there a way to define such a page, name it and call it in
>> \startchapter so that it is placed on the left side.
> 
> See https://tex.stackexchange.com/q/457428/323

Thanks a lot, but I wasn't looking for a way to just delete page numbers
but to style the empty page in arbitrary ways.

Maybe it is better to do this manually.

I would let chapter open on even pages too and just insert a styled page
by hand.

juh
___
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] Manipulating the left blank page when chapter starts on the right page

2019-01-12 Thread Jan U. Hasecke
Hi all,

in my document \startchapter and \starttitle starts a new chapter on the
right (odd) page. So sometimes, there is a blank even page just before a
new chapter.

I would like to manipulate this blank even page.

There are several things I would like to do, eg. having no headers and
footers, setting the background color to a named color, placing an image
or some graphics on the page.

Is there a way to define such a page, name it and call it in
\startchapter so that it is placed on the left side.

I would like to use the blank pages in an attractive way. Imagine eg. a
title image on the left page while the headline of the chapter is on the
right page.

TIA
juh

___
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] Bibliography not rendered

2019-01-12 Thread Jan U. Hasecke
Hi Alan,

thanks for the quick answer.

Am 11.01.19 um 17:26 schrieb Alan Braslau:
> @misc{} is not a defined category using the "default" rendering style (which 
> only recognizes @book and @article). See publ-imp-default.lua
> 

Is there a way to use other styles?

juh
___
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] Bibliography not rendered

2019-01-11 Thread Jan U. Hasecke
Sorry, I forgot to include the pdf I get.

Am 11.01.19 um 16:44 schrieb Jan U. Hasecke:
> Hi,
> 
> using the first example from mkiv-publications.pdf I don't get a
> rendered bibliography.
> 
> juh
> 



mwe.pdf
Description: Adobe PDF document
___
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] Bibliography not rendered

2019-01-11 Thread Jan U. Hasecke
Hi,

using the first example from mkiv-publications.pdf I don't get a
rendered bibliography.

juh

@misc{greenpeace_dell_2017,
	title = {Dell},
	url = {http://www.greenpeace.org/usa/wp-content/uploads/2017/10/GGE2017_Dell.pdf},
	publisher = {Greenpeace Guide to greener Electronics – 2017 Company Report Card},
	editor = {Greenpeace},
	urldate = {2019-01-07},
	date = {2017},
	file = {GGE2017_Dell.pdf:/home/juh/.mozilla/firefox/1momrzyf.default-1472492810914/zotero/storage/MJ3ST9YB/GGE2017_Dell.pdf:application/pdf}
}

@misc{matrix-entwicklungsteam_arbeitsbuch_2017,
	title = {Arbeitsbuch zur Gemeinwohlbilanz 5.0 Kompakt},
	url = {https://www.ecogood.org/media/filer_public/04/8e/048e113f-5802-494e-866b-c3f8c8a6a674/gwoe_arbeitsbuch_5_0_kompaktbilanz.pdf},
	publisher = {Gemeinwohl-Ökonomie e.V.},
	author = {Blachfellner, Manfred and Drosg-Plöckinger, Angela and Fieber, Susanna and Hofielen, Gerd and Knakrügge, Lutz and Kofranek, Manfred and Koloo, Sigrid and Loy, Christian and Rüther, Christian and Sennes, Dominik and Sörgel, Regina and Teriete, Moritz},
	editor = {Matrix-Entwicklungsteam},
	urldate = {2019-01-07},
	date = {2017},
	file = {gwoe_arbeitsbuch_5_0_kompaktbilanz.pdf:/home/juh/.mozilla/firefox/1momrzyf.default-1472492810914/zotero/storage/7HD7PQ2Y/gwoe_arbeitsbuch_5_0_kompaktbilanz.pdf:application/pdf}
}\usebtxdataset[mwe.bib]
\starttext
\startbodymatter
a citation: \cite[matrix-entwicklungsteam_arbeitsbuch_2017,greenpeace_dell_2017]
\stopbodymatter
\startbackmatter
\startchapter[title=Bibliography]
\placelistofpublications
\stopchapter
\stopbackmatter
\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
___

Re: [NTG-context] commands manual (setup-en.pdf) organized by topic

2018-12-05 Thread Jan U. Hasecke
Am 05.12.18 um 19:01 schrieb Wolfgang Schuster:
> You can get a list of the files with
> 
>   context --extra=setups --list
> 
> and create a document with a limited number of commands
> from certain categories with
> 
>   context --extra=setups delimitedtext,narrow

Cool! Neat factsheet to print out, if you give a workshop about ConTeXt.



I am looking for a small text explaining the naming system of the
commands, because I only partly understand the interdependence of eg.
singular and plural commands.

What is the difference of singular and plural commands like \setupfloat
and \setupfloats. Does the singular always inherit from the plural? And why?

I have a limited understanding of the \defineX \setupX and \X line, but
would love to hear more.

And lately I often see here that setups are named like "foo:bar". What
is the meaning of the double colon?

So what I would often need is a How-to-read-the-setup-en-pdf.

A Happy St Nicholas' Day
juh

___
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] align in setuphead

2018-12-05 Thread Jan U. Hasecke
Hi all,

why aligns left to right and right to left in this example?

\setuphead [title] [align=left]
\starttext

\starttitle[title=Test]

\stoptitle

\stoptext


TIA
juh
___
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] Issues with RGB to CMYK conversion with color profiles

2018-11-21 Thread Jan U. Hasecke
Am 19.11.18 um 11:14 schrieb luigi scarso:

> Perhaps this is still useful 
>  https://www.tug.org/TUGboat/tb31-3/tb99scarso.pdf

Thanks a lot for the hint.

I don't understand the equations but at least I found transicc to
calculate color conversions.

What precision is useful in the wild?

I now use three digits after the decimal point, eg.:

\definecolor [hs-logoblau] [c=0.976, m=0.665, y=0.028, k=0.116]

juh
___
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] Issues with RGB to CMYK conversion with color profiles (was: Colormanagement)

2018-11-14 Thread Jan U. Hasecke
Am 14.11.18 um 16:04 schrieb Peter Rolf:
> Mh, the file size of "ISOcoated_v2_300_eci.icc" is around 1.7MB. I
> highly doubt that ConTeXt can compress it into a 10KB PDF.
> 
> But I'm not so sure if PDF/X-3 needs embedding (there was an exception).
> Never used it (only PDF/X-4p) and I can't remember the specifications
> (all those stuff was added over 8 years ago).
> 
> I just assume you have installed the icc profiles properly (needs a
> manual installation!) :D

There are some profiles in the context installation.

At least something was found:

backend > profiles > profile specification
'ISOcoated_v2_300_eci.icc' loaded from
'/home/juh/context/tex/texmf-context/colors/icc/context/colorprofiles.xml'
backend > profiles > omitting reference to profile for intent
'ISO Coated v2 300% (ECI)'

But, yes the size is too small to have the whole profile incorporated.

juh
___
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] Issues with RGB to CMYK conversion with color profiles (was: Colormanagement)

2018-11-14 Thread Jan U. Hasecke
Thanks a lot, Peter.

Am 14.11.18 um 14:58 schrieb Peter Rolf:
> Hi Jan,
> 
> I donno if things have changed (ConTeXt is a fast moving target), so
> take my answers with a grain of salt.
> 
> (1)
> AFAIK there is no ACTIVE color management in ConTeXt in the sense that
> there is an automatic color conversion from one profiled(!) colorspace
> into another profiled color space. This means that all given colors
> (objects) have to be in the correct (profiled) color space already!
> 
> Objects with embedded color profiles (e.g. a PDF bitmap graphic with icc
> profile) will use those. Objects without a profile will use the
> corresponding "default" color space profiles. These default color space
> profiles can be defined via "profile" in \setupbackend.
> This way every color in the PDF is defined properly.

This would clarify some of the issues.

When I define rgb colors AND use not-print-modus I get the right rgb
colors in the pdf.

When I define cmyk colors AND use print modus I get colors that might be
correct (tested next week)

But obviously it is not possible to define both color spaces in
\definecolor because I don't get the same colors in the pdf as with the
cmyk-only defined file.

Maybe I misunderstood this, I've got a hint here, that I could define
rgb and cmyk in the same \definecolor and choose the right color space
in \setupcolors.

The correct method of defining rgb AND cmyk in the same file would be to
put the definecolor command inside a startstopmode-environment.

Can someone confirm this?

> 
> (2)
> 
> I think so. Can't test, because my Windows 10 is beyond repair after
> three "upgrades" and Acrobat is not working properly anymore.
> 
> (3)
> 
> Judging from the size of the final PDF, the icc profile is not embedded.
> The profiles have to be installed in "the right place" (this includes
> ConTeXt but also the PDF viewer software).
> 
> See "ICC profiles" section at
> 
> https://wiki.contextgarden.net/PDFX
> 

With --mode=print (which uses the color profiles) the pdf get bigger.
>10.000 compared to 8.000 without the mode. So I would guess that they
are included.

I hope I get this sorted out, because I want to print a series of
folders and other print products with ConTeXt in the near future.

juh

> (5) see (1) and (3)
> 
> 
> 
> Hope this helps,
> 
> 
> Peter
> 
> 
> Am 2018-11-14 um 11:39 schrieb Jan U. Hasecke:
>> Hi all,
>>
>> attached you find my colormanagement tests and I need your help to
>> understand and debug the situation.
>>
>> I am testing together with a friend of mine, a professional
>> colormanager, who does not know ConTeXt.
>>
>>
>> There are several files in the archive:
>>
>> The differences in the files are the color definition and the color
>> profile used.
>>
>> - rgb-xxx.tex – colors are defined with RGB values only.
>>
>> - rgb-cmyk-xxx.tex – colors are defined with RGB and CMYK values.
>>
>>   The cmyk colors are derived from the rgb values using gimp and the
>>   color profiles sRGB/ISOCoated
>>
>> - cmyk-xxx.tex – colors are defined with CMYK values only.
>>
>> The xxx stand for two color profiles: iso-coated and swop.
>>
>> What I see is this:
>>
>> Colors in pdfs are the same no matter what color profile I choose.
>>
>> With rgb values and rgb/cmyk values I get the same colors in pdf (the
>> wrong ones).
>>
>> With cmyk values only I get other colors in pdf. Next week my friend
>> will test if these are the right ones.
>>
>> I have many questions:
>>
>> 1. Is colormanagement working in ConTeXt at all?
>> 2. Is my code correct?
>> 3. Why do pdfs with different color profiles show the same colors?
>> 4. Why does ConTeXt not take the cmyk colors from \definecolor when
>> there are rgb values as well?
>> 5. Where can I define a coresponding rgb profile? In Scribus you have to
>> define two profiles (eg. sRGB and ISOCoated) to make colormanagement work.
>>
>> TIA
>> juh
>> ___
>> 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] Issues with RGB to CMYK conversion with color profiles (was: Colormanagement)

2018-11-14 Thread Jan U. Hasecke
I forgot the archive. :-(

Am 14.11.18 um 11:39 schrieb Jan U. Hasecke:
> Hi all,
> 
> attached you find my colormanagement tests and I need your help to
> understand and debug the situation.
> 
> I am testing together with a friend of mine, a professional
> colormanager, who does not know ConTeXt.
> 
> 
> There are several files in the archive:
> 
> The differences in the files are the color definition and the color
> profile used.
> 
> - rgb-xxx.tex – colors are defined with RGB values only.
> 
> - rgb-cmyk-xxx.tex – colors are defined with RGB and CMYK values.
> 
>   The cmyk colors are derived from the rgb values using gimp and the
>   color profiles sRGB/ISOCoated
> 
> - cmyk-xxx.tex – colors are defined with CMYK values only.
> 
> The xxx stand for two color profiles: iso-coated and swop.
> 
> What I see is this:
> 
> Colors in pdfs are the same no matter what color profile I choose.
> 
> With rgb values and rgb/cmyk values I get the same colors in pdf (the
> wrong ones).
> 
> With cmyk values only I get other colors in pdf. Next week my friend
> will test if these are the right ones.
> 
> I have many questions:
> 
> 1. Is colormanagement working in ConTeXt at all?
> 2. Is my code correct?
> 3. Why do pdfs with different color profiles show the same colors?
> 4. Why does ConTeXt not take the cmyk colors from \definecolor when
> there are rgb values as well?
> 5. Where can I define a coresponding rgb profile? In Scribus you have to
> define two profiles (eg. sRGB and ISOCoated) to make colormanagement work.
> 
> TIA
> juh
> ___
> 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
> ___
> 

<>
___
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] Issues with RGB to CMYK conversion with color profiles (was: Colormanagement)

2018-11-14 Thread Jan U. Hasecke
Hi all,

attached you find my colormanagement tests and I need your help to
understand and debug the situation.

I am testing together with a friend of mine, a professional
colormanager, who does not know ConTeXt.


There are several files in the archive:

The differences in the files are the color definition and the color
profile used.

- rgb-xxx.tex – colors are defined with RGB values only.

- rgb-cmyk-xxx.tex – colors are defined with RGB and CMYK values.

  The cmyk colors are derived from the rgb values using gimp and the
  color profiles sRGB/ISOCoated

- cmyk-xxx.tex – colors are defined with CMYK values only.

The xxx stand for two color profiles: iso-coated and swop.

What I see is this:

Colors in pdfs are the same no matter what color profile I choose.

With rgb values and rgb/cmyk values I get the same colors in pdf (the
wrong ones).

With cmyk values only I get other colors in pdf. Next week my friend
will test if these are the right ones.

I have many questions:

1. Is colormanagement working in ConTeXt at all?
2. Is my code correct?
3. Why do pdfs with different color profiles show the same colors?
4. Why does ConTeXt not take the cmyk colors from \definecolor when
there are rgb values as well?
5. Where can I define a coresponding rgb profile? In Scribus you have to
define two profiles (eg. sRGB and ISOCoated) to make colormanagement work.

TIA
juh
___
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] Issues with RGB to CMYK conversion with color profiles (was: Colormanagement)

2018-11-12 Thread Jan U. Hasecke
Hi all,

with the following file I tested the color conversion of context.

I get the same CMYK-values in the output pdf file using different color
profiles. A friend of mine can test the color values of PDF with a
special software.

My guess: the profiles are not used during pdf generation.
You can test this by commenting/uncommenting the other profile.

I created the files with

context --mode=print example.tex

My context version is
mtx-context | ConTeXt Process Management 1.02
mtx-context | current version: 2018.08.30 18:41


Is this the correct way of producing cmyk-pdfs?

I am missing the declaration of the RGB color profile. When doing color
management in Scribus I define two profiles: one for RGB and one for
CMYK. AFAIK you need both to convert rgb to cmyk.

Any hints?
juh

--- example.tex ---

\definecolor  [hs-logoblau]   [r=0.000, g=0.314, b=0.580]
\definecolor  [hs-dunkelblau] [r=0.258, g=0.474, b=0.737]
\definecolor  [hs-hellblau]   [r=0.6, g=0.737, b=0.858]
\definecolor  [hs-orange] [r=0.866, g=0.286, b=0.003]

\startnotmode[print]
\setupcolors[cmyk=no,rgb=yes]
\stopnotmode

\startmode[print]
\setupcolors[cmyk=yes,rgb=no]
\setupbackend[
format=PDF/X-1a:2003,
%   intent={ISO Coated v2 300\letterpercent\space (ECI)},
   intent={SWOP2006_Coated3v2.icc},
   ]
\stopmode

\setuppapersize [A4] [A4]

\starttext



\blackrule[width=3cm,height=1cm,depth=0pt,color=hs-orange] HS Orange
r=0.866, g=0.286, b=0.003
\blank

\blackrule[width=3cm,height=1cm,depth=0pt,color=hs-logoblau] HS Logoblau
r=0.000, g=0.314, b=0.580
\blank

\blackrule[width=3cm,height=1cm,depth=0pt,color=hs-dunkelblau] HS
Dunkelblau r=0.258, g=0.474, b=0.737
\blank

\blackrule[width=3cm,height=1cm,depth=0pt,color=hs-hellblau] HS Hellblau
r=0.6, g=0.737, b=0.858


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

Re: [NTG-context] Colormanagement

2018-11-10 Thread Jan U. Hasecke
Am 09.11.18 um 17:20 schrieb luigi scarso:
> I think you should use the best colorspace (rgb )
> and let the print shop do its job -- of course this means that you have
> signed  their sample (hard proof) of your project.
> 

I really tend to do this. I am currently exploring the color management
system of ConTeXt together with a friend you is working as a color
manager in print industry.

And my first try was a failure. The cmyk values in the resulting pdf
file (with color profile) differs from the values we calculated (using
the same color profile in Gimp).

But we have to investigate  a bit further, so don't panic. Maybe I the
fault was mine.

Is there a test case tex file we could use to test the color management?

juh
___
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] Colormanagement

2018-11-10 Thread Jan U. Hasecke
Am 09.11.18 um 17:18 schrieb Tomas Hala:
> Hi, 
> 
> by default, really not.
> 
> At http://wiki.inkscape.org/wiki/index.php/Color_management
> and http://wiki.inkscape.org/wiki/index.php/ExportPDFCMYK
> there some instructions how to convert files to CMYK,
> or how to install some extension, respectively.
> But I have not test these ways yet.
> 

These Python scripts does not work here. :-(

But I could ask my designer to convert the RGB-SVG into CMYK-PDF.

juh
___
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] Colormanagement

2018-11-09 Thread Jan U. Hasecke
Hi all,

I defined some colors with \definecolor like this:

\definecolor [myblue] [r=0.000, g=0.314, b=0.580, c=0.98,  m=0.67,
y=0.03, k=0.12]

\startnotmode[print]
\setupcolors[cmyk=no,rgb=yes]
\stopnotmode

\startmode[print]
\setupcolors[cmyk=yes,rgb=no]
\setupbackend[
format=PDF/X-3:2003,
   intent={ISO Coated v2 300\letterpercent\space (ECI)},
   ]
\stopmode

When I use "context" or "context --mode=print" everything works as expected.

But! I have SVG icons I want to use in the document. They contain the
above defined rgb colors.

When I use --mode=print I get different colors for the SVG icons.

So context converts the SVG files to PDFs but does not change the colors
accordingly to CMYK.

What are my options? Do I miss something?

1. Let the designer produce icons in pdf with the given cmyk colors.

2. Don't use cmyk colors at all.

In fact on my home printer the printed rgb colors look brighter than the
cmyk colors. This might change in the print shop when they print with
the right color profile, but it makes me nervous.

juh


___
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] German introduction to context

2018-11-06 Thread Jan U. Hasecke
Hi Axel,

thanks a lot for this introduction.

Am 02.11.18 um 10:07 schrieb Axel Kielhorn:
> Hello!
> 
> As promised I’ve uploaded my ConTeXt introduction to github.
> You can find it at 
> https://github.com/AKielhorn/Context-Intro
> 
> I used MkIV syntax for \startsection \stopsection but gave up on 
> \startparagraph \stoparagraph.
> 
> Is there a way to auto convert that or do I have to add these command once I 
> want to generate tagged PDF?
> 
> Feel free to comment, this is the second time I use ConTeXt and I wanted to 
> keep notes about the things I need.
> 
> Future plan:
> Learn more about bibliography.
> Create PDF/A (or /UA).
> More math as I need it.
> 
> Alternative environments to change the look.

If you are familiar with LaTeX (as a user) many things are obvious in
ConTeXt, at least for me.

Early showstoppers – at least for me – are configuration and the
definition of styles etc. At first you think, wow, this key-value
pairing is nice, but then you realize that you never know which keys are
available and what values can be applied.

What kind of brackets must be used?
Why do some commands have two, three, four brackets for options?

The next showstopper is the define-setup system and the possibility to
give names to your macros. I always thought: Well, there is a well
defined system in it, I am only too dumb to grasp it. I discovered
setup-en.pdf and tried to figure out how to read it. I discovered
showsetup only to see that \showsetup{setuphead} just gives me a list of
options but no explanation. It would be great if showsetup would give
explanations to the keys and values.

I like to learn using try-and-error, but I would love to have a
systematic introduction to the concepts of ConTeXt.

Maybe you can add some of this in your introduction to make it a
starting point for users speaking German.
juh
___
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 configure context command in Emacs

2018-10-24 Thread Jan U. Hasecke
Hello,

I hope there are some Emacs users out there. ;-)

I can use emacs with context-mode when I start the program like this:

. ~/context/tex/setuptex ; emacs &

I could not find a way to set this in my emacs init file. Neither of the
ways described here worked for me:

https://www.emacswiki.org/emacs/ExecPath

I set this in .bashrc:

if [-f ~/context/tex/setuptex ]; then
   . ~/context/tex/setuptex
fi

to always have context available in a shell and in emacs if I start it
from bash.

Starting Emacs via the start menu of Gnome results in an Emacs that does
not know ConTeXt.

I found some hints how to source .bashrc in emacs but this only affects
the emacs shell not the command calling from within AucTeX.

Has anyone found a solution for this?

juh


___
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] Homebrew packaging for macOS

2018-10-07 Thread Jan U. Hasecke
On 07.10.18 01:39, Andrew Dunning wrote:
> I think it might be possible to get the script version into Homebrew Cask as 
> it stands, but it would be nicer if it could get directly into Homebrew if 
> that is possible.

This project
https://pi-hole.net/

has the install command line right on the front page.

I think we could have something like this on the frontpage of the wiki
for quick installation.

A script that does all this:

mkdir ~/context
cd ~/context
wget http://minimals.contextgarden.net/setup/first-setup.sh
sh ./first-setup.sh --modules=all


So people could install the latest beta with something like this:

curl http://minimals.contextgarden.net/setup/first-setup.sh | bash


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

  1   2   >