From: Vincent Lefevre <vincent@vinc17.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Provide papersize for refcard.dvi
Date: Fri, 8 Aug 2025 19:25:03 +0200 [thread overview]
Message-ID: <20250808172503.GH2576@qaa.vinc17.org> (raw)
In-Reply-To: <86sei1n62c.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1849 bytes --]
On 2025-08-08 19:15:07 +0300, Eli Zaretskii wrote:
> > Date: Thu, 07 Aug 2025 12:55:20 +0300
> > From: Eli Zaretskii <eliz@gnu.org>
> > Cc: gdb-patches@sourceware.org
> >
> > > Date: Thu, 7 Aug 2025 11:05:24 +0200
> > > From: Vincent Lefevre <vincent@vinc17.net>
> > > Cc: gdb-patches@sourceware.org
> > >
> > > On 2025-08-07 08:50:14 +0300, Eli Zaretskii wrote:
> > > > That's true, but there are TeX experts there. If you know of a better
> > > > place, we could discuss this there. I unfortunately don't know enough
> > > > about this to make a decision about the right solution.
> > >
> > > FYI, the TeX Users Group has mailing-lists:
> > >
> > > https://tug.org/mailman/listinfo
> > >
> > > texhax seems to be the one for general TeX questions.
> >
> > Thanks, posted a question there.
>
> Given the responses there, can you post (and hopefully test) an
> improved patch?
Note: my old patch was based on what was done in PARI.
I've attached a new patch. It still uses \ifx\pdfoutput\undefined
because the suggested \ifnum\pdfoutput<1 gives an error.
For dvi and pdf, I could not see any issue.
For ps, I get with "make refcard.ps":
DVIPS refcard.ps
dvips: both landscape and papersize specified: ignoring landscape
The dvips message is due to the "-t landscape" in the Makefile
(from Makefile.in):
refcard.ps : refcard.dvi
$(ECHO_DVIPS) $(DVIPS) $(SILENT_Q_FLAG) -t landscape -o $@ $?
It is just redundant and could possibly be useful in case the \special
isn't recognized in some settings, but you may choose to remove this
option. In both cases, there are no issues with "gv refcard.ps".
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)
[-- Attachment #2: gdb-refcard-dvi.patch --]
[-- Type: text/plain, Size: 639 bytes --]
diff --git a/gdb/doc/refcard.tex b/gdb/doc/refcard.tex
index 8a402620bcc..8c0ae2f6951 100644
--- a/gdb/doc/refcard.tex
+++ b/gdb/doc/refcard.tex
@@ -96,7 +96,9 @@
\vmargin=.25in % vertical margin width
\secskip=1pc % space between refcard secs
\lskip=2pt % extra skip between \sec entries
-\ifx\pdfoutput\undefined\else % check if we are using pdfTeX
+\ifx\pdfoutput\undefined
+ \special{papersize=\the\totalwidth,\the\totalheight}% for dvi output
+\else % pdfTeX
\pdfpagewidth=\totalwidth % width of paper in pdf output
\pdfpageheight=\totalheight % height of paper in pdf output
\fi
next prev parent reply other threads:[~2025-08-08 17:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-06 14:53 Vincent Lefevre
2025-08-06 15:33 ` Eli Zaretskii
2025-08-06 16:00 ` Vincent Lefevre
2025-08-06 16:30 ` Eli Zaretskii
2025-08-06 16:47 ` Vincent Lefevre
2025-08-06 19:02 ` Eli Zaretskii
2025-08-06 22:28 ` Vincent Lefevre
2025-08-07 5:50 ` Eli Zaretskii
2025-08-07 9:05 ` Vincent Lefevre
2025-08-07 9:55 ` Eli Zaretskii
2025-08-08 16:15 ` Eli Zaretskii
2025-08-08 17:25 ` Vincent Lefevre [this message]
2025-08-08 17:48 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250808172503.GH2576@qaa.vinc17.org \
--to=vincent@vinc17.net \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox