Comments (11)
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.
That's even better :)
from latex-packages.
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.
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.
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.
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.
@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.
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}
from latex-packages.
@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}
% hyphenation={},
% hyphenation={raggedright},
% hyphenation={},
hyphenation={raggedright},
from latex-packages.
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.
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)
- Fix CI (latest TeXlive and chktex support) HOT 1
- Hard to use doclicense in class file HOT 2
- Essa >> Esta HOT 1
- Checkout and reference https://ctan.org/pkg/gfdl in doclicense docs HOT 1
- Document fails to build when importing dolicense: Package hyperxmp Error: hyperref must be loaded before hyperxmp. HOT 2
- ! Undefined control sequence. HOT 7
- Automated testing with different TeX Live versions HOT 1
- doclicense: option to disable xmp to be compatible with pdfx HOT 3
- How to improve doclicense? Integrate with https://reuse.software/?
- Copyright License HOT 3
- Incompatibility between doclicense and silence (Regression) HOT 5
- doclicense: Specify package order for any dependencies in documentation HOT 6
- doclicense: Token not allowed in a PDF string (Unicode):(hyperref) removing `\enquote' HOT 1
- doclicense: No language definition for nilfound HOT 3
- content of \doclicenseLongText not suitable for pdfcopyright key HOT 3
- doclicense and pdfmanagement HOT 2
- doclicense incompatible with biblatex HOT 3
- doclicense: Use the Unicode Creative Commons characters instead of the ccicons package HOT 2
- Clarify in documentation how to use CC0 HOT 1
- doclicense: add year and author data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from latex-packages.