Re: Breaking long URL
On Wed, 2 Jan 2019 20:10:07 +0100 Léo Rebetez wrote: > Hi, > > I'm new on lyx, I'll use it mainly for publishing books. I'm > searching how to break a too long url like this one: > > http://www.guardian.co.ukuk2012jun12policestopandsearchblackpeople There are two different accommodations: 1. Breaking other lines to accommodate a well-behaved URL 2. Breaking the URL itself On my computer with LyX 2.3.1, a long URL walks beyond the right margin if I usepackage{hyperref}, which of course we all do. However, if I put \sloppy at the end of the paragraph with the URL, that paragraph breaks lines so as to put the whole URL on a line without busting the right margin (xetex), or breaks the whole URL itself (LuaTeX). Then you put \fussy and the end of the next paragraph to bring back the nice typesetting you expect from LyX. If the result is too ugly, you might be able to make it a little bit better by cutting down on the % \tolerance that \sloppy implies: \sloppy\tolerance=1000% The point is, *anything* is better than letting a URL or any other text walk off the right edge of the paper, and these techniques prevent that unless the URL is longer than the paper is wide. Getting it to actually be pretty is lt as an exercise to the readder , but never forget legible trumps pretty every time. I'm attaching a 2.8K MWE (Minimum Working Example) with the preceding accommodations. SteveT Steve Litt January 2019 featured book: Troubleshooting: Just the Facts http://www.troubleshooters.com/tjust steve.lyx Description: application/lyx
jpg to eps within powerdot
Bonjour, I’ve been using the powerdot class in LyX for years without a glitch, including in my presentations pictures with a large diversity of format (including jpg, png, pdf, …). Please note that powerdot can NOT be used with pdflatex, and MUST go through ps2pdf (i.e., with a dvi step somewhere). I’m running into difficulties after a recent update: * Mac OSX 10.14.2 (Mojave) * LyX 2.3.2 * TeXLive-2018 * ImageMagick and many tools installed with MacPort. I include some jpeg images into my presentation, and now get the message (note: translated from French by myself): « no information to convert jpg files to eps - define a converter in preferences » . After a second try, I sometime do not get this message, but a LaTeX error: « LaTeX Error: Cannot determine size of graphic in ... » I did add a converter in preferences: « convert $$o $$i », without success. If I convert « by hand » in a shell (convert toto.jpg toto.eps), then use the eps file in LyX everything is fine. What am I missing? Thank you. Jacques
Re: Breaking long URL
Michael Berger wrote: > How about this one!? > > Michael Berger > > On 02.01.19 20:10, Léo Rebetez wrote: >> >> Hi, >> >> I'm new on lyx, I'll use it mainly for publishing books. I'm searching >> how to break a too long url like this one: >> >> http://www.guardian.co.ukuk2012jun12policestopandsearchblackpeople >> >> I wrote it in my preamble: >> >> \hyphenpenalty=1 >> >> \tolerance=1000 >> >> \emergencystretch=10mm >> >> \righthyphenmin=4 >> >> \lefthyphenmin=4 >> >> \usepackage[ec]{aeguill} >> >> \widowpenalty=1 >> >> \clubpenalty=1 >> >> \usepackage{hyperref} >> >> \usepackage[anythingbreaks]{breakurl} >> >> \hypersetup{breaklinks=true} >> >> \urlstyle{same} >> >> \usepackage{cite} >> >> I found nothing giving me an understandable way to solve this problem, >> maybe somebody can help me?? >> >> Thanks a lot, >> >> léo, CH >> I also found this thread: https://tex.stackexchange.com/questions/3033/forcing-linebreaks-in-url
Re: Breaking long URL
How about this one!? Michael Berger On 02.01.19 20:10, Léo Rebetez wrote: Hi, I'm new on lyx, I'll use it mainly for publishing books. I'm searching how to break a too long url like this one: http://www.guardian.co.ukuk2012jun12policestopandsearchblackpeople I wrote it in my preamble: \hyphenpenalty=1 \tolerance=1000 \emergencystretch=10mm \righthyphenmin=4 \lefthyphenmin=4 \usepackage[ec]{aeguill} \widowpenalty=1 \clubpenalty=1 \usepackage{hyperref} \usepackage[anythingbreaks]{breakurl} \hypersetup{breaklinks=true} \urlstyle{same} \usepackage{cite} I found nothing giving me an understandable way to solve this problem, maybe somebody can help me?? Thanks a lot, léo, CH
Breaking long URL
Hi, I'm new on lyx, I'll use it mainly for publishing books. I'm searching how to break a too long url like this one: http://www.guardian.co.ukuk2012jun12policestopandsearchblackpeople I wrote it in my preamble: \hyphenpenalty=1 \tolerance=1000 \emergencystretch=10mm \righthyphenmin=4 \lefthyphenmin=4 \usepackage[ec]{aeguill} \widowpenalty=1 \clubpenalty=1 \usepackage{hyperref} \usepackage[anythingbreaks]{breakurl} \hypersetup{breaklinks=true} \urlstyle{same} \usepackage{cite} I found nothing giving me an understandable way to solve this problem, maybe somebody can help me?? Thanks a lot, léo, CH