Re: Tips on LaTeX addons

2017-08-10 Thread Steve Litt
On Thu, 10 Aug 2017 11:37:21 +0100
Dr Eberhard Lisse  wrote:

> Steve,
> 
> so you upgraded TeX and lost some packages?

No, I just sat down to work one day and my books didn't compile. I
hadn't upgraded TeX. The day before I'd suffered a big data loss on a
different partition, but I can't see how that would have influenced my
TeX installation.

My operating theory is that my TeX software picked that day to stop
looking in the 2016 tree, where I still had those packages. But really,
that's just a guess.

SteveT



Re: Tips on LaTeX addons

2017-08-10 Thread Steve Litt
On Thu, 10 Aug 2017 11:37:21 +0100
Dr Eberhard Lisse  wrote:


> 
> Before I ever upgrade I do something like
> 
>   tlmgr list --only-installed \
>   | awk '{gsub(/:/, ""); print $2}' > tl.installed


Nice!

> 
> and after upgrade
> 
>   tlmgr install $(cat tl.installed)

Very nice, as long as that works in dash as well as bash.

> That makes sure I get all the previous backajes back.
> 
> And I synchronize from a remote HOST
> 
>   tlmgr install `ssh USER@HOST tlmgr list --only-installed \
>   | awk '{gsub(/:/, ""); print $2}'`
> 
> works equally well.

My one-linerese isn't that good. What do you mean by synchronising from
a remote host? What host? Is the preceding a substitute for making the
list then installing the list? If so, I'll just do the two step thing.

> 
> I usually do
> 
>   tlmgr update --self --all
> 
> because sometimes it wants to update itself. 

> You do not have to invoke
> texhash after tlmgr, it does so itself.

Oh good. I was wondering about that, but did texhash just in case it
was still necessary. Thanks for the tip.

SteveT


Re: Tips on LaTeX addons

2017-08-10 Thread Dr Eberhard Lisse
Steve,

so you upgraded TeX and lost some packages?

I use the (much smaller) BasicTeX version of TeXLive on the Mac which
installs into /usr/local/texlive/2017basic and does some fancy juggling
with the PATH :-)-O

Before I ever upgrade I do something like

tlmgr list --only-installed \
| awk '{gsub(/:/, ""); print $2}' > tl.installed

and after upgrade

tlmgr install $(cat tl.installed)


That makes sure I get all the previous backajes back.

And I synchronize from a remote HOST

tlmgr install `ssh USER@HOST tlmgr list --only-installed \
| awk '{gsub(/:/, ""); print $2}'`

works equally well.

I usually do

tlmgr update --self --all

because sometimes it wants to update itself. You do not have to invoke
texhash after tlmgr, it does so itself.

el

On 09/08/2017 20:13, Steve Litt wrote:
> Hi all,
> 
> A couple nights ago, my LyX magically stopped compiling my books. You
> know, the ones I sell for a living? Ugh!
>
> I'll save you the hour long story of how I first traced the situation,
> and give you the stuff I found out.
>
> First, there's a document on your computer, put there by your texlive
> installation, called texlive-en.pdf. If you use a different language,
> substitute your language's suffix. Find it with your updated and
> locate commands, and find a way to bookmark it (perhaps with a
> shellscript or alias) If you're a Windows or Mac user, somewhere
> there's something similar for your Mikitext or whatever.
>
> Read it. Especially the chapter discussing the tlmgr program. Today's
> tlmgr is soo much better at maintaining your TeX configuration
> than anything in the past. If your stuff stops compiling (or even if
> you just want to keep everything up to date, I'd recommend:
>
> tlmgr update -all -dry-run
>
> If the results of that seem OK, I'd recommend a backup of your entire
> system, or for the sake of time and space, the entire tree under
> texlive, like /opt/texlive or /usr/local/texlive or whatever. It
> should have some directories named after years in it, and one called
> texmf-local. Anyway, once backed up, run this command:
>
> tlmgr update -all
> 
> Then, if your stuff still doesn't compile, look at the error message,
> pick the most likely TeX package, and install it. For instance, if
> your compile gripes about no pstricks.sty, do this to get past that:
>
> tlmgr install pstricks
> texhash
> 
> One of the worst things about LyX back in the day was getting your
> texlive situation squared away, but today doing so is much easier.
> 
> SteveT
> 
> Steve Litt 
[...]