Le 2023-12-03 à 07:47, hbezemer--- via a écrit :
Dear all,I would like to create a macro along the lines of:.de CITE.[\\$2\\$1.]\\$3..Which would
result in:.CITE The problem that arises is that refer sees the definition of the macro asa
citation (of course).Is there an elegant way to get
Thank you all for the information.
On Thu, Feb 16, 2023 at 9:41 PM Oliver Marti wrote:
>
> Hy Riza
>
> Soelim is just like cat but it "eliminates" the .so, which can cause utf-8
> malfunctions (it basically puts the whole file together as one without
> ignoring e.g. preconv or other piping
Hy Riza
Soelim is just like cat but it "eliminates" the .so, which can cause utf-8
malfunctions (it basically puts the whole file together as one without
ignoring e.g. preconv or other piping functions).
I think you can just use soelim main.ms | ... | groff -ms -Tps > output.ps.
cat seems to be
Hello Riza,
> Hello Ralph,
>
> cat main.ms | soelim | pic | tbl | groff -ms > main.ps
...
> What is soelim used for?
soelim(1) attempts to explain. It doesn't tend to be needed when one
starts using troff but might be wanted in special cases later.
Consider the difference between these two if
Hello Ralph,
I was using soelim in my pipeline (cat main.ms | soelim | pic | tbl |
groff -ms > main.ps). The problem was with soelim. I did not realize
that. I first had it with double slashes, but then tried with four
slashes... Removing soelim from the pipeline resolved the problem.
What is
Hello Riza,
> Is it possible to use the ".so" command in a macro, and pass in an
> argument from the macro.
>
> .de MC
> .so $1
> ..
>
> .MC file.txt
Yes.
$ cat >foo
.de source
.so \\$1
..
foo
.source bar
foo
^D
$
$ cat >bar
bar
^D