GithubHelp home page GithubHelp logo

Comments (11)

ypid avatar ypid commented on June 12, 2024

Nice idea πŸ‘ I agree that avoiding hyphenating for \doclicenseThis looks better. I am going to use \RaggedRight from ragged2e and \raggedright and make it configurable via package options (probably defaulting to \RaggedRight).

from latex-packages.

omarzd avatar omarzd commented on June 12, 2024

That's even better :)

from latex-packages.

ypid avatar ypid commented on June 12, 2024

I just added support as described above. Can you test it and give me feedback if that is what you had in mind?

I think there is still room for improvement. For example, the minipage environment is currently setup using fixed values. If there was a way to let TeX stretch the boundaries of this environment to help find the optimal width I would assume that this would also allow to eliminate most hyphenations while still typesetting \doclicenseLongText as justified text (assuming that has been set as default for normal text).

from latex-packages.

omarzd avatar omarzd commented on June 12, 2024

Sure. I'll check it tomorrow. I appreciate your efforts.
On Apr 12, 2016 1:30 AM, "Robin Schneider" [email protected] wrote:

I just added support as described above. Can you test it and give me
feedback if that is what you had in mind?

I think there is still room for improvement. For example, the minipage
environment is currently setup using fixed values. If there was a way to
let TeX stretch the boundaries of this environment to help find the optimal
width I would assume that this would also allow to eliminate most
hyphenations while still typesetting \doclicenseLongText as justified
text (assuming that has been set as default for normal text).

β€”
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#14 (comment)

from latex-packages.

ypid avatar ypid commented on June 12, 2024

Did you find the time? I have no problem in waiting with the release a few days more when you want to give it a try before that.

from latex-packages.

omarzd avatar omarzd commented on June 12, 2024

I'm so sorry @ypid, I've been really busy last week. I haven't even downloaded it. Do I need to download the whole thing or just the sty file?

from latex-packages.

ypid avatar ypid commented on June 12, 2024

@omarz1 Don’t worry, take your time πŸ˜‰ The sty will do. https://github.com/ypid/latex-packages/blob/master/doclicense/doclicense.sty

from latex-packages.

omarzd avatar omarzd commented on June 12, 2024

OK. I just tested it and I'm still getting hyphenation over the word international.
MWE:

\documentclass{article}
\usepackage{hyperref}
\usepackage[
    type={CC},
    modifier={by-nc-sa},
    version={4.0},
]{doclicense}
\begin{document}
\doclicenseThis
\end{document}

Output:
untitled3

from latex-packages.

ypid avatar ypid commented on June 12, 2024

@omarz1 That was the expected behavior as documented. You can use hyphenation={raggedright} to force TeX not to make hyphenations (which I expected would look worse). But after testing this a bit more, I am not sure if I should enable this feature by default as it might look worse then just hyphenating one word. So I guess either \raggedright or leaving it as is (defaulting to justified text). What do you think and do you have a better solution for this? See also my previous comment.

Lets compare.

\documentclass{article}
\usepackage[
  hidelinks,
]{hyperref}
\usepackage[
  type={CC},
  modifier={by-nc-sa},
  version={4.0},
  hyphenation={},
  % hyphenation={raggedright},
]{doclicense}
\begin{document}
\doclicenseThis%
\end{document}

justified


  % hyphenation={},
  % hyphenation={raggedright},

min_hyphen


  % hyphenation={},
  hyphenation={raggedright},

no_hyph

from latex-packages.

omarzd avatar omarzd commented on June 12, 2024

It is excellent that you have that as an option. I say you leave it exactly like in your test. So by default it shouldn't be enabled, just because it might make it look worse.

from latex-packages.

ypid avatar ypid commented on June 12, 2024

Thanks for you feedback. So I currently don’t enable this feature by default but I did use RaggedRight for the documentation PDF because it avoids additional white space between words in the first line. I am going to make a release tomorrow.

from latex-packages.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.