Evince and Okular (Linux) open the PDF output without warnings nor issues.
Jairo :)
El mar., 7 de jul. de 2020 a la(s) 17:50, Gerben Wierda (
gerben.wie...@rna.nl) escribió:
> The following code:
>
> \startMPpage[instance=doublefun]
> draw (0,0)--(100,0) dashed withdots;
> \stopMPpage
>
>
The following code:
\startMPpage[instance=doublefun]
draw (0,0)--(100,0) dashed withdots;
\stopMPpage
When run through LuaMetaTeX produces a PDF about which Acrobat complains:
The dimensions of this page are out-of-range. Page content might be
truncated.
and Adobe InDesign cannot
Yep, now it finally works. Certainly it requires a few more lines. I was
going to rewrite some TikZ code which was too dependent on LaTeX and
xstring was the last stone on the shoe. Thank you a lot, Phelype and
Wolfgang (I didn't know about push/popmacro either and now it's in my to-do
readings).
On Tue, Jul 7, 2020 at 6:21 PM Jairo A. del Rio wrote:
>
> Thank, Wolfgang! Both methods work, but both fail with the following example:
>
> \pushmacro\unexpanded
> \let\unexpanded\normalunexpanded
> \input xstring
> \popmacro\unexpanded
> \starttext
> \StrGobbleLeft{bcdef}{4}
> \stoptext
>
> The
Thank, Wolfgang! Both methods work, but both fail with the following
example:
\pushmacro\unexpanded
\let\unexpanded\normalunexpanded
\input xstring
\popmacro\unexpanded
\starttext
\StrGobbleLeft{bcdef}{4}
\stoptext
The log says:
tex error > tex error on line 6 in file ./tests.tex: ! This can't
Thanks Wolfgang!
Your patch seems to fix also another issue with the cross references in ConTeXt
at least on MacOS and TeXShop. In principle a document typeset with TeXShop, in
the resulting PDF when the pointer hovers above a link to a reference, TeXShop
shows a small pop-up window where the
Dear list,
I have the following sample:
\startbuffer[demo]
Heading
list
Heading
list
list
Heading
list
list
list
On Tue, Jul 7, 2020 at 5:19 PM Wolfgang Schuster
wrote:
>
> Bad idea because ConTeXt also changes the meaning of \protected (you can
> use \normalprotected to get the primitve).
Oops, forgot about that one.
> A better version is
>
> \pushmacro\unexpanded
> \let\unexpanded\normalunexpanded
>
Phelype Oleinik schrieb am 07.07.2020 um 20:53:
Hi Jairo,
ConTeXt's \unexpanded is e-TeX's \protected, so the error boils down to
something like: \edef\x{\unexpanded{#}}, which works in Plain but not in
ConTeXt.
Usually packages that claim to be generic have to cope with that.
xstring would
I've tried with a wrapper and it seems to work fine. However, changing
definitions "on the fly" to make xstring usable seems to break things in
ConTeXt... Whatever. I guess I will have to find out other command
redefinitions in ConTeXt.
Thank you very much, Phelype.
Jairo :)
El mar., 7 de jul.
Hi Jairo,
ConTeXt's \unexpanded is e-TeX's \protected, so the error boils down to
something like: \edef\x{\unexpanded{#}}, which works in Plain but not in
ConTeXt.
Usually packages that claim to be generic have to cope with that.
xstring would need to do (in a ConTeXt-specific loader):
Reading about macro bundles meant to be generic (format agnostic), some of
them work in plain/LaTeX, but crash when loaded on ConTeXt. The following
happens with xstring.tex
tex error > tex error on line 372 in file xstring.tex: ! Illegal parameter
number in definition of \xs_reserved_C
1
> Am 07.07.2020 um 19:27 schrieb Fabrice Couvreur :
>
> Hello,
> I want a vertical space between the label and the chapter title: is this the
> right way to proceed ?
Why not? It seems to work. What’s your problem?
BTW I’d set \mainlanguage[fr]
Hraban
Hello,
I want a vertical space between the label and the chapter title: is this
the right way to proceed ?
Thank you.
Fabrice
\setuplabeltext[chapter=Chapitre~]
\unexpanded\def\Title#1#2{\framed[frame=off,width=fit,align=flushleft]{#1\blank#2}}
\setuphead
[chapter]
[style=\bfc,
14 matches
Mail list logo