Re: ulem and amsmath

2016-02-22 Thread Michael Berger

On 02/21/2016 05:29 PM, Michael Berger wrote:


On 02/21/2016 04:42 PM, PhilipPirrip wrote:

On 02/21/2016 09:06 AM, Michael Berger wrote:

a) slanted text of the document appeared now upright but underlined

 However, this could easily be reformatted with 'slanted'


What made the text slanted in the first place?
b) there is quite a number of long URLs in my Bibliography that broke
nicely before thanks to Jürgen's special lines in the preamble. Now 
they

run into the page margin and out of the page.
 And here I would not know ho to fix that.


You may try adding Juergen's special lines below \usepackage{ulem} in

Provides ulem 1
AddToPreamble
  \usepackage{ulem}
  % Juergen's special lines:

EndPreamble


I am confident you have a clue for that as well!? Maybe your first
proposition (change classicthesis-config.tex) is the better 
alternative?


Best thing would be to ask the maintainer of ulem to fix the bug... 
but that might only come in a few years, knowing how fast things are 
changing in so-1980 LaTeX world.



Thanks Philip,
I will do as you suggests above.

Meanwhile I changed classicthesis-config.tex as screen shot and then 
used underbar in a single word. Unfortunately I faced the same 
annoying loop.


Please, check the change I've made - what did I do wrong?

Michael Berger


God morning Philip,
I reset my brain early this morning and looked once more at what you 
sent me on the issue.

I did try it all but the problem remained.
Suddenly I saw it right in front of my eyes: "...makes amsmath enter an 
infinitive loop"

So, do I need amsmath in my documents? I decided NO!
Accordingly I removed the following two lines in classicthesis-config.tex

\PassOptionsToPackage{fleqn}{amsmath}
\usepackage{amsmath}

Then I checked if that had in some way effected any math 
formulas/expressions in Miede's original text and find it had not.


Then I formatted all the words as needed with 'underbar' and compiled.
There my PDF was - beautiful and precisely as anticipated!

Philip, I am very sorry for taking you on that long and winding road 
while we could have taken a shortcut.


Cheers and many thanks,
Michael Berger

PS: If intelligence or expertise lacks doggedness often helps :-D



Re: ulem and amsmath

2016-02-21 Thread Michael Berger


On 02/21/2016 04:42 PM, PhilipPirrip wrote:

On 02/21/2016 09:06 AM, Michael Berger wrote:




a) slanted text of the document appeared now upright but underlined
 However, this could easily be reformatted with 'slanted'


What made the text slanted in the first place?



b) there is quite a number of long URLs in my Bibliography that broke
nicely before thanks to Jürgen's special lines in the preamble. Now they
run into the page margin and out of the page.
 And here I would not know ho to fix that.



You may try adding Juergen's special lines below \usepackage{ulem} in

Provides ulem 1
AddToPreamble
  \usepackage{ulem}
  % Juergen's special lines:

EndPreamble





I am confident you have a clue for that as well!? Maybe your first
proposition (change classicthesis-config.tex) is the better alternative?


Best thing would be to ask the maintainer of ulem to fix the bug... 
but that might only come in a few years, knowing how fast things are 
changing in so-1980 LaTeX world.



Thanks Philip,
I will do as you suggests above.

Meanwhile I changed classicthesis-config.tex as screen shot and then 
used underbar in a single word. Unfortunately I faced the same annoying 
loop.


Please, check the change I've made - what did I do wrong?

Michael Berger


Re: ulem and amsmath

2016-02-21 Thread PhilipPirrip

On 02/21/2016 09:06 AM, Michael Berger wrote:




a) slanted text of the document appeared now upright but underlined
 However, this could easily be reformatted with 'slanted'


What made the text slanted in the first place?



b) there is quite a number of long URLs in my Bibliography that broke
nicely before thanks to Jürgen's special lines in the preamble. Now they
run into the page margin and out of the page.
 And here I would not know ho to fix that.



You may try adding Juergen's special lines below \usepackage{ulem} in

Provides ulem 1
AddToPreamble
  \usepackage{ulem}
  % Juergen's special lines:

EndPreamble





I am confident you have a clue for that as well!? Maybe your first
proposition (change classicthesis-config.tex) is the better alternative?


Best thing would be to ask the maintainer of ulem to fix the bug... but 
that might only come in a few years, knowing how fast things are 
changing in so-1980 LaTeX world.







Re: ulem and amsmath

2016-02-21 Thread Michael Berger

On 02/20/2016 11:42 PM, PhilipPirrip wrote:

Hi Michael,
It took me a while to isolate the problem: it's displayed math in 
Chapter03 that causes it. This turned out to be a bug in the package 
ulem:
http://tex.stackexchange.com/questions/125980/problem-with-amsmathfontspeculem 

