unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Error when compiling refcards (emacs-25 branch)
@ 2016-11-23 11:49 Nicolas Petton
  2016-11-23 15:34 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Petton @ 2016-11-23 11:49 UTC (permalink / raw)
  To: Emacs Devel

[-- Attachment #1: Type: text/plain, Size: 1122 bytes --]

hi,

I get an error when compiling the polish refcard on emacs-25, both under
Debian Stable and Fedora 24.

On both systems I have texlive-full installed, which includes the MeX
package.

Here's the output:

    if ! kpsewhich -format=fmt mex > /dev/null && \
      ! pdfmex --version > /dev/null 2> /dev/null; then \
      echo "No mex format found."; false; \
    fi
    TEXINPUTS=".:" pdftex -output-format=pdf pl-refcard.tex
    This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2016/dev) (preloaded format=mex)
     restricted \write18 enabled.
    entering extended mode
    (./pl-refcard.tex
    This is MeX  Version 1.05  18 XII 1993  (B. Jackowski & M. Ry\'cko)
    (./pdflayout.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
    ) (./emacsver.tex) [2 columns per page] [1{/usr/share/texlive/texmf-dist/fonts/
    map/pdftex/updmap/pdftex.map}] [2] [3]
    ! MeX error: Illegal pair of characters  /r  occured.
    \P@lerr ...and /\noexpand #1\space \space occured}
                                                      \endgroup


This goes beyond my knowledge of LaTeX.

Cheers,
Nico

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error when compiling refcards (emacs-25 branch)
  2016-11-23 11:49 Error when compiling refcards (emacs-25 branch) Nicolas Petton
@ 2016-11-23 15:34 ` Eli Zaretskii
  2016-11-23 15:49   ` Nicolas Petton
  2016-11-29 17:40   ` Nicolas Petton
  0 siblings, 2 replies; 8+ messages in thread
From: Eli Zaretskii @ 2016-11-23 15:34 UTC (permalink / raw)
  To: Nicolas Petton; +Cc: emacs-devel

> From: Nicolas Petton <nicolas@petton.fr>
> Date: Wed, 23 Nov 2016 12:49:18 +0100
> 
> I get an error when compiling the polish refcard on emacs-25, both under
> Debian Stable and Fedora 24.

Please try again.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error when compiling refcards (emacs-25 branch)
  2016-11-23 15:34 ` Eli Zaretskii
@ 2016-11-23 15:49   ` Nicolas Petton
  2016-11-29 17:40   ` Nicolas Petton
  1 sibling, 0 replies; 8+ messages in thread
From: Nicolas Petton @ 2016-11-23 15:49 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 112 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

> Please try again.

It works fine now, thanks for the fix!

Cheers,
Nico

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error when compiling refcards (emacs-25 branch)
  2016-11-23 15:34 ` Eli Zaretskii
  2016-11-23 15:49   ` Nicolas Petton
@ 2016-11-29 17:40   ` Nicolas Petton
  2016-11-29 18:16     ` Eli Zaretskii
  2016-11-29 21:07     ` Stefan Monnier
  1 sibling, 2 replies; 8+ messages in thread
From: Nicolas Petton @ 2016-11-29 17:40 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 414 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

> Please try again.

Compiling the refcards to PDF works, but I'm still facing an error for
the compilation to PostScript (I do have texlive-mex installed):

  $ make -C etc/refcards ps
  [...]
  if ! kpsewhich -format=fmt mex > /dev/null; then \
    echo "No mex format found."; false; \
  fi
  No mex format found.
  Makefile:236: recipe for target 'pl-refcard.dvi' failed


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error when compiling refcards (emacs-25 branch)
  2016-11-29 17:40   ` Nicolas Petton
@ 2016-11-29 18:16     ` Eli Zaretskii
  2016-11-29 19:54       ` Nicolas Petton
  2016-11-29 21:07     ` Stefan Monnier
  1 sibling, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2016-11-29 18:16 UTC (permalink / raw)
  To: Nicolas Petton; +Cc: emacs-devel

> From: Nicolas Petton <nicolas@petton.fr>
> Cc: emacs-devel@gnu.org
> Date: Tue, 29 Nov 2016 18:40:48 +0100
> 
> Compiling the refcards to PDF works, but I'm still facing an error for
> the compilation to PostScript (I do have texlive-mex installed):
> 
>   $ make -C etc/refcards ps
>   [...]
>   if ! kpsewhich -format=fmt mex > /dev/null; then \
>     echo "No mex format found."; false; \
>   fi
>   No mex format found.
>   Makefile:236: recipe for target 'pl-refcard.dvi' failed

That's a different problem; I guess something is missing in your
installation.

I suggest to ask this on the appropriate TeX forum.  Sorry, I don't
know where that is.  Or maybe try on bug-texinfo@gnu.org, there are a
few guys there who know TeX well.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error when compiling refcards (emacs-25 branch)
  2016-11-29 18:16     ` Eli Zaretskii
@ 2016-11-29 19:54       ` Nicolas Petton
  2016-12-02 17:55         ` Sébastien Le Callonnec
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Petton @ 2016-11-29 19:54 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 519 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

> That's a different problem; I guess something is missing in your
> installation.

That was my first thought as well, but I have tried both on Fedora 25
and Debian 8, with the full TeXlive distribution installed, and I get
the exact same error. 

> I suggest to ask this on the appropriate TeX forum.  Sorry, I don't
> know where that is.  Or maybe try on bug-texinfo@gnu.org, there are a
> few guys there who know TeX well.

I'll try that, thanks.

Cheers,
Nico

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error when compiling refcards (emacs-25 branch)
  2016-11-29 17:40   ` Nicolas Petton
  2016-11-29 18:16     ` Eli Zaretskii
@ 2016-11-29 21:07     ` Stefan Monnier
  1 sibling, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2016-11-29 21:07 UTC (permalink / raw)
  To: emacs-devel

>> Please try again.
> Compiling the refcards to PDF works, but I'm still facing an error for
> the compilation to PostScript (I do have texlive-mex installed):

Do we still need to support this?


        Stefan




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error when compiling refcards (emacs-25 branch)
  2016-11-29 19:54       ` Nicolas Petton
@ 2016-12-02 17:55         ` Sébastien Le Callonnec
  0 siblings, 0 replies; 8+ messages in thread
From: Sébastien Le Callonnec @ 2016-12-02 17:55 UTC (permalink / raw)
  To: Nicolas Petton; +Cc: Eli Zaretskii, emacs-devel

Hi Nicolas,

On 2016-11-29 19:54:26, Nicolas Petton wrote:

> I'll try that, thanks.

Have you tried calling the `mex` command directly, as per the following
patch?

Regards,
Sébastien.

From cb54180b02e34fde0edf6c9d37c5fe27b6f47c75 Mon Sep 17 00:00:00 2001
From: Sebastien Le Callonnec <sebastien@weblogism.com>
Date: Fri, 2 Dec 2016 17:46:38 +0000
Subject: [PATCH] Fix pl-refcard compilation

* etc/refcards/Makefile: Use mex command directly.
* etc/refcards/pl-refcard.tex: Double forward-slash in filename for
  Mex.
---
 etc/refcards/Makefile       | 8 ++++----
 etc/refcards/pl-refcard.tex | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/etc/refcards/Makefile b/etc/refcards/Makefile
index 20057cb4b1..38f7dd30f0 100644
--- a/etc/refcards/Makefile
+++ b/etc/refcards/Makefile
@@ -227,16 +227,16 @@ orgcard.ps: orgcard.dvi
 pl_refcard_deps = pl-refcard.tex emacsver.tex pdflayout.sty
 ## Some versions of pdfmex seem to create dvi by default, hence output-format.
 pl-refcard.pdf: $(pl_refcard_deps)
-	if ! kpsewhich -format=fmt mex > /dev/null && \
+	if ! mex --version > /dev/null && \
 	  ! pdfmex --version > /dev/null 2> /dev/null; then \
 	  echo "No mex format found."; false; \
 	fi
-	$(ENVADD) pdftex -output-format=pdf pl-refcard.tex
+	$(ENVADD) pdfmex -output-format=pdf pl-refcard.tex
 pl-refcard.dvi: $(pl_refcard_deps)
-	if ! kpsewhich -format=fmt mex > /dev/null; then \
+	if ! mex --version > /dev/null; then \
 	  echo "No mex format found."; false; \
 	fi
-	$(ENVADD) tex pl-refcard.tex
+	$(ENVADD) mex pl-refcard.tex
 pl-refcard.ps: pl-refcard.dvi
 	dvips -t a4 -o $@ pl-refcard.dvi

diff --git a/etc/refcards/pl-refcard.tex b/etc/refcards/pl-refcard.tex
index df370d4b50..788bb2abea 100644
--- a/etc/refcards/pl-refcard.tex
+++ b/etc/refcards/pl-refcard.tex
@@ -90,7 +90,7 @@

 Released under the terms of the GNU General Public License version 3 or later.

-\TeX{} source for this card is distributed with Emacs in {\tt etc/refcards/}
+\TeX{} source for this card is distributed with Emacs in {\tt etc//refcards//}

 For copies of the GNU Emacs manual, see:

--
2.11.0



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-12-02 17:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-23 11:49 Error when compiling refcards (emacs-25 branch) Nicolas Petton
2016-11-23 15:34 ` Eli Zaretskii
2016-11-23 15:49   ` Nicolas Petton
2016-11-29 17:40   ` Nicolas Petton
2016-11-29 18:16     ` Eli Zaretskii
2016-11-29 19:54       ` Nicolas Petton
2016-12-02 17:55         ` Sébastien Le Callonnec
2016-11-29 21:07     ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).