all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: lisa-asket@perso.be
To: moasenwood@zoho.eu, help-gnu-emacs@gnu.org
Subject: Exporting form emacs texinfo-mode to dvi, pdf, and html
Date: Sun, 27 Jun 2021 00:42:36 +0200 (CEST)	[thread overview]
Message-ID: <ea-mime-60d7ad5c-1d1d-1f8eaa71@www-7.mailo.com> (raw)
In-Reply-To: <87czs82rp3.fsf@zoho.eu>

Would require much more information than just.



target: prerequisite

command



A real example for doing texi2pdf would be crucial.



It is a shame I have to ask you what I should write, but I am all new to these things.

But somehow I learned to do some elisp. 



From: Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Exporting form emacs texinfo-mode to dvi, pdf, and html
Date: 27/06/2021 00:20:56 Europe/Paris

lisa-asket wrote:

> going through a makefile solution. Why should I be bothered
> with makefiles because I want to use emacs to generate my
> pdf file ?

Here is a Makefile [1] that is used to turn a text file into
a PDF. To do that there is first an in-between step, to turn
the text into PostScript, then one turns that into PDF.

Remember the general syntax

target: prerequisite
command

other than that some special syntax:
$< .. the left-most prerequisite
$@ .. the target 

From a human point of view, there are just so many advantages
- try to figure them out as an exercise :) just kidding - but
from a computer point of view there is one advantage that is
maybe not obvious, namely, if there is a target already, and
none of prerequisite has changed since the last `compile'
command was issued, nothing happens! Nothing has changed since
it was last done, so why do it again?

Not that this, despite being slightly more advanced than your
use case, is still a very, very simple project/task, yet as
you see if you think and examine the file will realize there
are so many advantages already.

For a medium-sized project [2] or a BIG project, it is not
a matter of advantages anymore, it is IMPOSSIBLE to manage it
by issuing shell commands manually like you do!

Might as well get used to the right, which here is also the
good way, and you have a simple example to practice on ... but
even so, again, even really simple examples benefit from this.

[1] https://dataswamp.org/~incal/about/cv/cv.txt

[2] https://dataswamp.org/~incal/emacs-init/Makefile

-- 
underground experts united
https://dataswamp.org/~incal





  parent reply	other threads:[~2021-06-26 22:42 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-24 23:56 Exporting form emacs texinfo-mode to dvi, pdf, and html lisa-asket
2021-06-25  6:34 ` Eli Zaretskii
2021-06-26  0:36   ` lisa-asket
2021-06-26  2:53     ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-06-26  6:10     ` Eli Zaretskii
2021-06-26 14:16       ` lisa-asket
2021-06-26 14:21         ` Eli Zaretskii
2021-06-26 15:20           ` lisa-asket
2021-06-26 15:24             ` Eli Zaretskii
2021-06-26 15:28               ` lisa-asket
2021-06-26 15:30               ` lisa-asket
2021-06-26 15:38                 ` Eli Zaretskii
2021-06-26 15:45                   ` lisa-asket
2021-06-26 15:54                     ` Eli Zaretskii
2021-06-26 16:04                       ` lisa-asket
2021-06-26 18:03                         ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-06-26 18:43                           ` lisa-asket
2021-06-26 19:37                             ` Bruno Barbier
2021-06-26 19:38                               ` lisa-asket
2021-06-26 19:56                                 ` lisa-asket
2021-06-26 21:31                                   ` lisa-asket
2021-06-26 20:02                                 ` Bruno Barbier
2021-06-26 21:38                                   ` lisa-asket
2021-06-26 22:22                                     ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-06-26 22:30                                       ` lisa-asket
2021-06-27  5:07                                         ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-06-28  6:17                                           ` Jean Louis
2021-06-28  8:01                                           ` lisa-asket
2021-06-28 14:02                                             ` Jean Louis
2021-06-28 16:36                                               ` lisa-asket
2021-06-30 15:36                                               ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-06-30 18:53                                                 ` lisa-asket
2021-07-01 18:05                                                   ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-06-30 21:30                                                 ` Jean Louis
2021-07-01 18:09                                                   ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-04 10:59                                                 ` Andreas Eder
2021-07-04 16:01                                                   ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-04 16:30                                                     ` 2QdxY4RzWzUUiLuE
2021-06-26 19:57                               ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-06-26 20:17                                 ` lisa-asket
2021-06-26 22:20                                   ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-06-26 22:27                                     ` lisa-asket
2021-06-27  5:02                                       ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-06-26 22:42                                     ` lisa-asket [this message]
2021-06-27  8:17                                       ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-06-26 22:51                                     ` lisa-asket
2021-06-26 19:54                             ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-06-26 17:55             ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-06-26 15:27           ` lisa-asket
2021-06-26 17:57             ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-06-26 17:52         ` Emanuel Berg via Users list for the GNU Emacs text editor
  -- strict thread matches above, loose matches on Subject: below --
2021-06-25  1:57 lisa-asket

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=ea-mime-60d7ad5c-1d1d-1f8eaa71@www-7.mailo.com \
    --to=lisa-asket@perso.be \
    --cc=help-gnu-emacs@gnu.org \
    --cc=moasenwood@zoho.eu \
    /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.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.