http://tex.stackexchange.com/questions/120024/pdflatex-hangs-with-no-errors 




In short, the way ulem defines MakeRobust makes amsmath enter an 
infinite loop.



There are a few fixes, I'll give you two:

- either call fixltx2e in classicthesis-config.tex before the call to 
amsmath (CUT & PASTE ABOVE)


- or add te following to ClassicThesis.lyx (main document), Document 
Settings > Local Layout


Provides ulem 1
AddToPreamble
  \usepackage{ulem}
EndPreamble

(don't forget to Validate before pressing Apply)
to make sure ulem is loaded after amsmath.


Let me know if this worked.


LyX calls the two packages in the right order (intentionally or not). 
Unfortunately, the LyX port of the classic thesis template is a bit 
messy as the author of the latex template insisted on keeping many 
unnecessary calls in classicthesis-config.tex

Hi Philip,
I added the lines of code you provided me with to the Local Layout of 
the main document and got some setbacks:


a) slanted text of the document appeared now upright but underlined
However, this could easily be reformatted with 'slanted'

b) there is quite a number of long URLs in my Bibliography that broke 
nicely before thanks to Jürgen's special lines in the preamble. Now they 
run into the page margin and out of the page.

And here I would not know ho to fix that.

I am confident you have a clue for that as well!? Maybe your first 
proposition (change classicthesis-config.tex) is the better alternative?


Cheers,
Michael






Re: ulem and amsmath

2016-02-21 Thread Michael Berger

Dear Philip,
Respect! I am truly very grateful to you for resolving this problem! I 
will revert to you after implementing your advice! I think I am going to 
add the respective piece of code to Local Layout of the main document as 
I am reluctant to change something in classicthesis-config.tex.
I also learned that my desperate amateurish attempts to find the cause 
would have lead to nowhere.
Thanks to you and your peers in the world of Open Source for such 
continuous willingness in helping the users.


Re: using Jürgen's modules in classicthesis-LyX-v4.1
He asked me to send a mini example file which I will do within the next 
days.
Perhaps there is a similar cause because I can use those modules in 
KOMA-Script documents whereas in classicthesis Latex already complains 
after I did nothing else but adding csquotes to the list of Modules and 
then tried to compile.


Michael Berger

On 02/20/2016 11:42 PM, PhilipPirrip wrote:

Hi Michael,
It took me a while to isolate the problem: it's displayed math in 
Chapter03 that causes it. This turned out to be a bug in the package 
ulem:
http://tex.stackexchange.com/questions/125980/problem-with-amsmathfontspeculem 

http://tex.stackexchange.com/questions/120024/pdflatex-hangs-with-no-errors 




In short, the way ulem defines MakeRobust makes amsmath enter an 
infinite loop.



There are a few fixes, I'll give you two:

- either call fixltx2e in classicthesis-config.tex before the call to 
amsmath (CUT & PASTE ABOVE)


- or add te following to ClassicThesis.lyx (main document), Document 
Settings > Local Layout


Provides ulem 1
AddToPreamble
  \usepackage{ulem}
EndPreamble

(don't forget to Validate before pressing Apply)
to make sure ulem is loaded after amsmath.


Let me know if this worked.


LyX calls the two packages in the right order (intentionally or not). 
Unfortunately, the LyX port of the classic thesis template is a bit 
messy as the author of the latex template insisted on keeping many 
unnecessary calls in classicthesis-config.tex























ulem and amsmath

2016-02-20 Thread PhilipPirrip

Hi Michael,
It took me a while to isolate the problem: it's displayed math in 
Chapter03 that causes it. This turned out to be a bug in the package ulem:

http://tex.stackexchange.com/questions/125980/problem-with-amsmathfontspeculem
http://tex.stackexchange.com/questions/120024/pdflatex-hangs-with-no-errors


In short, the way ulem defines MakeRobust makes amsmath enter an 
infinite loop.



There are a few fixes, I'll give you two:

- either call fixltx2e in classicthesis-config.tex before the call to 
amsmath (CUT & PASTE ABOVE)


- or add te following to ClassicThesis.lyx (main document), Document 
Settings > Local Layout


Provides ulem 1
AddToPreamble
  \usepackage{ulem}
EndPreamble

(don't forget to Validate before pressing Apply)
to make sure ulem is loaded after amsmath.


Let me know if this worked.


LyX calls the two packages in the right order (intentionally or not). 
Unfortunately, the LyX port of the classic thesis template is a bit 
messy as the author of the latex template insisted on keeping many 
unnecessary calls in classicthesis-config.tex