[NTG-context] Attempting to Generate PDF/A in LMTX

2023-10-03 Thread Jin-Ho King
Following the instructions on https://wiki.contextgarden.net/PDF/A, I am 
receiving errors that the *.icc files cannot be located. I have saved the *.icc 
files in ~/context-osx-arm64/tex/texmf-context/colors/icc/profiles per the 
instructions. Here's an excerpt from the log:

backend > profiles > profile specification 'default_cmyk.icc' loaded 
from 
'/Users/jinho/context-osx-arm64/tex/texmf-context/colors/icc/context/colorprofiles.xml'
backend > profiles > error, couldn't locate profile 'default_cmyk.icc'
backend > profiles > no default profile 'default_cmyk.icc' for 
colorspace 'cmyk'
backend > profiles > profile specification 'default_rgb.icc' loaded 
from 
'/Users/jinho/context-osx-arm64/tex/texmf-context/colors/icc/context/colorprofiles.xml'
backend > profiles > error, couldn't locate profile 'default_rgb.icc'
backend > profiles > no default profile 'default_rgb.icc' for 
colorspace 'rgb'
backend > profiles > profile specification 'default_gray.icc' loaded 
from 
'/Users/jinho/context-osx-arm64/tex/texmf-context/colors/icc/context/colorprofiles.xml'
backend > profiles > error, couldn't locate profile 'default_gray.icc'
backend > profiles > no default profile 'default_gray.icc' for 
colorspace 'gray'
backend > profiles > profile specification 'ISO coated v2 300% (ECI)' 
loaded from 
'/Users/jinho/context-osx-arm64/tex/texmf-context/colors/icc/context/colorprofiles.xml'
backend > profiles > error, couldn't locate profile 
'ISOcoated_v2_300_eci.icc'
backend > profiles > invalid output intent 'ISO Coated v2 300% (ECI)'

Here is a MWE that generates these errors:

setupinteraction
  [title=TITLE,
   subtitle=SUBTITLE,
   author=AUTHOR,
   keyword={{KEYWORD1, KEYWORD2}, KEYWORD3}]

%% For PDF/A
\setupbackend[
format={pdf/a-1b:2005}, % or pdf/a-1a:2005
profile={default_cmyk.icc,default_rgb.icc,default_gray.icc},
intent=ISO coated v2 300\letterpercent\space (ECI)]

%% Tagged PDF
%% method=auto ==> default tags by Adobe
\setupbackend[export=yes]
\setupstructure[state=start,method=auto]

\starttext

\chapter[chap:testing]{Testing}

\input knuth

\input tufte

\input knuth

\input tufte

\input knuth

\input tufte

\stoptext


What seems to be going wrong? Is the software looking for the *.icc profiles in 
a different place?

Thank you!

~ Jin-Ho.

--
"Ad astra per alas porci."
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: bibliography questions

2023-10-03 Thread Aditya Mahajan
On Tue, 3 Oct 2023, Henning Hraban Ramm wrote:

> For my ConTeXt book, I thought it would make sense, and I would jump through
> some hoops just to use the system, but
> – most sources that I want to list are never quoted (method=dataset)
> – I would need to define my own rendering, e.g. don’t like the handling of
> names
> – I need additional fields (custom rendering again)
> – if I refer to sources, I want a URL or file path in a footnote (custom cite 
> wrapper macro)

When I have to write your own rendering, I find it more convenient to use 
XML/JSON (or even a lua table) as a starting format.

Aditya___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Using Farad with \unit messes up feet, µ not recognised as prefix

2023-10-03 Thread Marco Patzer
On Tue, 3 Oct 2023 16:27:22 +0200
Marco Patzer  wrote:

> What about:
> 
> \unit{10 um}
> \unit{10 µm}
> 
> Can I assign µ to mean micro (prefix)?

Found it:

\registerunit [prefix] [µ=micro]

\starttext
  \unit{10 micro meter} \crlf
  \unit{10 µm}
\stoptext

Should this be the default (µ assigned to micro)?

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Chemistry in LMTX

2023-10-03 Thread Henning Hraban Ramm

Am 03.10.23 um 02:06 schrieb Alan Braslau:

On Sun, 1 Oct 2023 10:49:34 +0200
Henning Hraban Ramm  wrote:


chem-str.lua seems to be an updated version by Alan & Hans

Did I miss something?


work in progress ... i'm working on that (part of the math upgrade)
so best wait till we're stable


Ok, thank you


The current code is not very broken - I just used it extensively in a
book that was published. There are many quarks in its conception,
dating from the original MKII model.


But the current syntax is not documented – at least the examples in the 
wiki page don’t work any more. Can you fix them?


(I’m not really interested in chemistry myself, I just want to improve 
the documentation – and also show, what ConTeXt can do.)


Hraban

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: bibliography questions

2023-10-03 Thread Henning Hraban Ramm

Am 03.10.23 um 02:02 schrieb Alan Braslau:

On Mon, 2 Oct 2023 13:13:52 +0200
Henning Hraban Ramm  wrote:


Consider:
@Book {rattenhka,
author = "Bettina von Arnim and Gisela von Arnim",
title = "Das Leben der Hochgräfin Gritta von Rattenzuhausbeiuns",
…
}

The authors are usually given as “Bettina and Gisela von Arnim”
(mother and daughter; similar “Jacob and Wilhelm Grimm” as brothers
or “Bettina and Achim von Arnim” as a couple) – is there a good
solution for related authors?


Multiple authors should be treated as multiple authors. That they are
related is not and should not be a consideration in citing works. At
least this is the practice that I know of for academic texts.

You can cheat and try to define one author with a combined first name,
like
author={Eames, Ray & Earl},
but I don't know how that parses as I have never tried it; "and" is a
reserved token used to define multiple authors. I wouldn't do it as I
can think of many examples (Bjaer & Bjaer) where we give both credit,
individually.


Thank you.

It seems like database solutions like BibTeX & Cie are generally not 
suitable for quoting books as they were published – and that’s important 
in the contexts of “my” authors (literary studies, history).


For my ConTeXt book, I thought it would make sense, and I would jump 
through some hoops just to use the system, but

– most sources that I want to list are never quoted (method=dataset)
– I would need to define my own rendering, e.g. don’t like the handling 
of names

– I need additional fields (custom rendering again)
– if I refer to sources, I want a URL or file path in a footnote (custom 
cite wrapper macro)
This all works fine without the btx subsysten (I just need to find 
solutions for some edge cases, or avoid them), so I probably had wrong 
ideas about bibliographies (at least in TeX).


OTOH, for my novel I can use the bib database approach for an extended 
person register; the required rendering is much less involved.


Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Using Farad with \unit messes up feet, µ not recognised as prefix

2023-10-03 Thread Marco Patzer
On Tue, 3 Oct 2023 15:42:57 +0200
Wolfgang Schuster  wrote:

> Marco Patzer schrieb am 03.10.2023 um 12:31:
> > Hi!
> >
> > I struggle using the unit Farad (unit of capacitance):  
> 
> The unit "farad" exists.

You're right \unit{10 Farad} works.

> The unit for feet is "foot" and "ft" is a combination of a prefix 
> (femto) and a unit (tonne).

Makes sense if you think about it. Never crossed my mind that ft not
meaning feet in this instance and also never contemplated the
existence of a “femto tonne”.

> You can list the individual parts in the log file with the 
> "physics.units" tracker.

That gives some insight, indeed. Thanks.

What about:

\unit{10 um}
\unit{10 µm}

Can I assign µ to mean micro (prefix)?

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Using Farad with \unit messes up feet, µ not recognised as prefix

2023-10-03 Thread Wolfgang Schuster

Marco Patzer schrieb am 03.10.2023 um 12:31:

Hi!

I struggle using the unit Farad (unit of capacitance):


The unit "farad" exists.


\starttext

%% prints 10 10 ft
\unit{10 F}
\unit{20 ft}

\registerunit  [F=Farad]
\setupunittext [Farad=F]

%% prints 10 F 20 F⋅t
\unit{10 F}
\unit{20 ft}

\stoptext

When registering Farad as new unit it messes up feet. This looks
like a bug to me, since “20 ft” does not contain a capital “F” and
units are case-sensitive. How to use Farad correctly without messing
up other units?


The unit for feet is "foot" and "ft" is a combination of a prefix 
(femto) and a unit (tonne).


You can list the individual parts in the log file with the 
"physics.units" tracker.


To get a short unit you have to use the following method (it works 
because farad exists):


    \registerunitshortcut [F=farad]

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Using Farad with \unit messes up feet, µ not recognised as prefix

2023-10-03 Thread Marco Patzer
Hi!

I struggle using the unit Farad (unit of capacitance):

\starttext

%% prints 10 10 ft
\unit{10 F}
\unit{20 ft}

\registerunit  [F=Farad]
\setupunittext [Farad=F]

%% prints 10 F 20 F⋅t
\unit{10 F}
\unit{20 ft}

\stoptext

When registering Farad as new unit it messes up feet. This looks
like a bug to me, since “20 ft” does not contain a capital “F” and
units are case-sensitive. How to use Farad correctly without messing
up other units?

2nd issue: The prefix “µ” is not recognised:

\starttext
%% prints 10 nm 20 30 µm
\unit{10 nm}
\unit{20 µm}
\unit{30 um}
\stoptext

I would expect “20 µm” to produce the correct result. Can we make
“µm” also produce the same result as “um”?

Marco

LMTX 2023.09.04 19:15
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___