Git Product home page Git Product logo

Comments (7)

fennecJ avatar fennecJ commented on July 28, 2024

I come up with 2 solutions for this issue

  • 1 We can add

    \begin{center}
    \href{https://github.com/sysprog21/lkmpg/releases/download/latest/lkmpg.pdf}{Download this page in pdf}
    \end{center}
    

    At the end of html.cfg.
    By this way, the information about PDF downloading can only be at the top of the page:
    image

  • 2 Using \ifdefined\HCode
    By this way we can choose where to place the information about PDF downloading.
    image

from lkmpg.

jserv avatar jserv commented on July 28, 2024

How about following Yocto Project Overview and Concepts Manual? We can put the hyperlinks to PDF download and GitHub in the upper right corner of the HTML page.

from lkmpg.

fennecJ avatar fennecJ commented on July 28, 2024

Add following code

--- a/html.cfg
+++ b/html.cfg
@@ -45,5 +45,15 @@
     user-select: none;
 }}
 
+\Css{.flushright:first-child {
+    position:absolute;
+    top:0;
+    right:0;
+}}
+
 \begin{document}
 \EndPreamble
+
+\begin{flushright}
+\href{https://github.com/sysprog21/lkmpg/releases/download/latest/lkmpg.pdf}{Download this page in pdf}
+\end{flushright}

into html.cfg would be looked like:
image

You can check it in https://fennecj.github.io/lkmpg/

from lkmpg.

jserv avatar jserv commented on July 28, 2024

Change from "Download this page in pdf" to "Download PDF document"

from lkmpg.

jserv avatar jserv commented on July 28, 2024

You can check it in https://fennecj.github.io/lkmpg/

Can you reserve some spaces at the end of the line "Download PDF document"?

from lkmpg.

fennecJ avatar fennecJ commented on July 28, 2024

Did you mean something looks like this?
image
You can modify the space between word and right side through right value, and modifiy the space between word and top side through top value.

+\Css{.flushright:first-child {
+    position:absolute;
+    top: 10px;
+    right: 50px;
+}}
+

from lkmpg.

jserv avatar jserv commented on July 28, 2024

You can modify the space between word and right side through right value, and modifiy the space between word and top side through top value.

It looks great to me. Please send the corresponding pull request.

from lkmpg.

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.