Re: Change Tracking Colors (Screen vs PDF)

2019-02-08 Thread Dr Eberhard Lisse
Kornel,

thank you.

How do I change the colors?

el

On 08/02/2019 12:16, Kornel Benko wrote:
[...] 
> The screen and paper are different output devices. Therefore they deserve 
> different
> configuration parameters. (Imagine screen background having the color of 
> printed 'added/deleted text')
> 
>   Kornel
> 




signature.asc
Description: OpenPGP digital signature


Re: Question: how to run Reconfigure without GUI

2019-02-08 Thread Dr Eberhard Lisse
I futureproofed it a little :-)-O

#!/bin/bash
function lyxconfigure
{
if [[ "$OSTYPE" == "darwin"* ]]
then
BASEDIR="/Users/$(whoami)/Library/Application Support/LyX"
LYXVER=$(lyx --version 2>&1 \
| perl -ne 'if (/^LyX/) {
@v = split(/\s+/);
($j,$i) = split(/\./,$v[1],3);
print "$j.$i"
}'
)
pushd "$BASEDIR-$LYXVER"
python -tt 
"/Applications/LyX.app/Contents/Resources/configure.py"
popd
else
echo "This only works on a Mac"
fi
}

If someone can come up with a clever way of finding the maJor and miNor 
versions of LyX, please let me know.

Heartbleed was an OpenSSL vulnerability by the way, and, though Bashdoor
was an issue in 2014, I use bash as my login shell so I don't really
think it matters much.  But as Steve wrote it's trivial to change.


On 06/02/2019 10:49, Dr Eberhard Lisse wrote:
[...]
> On 06/02/2019 09:53, Steve Litt wrote:
[...]
>> Beware that pushd and popd are bash-only, and do not appear in dash or
>> any /bin/sh one should be using for shellscripts. I'm of the opinion,
>> especially after the Heartbleed fiasco, that bash is just too big an
>> attack surface to use for shellscripts.
>>
>> In more lightweight shells, it's done more like this:
>>
>> #!/bin/sh
>> orgdir=`pwd`
>> cd /home/you/application/directory
>> ./my_special_application arg1 arg2 arg3
>> cd $orgdir
[...]




Re: Change Tracking Colors (Screen vs PDF)

2019-02-08 Thread Kornel Benko
Am Freitag, 8. Februar 2019 10:17:28 CET schrieb Jean-Marc Lasgouttes 
:
> Le 08/02/2019 à 10:05, Dr Eberhard Lisse a écrit :
> > Hi,
> > 
> > I have been modifying the change colors for a tracked document, using
> > Preferences -> Look -> Screen Colors, I wanted the switch "changed
> > text 1st author" to be in red and the 3rd author in blue.
> > 
> > That works on the screen, but the output has still first author in blue,
> > which I see in the LaTeX document preamble as
> > 
> > \providecolor{lyxadded}{rgb}{0,0,1}
> > \providecolor{lyxdeleted}{rgb}{1,0,0}
> > 
> > Reason being that if I use Compare Documents an insert of a (single)
> > character is better visible in red than in blue. In the Tracking proper
> > it's ok because it shows the whole word delete and a new word added.
> 
> The colors you see here are "added text" and "deleted text". These 
> colors are only used for the latex output.
> 
> I am not sure why the colors are so different between screen and print.
> 
> HTH,
> JMarc
> 

The screen and paper are different output devices. Therefore they deserve 
different
configuration parameters. (Imagine screen background having the color of 
printed 'added/deleted text')

Kornel


signature.asc
Description: This is a digitally signed message part.


Re: Change Tracking Colors (Screen vs PDF)

2019-02-08 Thread Jean-Marc Lasgouttes

Le 08/02/2019 à 10:05, Dr Eberhard Lisse a écrit :

Hi,

I have been modifying the change colors for a tracked document, using
Preferences -> Look -> Screen Colors, I wanted the switch "changed
text 1st author" to be in red and the 3rd author in blue.

That works on the screen, but the output has still first author in blue,
which I see in the LaTeX document preamble as

\providecolor{lyxadded}{rgb}{0,0,1}
\providecolor{lyxdeleted}{rgb}{1,0,0}

Reason being that if I use Compare Documents an insert of a (single)
character is better visible in red than in blue. In the Tracking proper
it's ok because it shows the whole word delete and a new word added.


The colors you see here are "added text" and "deleted text". These 
colors are only used for the latex output.


I am not sure why the colors are so different between screen and print.

HTH,
JMarc


Change Tracking Colors (Screen vs PDF)

2019-02-08 Thread Dr Eberhard Lisse
Hi,

I have been modifying the change colors for a tracked document, using
Preferences -> Look -> Screen Colors, I wanted the switch "changed
text 1st author" to be in red and the 3rd author in blue.

That works on the screen, but the output has still first author in blue,
which I see in the LaTeX document preamble as

\providecolor{lyxadded}{rgb}{0,0,1}
\providecolor{lyxdeleted}{rgb}{1,0,0}

Reason being that if I use Compare Documents an insert of a (single) 
character is better visible in red than in blue. In the Tracking proper 
it's ok because it shows the whole word delete and a new word added.


How can I change this in the output (PDF)?

greetings, el



Re: Beamer overview at left instead of at top

2019-02-08 Thread Wolfgang Engelmann

On 08.02.19 09:21, Wolfgang Engelmann wrote:


I used beamertheme Berkeley before, but would like to try 
beamerthemeWarsaw.



sorry, I meant /the overview is at the top instead of at the left/


However, the overview is at the left instead of at the top. I tried to 
change it by adding \usetheme[left,width=3.45em]{Warsaw}


but get this error:

The option `width=3.45em' was not declared in package 
`beamerthemeWarsaw', perhaps you misspelled its name. Try typing 
 to proceed.


Does this mean the option does not work in beamerthemeWarsaw? Or 
should something else be used instead? I need more horizontal space in 
the frames, therefore the /left/ option


Wolfgang



Beamer overview at left instead of at top

2019-02-08 Thread Wolfgang Engelmann
I used beamertheme Berkeley before, but would like to try 
beamerthemeWarsaw. However, the overview is at the left instead of at 
the top. I tried to change it by adding 
\usetheme[left,width=3.45em]{Warsaw}


but get this error:

The option `width=3.45em' was not declared in package 
`beamerthemeWarsaw', perhaps you misspelled its name. Try typing 
 to proceed.


Does this mean the option does not work in beamerthemeWarsaw? Or should 
something else be used instead? I need more horizontal space in the 
frames, therefore the /left/ option


Wolfgang